D2I_X509_ALGOR(3)
π NAME π
okay so bestie, this is the d2i_X509_ALGOR(3) page from libcrypto, and it's lowkey iconic β¨. It covers d2i_X509_ALGOR, i2d_X509_ALGOR, d2i_X509_ALGORS, and i2d_X509_ALGORS β literally the decode-and-encode squad for algorithm identifiers π
.
π SYNOPSIS π
library βlibcryptoβ #include <openssl/x509.h>
X509_ALGOR *
d2i_X509_ALGOR(X509_ALGOR **val_out, const unsigned char **der_in,
long length);
int
i2d_X509_ALGOR(X509_ALGOR *val_in, unsigned char **der_out);
X509_ALGORS *
d2i_X509_ALGORS(X509_ALGORS **val_out, const unsigned char **der_in,
long length);
int
i2d_X509_ALGORS(X509_ALGORS *val_in, unsigned char **der_out);
πΈ DESCRIPTION πΈ
d2i_X509_ALGOR() and i2d_X509_ALGOR() decode and encode an ASN.1 AlgorithmIdentifier structure β the one defined in RFC 5280 section 4.1.1.2, periodt. π¦
d2i_X509_ALGORS() and i2d_X509_ALGORS() do the same thing but for an ASN.1 sequence of AlgorithmIdentifier structures. And the data type X509_ALGORS is defined as STACK_OF(X509_ALGOR) β that's the whole definition, no cap π
.
For all the details about semantics, examples, caveats, and bugs, go read ASN1_item_d2i(3) β bestie, that's where the fine print lives. π
π SEE ALSO π
π STANDARDS π
RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile β¨
β HISTORY β
d2i_X509_ALGOR()andi2d_X509_ALGOR()first appeared inSSLeay 0.5.1and have been available sinceOpenBSD 2.4.d2i_X509_ALGORS()andi2d_X509_ALGORS()first appeared inOpenSSL 0.9.8hand have been available sinceOpenBSD 4.5.
xoxo, this page is from Debian and it's dated June 8, 2025 β slay, bye! ππβ¨
π¦ 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, 2021 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