1X509_GET_SUBJECT_NAME(3)            OpenSSL           X509_GET_SUBJECT_NAME(3)
2
3
4

NAME

6       X509_get_subject_name, X509_set_subject_name, X509_get_issuer_name,
7       X509_set_issuer_name, X509_REQ_get_subject_name,
8       X509_REQ_set_subject_name, X509_CRL_get_issuer,
9       X509_CRL_set_issuer_name - get and set issuer or subject names
10

SYNOPSIS

12        #include <openssl/x509.h>
13
14        X509_NAME *X509_get_subject_name(const X509 *x);
15        int X509_set_subject_name(X509 *x, X509_NAME *name);
16
17        X509_NAME *X509_get_issuer_name(const X509 *x);
18        int X509_set_issuer_name(X509 *x, X509_NAME *name);
19
20        X509_NAME *X509_REQ_get_subject_name(const X509_REQ *req);
21        int X509_REQ_set_subject_name(X509_REQ *req, X509_NAME *name);
22
23        X509_NAME *X509_CRL_get_issuer(const X509_CRL *crl);
24        int X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name);
25

DESCRIPTION

27       X509_get_subject_name() returns the subject name of certificate x. The
28       returned value is an internal pointer which MUST NOT be freed.
29
30       X509_set_subject_name() sets the issuer name of certificate x to name.
31       The name parameter is copied internally and should be freed up when it
32       is no longer needed.
33
34       X509_get_issuer_name() and X509_set_issuer_name() are identical to
35       X509_get_subject_name() and X509_set_subject_name() except the get and
36       set the issuer name of x.
37
38       Similarly X509_REQ_get_subject_name(), X509_REQ_set_subject_name(),
39       X509_CRL_get_issuer() and X509_CRL_set_issuer_name() get or set the
40       subject or issuer names of certificate requests of CRLs respectively.
41

RETURN VALUES

43       X509_get_subject_name(), X509_get_issuer_name(),
44       X509_REQ_get_subject_name() and X509_CRL_get_issuer() return an
45       X509_NAME pointer.
46
47       X509_set_subject_name(), X509_set_issuer_name(),
48       X509_REQ_set_subject_name() and X509_CRL_set_issuer_name() return 1 for
49       success and 0 for failure.
50

HISTORY

52       X509_REQ_get_subject_name() is a function in OpenSSL 1.1.0 and a macro
53       in earlier versions.
54
55       X509_CRL_get_issuer() is a function in OpenSSL 1.1.0. It was first
56       added to OpenSSL 1.0.0 as a macro.
57

SEE ALSO

59       d2i_X509(3), ERR_get_error(3), d2i_X509(3) X509_CRL_get0_by_serial(3),
60       X509_get0_signature(3), X509_get_ext_d2i(3),
61       X509_get_extension_flags(3), X509_get_pubkey(3),
62       X509_NAME_add_entry_by_txt(3), X509_NAME_ENTRY_get_object(3),
63       X509_NAME_get_index_by_NID(3), X509_NAME_print_ex(3), X509_new(3),
64       X509_sign(3), X509V3_get_d2i(3), X509_verify_cert(3)
65
67       Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
68
69       Licensed under the OpenSSL license (the "License").  You may not use
70       this file except in compliance with the License.  You can obtain a copy
71       in the file LICENSE in the source distribution or at
72       <https://www.openssl.org/source/license.html>.
73
74
75
761.1.1                             2018-09-11          X509_GET_SUBJECT_NAME(3)
Impressum