mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-20 18:56:07 -05:00
Add more Crypto::initalized() assertions.
This commit is contained in:
parent
e5bba14994
commit
11ccdd4c9c
2 changed files with 8 additions and 0 deletions
|
|
@ -19,6 +19,8 @@
|
|||
|
||||
#include <gcrypt.h>
|
||||
|
||||
#include "crypto/Crypto.h"
|
||||
|
||||
class CryptoHashPrivate
|
||||
{
|
||||
public:
|
||||
|
|
@ -31,6 +33,8 @@ CryptoHash::CryptoHash(CryptoHash::Algorithm algo)
|
|||
{
|
||||
Q_D(CryptoHash);
|
||||
|
||||
Q_ASSERT(Crypto::initalized());
|
||||
|
||||
int algoGcrypt;
|
||||
|
||||
switch (algo) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue