1gnutls_certificate_set_x509_key(3) gnutls gnutls_certificate_set_x509_key(3)
2
3
4
6 gnutls_certificate_set_x509_key - Used to set keys in a gnutls_certifi‐
7 cate_credentials_t structure
8
10 #include <gnutls/gnutls.h>
11
12 int gnutls_certificate_set_x509_key(gnutls_certificate_credentials_t
13 res, gnutls_x509_crt_t * cert_list, int cert_list_size,
14 gnutls_x509_privkey_t key);
15
17 gnutls_certificate_credentials_t res
18 is a gnutls_certificate_credentials_t structure.
19
20 gnutls_x509_crt_t * cert_list
21 contains a certificate list (path) for the specified pri‐
22 vate key
23
24 int cert_list_size
25 holds the size of the certificate list
26
27 gnutls_x509_privkey_t key
28 is a gnutls_x509_privkey_t key
29
31 This function sets a certificate/private key pair in the gnutls_cer‐
32 tificate_credentials_t structure. This function may be called more
33 than once (in case multiple keys/certificates exist for the server).
34
36 GNUTLS_E_SUCCESS on success, or an error code.
37
39 2.4.0
40
42 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
43 http://www.gnu.org/software/gnutls/ General help using GNU software:
44 http://www.gnu.org/gethelp/
45
47 Copyright © 2008 Free Software Foundation.
48 Copying and distribution of this file, with or without modification,
49 are permitted in any medium without royalty provided the copyright
50 notice and this notice are preserved.
51
53 The full documentation for gnutls is maintained as a Texinfo manual.
54 If the info and gnutls programs are properly installed at your site,
55 the command
56
57 info gnutls
58
59 should give you access to the complete manual.
60
61
62
63gnutls 2.8.6 gnutls_certificate_set_x509_key(3)