summaryrefslogtreecommitdiff
path: root/lib/includes/gnutls/x509.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-12-11 18:58:27 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-12-11 18:58:27 +0100
commitb4566f433f23d82ed36461cf7eb45cde839d8296 (patch)
tree52dca840470f3f41bf37f2fb757c66147f8907fb /lib/includes/gnutls/x509.h
parent40a545318bced43171e062949b01988b6cda8e18 (diff)
downloadgnutls-b4566f433f23d82ed36461cf7eb45cde839d8296.tar.gz
Introduced gnutls_*_privkey_sign_hash2() that is a high level function to produce signatures.
Diffstat (limited to 'lib/includes/gnutls/x509.h')
-rw-r--r--lib/includes/gnutls/x509.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/includes/gnutls/x509.h b/lib/includes/gnutls/x509.h
index 80bb435999..21923a3ba4 100644
--- a/lib/includes/gnutls/x509.h
+++ b/lib/includes/gnutls/x509.h
@@ -729,10 +729,12 @@ extern "C"
unsigned int flags,
const gnutls_datum_t * data,
const gnutls_datum_t * signature);
- int gnutls_x509_crt_verify_hash (gnutls_x509_crt_t crt,
- unsigned int flags,
- const gnutls_datum_t * hash,
- const gnutls_datum_t * signature);
+
+ int gnutls_x509_privkey_sign_hash2 (gnutls_x509_privkey_t signer,
+ gnutls_digest_algorithm_t hash_algo,
+ unsigned int flags,
+ const gnutls_datum_t * hash_data,
+ gnutls_datum_t * signature);
int gnutls_x509_crt_get_verify_algorithm (gnutls_x509_crt_t crt,
const gnutls_datum_t * signature,