summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/X509_new.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/X509_new.3')
-rw-r--r--src/lib/libcrypto/man/X509_new.349
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
17The X509 ASN1 allocation routines allocate and free an
18.Vt X509
19structure, which represents an X509 certificate.
20.Pp
21.Fn X509_new
22allocates and initializes a X509 structure.
23.Pp
24.Fn X509_free
25frees up the
26.Vt X509
27structure
28.Fa a .
29If
30.Fa a
31is a
32.Dv NULL
33pointer, no action occurs.
34.Sh RETURN VALUES
35If the allocation fails,
36.Fn X509_new
37returns
38.Dv NULL
39and sets an error code that can be obtained by
40.Xr ERR_get_error 3 .
41Otherwise 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
47and
48.Fn X509_free
49are available in all versions of SSLeay and OpenSSL.