2000-01-23 22:06:24 +00:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
BN_copy, BN_dup - copy BIGNUMs
|
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
#include <openssl/bn.h>
|
|
|
|
|
|
|
|
BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from);
|
|
|
|
|
|
|
|
BIGNUM *BN_dup(const BIGNUM *from);
|
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
|
|
|
BN_copy() copies B<from> to B<to>. BN_dup() creates a new B<BIGNUM>
|
|
|
|
containing the value B<from>.
|
|
|
|
|
|
|
|
=head1 RETURN VALUES
|
|
|
|
|
|
|
|
BN_copy() returns B<to> on success, NULL on error. BN_dup() returns
|
|
|
|
the new B<BIGNUM>, and NULL on error. The error codes can be obtained
|
2015-08-17 19:21:33 +00:00
|
|
|
by L<ERR_get_error(3)>.
|
2000-01-23 22:06:24 +00:00
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2015-08-17 19:21:33 +00:00
|
|
|
L<bn(3)>, L<ERR_get_error(3)>
|
2000-01-23 22:06:24 +00:00
|
|
|
|
|
|
|
=cut
|