diff options
author | schwarze <> | 2016-12-16 09:17:59 +0000 |
---|---|---|
committer | schwarze <> | 2016-12-16 09:17:59 +0000 |
commit | 9ce52d437fd03ac1ac1add273b0178c17e2eead2 (patch) | |
tree | 49762028dc5a2c0a8461a87adc42630825e14b39 /src/lib | |
parent | 01f49d5c8dc04c7108d0540dcc1d0134b5ed781b (diff) | |
download | openbsd-9ce52d437fd03ac1ac1add273b0178c17e2eead2.tar.gz openbsd-9ce52d437fd03ac1ac1add273b0178c17e2eead2.tar.bz2 openbsd-9ce52d437fd03ac1ac1add273b0178c17e2eead2.zip |
Write new X509_CINF_new(3) manual page from scratch. These functions
are listed in <openssl/x509.h> and in OpenSSL doc/man3/X509_dup.pod.
Note that the OpenSSL documentation specifies the wrong header file.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/man/X509_CINF_new.3 | 97 |
2 files changed, 99 insertions, 1 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 59cf7e6bce..186ca5229e 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.79 2016/12/14 15:04:13 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.80 2016/12/16 09:17:59 schwarze Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | 4 | ||
@@ -177,6 +177,7 @@ MAN= \ | |||
177 | UI_new.3 \ | 177 | UI_new.3 \ |
178 | X509V3_get_d2i.3 \ | 178 | X509V3_get_d2i.3 \ |
179 | X509_ALGOR_dup.3 \ | 179 | X509_ALGOR_dup.3 \ |
180 | X509_CINF_new.3 \ | ||
180 | X509_CRL_get0_by_serial.3 \ | 181 | X509_CRL_get0_by_serial.3 \ |
181 | X509_EXTENSION_set_object.3 \ | 182 | X509_EXTENSION_set_object.3 \ |
182 | X509_LOOKUP_hash_dir.3 \ | 183 | X509_LOOKUP_hash_dir.3 \ |
diff --git a/src/lib/libcrypto/man/X509_CINF_new.3 b/src/lib/libcrypto/man/X509_CINF_new.3 new file mode 100644 index 0000000000..fdfc4c8c7b --- /dev/null +++ b/src/lib/libcrypto/man/X509_CINF_new.3 | |||
@@ -0,0 +1,97 @@ | |||
1 | .\" $OpenBSD: X509_CINF_new.3,v 1.1 2016/12/16 09:17:59 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 16 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 TBSCertificate structure | ||
47 | defined in RFC 5280 section 4.1. | ||
48 | It is used inside the | ||
49 | .Vt X509 | ||
50 | object and holds the main information contained in the X.509 | ||
51 | certificate including subject, public key, issuer, serial number, | ||
52 | validity period, and extensions. | ||
53 | .Fn X509_CINF_free | ||
54 | frees | ||
55 | .Fa inf . | ||
56 | .Pp | ||
57 | .Fn X509_VAL_new | ||
58 | allocates and initializes an empty | ||
59 | .Vt X509_VAL | ||
60 | object, representing an ASN.1 Validity structure | ||
61 | defined in RFC 5280 section 4.1. | ||
62 | It is used inside the | ||
63 | .Vt X509_CINF | ||
64 | object and holds the validity period of the certificate. | ||
65 | .Fn X509_VAL_free | ||
66 | frees | ||
67 | .Fa val . | ||
68 | .Pp | ||
69 | .Fn X509_CERT_AUX_new | ||
70 | allocates and initializes an empty | ||
71 | .Vt X509_CERT_AUX | ||
72 | structure. | ||
73 | It can be used inside an | ||
74 | .Vt X509 | ||
75 | object to hold optional non-standard auxiliary data appended to a | ||
76 | certificate, for example friendly alias names and trust data. | ||
77 | .Fn X509_CERT_AUX_free | ||
78 | frees | ||
79 | .Fa aux . | ||
80 | .Sh RETURN VALUES | ||
81 | .Fn X509_CINF_new , | ||
82 | .Fn X509_VAL_new , | ||
83 | and | ||
84 | .Fn X509_CERT_AUX_new | ||
85 | return the new | ||
86 | .Vt X509_CINF , | ||
87 | .Vt X509_VAL , | ||
88 | or | ||
89 | .Vt X509_CERT_AUX | ||
90 | object, respectively, or | ||
91 | .Dv NULL | ||
92 | if an error occurs. | ||
93 | .Sh SEE ALSO | ||
94 | .Xr X509_new 3 | ||
95 | .Sh STANDARDS | ||
96 | RFC 5280: Internet X.509 Public Key Infrastructure Certificate and | ||
97 | Certificate Revocation List (CRL) Profile | ||