fixed certificate verification bug!
[strongswan.git] / src / libstrongswan / crypto / x509.c
index 8a55255..e9004fc 100755 (executable)
@@ -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);
 }
 
 /**