Add more Crypto::initalized() assertions.

This commit is contained in:
Felix Geyer 2011-11-20 11:46:09 +01:00
parent e5bba14994
commit 11ccdd4c9c
2 changed files with 8 additions and 0 deletions

View file

@ -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) {