diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-06-04 08:51:11 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-06-04 08:59:45 +0200 |
commit | 0d66f1fc47ec0dec5bfe56928cc46ed47842b360 (patch) | |
tree | 59e323c895b9ce5340b28f55109aed00bad70e8e /lib/x509/privkey.c | |
parent | b9f7a3d505d4be7521c3a6927b776ba02be33e5c (diff) | |
download | gnutls-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/privkey.c')
-rw-r--r-- | lib/x509/privkey.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/lib/x509/privkey.c b/lib/x509/privkey.c index 08d89b5621..99f626f1d6 100644 --- a/lib/x509/privkey.c +++ b/lib/x509/privkey.c @@ -1641,45 +1641,6 @@ gnutls_x509_privkey_sign_data (gnutls_x509_privkey_t key, /** - * gnutls_x509_privkey_verify_data: - * @key: Holds the key - * @flags: should be 0 for now - * @data: holds the data to be signed - * @signature: contains the signature - * - * This function will verify the given signed data, using the - * parameters in the private key. - * - * Returns: In case of a verification failure %GNUTLS_E_PK_SIG_VERIFY_FAILED - * is returned, and a positive code on success. - * - * Deprecated: Use gnutls_pubkey_verify_data(). - */ -int -gnutls_x509_privkey_verify_data (gnutls_x509_privkey_t key, - unsigned int flags, - const gnutls_datum_t * data, - const gnutls_datum_t * signature) -{ - int result; - - if (key == NULL) - { - gnutls_assert (); - return GNUTLS_E_INVALID_REQUEST; - } - - result = _gnutls_x509_privkey_verify_signature (data, signature, key); - if (result < 0) - { - gnutls_assert (); - return result; - } - - return result; -} - -/** * gnutls_x509_privkey_fix: * @key: Holds the key * |