D2I_AUTHORITY_KEYID(3)
πΈ NAME πΈ
okay so this is the D2I_AUTHORITY_KEYID(3) page from the Library Functions Manual β literally the decode-and-encode besties for X.509 authority key identifiers. We're talking d2i_AUTHORITY_KEYID and i2d_AUTHORITY_KEYID, and they handle the ASN.1 AuthorityKeyIdentifier structure. π
β¨
β¨ SYNOPSIS β¨
library βlibcryptoβ #include <openssl/x509v3.h>
AUTHORITY_KEYID *
d2i_AUTHORITY_KEYID(AUTHORITY_KEYID **val_out,
const unsigned char **der_in, long length);
int
i2d_AUTHORITY_KEYID(AUTHORITY_KEYID *val_in, unsigned char **der_out);
no cap, those signatures are the whole mood. π«Ά
π¦ DESCRIPTION π¦
So d2i_AUTHORITY_KEYID() and i2d_AUTHORITY_KEYID() decode and encode an ASN.1 AuthorityKeyIdentifier structure defined in RFC 5280 section 4.2.1.1. That's the vibe. π
For details about the semantics, examples, caveats, and bugs, see ASN1_item_d2i(3) β all the deep lore lives over there, iykyk. π
π RETURN VALUES π
d2i_AUTHORITY_KEYID()returns anAUTHORITY_KEYIDobject orNULLif an error occurs. iconic when it works,NULLwhen it doesn't πi2d_AUTHORITY_KEYID()returns the number of bytes successfully encoded or a negative value if an error occurs. positive byte count = slay, negative = not the moment π
π SEE ALSO π
these are your next reads, bestie, fr fr. β¨
π STANDARDS π
RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile:
- section 4.2.1.1: Certificate Extensions: Authority Key Identifier
- section 5.2.1: CRL Extensions: Authority Key Identifier
periodt. π
π HISTORY π
d2i_AUTHORITY_KEYID() and i2d_AUTHORITY_KEYID() first appeared in OpenSSL 0.9.2b and have been available since OpenBSD 2.6. ancient icons, honestly ππ₯
and that's the whole page! source/version check: this one's from the Debian build, dated June 8, 2025 β D2I_AUTHORITY_KEYID(3) signing off π
β¨
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms