1gnutls_pcert_export_x509(3) gnutls gnutls_pcert_export_x509(3)
2
3
4
6 gnutls_pcert_export_x509 - API function
7
9 #include <gnutls/abstract.h>
10
11 int gnutls_pcert_export_x509(gnutls_pcert_st * pcert, gnutls_x509_crt_t
12 * crt);
13
15 gnutls_pcert_st * pcert
16 The pcert structure.
17
18 gnutls_x509_crt_t * crt
19 An initialized gnutls_x509_crt_t.
20
22 Converts the given gnutls_pcert_t type into a gnutls_x509_crt_t. This
23 function only works if the type of pcert is GNUTLS_CRT_X509. When
24 successful, the value written to crt must be freed with
25 gnutls_x509_crt_deinit() when no longer needed.
26
28 On success, GNUTLS_E_SUCCESS [22m(0) is returned, otherwise a negative
29 error value.
30
32 3.4.0
33
35 Report bugs to <bugs@gnutls.org>.
36 Home page: https://www.gnutls.org
37
38
40 Copyright © 2001-2019 Free Software Foundation, Inc., and others.
41 Copying and distribution of this file, with or without modification,
42 are permitted in any medium without royalty provided the copyright
43 notice and this notice are preserved.
44
46 The full documentation for gnutls is maintained as a Texinfo manual.
47 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
48 visit
49
50 https://www.gnutls.org/manual/
51
52gnutls 3.6.7 gnutls_pcert_export_x509(3)