fixed certificate verification bug!

This commit is contained in:
Martin Willi
2006-09-14 12:22:08 +00:00
parent 567e2a7822
commit 8a95c322c5
2 changed files with 19 additions and 5 deletions
+2 -1
View File
@@ -1045,7 +1045,8 @@ static cert_status_t get_status(const private_x509_t *this)
*/
static bool verify(const private_x509_t *this, const rsa_public_key_t *signer)
{
return signer->verify_emsa_pkcs1_signature(signer, this->tbsCertificate, this->signature);
return (signer->verify_emsa_pkcs1_signature(signer, this->tbsCertificate,
this->signature) == SUCCESS);
}
/**