|
NAMEX509_keyid_set1 ,
X509_keyid_get0 ,
X509_alias_set1 ,
X509_alias_get0 —
auxiliary certificate data for PKCS#12
SYNOPSIS#include <openssl/x509.h>
int
unsigned char *
int
unsigned char *
DESCRIPTIONThese functions store non-standard auxiliary data in x and retrieve it.The len bytes of data
stored using Conversely,
PKCS12_parse(3)
retrieves these attributes from a PKCS#12 structure such that they can
subsequently be accessed with API design is very incomplete; given the complexity of PKCS#12, that's probably an asset rather than a defect. The PKCS#12 standard defines many attributes that cannot be stored in X509 objects. To associate certificates with alternative names and key
identifiers, X.509 certificate extensions are more commonly used than
PKCS#12 attributes, for example using
X509_EXTENSION_create_by_NID(3)
with RETURN VALUESX509_keyid_set1 () and
X509_alias_set1 () return 1 if
data is NULL or if the input
data was successfully copied into
x, or 0 if data is not
NULL but could not be copied because
x is NULL or memory allocation
failed.
SEE ALSOASN1_STRING_set(3), X509_CERT_AUX_new(3), X509_EXTENSION_new(3), X509_new(3), X509V3_get_d2i(3)HISTORYX509_alias_set1 () and
X509_alias_get0 () first appeared in OpenSSL 0.9.5 and
have been available since OpenBSD 2.7.
Visit the GSP FreeBSD Man Page Interface. |