X509_SIG_GET0(3)

πŸ“¦ version 4.4.0, in alpine 3.24, arch rolling

πŸ’– NAME πŸ’–

X509_SIG_get0, X509_SIG_getm β€” the DigestInfo functions, bestie πŸ’…


✨ SYNOPSIS ✨

library β€œlibcrypto” #include <openssl/x509.h>

void
X509_SIG_get0(const X509_SIG *sig, const X509_ALGOR **palg,
    const ASN1_OCTET_STRING **pdigest);

void
X509_SIG_getm(X509_SIG *sig, X509_ALGOR **palg,
    ASN1_OCTET_STRING **pdigest);

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so X509_SIG_get0() is the one that hands you back pointers to the algorithm identifier and the digest value that live inside sig. Very demure, very "here are your pointers" 🫢

X509_SIG_getm() is literally identical to X509_SIG_get0(), except the pointers it gives back are not constant and can be modified β€” for example, to initialise them. Same vibe, slightly more freedom. Periodt πŸ’–


πŸŽ€ SEE ALSO πŸŽ€


🌈 HISTORY 🌈

X509_SIG_get0() and X509_SIG_getm() first appeared in OpenSSL 1.1.0 and have been available since OpenBSD 7.1. Iconic behaviour, no cap ✨


xoxo, Debian β€” June 8, 2025 β€” X509_SIG_GET0(3) πŸ’…πŸŽ€

πŸ“¦ where this page comes from