Changed the static function name in openssl_rsa_public_key object

Removed unused chunk variable from PTS verify_quote_signature function
This commit is contained in:
Sansar Choinyambuu
2011-11-28 21:17:16 +01:00
committed by Andreas Steffen
parent 5242a729ca
commit 824ace105a
4 changed files with 8 additions and 9 deletions
@@ -119,7 +119,7 @@ error:
/**
* Verification of an EMPSA PKCS1 signature described in PKCS#1
*/
static bool verify_rsa_signature(private_openssl_rsa_public_key_t *this,
static bool verify_signature(private_openssl_rsa_public_key_t *this,
int type, chunk_t data, chunk_t signature)
{
bool valid = FALSE;
@@ -187,7 +187,7 @@ METHOD(public_key_t, verify, bool,
switch (scheme)
{
case SIGN_RSA_SHA1:
return verify_rsa_signature(this, NID_sha1, data, signature);
return verify_signature(this, NID_sha1, data, signature);
case SIGN_RSA_EMSA_PKCS1_NULL:
return verify_emsa_pkcs1_signature(this, NID_undef, data, signature);
case SIGN_RSA_EMSA_PKCS1_SHA1: