1gnutls_x509_trust_list_add_named_crt(g3n)utglnsutls_x509_trust_list_add_named_crt(3)
2
3
4

NAME

6       gnutls_x509_trust_list_add_named_crt - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int gnutls_x509_trust_list_add_named_crt(gnutls_x509_trust_list_t list,
12       gnutls_x509_crt_t cert, const void * name, size_t  name_size,  unsigned
13       int flags);
14

ARGUMENTS

16       gnutls_x509_trust_list_t list
17                   The list
18
19       gnutls_x509_crt_t cert
20                   A certificate
21
22       const void * name
23                   An identifier for the certificate
24
25       size_t name_size
26                   The size of the identifier
27
28       unsigned int flags
29                   should be 0.
30

DESCRIPTION

32       This  function  will  add the given certificate to the trusted list and
33       associate it with a name. The certificate will not be be used for veri‐
34       fication     with    gnutls_x509_trust_list_verify_crt()    but    with
35       gnutls_x509_trust_list_verify_named_crt()                            or
36       gnutls_x509_trust_list_verify_crt2()  -  the  latter  only since GnuTLS
37       3.4.0 and if a hostname is provided.
38
39       In principle this function can be used to set individual "server"  cer‐
40       tificates that are trusted by the user for that specific server but for
41       no other purposes.
42
43       The certificate  cert must not be deinitialized during the lifetime  of
44       the  list .
45

RETURNS

47       On  success,  GNUTLS_E_SUCCESS  (0)  is  returned, otherwise a negative
48       error value.
49

SINCE

51       3.0.0
52

REPORTING BUGS

54       Report bugs to <bugs@gnutls.org>.
55       Home page: http://www.gnutls.org
56
57
59       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
60       Copying and distribution of this file, with  or  without  modification,
61       are  permitted  in  any  medium  without royalty provided the copyright
62       notice and this notice are preserved.
63

SEE ALSO

65       The full documentation for gnutls is maintained as  a  Texinfo  manual.
66       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
67       visit
68
69       http://www.gnutls.org/manual/
70
71gnutls                               3.6g.n5utls_x509_trust_list_add_named_crt(3)
Impressum