"Fossies" - the Fresh Open Source Software Archive

Member "libressl-2.9.2/man/X509_NAME_new.3" (4 Dec 2018, 2996 Bytes) of package /linux/misc/libressl-2.9.2.tar.gz:

Caution: As a special service "Fossies" has tried to format the requested manual source page into HTML format but links to other man pages may be missing or even errorneous. Alternatively you can here view or download the uninterpreted manual source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

X509_NAME_NEW(3) BSD Library Functions Manual X509_NAME_NEW(3)


X509_NAME_new, X509_NAME_free — X.501 Name object


#include <openssl/x509.h>

X509_NAME *



X509_NAME_free(X509_NAME *name);


An X.501 Name is an ordered sequence of relative distinguished names. A relative distinguished name is a set of key-value pairs; see X509_NAME_ENTRY_new(3) for details.

Various X.509 structures contain X.501 Name substructures. They are for example used for the issuers of certificates and certificate revocation lists and for the subjects of certificates and certificate requests.

X509_NAME_new() allocates and initializes an empty X509_NAME object, representing an ASN.1 Name structure defined in RFC 5280 section Data can be added to such objects with the functions described in X509_NAME_add_entry_by_txt(3), and they can be inspected with the functions described in X509_NAME_get_index_by_NID(3).

X509_NAME_free() frees name and all the X509_NAME_ENTRY objects contained in it. If name is a NULL pointer, no action occurs.


X509_NAME_new() returns a new X509_NAME object or NULL if an error occurred.


d2i_X509_NAME(3), GENERAL_NAME_new(3), NAME_CONSTRAINTS_new(3), SSL_load_client_CA_file(3), X509_get_subject_name(3), X509_NAME_add_entry_by_txt(3), X509_NAME_ENTRY_new(3), X509_NAME_get_index_by_NID(3), X509_NAME_print_ex(3)


RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile

ITU-T Recommendation X.501, also known as ISO/IEC 9594-2: Information Technology – Open Systems Interconnection – The Directory: Models, section 9: Names


X509_NAME_new() and X509_NAME_free() appeared in SSLeay 0.4 or earlier and have been available since OpenBSD 2.4.

BSD July 29, 2018 BSD