xref: /freebsd/crypto/openssl/doc/man3/X509_NAME_get0_der.pod (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1e71b7053SJung-uk Kim=pod
2e71b7053SJung-uk Kim
3e71b7053SJung-uk Kim=head1 NAME
4e71b7053SJung-uk Kim
5e71b7053SJung-uk KimX509_NAME_get0_der - get X509_NAME DER encoding
6e71b7053SJung-uk Kim
7e71b7053SJung-uk Kim=head1 SYNOPSIS
8e71b7053SJung-uk Kim
9e71b7053SJung-uk Kim #include <openssl/x509.h>
10e71b7053SJung-uk Kim
11*b077aed3SPierre Pronchery int X509_NAME_get0_der(const X509_NAME *nm, const unsigned char **pder,
12*b077aed3SPierre Pronchery                        size_t *pderlen);
13e71b7053SJung-uk Kim
14e71b7053SJung-uk Kim
15e71b7053SJung-uk Kim=head1 DESCRIPTION
16e71b7053SJung-uk Kim
17e71b7053SJung-uk KimThe function X509_NAME_get0_der() returns an internal pointer to the
18e71b7053SJung-uk Kimencoding of an B<X509_NAME> structure in B<*pder> and consisting of
19e71b7053SJung-uk KimB<*pderlen> bytes. It is useful for applications that wish to examine
20e71b7053SJung-uk Kimthe encoding of an B<X509_NAME> structure without copying it.
21e71b7053SJung-uk Kim
22e71b7053SJung-uk Kim=head1 RETURN VALUES
23e71b7053SJung-uk Kim
24e71b7053SJung-uk KimThe function X509_NAME_get0_der() returns 1 for success and 0 if an error
25e71b7053SJung-uk Kimoccurred.
26e71b7053SJung-uk Kim
27e71b7053SJung-uk Kim=head1 SEE ALSO
28e71b7053SJung-uk Kim
29e71b7053SJung-uk KimL<d2i_X509(3)>
30e71b7053SJung-uk Kim
31e71b7053SJung-uk Kim=head1 COPYRIGHT
32e71b7053SJung-uk Kim
33*b077aed3SPierre ProncheryCopyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved.
34e71b7053SJung-uk Kim
35*b077aed3SPierre ProncheryLicensed under the Apache License 2.0 (the "License").  You may not use
36e71b7053SJung-uk Kimthis file except in compliance with the License.  You can obtain a copy
37e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at
38e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>.
39e71b7053SJung-uk Kim
40e71b7053SJung-uk Kim=cut
41