1 .\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2 .TH "gnutls_certificate_set_x509_key" 3 "2.12.6.1" "gnutls" "gnutls"
4 gnutls_certificate_set_x509_key \- API function
6 .B #include <gnutls/gnutls.h>
8 .BI "int gnutls_certificate_set_x509_key(gnutls_certificate_credentials_t " res ", gnutls_x509_crt_t * " cert_list ", int " cert_list_size ", gnutls_x509_privkey_t " key ");"
10 .IP "gnutls_certificate_credentials_t res" 12
11 is a \fBgnutls_certificate_credentials_t\fP structure.
12 .IP "gnutls_x509_crt_t * cert_list" 12
13 contains a certificate list (path) for the specified private key
14 .IP "int cert_list_size" 12
15 holds the size of the certificate list
16 .IP "gnutls_x509_privkey_t key" 12
17 is a gnutls_x509_privkey_t key
19 This function sets a certificate/private key pair in the
20 gnutls_certificate_credentials_t structure. This function may be
21 called more than once (in case multiple keys/certificates exist for
22 the server). For clients that wants to send more than its own end
23 entity certificate (e.g., also an intermediate CA cert) then put
24 the certificate chain in \fIcert_list\fP.
26 \fBGNUTLS_E_SUCCESS\fP on success, or an error code.
30 Report bugs to <bug-gnutls@gnu.org>.
31 GnuTLS home page: http://www.gnu.org/software/gnutls/
32 General help using GNU software: http://www.gnu.org/gethelp/
34 Copyright \(co 2008 Free Software Foundation.
36 Copying and distribution of this file, with or without modification,
37 are permitted in any medium without royalty provided the copyright
38 notice and this notice are preserved.
40 The full documentation for
42 is maintained as a Texinfo manual. If the
46 programs are properly installed at your site, the command
50 should give you access to the complete manual.