blob: 765e46c01c86847f4af37b80e3b3b24d809c264b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
.Dd $Mdocdate: February 23 2015 $
.Dt BN_COPY 3
.Os
.Sh NAME
.Nm BN_copy ,
.Nm BN_dup
.Nd copy BIGNUMs
.Sh SYNOPSIS
.In openssl/bn.h
.Ft BIGNUM *
.Fo BN_copy
.Fa "BIGNUM *to"
.Fa "const BIGNUM *from"
.Fc
.Ft BIGNUM *
.Fo BN_dup
.Fa "const BIGNUM *from"
.Fc
.Sh DESCRIPTION
.Fn BN_copy
copies
.Fa from
to
.Fa to .
.Fn BN_dup
creates a new
.Vt BIGNUM
containing the value
.Fa from .
.Sh RETURN VALUES
.Fn BN_copy
returns
.Fa to
on success,
.Dv NULL
on error.
.Fn BN_dup
returns the new
.Vt BIGNUM ,
or
.Dv NULL
on error.
The error codes can be obtained by
.Xr ERR_get_error 3 .
.Sh SEE ALSO
.Xr bn 3 ,
.Xr ERR_get_error 3
.Sh HISTORY
.Fn BN_copy
and
.Fn BN_dup
are available in all versions of SSLeay and OpenSSL.
|