diff options
author | schwarze <> | 2016-12-23 14:37:08 +0000 |
---|---|---|
committer | schwarze <> | 2016-12-23 14:37:08 +0000 |
commit | ecc1a96a4ea756a28768a463b46816210f6e9239 (patch) | |
tree | ee11453cfcba3f639bbb770e6638a32d95fc4c3d /src/lib | |
parent | bc76fa2a8a413b36753822b9ee3e73b0ce5013e3 (diff) | |
download | openbsd-ecc1a96a4ea756a28768a463b46816210f6e9239.tar.gz openbsd-ecc1a96a4ea756a28768a463b46816210f6e9239.tar.bz2 openbsd-ecc1a96a4ea756a28768a463b46816210f6e9239.zip |
Write new AUTHORITY_KEYID_new(3) manual page from scratch.
Both functions are listed in <openssl/x509v3.h>
and in OpenSSL doc/man3/X509_dup.pod.
OpenSSL documentation specifies the wrong header file.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/AUTHORITY_KEYID_new.3 | 65 | ||||
-rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 |
2 files changed, 67 insertions, 1 deletions
diff --git a/src/lib/libcrypto/man/AUTHORITY_KEYID_new.3 b/src/lib/libcrypto/man/AUTHORITY_KEYID_new.3 new file mode 100644 index 0000000000..5186fea0f3 --- /dev/null +++ b/src/lib/libcrypto/man/AUTHORITY_KEYID_new.3 | |||
@@ -0,0 +1,65 @@ | |||
1 | .\" $OpenBSD: AUTHORITY_KEYID_new.3,v 1.1 2016/12/23 14:37:08 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 23 2016 $ | ||
18 | .Dt AUTHORITY_KEYID_NEW 3 | ||
19 | .Os | ||
20 | .Sh NAME | ||
21 | .Nm AUTHORITY_KEYID_new , | ||
22 | .Nm AUTHORITY_KEYID_free | ||
23 | .Nd X.509 authority key identifier extension | ||
24 | .Sh SYNOPSIS | ||
25 | .In openssl/x509v3.h | ||
26 | .Ft AUTHORITY_KEYID * | ||
27 | .Fn AUTHORITY_KEYID_new void | ||
28 | .Ft void | ||
29 | .Fn AUTHORITY_KEYID_free "AUTHORITY_KEYID *id" | ||
30 | .Sh DESCRIPTION | ||
31 | Using the authority key identifier extension, an X.509 certificate | ||
32 | or certificate revocation list can specify which key pair was used | ||
33 | for signing it. | ||
34 | .Pp | ||
35 | .Fn AUTHORITY_KEYID_new | ||
36 | allocates and initializes an empty | ||
37 | .Vt AUTHORITY_KEYID | ||
38 | object, representing an ASN.1 AuthorityKeyIdentifier structure | ||
39 | defined in RFC 5280 section 4.2.1.1. | ||
40 | It can hold an issuer name, a serial number, and a key identifier. | ||
41 | .Pp | ||
42 | .Fn AUTHORITY_KEYID_free | ||
43 | frees | ||
44 | .Fa id . | ||
45 | .Sh RETURN VALUES | ||
46 | .Fn AUTHORITY_KEYID_new | ||
47 | returns the new | ||
48 | .Vt AUTHORITY_KEYID | ||
49 | object or | ||
50 | .Dv NULL | ||
51 | if an error occurs. | ||
52 | .Sh SEE ALSO | ||
53 | .Xr GENERAL_NAMES_new 3 , | ||
54 | .Xr X509_CRL_new 3 , | ||
55 | .Xr X509_EXTENSION_new 3 , | ||
56 | .Xr X509_new 3 | ||
57 | .Sh STANDARDS | ||
58 | RFC 5280: Internet X.509 Public Key Infrastructure Certificate and | ||
59 | Certificate Revocation List (CRL) Profile: | ||
60 | .Bl -dash -compact | ||
61 | .It | ||
62 | section 4.2.1.1: Certificate Extensions: Authority Key Identifier | ||
63 | .It | ||
64 | section 5.2.1: CRL Extensions: Authority Key Identifier | ||
65 | .El | ||
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index f3910f74dd..97593fc86f 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.90 2016/12/23 00:40:16 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.91 2016/12/23 14:37:08 schwarze Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | 4 | ||
@@ -11,6 +11,7 @@ MAN= \ | |||
11 | ASN1_TYPE_get.3 \ | 11 | ASN1_TYPE_get.3 \ |
12 | ASN1_generate_nconf.3 \ | 12 | ASN1_generate_nconf.3 \ |
13 | ASN1_time_parse.3 \ | 13 | ASN1_time_parse.3 \ |
14 | AUTHORITY_KEYID_new.3 \ | ||
14 | BF_set_key.3 \ | 15 | BF_set_key.3 \ |
15 | BIO_ctrl.3 \ | 16 | BIO_ctrl.3 \ |
16 | BIO_f_base64.3 \ | 17 | BIO_f_base64.3 \ |