Blame doc/functions/gnutls_x509_crl_privkey_sign

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_x509_crl_privkey_sign} (gnutls_x509_crl_t @var{crl}, gnutls_x509_crt_t @var{issuer}, gnutls_privkey_t @var{issuer_key}, gnutls_digest_algorithm_t @var{dig}, unsigned int @var{flags})
Packit aea12f
@var{crl}: should contain a gnutls_x509_crl_t type
Packit aea12f
Packit aea12f
@var{issuer}: is the certificate of the certificate issuer
Packit aea12f
Packit aea12f
@var{issuer_key}: holds the issuer's private key
Packit aea12f
Packit aea12f
@var{dig}: The message digest to use. GNUTLS_DIG_SHA256 is the safe choice unless you know what you're doing.
Packit aea12f
Packit aea12f
@var{flags}: must be 0
Packit aea12f
Packit aea12f
This function will sign the CRL with the issuer's private key, and
Packit aea12f
will copy the issuer's information into the CRL.
Packit aea12f
Packit aea12f
This must be the last step in a certificate CRL since all
Packit aea12f
the previously set parameters are now signed.
Packit aea12f
Packit aea12f
A known limitation of this function is, that a newly-signed CRL will not
Packit aea12f
be fully functional (e.g., for signature verification), until it
Packit aea12f
is exported an re-imported.
Packit aea12f
Packit aea12f
After GnuTLS 3.6.1 the value of  @code{dig} may be @code{GNUTLS_DIG_UNKNOWN} ,
Packit aea12f
and in that case, a suitable but reasonable for the key algorithm will be selected.
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
Since 2.12.0
Packit aea12f
@end deftypefun