1gnutls_pubkey_import_tpm_url(3)     gnutls     gnutls_pubkey_import_tpm_url(3)
2
3
4

NAME

6       gnutls_pubkey_import_tpm_url - API function
7

SYNOPSIS

9       #include <gnutls/abstract.h>
10
11       int  gnutls_pubkey_import_tpm_url(gnutls_pubkey_t  pkey,  const  char *
12       url, const char * srk_password, unsigned int flags);
13

ARGUMENTS

15       gnutls_pubkey_t pkey
16                   The public key
17
18       const char * url
19                   The URL of the TPM key to be imported
20
21       const char * srk_password
22                   The password for the SRK key (optional)
23
24       unsigned int flags
25                   should be zero
26

DESCRIPTION

28       This function will  import  the  given  private  key  to  the  abstract
29       gnutls_privkey_t type.
30
31       Note  that  unless  GNUTLS_PUBKEY_DISABLE_CALLBACKS  is  specified,  if
32       incorrect (or NULL) passwords are given the PKCS11  callback  functions
33       will  be  used  to  obtain  the correct passwords. Otherwise if the SRK
34       password is wrong GNUTLS_E_TPM_SRK_PASSWORD_ERROR is returned.
35

RETURNS

37       On success, GNUTLS_E_SUCCESS (0)  is  returned,  otherwise  a  negative
38       error value.
39

SINCE

41       3.1.0
42

REPORTING BUGS

44       Report bugs to <bugs@gnutls.org>.
45       Home page: http://www.gnutls.org
46
47
49       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
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 /usr/share/doc/gnutls/ directory does not contain the HTML  form
57       visit
58
59       http://www.gnutls.org/manual/
60
61gnutls                               3.6.5     gnutls_pubkey_import_tpm_url(3)
Impressum