d2i_GENERAL_NAME
,
i2d_GENERAL_NAME
,
d2i_GENERAL_NAMES
,
i2d_GENERAL_NAMES
,
d2i_EDIPARTYNAME
,
i2d_EDIPARTYNAME
,
d2i_OTHERNAME
, i2d_OTHERNAME
— decode and encode names for use in X.509
extensions
#include
<openssl/x509v3.h>
GENERAL_NAME *
d2i_GENERAL_NAME
(GENERAL_NAME
**val_out, const unsigned char **der_in,
long length);
int
i2d_GENERAL_NAME
(GENERAL_NAME
*val_in, unsigned char **der_out);
GENERAL_NAMES *
d2i_GENERAL_NAMES
(GENERAL_NAMES
**val_out, const unsigned char **der_in,
long length);
int
i2d_GENERAL_NAMES
(GENERAL_NAMES
*val_in, unsigned char **der_out);
EDIPARTYNAME *
d2i_EDIPARTYNAME
(EDIPARTYNAME
**val_out, const unsigned char **der_in,
long length);
int
i2d_EDIPARTYNAME
(EDIPARTYNAME
*val_in, unsigned char **der_out);
OTHERNAME *
d2i_OTHERNAME
(OTHERNAME
**val_out, const unsigned char **der_in,
long length);
int
i2d_OTHERNAME
(OTHERNAME *val_in,
unsigned char **der_out);
d2i_GENERAL_NAME
(),
d2i_GENERAL_NAMES
(),
d2i_EDIPARTYNAME
(), and
d2i_OTHERNAME
() return a
GENERAL_NAME, GENERAL_NAMES,
EDIPARTYNAME, or OTHERNAME
object, respectively, or NULL
if an error
occurs.
i2d_GENERAL_NAME
(),
i2d_GENERAL_NAMES
(),
i2d_EDIPARTYNAME
(), and
i2d_OTHERNAME
() return the number of bytes
successfully encoded or a negative value if an error occurs.
RFC 5280: Internet X.509 Public Key Infrastructure Certificate and
Certificate Revocation List (CRL) Profile, section 4.2: Certificate
Extensions
d2i_GENERAL_NAME
(),
i2d_GENERAL_NAME
(),
d2i_GENERAL_NAMES
(), and
i2d_GENERAL_NAMES
() first appeared in OpenSSL 0.9.2b
and have been available since OpenBSD 2.6.
d2i_OTHERNAME
() and
i2d_OTHERNAME
() first appeared in OpenSSL 0.9.5 and
have been available since OpenBSD 2.7.
d2i_EDIPARTYNAME
() and
i2d_EDIPARTYNAME
() first appeared in OpenSSL 0.9.7
and have been available since OpenBSD 3.2.