Blame doc/functions/gnutls_x509_crt_get_preferred_hash_algorithm

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_x509_crt_get_preferred_hash_algorithm} (gnutls_x509_crt_t @var{crt}, gnutls_digest_algorithm_t *           @var{hash}, unsigned int * @var{mand})
Packit aea12f
@var{crt}: Holds the certificate
Packit aea12f
Packit aea12f
@var{hash}: The result of the call with the hash algorithm used for signature
Packit aea12f
Packit aea12f
@var{mand}: If non-zero it means that the algorithm MUST use this hash. May be @code{NULL} .
Packit aea12f
Packit aea12f
This function will read the certificate and return the appropriate digest
Packit aea12f
algorithm to use for signing with this certificate. Some certificates (i.e.
Packit aea12f
DSA might not be able to sign without the preferred algorithm).
Packit aea12f
Packit aea12f
@strong{Deprecated:} Please use @code{gnutls_pubkey_get_preferred_hash_algorithm()} .
Packit aea12f
Packit aea12f
@strong{Returns:} the 0 if the hash algorithm is found. A negative error code is
Packit aea12f
returned on error.
Packit aea12f
Packit aea12f
@strong{Since:} 2.12.0
Packit aea12f
@end deftypefun