1.\" $OpenBSD: AUTHORITY_KEYID_new.3,v 1.4 2019/06/06 01:06:58 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: June 6 2019 $ 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 31Using the authority key identifier extension, an X.509 certificate 32or certificate revocation list can specify which key pair was used 33for signing it. 34.Pp 35.Fn AUTHORITY_KEYID_new 36allocates and initializes an empty 37.Vt AUTHORITY_KEYID 38object, representing an ASN.1 39.Vt AuthorityKeyIdentifier 40structure defined in RFC 5280 section 4.2.1.1. 41It can hold an issuer name, a serial number, and a key identifier. 42.Pp 43.Fn AUTHORITY_KEYID_free 44frees 45.Fa id . 46.Sh RETURN VALUES 47.Fn AUTHORITY_KEYID_new 48returns the new 49.Vt AUTHORITY_KEYID 50object or 51.Dv NULL 52if an error occurs. 53.Sh SEE ALSO 54.Xr d2i_AUTHORITY_KEYID 3 , 55.Xr GENERAL_NAMES_new 3 , 56.Xr X509_CRL_new 3 , 57.Xr X509_EXTENSION_new 3 , 58.Xr X509_new 3 59.Sh STANDARDS 60RFC 5280: Internet X.509 Public Key Infrastructure Certificate and 61Certificate Revocation List (CRL) Profile: 62.Bl -dash -compact 63.It 64section 4.2.1.1: Certificate Extensions: Authority Key Identifier 65.It 66section 5.2.1: CRL Extensions: Authority Key Identifier 67.El 68.Sh HISTORY 69.Fn AUTHORITY_KEYID_new 70and 71.Fn AUTHORITY_KEYID_free 72first appeared in OpenSSL 0.9.2b and have been available since 73.Ox 2.6 . 74