Ulf Möller | dd8dec6 | 2000-01-23 22:06:24 +0000 | [diff] [blame] | 1 | =pod |
| 2 | |
| 3 | =head1 NAME |
| 4 | |
| 5 | BN_copy, BN_dup - copy BIGNUMs |
| 6 | |
| 7 | =head1 SYNOPSIS |
| 8 | |
| 9 | #include <openssl/bn.h> |
| 10 | |
| 11 | BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from); |
| 12 | |
| 13 | BIGNUM *BN_dup(const BIGNUM *from); |
| 14 | |
| 15 | =head1 DESCRIPTION |
| 16 | |
| 17 | BN_copy() copies B<from> to B<to>. BN_dup() creates a new B<BIGNUM> |
| 18 | containing the value B<from>. |
| 19 | |
| 20 | =head1 RETURN VALUES |
| 21 | |
| 22 | BN_copy() returns B<to> on success, NULL on error. BN_dup() returns |
| 23 | the new B<BIGNUM>, and NULL on error. The error codes can be obtained |
Richard Levitte | bb075f8 | 2000-01-27 01:25:31 +0000 | [diff] [blame] | 24 | by L<ERR_get_error(3)|ERR_get_error(3)>. |
Ulf Möller | dd8dec6 | 2000-01-23 22:06:24 +0000 | [diff] [blame] | 25 | |
| 26 | =head1 SEE ALSO |
| 27 | |
Richard Levitte | bb075f8 | 2000-01-27 01:25:31 +0000 | [diff] [blame] | 28 | L<bn(3)|bn(3)>, L<err(3)|err(3)> |
Ulf Möller | dd8dec6 | 2000-01-23 22:06:24 +0000 | [diff] [blame] | 29 | |
| 30 | =head1 HISTORY |
| 31 | |
| 32 | BN_copy() and BN_dup() are available in all versions of SSLeay and OpenSSL. |
| 33 | |
| 34 | =cut |