Blame doc/functions/gnutls_pubkey_import_privkey

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_pubkey_import_privkey} (gnutls_pubkey_t @var{key}, gnutls_privkey_t @var{pkey}, unsigned int @var{usage}, unsigned int @var{flags})
Packit aea12f
@var{key}: The public key
Packit aea12f
Packit aea12f
@var{pkey}: The private key
Packit aea12f
Packit aea12f
@var{usage}: GNUTLS_KEY_* key usage flags.
Packit aea12f
Packit aea12f
@var{flags}: should be zero
Packit aea12f
Packit aea12f
Imports the public key from a private.  This function will import
Packit aea12f
the given public key to the abstract @code{gnutls_pubkey_t}  type.
Packit aea12f
Packit aea12f
Note that in certain keys this operation may not be possible, e.g.,
Packit aea12f
in other than RSA PKCS@code{11}  keys.
Packit aea12f
Packit aea12f
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit aea12f
negative error value.
Packit aea12f
Packit aea12f
@strong{Since:} 2.12.0
Packit aea12f
@end deftypefun