|
NAMEX509_print_ex ,
X509_CERT_AUX_print ,
X509_print_ex_fp , X509_print ,
X509_print_fp —
pretty-print an X.509 certificate
SYNOPSIS#include <openssl/x509.h>
int
int
int
int
int
DESCRIPTIONX509_print_ex () prints information contained in
x to bio in human-readable form.
Printing is aborted as soon as any operation fails, with the exception that
failures while attempting to decode or print the public key, the X.509 version
3 extensions, or non-standard auxiliary data are not considered as errors.
By default, the following blocks of information are printed in the following order. Each block can be skipped by setting the corresponding bit in skipflags, provided in parentheses after each block description.
The nameflags argument modifies the format
for printing X.501 Name objects contained in
x. It is passed through to
X509_NAME_print_ex(3).
If nameflags is
Information is printed in the following order:
RETURN VALUESX509_print_ex (),
X509_print_ex_fp (),
X509_print (), and
X509_print_fp () return 1 if all requested information
was successfully printed, even if failures occurred while attempting to decode
or print the public key or X.509 version 3 extensions, or 0 if any other
operation failed.
SEE ALSOBIO_new(3), X509_CERT_AUX_new(3), X509_CRL_print(3), X509_new(3), X509_REQ_print_ex(3)HISTORYX509_print () first appeared in SSLeay 0.5.1 and was
changed to print to a BIO in SSLeay 0.6.0.
X509_print_fp () first appeared in SSLeay 0.6.0. Both
functions have been available since OpenBSD 2.4.
BUGSIf arbitrary data was stored into x using X509_alias_set1(3), these functions may print binary data and even NUL bytes.
Visit the GSP FreeBSD Man Page Interface. |