X509_REQ_add_extensions
,
X509_REQ_add_extensions_nid
,
X509_REQ_get_extensions
,
X509_REQ_extension_nid
—
extensions in certification requests
#include
<openssl/x509.h>
int
X509_REQ_add_extensions
(X509_REQ
*req, STACK_OF(X509_EXTENSION) *extensions);
int
X509_REQ_add_extensions_nid
(X509_REQ
*req, STACK_OF(X509_EXTENSION) *extensions,
int nid);
STACK_OF(X509_EXTENSION) *
X509_REQ_get_extensions
(X509_REQ
*req);
int
X509_REQ_extension_nid
(int
nid);
X509_REQ_add_extensions
() and
X509_REQ_add_extensions_nid
() returns 1 for success
or 0 for failure.
X509_REQ_get_extensions
() returns a newly
allocated array of ASN.1 Extension objects or
NULL
if req is
NULL
, does not contain
CertificationRequestInfo, contains no attribute of an
appropriate type, or if decoding or memory allocation fails.
X509_REQ_extension_nid
() returns 1 if
nid is considered appropriate or 0 otherwise.
These functions first appeared in OpenSSL 0.9.5 and have been
available since OpenBSD 2.7.