X509_SIGNATURE_DUMP(3)
π¦ 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 π
ASN1_STRING_new(3)ASN1_STRING_print_ex(3)BIO_new(3)EVP_PKEY_asn1_find(3)OBJ_find_sigid_algs(3)X509_ALGOR_new(3)X509_get0_signature(3)
π 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
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 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