1BN_copy(3) OpenSSL BN_copy(3)
2
3
4
6 BN_copy, BN_dup - copy BIGNUMs
7
9 #include <openssl/bn.h>
10
11 BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from);
12
13 BIGNUM *BN_dup(const BIGNUM *from);
14
16 BN_copy() copies from to to. BN_dup() creates a new BIGNUM containing
17 the value from.
18
20 BN_copy() returns to on success, NULL on error. BN_dup() returns the
21 new BIGNUM, and NULL on error. The error codes can be obtained by
22 ERR_get_error(3).
23
25 bn(3), ERR_get_error(3)
26
28 BN_copy() and BN_dup() are available in all versions of SSLeay and
29 OpenSSL.
30
31
32
331.0.0e 2002-09-25 BN_copy(3)