]>
Commit | Line | Data |
---|---|---|
dd8dec69 UM |
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 | |
9b86974e | 24 | by L<ERR_get_error(3)>. |
dd8dec69 UM |
25 | |
26 | =head1 SEE ALSO | |
27 | ||
9b86974e | 28 | L<bn(3)>, L<ERR_get_error(3)> |
dd8dec69 UM |
29 | |
30 | =head1 HISTORY | |
31 | ||
32 | BN_copy() and BN_dup() are available in all versions of SSLeay and OpenSSL. | |
33 | ||
34 | =cut |