---
name: "libressl-X509_signature_dump"
section: "3"
platform: "linux"
package: "libressl"
version: "4.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libressl-X509_signature_dump"
---

# libressl-X509\_signature\_dump(3)

pretty-print ASN.1 strings

## NAME

**X509\_signature\_dump**, **X509\_signature\_print** – pretty-print ASN.1 strings

## SYNOPSIS

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*);

## DESCRIPTION

**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.

## 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.
