Blame doc/functions/gnutls_x509_crq_set_spki

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_x509_crq_set_spki} (gnutls_x509_crq_t @var{crq}, const gnutls_x509_spki_t @var{spki}, unsigned int @var{flags})
Packit aea12f
@var{crq}: a certificate request of type @code{gnutls_x509_crq_t} 
Packit aea12f
Packit aea12f
@var{spki}: a SubjectPublicKeyInfo structure of type @code{gnutls_x509_spki_t} 
Packit aea12f
Packit aea12f
@var{flags}: must be zero
Packit aea12f
Packit aea12f
This function will set the certificate request's subject public key
Packit aea12f
information explicitly. This is intended to be used in the cases
Packit aea12f
where a single public key (e.g., RSA) can be used for multiple
Packit aea12f
signature algorithms (RSA PKCS1-1.5, and RSA-PSS).
Packit aea12f
Packit aea12f
To export the public key (i.e., the SubjectPublicKeyInfo part), check
Packit aea12f
@code{gnutls_pubkey_import_x509()} .
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.6.0
Packit aea12f
@end deftypefun