D2I_ESS_SIGNING_CERT(3)
β¨ NAME β¨
okay so bestie, welcome to the D2I_ESS_SIGNING_CERT(3) page from the Library Functions Manual π this is the group chat for d2i_ESS_SIGNING_CERT, i2d_ESS_SIGNING_CERT, d2i_ESS_CERT_ID, i2d_ESS_CERT_ID, d2i_ESS_ISSUER_SERIAL, and i2d_ESS_ISSUER_SERIAL β decode and encode signing certificates for S/MIME. periodt. π
π¦ SYNOPSIS π¦
the library is libcrypto, and the include is <openssl/ts.h> β here's the exact lineup, no cap:
library βlibcryptoβ #include <openssl/ts.h>
ESS_SIGNING_CERT *
d2i_ESS_SIGNING_CERT(ESS_SIGNING_CERT **val_out,
const unsigned char **der_in, long length);
int
i2d_ESS_SIGNING_CERT(const ESS_SIGNING_CERT *val_in,
unsigned char **der_out);
ESS_CERT_ID *
d2i_ESS_CERT_ID(ESS_CERT_ID **val_out, const unsigned char **der_in,
long length);
int
i2d_ESS_CERT_ID(const ESS_CERT_ID *val_in, unsigned char **der_out);
ESS_ISSUER_SERIAL *
d2i_ESS_ISSUER_SERIAL(ESS_ISSUER_SERIAL **val_out,
const unsigned char **der_in, long length);
int
i2d_ESS_ISSUER_SERIAL(const ESS_ISSUER_SERIAL *val_in,
unsigned char **der_out);
π DESCRIPTION π
these functions decode and encode signing certificate attribute structures. for the full tea on semantics, examples, caveats, and bugs, see ASN1_item_d2i(3) π
d2i_ESS_SIGNING_CERT()andi2d_ESS_SIGNING_CERT()decode and encode an ASN.1SigningCertificatestructure defined in RFC 2634 section 5.4. iconic ASN.1 behavior.d2i_ESS_CERT_ID()andi2d_ESS_CERT_ID()decode and encode an ASN.1ESSCertIDstructure defined in RFC 2634 section 5.4.1. πd2i_ESS_ISSUER_SERIAL()andi2d_ESS_ISSUER_SERIAL()decode and encode an ASN.1IssuerSerialstructure defined in RFC 2634 section 5.4.1. β¨
π RETURN VALUES π
d2i_ESS_SIGNING_CERT(),d2i_ESS_CERT_ID(), andd2i_ESS_ISSUER_SERIAL()return anESS_SIGNING_CERT,ESS_CERT_ID, orESS_ISSUER_SERIALobject, respectively, orNULLif an error occurs. πi2d_ESS_SIGNING_CERT(),i2d_ESS_CERT_ID(), andi2d_ESS_ISSUER_SERIAL()return the number of bytes successfully encoded or a negative value if an error occurs. π
πΈ SEE ALSO πΈ
ASN1_item_d2i(3), ESS_SIGNING_CERT_new(3) β go read these too, bestie, iykyk π«Ά
π STANDARDS π
RFC 2634: Enhanced Security Services for S/MIME, section 5: Signing Certificate Attribute β
β HISTORY β
these functions first appeared in OpenSSL 1.0.0 and have been available since OpenBSD 4.9. lowkey a little time capsule moment. π°οΈ
mwah π this cutie came from Debian, dated June 8, 2025, on the D2I_ESS_SIGNING_CERT(3) page β bye bestie, slay your signing certs β¨π
π¦ 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