Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) Standard preamble: ========================================================================
NAMEBN_copy, BN_dup, BN_with_flags - copy BIGNUMs
#include <openssl/bn.h> BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from); BIGNUM *BN_dup(const BIGNUM *from); void BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags);
DESCRIPTIONBN_copy() copies from to to. BN_dup() creates a new
BN_with_flags creates a temporary shallow copy of b in dest. It places significant restrictions on the copied data. Applications that do no adhere to these restrictions may encounter unexpected side effects or crashes. For that reason use of this function is discouraged. Any flags provided in flags will be set in dest in addition to any flags already set in b. For example this might commonly be used to create a temporary copy of a
dest should be a newly allocated BIGNUMobtained via a call to BN_new(). It should not have been used for other purposes or initialised in any way.
- dest must only be used in ``read-only'' operations, i.e. typically those functions where the relevant parameter is declared ``const''.
- dest must be used and freed before any further subsequent use of b
RETURN VALUESBN_copy() returns to on success,
COPYRIGHTCopyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the OpenSSL license (the ``License''). You may not use this file except in compliance with the License. You can obtain a copy in the file