blob: 8ad25e7834f6c7222063c373975c4925d83f94d1 [file] [log] [blame]
Ulf Möllerdd8dec62000-01-23 22:06:24 +00001=pod
2
3=head1 NAME
4
5BN_copy, BN_dup - copy BIGNUMs
6
7=head1 SYNOPSIS
8
9 #include <openssl/bn.h>
10
11 BIGNUM *BN_copy(BIGNUM *to, const BIGNUM *from);
12
13 BIGNUM *BN_dup(const BIGNUM *from);
14
15=head1 DESCRIPTION
16
17BN_copy() copies B<from> to B<to>. BN_dup() creates a new B<BIGNUM>
18containing the value B<from>.
19
20=head1 RETURN VALUES
21
22BN_copy() returns B<to> on success, NULL on error. BN_dup() returns
23the new B<BIGNUM>, and NULL on error. The error codes can be obtained
Richard Levittebb075f82000-01-27 01:25:31 +000024by L<ERR_get_error(3)|ERR_get_error(3)>.
Ulf Möllerdd8dec62000-01-23 22:06:24 +000025
26=head1 SEE ALSO
27
Richard Levittebb075f82000-01-27 01:25:31 +000028L<bn(3)|bn(3)>, L<err(3)|err(3)>
Ulf Möllerdd8dec62000-01-23 22:06:24 +000029
30=head1 HISTORY
31
32BN_copy() and BN_dup() are available in all versions of SSLeay and OpenSSL.
33
34=cut