fixed compilation. Qt is completely gone

This commit is contained in:
csoler 2021-12-06 22:33:50 +01:00
parent 7dc5c90d63
commit b323a1635e
14 changed files with 13 additions and 234 deletions

View file

@ -33,7 +33,6 @@
#include <iostream>
#include "CryptoKey.h"
#include "SecureRNG.h"
#include "Useful.h"
#include <openssl/bn.h>
@ -134,7 +133,7 @@ ByteArray torControlHashedPassword(const ByteArray &password)
ByteArray salt(8);
RsRandom::random_bytes(&salt[0],8);
uint32_t count = ((quint32)16 + (96 & 15)) << ((96 >> 4) + 6);
uint32_t count = ((uint32_t)16 + (96 & 15)) << ((96 >> 4) + 6);
Sha1CheckSum md = RsDirUtil::sha1sum((salt+password).data(),count);