1gnutls_x509_crq_import(3) gnutls gnutls_x509_crq_import(3)
2
3
4
6 gnutls_x509_crq_import - This function will import a DER or PEM encoded
7 Certificate request
8
10 #include <gnutls/x509.h>
11
12 int gnutls_x509_crq_import(gnutls_x509_crq_t crq, const gnutls_datum_t
13 * data, gnutls_x509_crt_fmt_t format);
14
16 gnutls_x509_crq_t crq
17 The structure to store the parsed certificate request.
18
19 const gnutls_datum_t * data
20 The DER or PEM encoded certificate.
21
22 gnutls_x509_crt_fmt_t format
23 One of DER or PEM
24
26 This function will convert the given DER or PEM encoded Certificate to
27 the native gnutls_x509_crq_t format. The output will be stored in cert.
28
29 If the Certificate is PEM encoded it should have a header of "NEW CER‐
30 TIFICATE REQUEST".
31
33 On success, GNUTLS_E_SUCCESS is returned, otherwise a negative error
34 value.
35
37 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
38 http://www.gnu.org/software/gnutls/ General help using GNU software:
39 http://www.gnu.org/gethelp/
40
42 Copyright © 2008 Free Software Foundation.
43 Copying and distribution of this file, with or without modification,
44 are permitted in any medium without royalty provided the copyright
45 notice and this notice are preserved.
46
48 The full documentation for gnutls is maintained as a Texinfo manual.
49 If the info and gnutls programs are properly installed at your site,
50 the command
51
52 info gnutls
53
54 should give you access to the complete manual.
55
56
57
58gnutls 2.8.6 gnutls_x509_crq_import(3)