GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
D2I_GENERAL_NAME(3) FreeBSD Library Functions Manual D2I_GENERAL_NAME(3)

d2i_GENERAL_NAME, i2d_GENERAL_NAME, d2i_GENERAL_NAMES, i2d_GENERAL_NAMES, d2i_EDIPARTYNAME, i2d_EDIPARTYNAME, d2i_OTHERNAME, i2d_OTHERNAMEdecode 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);

These functions decode and encode names that can be used in X.509 extensions. For details about the semantics, examples, caveats, and bugs, see ASN1_item_d2i(3).

() and () decode and encode an ASN.1 GeneralName structure defined in RFC 5280 section 4.2.1.6.

() and () decode and encode an ASN.1 GeneralNames structure defined in RFC 5280 section 4.2.1.6.

() and () decode and encode an ASN.1 EDIPartyName structure defined in RFC 5280 section 4.2.1.6.

() and () decode and encode an ASN.1 OtherName structure defined in RFC 5280 section 4.2.1.6.

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.

ASN1_item_d2i(3), d2i_X509_NAME(3), GENERAL_NAME_new(3), X509_EXTENSION_new(3)

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.

March 22, 2018 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.