mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Replace t_assert() with Assert().
Also use this assertions for Expects(), Ensures() and Unexpected().
This commit is contained in:
@@ -54,7 +54,7 @@ bool IsGoodModExpFirst(const openssl::BigNum &modexp, const openssl::BigNum &pri
|
||||
if (diff.isNegative() || diff.bitsSize() < kMinDiffBitsCount || modexp.bitsSize() < kMinDiffBitsCount) {
|
||||
return false;
|
||||
}
|
||||
t_assert(modexp.bytesSize() <= kMaxModExpSize);
|
||||
Assert(modexp.bytesSize() <= kMaxModExpSize);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -2396,7 +2396,7 @@ void ConnectionPrivate::pqAnswered() {
|
||||
LOG(("AuthKey Error: could not choose public RSA key"));
|
||||
return restart();
|
||||
}
|
||||
t_assert(rsaKey.isValid());
|
||||
Assert(rsaKey.isValid());
|
||||
|
||||
_authKeyData->server_nonce = res_pq_data.vserver_nonce;
|
||||
_authKeyData->new_nonce = rand_value<MTPint256>();
|
||||
@@ -3036,7 +3036,7 @@ void ConnectionPrivate::unlockKey() {
|
||||
|
||||
ConnectionPrivate::~ConnectionPrivate() {
|
||||
clearAuthKeyData();
|
||||
t_assert(_finished && _conn == nullptr && _conn4 == nullptr && _conn6 == nullptr);
|
||||
Assert(_finished && _conn == nullptr && _conn4 == nullptr && _conn6 == nullptr);
|
||||
}
|
||||
|
||||
void ConnectionPrivate::stop() {
|
||||
|
Reference in New Issue
Block a user