diff options
Diffstat (limited to 'src/lib/libcrypto/man/BN_copy.3')
-rw-r--r-- | src/lib/libcrypto/man/BN_copy.3 | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/BN_copy.3 b/src/lib/libcrypto/man/BN_copy.3 new file mode 100644 index 0000000000..765e46c01c --- /dev/null +++ b/src/lib/libcrypto/man/BN_copy.3 | |||
@@ -0,0 +1,52 @@ | |||
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 | ||
21 | copies | ||
22 | .Fa from | ||
23 | to | ||
24 | .Fa to . | ||
25 | .Fn BN_dup | ||
26 | creates a new | ||
27 | .Vt BIGNUM | ||
28 | containing the value | ||
29 | .Fa from . | ||
30 | .Sh RETURN VALUES | ||
31 | .Fn BN_copy | ||
32 | returns | ||
33 | .Fa to | ||
34 | on success, | ||
35 | .Dv NULL | ||
36 | on error. | ||
37 | .Fn BN_dup | ||
38 | returns the new | ||
39 | .Vt BIGNUM , | ||
40 | or | ||
41 | .Dv NULL | ||
42 | on error. | ||
43 | The 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 | ||
50 | and | ||
51 | .Fn BN_dup | ||
52 | are available in all versions of SSLeay and OpenSSL. | ||