Clear unreachable code warnings under VC++
parent
1a5155fd96
commit
348e8e3b30
12
fips140.cpp
12
fips140.cpp
|
|
@ -47,31 +47,35 @@ bool PowerUpSelfTestInProgressOnThisThread()
|
||||||
{
|
{
|
||||||
#if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2
|
#if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2
|
||||||
return s_inProgress;
|
return s_inProgress;
|
||||||
#endif
|
#else
|
||||||
return false;
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetPowerUpSelfTestInProgressOnThisThread(bool inProgress)
|
void SetPowerUpSelfTestInProgressOnThisThread(bool inProgress)
|
||||||
{
|
{
|
||||||
CRYPTOPP_UNUSED(inProgress);
|
|
||||||
#if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2
|
#if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2
|
||||||
s_inProgress = inProgress;
|
s_inProgress = inProgress;
|
||||||
|
#else
|
||||||
|
CRYPTOPP_UNUSED(inProgress);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void EncryptionPairwiseConsistencyTest_FIPS_140_Only(const PK_Encryptor &encryptor, const PK_Decryptor &decryptor)
|
void EncryptionPairwiseConsistencyTest_FIPS_140_Only(const PK_Encryptor &encryptor, const PK_Decryptor &decryptor)
|
||||||
{
|
{
|
||||||
CRYPTOPP_UNUSED(encryptor), CRYPTOPP_UNUSED(decryptor);
|
|
||||||
#if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2
|
#if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2
|
||||||
EncryptionPairwiseConsistencyTest(encryptor, decryptor);
|
EncryptionPairwiseConsistencyTest(encryptor, decryptor);
|
||||||
|
#else
|
||||||
|
CRYPTOPP_UNUSED(encryptor), CRYPTOPP_UNUSED(decryptor);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void SignaturePairwiseConsistencyTest_FIPS_140_Only(const PK_Signer &signer, const PK_Verifier &verifier)
|
void SignaturePairwiseConsistencyTest_FIPS_140_Only(const PK_Signer &signer, const PK_Verifier &verifier)
|
||||||
{
|
{
|
||||||
CRYPTOPP_UNUSED(signer), CRYPTOPP_UNUSED(verifier);
|
|
||||||
#if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2
|
#if CRYPTOPP_ENABLE_COMPLIANCE_WITH_FIPS_140_2
|
||||||
SignaturePairwiseConsistencyTest(signer, verifier);
|
SignaturePairwiseConsistencyTest(signer, verifier);
|
||||||
|
#else
|
||||||
|
CRYPTOPP_UNUSED(signer), CRYPTOPP_UNUSED(verifier);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue