X509_SIGNATURE_DUMP(3)

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

πŸ¦‹ X509_SIGNATURE_DUMP(3) πŸ¦‹

okay bestie, this page comes from the Library Functions Manual and it’s literally about two little crypto helpers that pretty-print ASN.1 strings. yes, we’re in our libcrypto era πŸ’….

🌸 NAME 🌸

X509_signature_dump, X509_signature_print β€” pretty-print ASN.1 strings. no cap, that’s the whole vibe.

✨ SYNOPSIS ✨

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

       int
       X509_signature_dump(BIO *bio, const ASN1_STRING *signature, int indent);

       int
       X509_signature_print(BIO *bio, const X509_ALGOR *algorithm,
           const ASN1_STRING *signature);

πŸ’– DESCRIPTION πŸ’–

X509_signature_dump() β€” okay so this one takes the data bytes contained in signature and writes them to bio in hexadecimal format, with colons between bytes. It puts 18 bytes per output line, and each line is indented with indent space characters. cute, formatted, iconique ✨.

X509_signature_print() β€” this one writes the name of the signature algorithm to bio using i2a_ASN1_OBJECT(3), or, if no name for it is known, it writes its object identifier (OID). After that, if a method object for the algorithm can be retrieved with EVP_PKEY_asn1_find(3) and if that object defines a printing method, that printing method is used to print the signature. Otherwise, unless the signature is NULL, it is printed using X509_signature_dump(). periodt 🫢.

🫢 RETURN VALUES 🫢

These functions return 1 on success or 0 on failure. They fail and return as soon as any write operation fails. no lingering, no extra drama πŸ’€.

πŸ‘‘ SEE ALSO πŸ‘‘

🌈 HISTORY 🌈

X509_signature_print() first appeared in OpenSSL 0.9.7 and has been available since OpenBSD 3.2.

X509_signature_dump() first appeared in OpenSSL 1.0.1 and has been available since OpenBSD 5.3. a little lore drop for the timeline girlies πŸŽ€.


and that’s the whole page, bestie πŸ¦‹ source/version: Debian; date: June 8, 2025; filed under X509_SIGNATURE_DUMP(3). byeeee πŸ’–

πŸ“¦ where this page comes from