mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-01 23:00:58 +00:00
Fix build in Xcode and GCC.
This commit is contained in:
parent
e123399f7c
commit
33fce38f90
@ -450,7 +450,7 @@ inline bytes::vector HmacSha256(
|
|||||||
bytes::const_span key,
|
bytes::const_span key,
|
||||||
bytes::const_span data) {
|
bytes::const_span data) {
|
||||||
auto result = bytes::vector(kSha256Size);
|
auto result = bytes::vector(kSha256Size);
|
||||||
auto length = unsigned int(kSha256Size);
|
auto length = (unsigned int)kSha256Size;
|
||||||
|
|
||||||
HMAC(
|
HMAC(
|
||||||
EVP_sha256(),
|
EVP_sha256(),
|
||||||
|
@ -184,8 +184,8 @@ void _initMsgIdConstants() {
|
|||||||
const auto valid = (size == 16)
|
const auto valid = (size == 16)
|
||||||
|| (size == 17
|
|| (size == 17
|
||||||
&& (password[0] == '3')
|
&& (password[0] == '3')
|
||||||
&& ((password[1] >= 'Q') && (password[1] <= 'Z')
|
&& ((password[1] >= 'Q' && password[1] <= 'Z')
|
||||||
|| (password[1] >= 'a') && (password[1] <= 'f')))
|
|| (password[1] >= 'a' && password[1] <= 'f')))
|
||||||
|| (size >= 21
|
|| (size >= 21
|
||||||
&& (password[0] == '7')
|
&& (password[0] == '7')
|
||||||
&& (password[1] >= 'g')
|
&& (password[1] >= 'g')
|
||||||
|
Loading…
Reference in New Issue
Block a user