libressl-X509_signature_dump3
Pretty-print asn.1 strings
Usage
Crypto Library (libcrypto, -lcrypto)
#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);
Overview
X509_signature_dump() writes the data bytes contained in the signature to bio in hexadecimal format with colons between bytes, 18 bytes per output line, each line indented with indent space characters.
X509_signature_print() writes the name of the signature algorithm, or, if no name for it is known, its object identifier (OID) to bio using i2a_ASN1_OBJECT(3). 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().
Return values
These functions return 1 on success or 0 on failure. They fail and return as soon as any write operation fails.