X509_SIGNATURE_DUMP(3)
π¦ X509_SIGNATURE_DUMP(3) π¦
π NAME π
okay bestie, this is the Library Functions Manual page for X509_SIGNATURE_DUMP(3), and the whole vibe is pretty-printing ASN.1 strings β¨. Two functions, both here to make signature-ish bytes look cute and readable.
πΈ SYNOPSIS πΈ
#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()β writes the data bytes contained in thesignaturetobioin hexadecimal format with colons between bytes, 18 bytes per output line, and each line indented withindentspace characters. so likeaa:bb:...but with the exact 18-bytes-per-line energy, no cap π .X509_signature_print()β writes the name of the signature algorithm, or, if no name for it is known, its object identifier (OID), tobiousingi2a_ASN1_OBJECT(3). After that, if a method object for the algorithm can be retrieved withEVP_PKEY_asn1_find(3)and if that object defines a printing method, that printing method is used to print the signature. Otherwise, unless thesignatureisNULL, it is printed usingX509_signature_dump(). iconic behavior, honestly π«Ά.
π«Ά RETURN VALUES π«Ά
These functions return 1 on success or 0 on failure. They fail and return as soon as any write operation fails. so if a write goes wrong, itβs an immediate exit, no lingering π.
π¦ 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.
xoxo, your Debian bestie π β this page is stamped December 6, 2024, and itβs literally for X509_SIGNATURE_DUMP(3). periodt π
π¦ where this page comes from
- opensuse-leap 16.0: libressl-devel-doc 4.1.0-bp160.1.1 Β· 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