summaryrefslogtreecommitdiff
path: root/lib/x509/x509_int.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-06-04 08:51:11 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-06-04 08:59:45 +0200
commit0d66f1fc47ec0dec5bfe56928cc46ed47842b360 (patch)
tree59e323c895b9ce5340b28f55109aed00bad70e8e /lib/x509/x509_int.h
parentb9f7a3d505d4be7521c3a6927b776ba02be33e5c (diff)
downloadgnutls-0d66f1fc47ec0dec5bfe56928cc46ed47842b360.tar.gz
Split pubkey_verify_sig() to pubkey_verify_hashed_data() and pubkey_verify_data().
Added gnutls_pubkey_verify_data2() to allow verification of a signature when the signature algorithm cannot be determined by the signature and the public key only.
Diffstat (limited to 'lib/x509/x509_int.h')
-rw-r--r--lib/x509/x509_int.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/x509/x509_int.h b/lib/x509/x509_int.h
index 4df028befe..41ed58277b 100644
--- a/lib/x509/x509_int.h
+++ b/lib/x509/x509_int.h
@@ -182,13 +182,14 @@ _gnutls_x509_verify_algorithm (gnutls_mac_algorithm_t * hash,
gnutls_pk_algorithm_t pk,
gnutls_pk_params_st * issuer_params);
-int _gnutls_x509_verify_signature (const gnutls_datum_t * tbs,
- const gnutls_datum_t * hash,
- const gnutls_datum_t * signature,
- gnutls_x509_crt_t issuer);
-int _gnutls_x509_privkey_verify_signature (const gnutls_datum_t * tbs,
- const gnutls_datum_t * signature,
- gnutls_x509_privkey_t issuer);
+int _gnutls_x509_verify_data (gnutls_digest_algorithm_t algo,
+ const gnutls_datum_t * data,
+ const gnutls_datum_t * signature,
+ gnutls_x509_crt_t issuer);
+
+int _gnutls_x509_verify_hashed_data (const gnutls_datum_t * hash,
+ const gnutls_datum_t * signature,
+ gnutls_x509_crt_t issuer);
/* privkey.h */
ASN1_TYPE _gnutls_privkey_decode_pkcs1_rsa_key (const gnutls_datum_t *