Blame doc/functions/gnutls_pkcs11_privkey_import_url
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@deftypefun {int} {gnutls_pkcs11_privkey_import_url} (gnutls_pkcs11_privkey_t @var{pkey}, const char * @var{url}, unsigned int @var{flags})
|
|
Packit |
aea12f |
@var{pkey}: The private key
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{url}: a PKCS 11 url identifying the key
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{flags}: Or sequence of GNUTLS_PKCS11_OBJ_* flags
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
This function will "import" a PKCS 11 URL identifying a private
|
|
Packit |
aea12f |
key to the @code{gnutls_pkcs11_privkey_t} type. In reality since
|
|
Packit |
aea12f |
in most cases keys cannot be exported, the private key structure
|
|
Packit |
aea12f |
is being associated with the available operations on the token.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
|
|
Packit |
aea12f |
negative error value.
|
|
Packit |
aea12f |
@end deftypefun
|