Corrected some issues with the code.
* Version 2.7.7 (unreleased)
** libgnutls: Applied patch by Cedric Bail to add functions
-gnutls_x509_crt_verify_hash() and gnutls_x509_crt_get_sig_algorithm().
+gnutls_x509_crt_verify_hash() and gnutls_x509_crt_get_verify_algorithm().
** gnutls.pc: Add -ltasn1 to 'pkg-config --libs --static gnutls' output.
Reported by Andreas Metzler <ametzler@downhill.at.eu.org> in
** API and ABI modifications:
gnutls_x509_crt_verify_hash: ADDED
-gnutls_x509_crt_get_sig_algorithm: ADDED
+gnutls_x509_crt_get_verify_algorithm: ADDED
* Version 2.7.6 (released 2009-02-27)
const gnutls_datum_t * hash,
const gnutls_datum_t * signature);
- int gnutls_x509_crt_get_sig_algorithm(gnutls_digest_algorithm_t *hash,
+ int gnutls_x509_crt_get_verify_algorithm(gnutls_digest_algorithm_t *hash,
const gnutls_x509_crt_t crt,
const gnutls_datum_t * signature);
_gnutls_hash (&hd, text->data, text->size);
_gnutls_hash_deinit (&hd, md);
- cmp = &md;
+ cmp = md;
}
if (memcmp (cmp, digest, digest_size) != 0)
}
/**
- * gnutls_x509_crt_get_sig_algorithm - This function will return the hash algorithm used during signature.
+ * gnutls_x509_crt_get_verify_algorithm - This function will return the hash algorithm used during signature.
* @hash: The result of the call with the hash algorithm used for signature
* @crt: Holds the certificate
* @signature: contains the signature
* returned on error.
**/
int
-gnutls_x509_crt_get_sig_algorithm(gnutls_digest_algorithm_t *hash,
+gnutls_x509_crt_get_verify_algorithm(gnutls_digest_algorithm_t *hash,
const gnutls_x509_crt_t crt,
const gnutls_datum_t * signature)
{
return GNUTLS_E_INVALID_REQUEST;
}
- return _gnutls_x509_verify_algorithm(hash, signature, crt);
+ return _gnutls_x509_verify_algorithm((gnutls_mac_algorithm_t*)hash, signature, crt);
}
/**