BN_copy(3) — Subroutines
NAME
BN_copy, BN_dup − Copy BIGNUMs
SYNOPSIS
#include <openssl/bn.h>
BIGNUM ∗BN_copy(
BIGNUM ∗to, const BIGNUM ∗from ); BIGNUM ∗BN_dup(
const BIGNUM ∗from );
DESCRIPTION
The BN_copy() function copies from to to. The BN_dup() function creates a new BIGNUM containing the value from.
RETURN VALUES
BN_copy() function returns to on success, NULL on error. The BN_dup() function returns the new BIGNUM, and NULL on error. The error codes can be obtained by using the ERR_get_error() function.
HISTORY
The BN_copy() and BN_dup() functions are available in all versions of SSLeay and OpenSSL.