Skip to content

Commit

Permalink
Drop obsolete GCRYPT_HAS_SALSA20 ifdef.
Browse files Browse the repository at this point in the history
  • Loading branch information
debfx authored and droidmonkey committed Oct 3, 2016
1 parent dee331d commit 7c7014d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/crypto/Crypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,11 @@ bool Crypto::checkAlgorithms()
qWarning("Crypto::checkAlgorithms: %s", qPrintable(m_errorStr));
return false;
}
#ifdef GCRYPT_HAS_SALSA20
if (gcry_cipher_algo_info(GCRY_CIPHER_SALSA20, GCRYCTL_TEST_ALGO, nullptr, nullptr) != 0) {
m_errorStr = "GCRY_CIPHER_SALSA20 not found.";
qWarning("Crypto::checkAlgorithms: %s", qPrintable(m_errorStr));
return false;
}
#endif
if (gcry_md_test_algo(GCRY_MD_SHA256) != 0) {
m_errorStr = "GCRY_MD_SHA256 not found.";
qWarning("Crypto::checkAlgorithms: %s", qPrintable(m_errorStr));
Expand Down

0 comments on commit 7c7014d

Please sign in to comment.