mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
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:
parent
7a2c02f0df
commit
7db9c78855
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user