Ignore libgcrypt errors in CryptoHash::CryptoHash().

Postponed until after 2.0 when I'll use excpetions.

Should be safe as we check basic functioning in Crypto::testSha256().
This commit is contained in:
Felix Geyer 2015-05-14 20:44:17 +02:00
parent 7a2c02f0df
commit 7db9c78855

View File

@ -49,6 +49,7 @@ CryptoHash::CryptoHash(CryptoHash::Algorithm algo)
gcry_error_t error = gcry_md_open(&d->ctx, algoGcrypt, 0); gcry_error_t error = gcry_md_open(&d->ctx, algoGcrypt, 0);
Q_ASSERT(error == 0); // TODO: error handling Q_ASSERT(error == 0); // TODO: error handling
Q_UNUSED(error);
d->hashLen = gcry_md_get_algo_dlen(algoGcrypt); d->hashLen = gcry_md_get_algo_dlen(algoGcrypt);
} }