gnutls_x509_crt_get_verify_algorithm3
Api function
Usage
#include <gnutls/compat.h>
int gnutls_x509_crt_get_verify_algorithm(gnutls_x509_crt_t crt, const gnutls_datum_t * signature, gnutls_digest_algorithm_t * hash);
Arguments
gnutls_x509_crt_t crt
|
Holds the certificate |
|---|---|
const gnutls_datum_t * signature
|
contains the signature |
gnutls_digest_algorithm_t * hash
|
The result of the call with the hash algorithm used for signature |
Overview
This function will read the certifcate and the signed data to determine the hash algorithm used to generate the signature.
Deprecated
Use gnutls_pubkey_get_verify_algorithm() instead.
Returns
the 0 if the hash algorithm is found. A negative error code is returned on error.
Since
2.8.0
Releases
2 releases since Debian 6.0 (Squeeze); the text changed 1 time.