Debian Codegraph @

doc/functions/gnutls_privkey_import_url

raw
1
2
3
4
5 @deftypefun {int} {gnutls_privkey_import_url} (gnutls_privkey_t @var{key}, const char * @var{url}, unsigned int @var{flags})
6 @var{key}: A key of type @code{gnutls_privkey_t}
7
8 @var{url}: A PKCS 11 url
9
10 @var{flags}: should be zero
11
12 This function will import a PKCS11 or TPM URL as a
13 private key. The supported URL types can be checked
14 using @code{gnutls_url_is_supported()} .
15
16 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
17 negative error value.
18
19 @strong{Since:} 3.1.0
20 @end deftypefun