summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS4
-rw-r--r--lib/includes/gnutls/x509.h2
-rw-r--r--lib/x509/verify.c2
-rw-r--r--lib/x509/x509.c6
4 files changed, 7 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index 68adae1b41..7d451befe4 100644
--- a/NEWS
+++ b/NEWS
@@ -6,7 +6,7 @@ See the end for copying conditions.
* 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
@@ -25,7 +25,7 @@ domain 'gnutls' for translations of the command line tools.
** 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)
diff --git a/lib/includes/gnutls/x509.h b/lib/includes/gnutls/x509.h
index 46038474df..f6515e8560 100644
--- a/lib/includes/gnutls/x509.h
+++ b/lib/includes/gnutls/x509.h
@@ -646,7 +646,7 @@ extern "C"
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);
diff --git a/lib/x509/verify.c b/lib/x509/verify.c
index 3a1b1f00c4..035409d123 100644
--- a/lib/x509/verify.c
+++ b/lib/x509/verify.c
@@ -664,7 +664,7 @@ _pkcs1_rsa_verify_sig (const gnutls_datum_t * text,
_gnutls_hash (&hd, text->data, text->size);
_gnutls_hash_deinit (&hd, md);
- cmp = &md;
+ cmp = md;
}
if (memcmp (cmp, digest, digest_size) != 0)
diff --git a/lib/x509/x509.c b/lib/x509/x509.c
index 1c6206af61..067dab13be 100644
--- a/lib/x509/x509.c
+++ b/lib/x509/x509.c
@@ -2305,7 +2305,7 @@ gnutls_x509_crt_check_revocation (gnutls_x509_crt_t cert,
}
/**
- * 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
@@ -2317,7 +2317,7 @@ gnutls_x509_crt_check_revocation (gnutls_x509_crt_t cert,
* 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)
{
@@ -2327,7 +2327,7 @@ gnutls_x509_crt_get_sig_algorithm(gnutls_digest_algorithm_t *hash,
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);
}
/**