import libcrypto (LibreSSL 2.5.2)
[unleashed.git] / lib / libcrypto / man / X509_CINF_new.3
blob7ac86b6d36aae0a422ad8534643c2f4b254c50d4
1 .\"     $OpenBSD: X509_CINF_new.3,v 1.2 2016/12/25 22:15:10 schwarze Exp $
2 .\"
3 .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
4 .\"
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
8 .\"
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 .\"
17 .Dd $Mdocdate: December 25 2016 $
18 .Dt X509_CINF_NEW 3
19 .Os
20 .Sh NAME
21 .Nm X509_CINF_new ,
22 .Nm X509_CINF_free ,
23 .Nm X509_VAL_new ,
24 .Nm X509_VAL_free ,
25 .Nm X509_CERT_AUX_new ,
26 .Nm X509_CERT_AUX_free
27 .Nd X.509 certificate information objects
28 .Sh SYNOPSIS
29 .In openssl/x509.h
30 .Ft X509_CINF *
31 .Fn X509_CINF_new void
32 .Ft void
33 .Fn X509_CINF_free "X509_CINF *inf"
34 .Ft X509_VAL *
35 .Fn X509_VAL_new void
36 .Ft void
37 .Fn X509_VAL_free "X509_VAL *val"
38 .Ft X509_CERT_AUX *
39 .Fn X509_CERT_AUX_new void
40 .Ft void
41 .Fn X509_CERT_AUX_free "X509_CERT_AUX *aux"
42 .Sh DESCRIPTION
43 .Fn X509_CINF_new
44 allocates and initializes an empty
45 .Vt X509_CINF
46 object, representing an ASN.1
47 .Vt TBSCertificate
48 structure defined in RFC 5280 section 4.1.
49 It is used inside the
50 .Vt X509
51 object and holds the main information contained in the X.509
52 certificate including subject, public key, issuer, serial number,
53 validity period, and extensions.
54 .Fn X509_CINF_free
55 frees
56 .Fa inf .
57 .Pp
58 .Fn X509_VAL_new
59 allocates and initializes an empty
60 .Vt X509_VAL
61 object, representing an ASN.1
62 .Vt Validity
63 structure defined in RFC 5280 section 4.1.
64 It is used inside the
65 .Vt X509_CINF
66 object and holds the validity period of the certificate.
67 .Fn X509_VAL_free
68 frees
69 .Fa val .
70 .Pp
71 .Fn X509_CERT_AUX_new
72 allocates and initializes an empty
73 .Vt X509_CERT_AUX
74 structure.
75 It can be used inside an
76 .Vt X509
77 object to hold optional non-standard auxiliary data appended to a
78 certificate, for example friendly alias names and trust data.
79 .Fn X509_CERT_AUX_free
80 frees
81 .Fa aux .
82 .Sh RETURN VALUES
83 .Fn X509_CINF_new ,
84 .Fn X509_VAL_new ,
85 and
86 .Fn X509_CERT_AUX_new
87 return the new
88 .Vt X509_CINF ,
89 .Vt X509_VAL ,
91 .Vt X509_CERT_AUX
92 object, respectively, or
93 .Dv NULL
94 if an error occurs.
95 .Sh SEE ALSO
96 .Xr X509_new 3
97 .Sh STANDARDS
98 RFC 5280: Internet X.509 Public Key Infrastructure Certificate and
99 Certificate Revocation List (CRL) Profile