Blame doc/functions/gnutls_privkey_import_tpm_url

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_privkey_import_tpm_url} (gnutls_privkey_t @var{pkey}, const char * @var{url}, const char * @var{srk_password}, const char * @var{key_password}, unsigned int @var{flags})
Packit Service 4684c1
@var{pkey}: The private key
Packit Service 4684c1
Packit Service 4684c1
@var{url}: The URL of the TPM key to be imported
Packit Service 4684c1
Packit Service 4684c1
@var{srk_password}: The password for the SRK key (optional)
Packit Service 4684c1
Packit Service 4684c1
@var{key_password}: A password for the key (optional)
Packit Service 4684c1
Packit Service 4684c1
@var{flags}: One of the GNUTLS_PRIVKEY_* flags
Packit Service 4684c1
Packit Service 4684c1
This function will import the given private key to the abstract
Packit Service 4684c1
@code{gnutls_privkey_t}  type.
Packit Service 4684c1
Packit Service 4684c1
Note that unless @code{GNUTLS_PRIVKEY_DISABLE_CALLBACKS} 
Packit Service 4684c1
is specified, if incorrect (or NULL) passwords are given
Packit Service 4684c1
the PKCS11 callback functions will be used to obtain the
Packit Service 4684c1
correct passwords. Otherwise if the SRK password is wrong
Packit Service 4684c1
@code{GNUTLS_E_TPM_SRK_PASSWORD_ERROR}  is returned and if the key password
Packit Service 4684c1
is wrong or not provided then @code{GNUTLS_E_TPM_KEY_PASSWORD_ERROR} 
Packit Service 4684c1
is returned. 
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit Service 4684c1
negative error value.
Packit Service 4684c1
Packit Service 4684c1
@strong{Since:} 3.1.0
Packit Service 4684c1
@end deftypefun