OpenBSD manual page server

Manual Page Search Parameters

X509V3_EXTENSIONS_PRINT(3) Library Functions Manual X509V3_EXTENSIONS_PRINT(3)

X509V3_extensions_printpretty-print an array of X.509 extensions

#include <openssl/x509v3.h>

X509V3_extensions_print(BIO *bio, char *title, const STACK_OF(X509_EXTENSION) *sk, unsigned long flags, int indent);

For each member of the variable sized array sk, () prints the following information to bio in the following order:

If sk is a NULL pointer or empty, () prints nothing and indicates success.

Unless title is NULL, it is printed on its own output line before the rest of the output, and indent is increased by 4 space characters. This additional global indentation is cumulative to the one applied to individual extensions mentioned above.

X509V3_extensions_print() is intended to return 1 on success or 0 if an error occurs.

BIO_new(3), STACK_OF(3), X509_EXTENSION_get_critical(3), X509_get0_extensions(3), X509_get_ext(3), X509V3_EXT_print(3)

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

Many parsing and printing errors are silently ignored, and the function may return indicating success even though sk contains invalid data. Even if all the data is valid, success may be indicated even when the information printed is incomplete for various reasons, for example due to memory allocation failures or I/O errors.

November 26, 2021 OpenBSD-current