Blame doc/functions/gnutls_pkcs11_privkey_export_pubkey

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_pkcs11_privkey_export_pubkey} (gnutls_pkcs11_privkey_t @var{pkey}, gnutls_x509_crt_fmt_t @var{fmt}, gnutls_datum_t * @var{data}, unsigned int @var{flags})
Packit aea12f
@var{pkey}: The private key
Packit aea12f
Packit aea12f
@var{fmt}: the format of output params. PEM or DER.
Packit aea12f
Packit aea12f
@var{data}: will hold the public key
Packit aea12f
Packit aea12f
@var{flags}: should be zero
Packit aea12f
Packit aea12f
This function will extract the public key (modulus and public
Packit aea12f
exponent) from the private key specified by the  @code{url} private key.
Packit aea12f
This public key will be stored in  @code{pubkey} in the format specified
Packit aea12f
by  @code{fmt} .  @code{pubkey} should be deinitialized using @code{gnutls_free()} .
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:} 3.3.7
Packit aea12f
@end deftypefun