1gnutls_certificate_set_x509_key(3)  gnutls  gnutls_certificate_set_x509_key(3)
2
3
4

NAME

6       gnutls_certificate_set_x509_key - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int    gnutls_certificate_set_x509_key(gnutls_certificate_credentials_t
12       res,    gnutls_x509_crt_t    *    cert_list,    int     cert_list_size,
13       gnutls_x509_privkey_t key);
14

ARGUMENTS

16       gnutls_certificate_credentials_t res
17                   is a gnutls_certificate_credentials_t structure.
18
19       gnutls_x509_crt_t * cert_list
20                   contains  a  certificate list (path) for the specified pri‐
21                   vate key
22
23       int cert_list_size
24                   holds the size of the certificate list
25
26       gnutls_x509_privkey_t key
27                   is a gnutls_x509_privkey_t key
28

DESCRIPTION

30       This function sets a certificate/private key pair  in  the  gnutls_cer‐
31       tificate_credentials_t  structure.   This  function  may be called more
32       than once, in case multiple keys/certificates  exist  for  the  server.
33       For  clients that wants to send more than their own end entity certifi‐
34       cate (e.g., also an intermediate CA  cert)  then  put  the  certificate
35       chain in  cert_list .
36
37       Note  that the certificates and keys provided, can be safely deinitial‐
38       ized after this function is called.
39
40       If that function fails to load the  res structure is  at  an  undefined
41       state, it must not be reused to load other keys or certificates.
42

RETURNS

44       GNUTLS_E_SUCCESS (0) on success, or a negative error code.
45

SINCE

47       2.4.0
48

REPORTING BUGS

50       Report bugs to <bugs@gnutls.org>.
51       Home page: http://www.gnutls.org
52
53
55       Copyright © 2001-2014 Free Software Foundation, Inc..
56       Copying  and  distribution  of this file, with or without modification,
57       are permitted in any medium  without  royalty  provided  the  copyright
58       notice and this notice are preserved.
59

SEE ALSO

61       The  full  documentation  for gnutls is maintained as a Texinfo manual.
62       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
63       visit
64
65       http://www.gnutls.org/manual/
66
67gnutls                              3.3.29  gnutls_certificate_set_x509_key(3)
Impressum