Blame doc/functions/gnutls_pkcs11_privkey_export_pubkey

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