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 its own end entity certificate
34       (e.g., also an intermediate CA cert) then put the certificate chain  in
35       cert_list.
36

RETURNS

38       GNUTLS_E_SUCCESS on success, or an error code.
39

SINCE

41       2.4.0
42

REPORTING BUGS

44       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
45       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
46       http://www.gnu.org/gethelp/
47
49       Copyright © 2008 Free Software Foundation.
50       Copying  and  distribution  of this file, with or without modification,
51       are permitted in any medium  without  royalty  provided  the  copyright
52       notice and this notice are preserved.
53

SEE ALSO

55       The  full  documentation  for gnutls is maintained as a Texinfo manual.
56       If the info and gnutls programs are properly installed  at  your  site,
57       the command
58
59              info gnutls
60
61       should give you access to the complete manual.
62
63
64
65gnutls                             2.12.6.1 gnutls_certificate_set_x509_key(3)
Impressum