]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/X509_get_subject_name.pod
Expand the XTS documentation
[thirdparty/openssl.git] / doc / man3 / X509_get_subject_name.pod
CommitLineData
5571ea88
DSH
1=pod
2
3=head1 NAME
4
5X509_get_subject_name, X509_set_subject_name, X509_get_issuer_name,
6X509_set_issuer_name, X509_REQ_get_subject_name, X509_REQ_set_subject_name,
7X509_CRL_get_issuer, X509_CRL_set_issuer_name - get and set issuer or
bb9ad09e 8subject names
5571ea88
DSH
9
10=head1 SYNOPSIS
11
12 #include <openssl/x509.h>
13
e1f02308 14 X509_NAME *X509_get_subject_name(const X509 *x);
8cc86b81 15 int X509_set_subject_name(X509 *x, const X509_NAME *name);
5571ea88 16
e1f02308 17 X509_NAME *X509_get_issuer_name(const X509 *x);
8cc86b81 18 int X509_set_issuer_name(X509 *x, const X509_NAME *name);
5571ea88 19
b26ab17f 20 X509_NAME *X509_REQ_get_subject_name(const X509_REQ *req);
8cc86b81 21 int X509_REQ_set_subject_name(X509_REQ *req, const X509_NAME *name);
5571ea88 22
b26ab17f 23 X509_NAME *X509_CRL_get_issuer(const X509_CRL *crl);
8cc86b81 24 int X509_CRL_set_issuer_name(X509_CRL *x, const X509_NAME *name);
5571ea88
DSH
25
26=head1 DESCRIPTION
27
28X509_get_subject_name() returns the subject name of certificate B<x>. The
29returned value is an internal pointer which B<MUST NOT> be freed.
30
31X509_set_subject_name() sets the issuer name of certificate B<x> to
32B<name>. The B<name> parameter is copied internally and should be freed
33up when it is no longer needed.
34
35X509_get_issuer_name() and X509_set_issuer_name() are identical to
36X509_get_subject_name() and X509_set_subject_name() except the get and
0ad69cd6 37set the issuer name of B<x>.
5571ea88
DSH
38
39Similarly X509_REQ_get_subject_name(), X509_REQ_set_subject_name(),
32c57705 40X509_CRL_get_issuer() and X509_CRL_set_issuer_name() get or set the subject
0ad69cd6 41or issuer names of certificate requests of CRLs respectively.
5571ea88
DSH
42
43=head1 RETURN VALUES
44
45X509_get_subject_name(), X509_get_issuer_name(), X509_REQ_get_subject_name()
46and X509_CRL_get_issuer() return an B<X509_NAME> pointer.
47
48X509_set_subject_name(), X509_set_issuer_name(), X509_REQ_set_subject_name()
49and X509_CRL_set_issuer_name() return 1 for success and 0 for failure.
50
5571ea88
DSH
51=head1 SEE ALSO
52
53L<d2i_X509(3)>,
54L<ERR_get_error(3)>, L<d2i_X509(3)>
55L<X509_CRL_get0_by_serial(3)>,
56L<X509_get0_signature(3)>,
57L<X509_get_ext_d2i(3)>,
58L<X509_get_extension_flags(3)>,
59L<X509_get_pubkey(3)>,
60L<X509_NAME_add_entry_by_txt(3)>,
61L<X509_NAME_ENTRY_get_object(3)>,
62L<X509_NAME_get_index_by_NID(3)>,
63L<X509_NAME_print_ex(3)>,
64L<X509_new(3)>,
65L<X509_sign(3)>,
66L<X509V3_get_d2i(3)>,
67L<X509_verify_cert(3)>
68
b5c4bbbe
JL
69=head1 HISTORY
70
71X509_REQ_get_subject_name() is a function in OpenSSL 1.1.0 and a macro in
72earlier versions.
73
74X509_CRL_get_issuer() is a function in OpenSSL 1.1.0. It was previously
75added in OpenSSL 1.0.0 as a macro.
76
e2f92610
RS
77=head1 COPYRIGHT
78
b5c4bbbe 79Copyright 2015-2019 The OpenSSL Project Authors. All Rights Reserved.
e2f92610 80
4746f25a 81Licensed under the Apache License 2.0 (the "License"). You may not use
e2f92610
RS
82this file except in compliance with the License. You can obtain a copy
83in the file LICENSE in the source distribution or at
84L<https://www.openssl.org/source/license.html>.
85
86=cut