1 .\" $OpenBSD: d2i_AUTHORITY_KEYID.3,v 1.1 2016/12/28 20:36:33 schwarze Exp $
3 .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
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.
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.
17 .Dd $Mdocdate: December 28 2016 $
18 .Dt D2I_AUTHORITY_KEYID 3
21 .Nm d2i_AUTHORITY_KEYID ,
22 .Nm i2d_AUTHORITY_KEYID
23 .Nd decode and encode X.509 authority key identifiers
27 .Fo d2i_AUTHORITY_KEYID
28 .Fa "AUTHORITY_KEYID **val_out"
29 .Fa "const unsigned char **der_in"
33 .Fo i2d_AUTHORITY_KEYID
34 .Fa "AUTHORITY_KEYID *val_in"
35 .Fa "unsigned char **der_out"
38 .Fn d2i_AUTHORITY_KEYID
40 .Fn i2d_AUTHORITY_KEYID
41 decode and encode an ASN.1
42 .Vt AuthorityKeyIdentifier
43 structure defined in RFC 5280 section 4.2.1.1.
44 For details about the semantics, examples, caveats, and bugs, see
47 .Fn d2i_AUTHORITY_KEYID
54 .Fn i2d_AUTHORITY_KEYID
55 returns the number of bytes successfully encoded or a negative value
59 .Xr AUTHORITY_KEYID_new 3 ,
60 .Xr X509_EXTENSION_new 3
62 RFC 5280: Internet X.509 Public Key Infrastructure Certificate and
63 Certificate Revocation List (CRL) Profile:
66 section 4.2.1.1: Certificate Extensions: Authority Key Identifier
68 section 5.2.1: CRL Extensions: Authority Key Identifier