fips_verify_hmac_signature() now returns a boolean status
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 29 Aug 2007 09:43:02 +0000 (09:43 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 29 Aug 2007 09:43:02 +0000 (09:43 -0000)
src/charon/daemon.c

index 79ba39e..ede3048 100644 (file)
@@ -296,7 +296,7 @@ static bool initialize(private_daemon_t *this, bool syslog, level_t levels[])
 
 #ifdef INTEGRITY_TEST
        DBG1(DBG_DMN, "integrity check of libstrongswan code");
-       if (fips_verify_hmac_signature(hmac_key, hmac_signature) != SUCCESS)
+       if (!fips_verify_hmac_signature(hmac_key, hmac_signature))
        {
                DBG1(DBG_DMN, "  integrity check failed");
                return FALSE;