Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
X509V3_EXTENSIONS_P... FreeBSD Library Functions Manual	X509V3_EXTENSIONS_P...

NAME
     X509V3_extensions_print --	pretty-print an	array of X.509 extensions

SYNOPSIS
     #include <openssl/x509v3.h>

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

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

     +o	 The extension type as printed by i2a_ASN1_OBJECT(3).

     +o	 If the	extension is critical, the fixed string	"critical".

     +o	 A human-readable representation of the	data contained in the exten-
	 sion as printed by X509V3_EXT_print(3), passing through the flags.
	 If that function indicates failure, the BER-encoded data of the ex-
	 tension is dumped with	ASN1_STRING_print(3) without decoding it
	 first.	 In both cases,	an indent incremented by 4 space characters is
	 used.

     If	sk is a	NULL pointer or	empty, X509V3_extensions_print() prints	noth-
     ing 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 indi-
     vidual extensions mentioned above.

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

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

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

BUGS
     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 infor-
     mation printed is incomplete for various reasons, for example due to mem-
     ory allocation failures or	I/O errors.

FreeBSD	13.0		       November	26, 2021		  FreeBSD 13.0

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO | HISTORY | BUGS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=X509V3_extensions_print&sektion=3&manpath=FreeBSD+13.1-RELEASE+and+Ports>

home | help