1gnutls_x509_crt_list_import_url(3)  gnutls  gnutls_x509_crt_list_import_url(3)
2
3
4

NAME

6       gnutls_x509_crt_list_import_url - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int  gnutls_x509_crt_list_import_url(gnutls_x509_crt_t  **  certs,  un‐
12       signed int * size, const char * url, gnutls_pin_callback_t pin_fn, void
13       * pin_fn_userdata, unsigned int flags);
14

ARGUMENTS

16       gnutls_x509_crt_t ** certs
17                   Will hold the allocated certificate list.
18
19       unsigned int * size
20                   It will contain the size of the list.
21
22       const char * url
23                   A PKCS 11 url
24
25       gnutls_pin_callback_t pin_fn
26                   a PIN callback if not globally set
27
28       void * pin_fn_userdata
29                   parameter for the PIN callback
30
31       unsigned int flags
32                   One  of  GNUTLS_PKCS11_OBJ_*  flags for PKCS11 URLs or zero
33                   otherwise
34

DESCRIPTION

36       This function will import a certificate chain present in a PKCS11 token
37       or  any  type  of back-end that supports URLs. The certificates must be
38       deinitialized afterwards using  gnutls_x509_crt_deinit()  and  the  re‐
39       turned pointer must be freed using gnutls_free().
40
41       The URI provided must be the first certificate in the chain; subsequent
42       certificates will be retrieved using gnutls_pkcs11_get_raw_issuer()  or
43       equivalent functionality for the supported URI.
44

RETURNS

46       On  success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
47       ror value.
48

SINCE

50       3.6.3
51

REPORTING BUGS

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

SEE ALSO

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