Add more Crypto::initalized() assertions.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user