diff options
Diffstat (limited to 'src/lib/libcrypto/man/X509_new.3')
-rw-r--r-- | src/lib/libcrypto/man/X509_new.3 | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/X509_new.3 b/src/lib/libcrypto/man/X509_new.3 new file mode 100644 index 0000000000..26c46ae3a9 --- /dev/null +++ b/src/lib/libcrypto/man/X509_new.3 | |||
@@ -0,0 +1,49 @@ | |||
1 | .Dd $Mdocdate: November 4 2016 $ | ||
2 | .Dt X509_NEW 3 | ||
3 | .Os | ||
4 | .Sh NAME | ||
5 | .Nm X509_new , | ||
6 | .Nm X509_free | ||
7 | .Nd X509 certificate ASN1 allocation functions | ||
8 | .Sh SYNOPSIS | ||
9 | .In openssl/x509.h | ||
10 | .Ft X509 * | ||
11 | .Fn X509_new void | ||
12 | .Ft void | ||
13 | .Fo X509_free | ||
14 | .Fa "X509 *a" | ||
15 | .Fc | ||
16 | .Sh DESCRIPTION | ||
17 | The X509 ASN1 allocation routines allocate and free an | ||
18 | .Vt X509 | ||
19 | structure, which represents an X509 certificate. | ||
20 | .Pp | ||
21 | .Fn X509_new | ||
22 | allocates and initializes a X509 structure. | ||
23 | .Pp | ||
24 | .Fn X509_free | ||
25 | frees up the | ||
26 | .Vt X509 | ||
27 | structure | ||
28 | .Fa a . | ||
29 | If | ||
30 | .Fa a | ||
31 | is a | ||
32 | .Dv NULL | ||
33 | pointer, no action occurs. | ||
34 | .Sh RETURN VALUES | ||
35 | If the allocation fails, | ||
36 | .Fn X509_new | ||
37 | returns | ||
38 | .Dv NULL | ||
39 | and sets an error code that can be obtained by | ||
40 | .Xr ERR_get_error 3 . | ||
41 | Otherwise it returns a pointer to the newly allocated structure. | ||
42 | .Sh SEE ALSO | ||
43 | .Xr d2i_X509 3 , | ||
44 | .Xr ERR_get_error 3 | ||
45 | .Sh HISTORY | ||
46 | .Fn X509_new | ||
47 | and | ||
48 | .Fn X509_free | ||
49 | are available in all versions of SSLeay and OpenSSL. | ||