Tizen 2.0 Release
[external/libgnutls26.git] / doc / manpages / gnutls_certificate_set_x509_key.3
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"
3 .SH NAME
4 gnutls_certificate_set_x509_key \- API function
5 .SH SYNOPSIS
6 .B #include <gnutls/gnutls.h>
7 .sp
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 ");"
9 .SH ARGUMENTS
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
18 .SH "DESCRIPTION"
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.
25 .SH "RETURNS"
26 \fBGNUTLS_E_SUCCESS\fP on success, or an error code.
27 .SH "SINCE"
28 2.4.0
29 .SH "REPORTING BUGS"
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/
33 .SH COPYRIGHT
34 Copyright \(co 2008 Free Software Foundation.
35 .br
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.
39 .SH "SEE ALSO"
40 The full documentation for
41 .B gnutls
42 is maintained as a Texinfo manual.  If the
43 .B info
44 and
45 .B gnutls
46 programs are properly installed at your site, the command
47 .IP
48 .B info gnutls
49 .PP
50 should give you access to the complete manual.