1.Dd $Mdocdate: February 23 2015 $ 2.Dt BN_COPY 3 3.Os 4.Sh NAME 5.Nm BN_copy , 6.Nm BN_dup 7.Nd copy BIGNUMs 8.Sh SYNOPSIS 9.In openssl/bn.h 10.Ft BIGNUM * 11.Fo BN_copy 12.Fa "BIGNUM *to" 13.Fa "const BIGNUM *from" 14.Fc 15.Ft BIGNUM * 16.Fo BN_dup 17.Fa "const BIGNUM *from" 18.Fc 19.Sh DESCRIPTION 20.Fn BN_copy 21copies 22.Fa from 23to 24.Fa to . 25.Fn BN_dup 26creates a new 27.Vt BIGNUM 28containing the value 29.Fa from . 30.Sh RETURN VALUES 31.Fn BN_copy 32returns 33.Fa to 34on success, 35.Dv NULL 36on error. 37.Fn BN_dup 38returns the new 39.Vt BIGNUM , 40or 41.Dv NULL 42on error. 43The error codes can be obtained by 44.Xr ERR_get_error 3 . 45.Sh SEE ALSO 46.Xr bn 3 , 47.Xr ERR_get_error 3 48.Sh HISTORY 49.Fn BN_copy 50and 51.Fn BN_dup 52are available in all versions of SSLeay and OpenSSL. 53