diff --git a/benchmark/check_tls.cpp b/benchmark/check_tls.cpp index e21d41198..a2dd73255 100644 --- a/benchmark/check_tls.cpp +++ b/benchmark/check_tls.cpp @@ -113,11 +113,11 @@ td::Result test_tls(const td::string &url) { add_random(32); add_string("\x20"); add_random(32); - add_string("\x00\x22"); + add_string("\x00\x20"); add_grease(0); add_string( "\x13\x01\x13\x02\x13\x03\xc0\x2b\xc0\x2f\xc0\x2c\xc0\x30\xcc\xa9\xcc\xa8\xc0\x13\xc0\x14\x00\x9c\x00\x9d\x00" - "\x2f\x00\x35\x00\x0a\x01\x00\x01\x91"); + "\x2f\x00\x35\x01\x00\x01\x93"); add_grease(2); add_string("\x00\x00\x00\x00"); add_length(url.size() + 5); @@ -130,7 +130,7 @@ td::Result test_tls(const td::string &url) { add_string( "\x00\x1d\x00\x17\x00\x18\x00\x0b\x00\x02\x01\x00\x00\x23\x00\x00\x00\x10\x00\x0e\x00\x0c\x02\x68\x32\x08\x68" "\x74\x74\x70\x2f\x31\x2e\x31\x00\x05\x00\x05\x01\x00\x00\x00\x00\x00\x0d\x00\x14\x00\x12\x04\x03\x08\x04\x04" - "\x01\x05\x03\x08\x05\x05\x01\x08\x06\x06\x01\x02\x01\x00\x12\x00\x00\x00\x33\x00\x2b\x00\x29"); + "\x01\x05\x03\x08\x05\x05\x01\x08\x06\x06\x01\x00\x12\x00\x00\x00\x33\x00\x2b\x00\x29"); add_grease(4); add_string("\x00\x01\x00\x00\x1d\x00\x20"); add_key(); diff --git a/td/mtproto/TlsInit.cpp b/td/mtproto/TlsInit.cpp index 75d419f14..aa3e6e672 100644 --- a/td/mtproto/TlsInit.cpp +++ b/td/mtproto/TlsInit.cpp @@ -125,10 +125,10 @@ class TlsHello { Op::zero(32), Op::string("\x20"), Op::random(32), - Op::string("\x00\x22"), + Op::string("\x00\x20"), Op::grease(0), Op::string("\x13\x01\x13\x02\x13\x03\xc0\x2b\xc0\x2f\xc0\x2c\xc0\x30\xcc\xa9\xcc\xa8\xc0\x13\xc0\x14\x00\x9c" - "\x00\x9d\x00\x2f\x00\x35\x00\x0a\x01\x00\x01\x91"), + "\x00\x9d\x00\x2f\x00\x35\x01\x00\x01\x93"), Op::grease(2), Op::string("\x00\x00\x00\x00"), Op::begin_scope(), @@ -144,7 +144,7 @@ class TlsHello { Op::string( "\x00\x1d\x00\x17\x00\x18\x00\x0b\x00\x02\x01\x00\x00\x23\x00\x00\x00\x10\x00\x0e\x00\x0c\x02\x68\x32\x08" "\x68\x74\x74\x70\x2f\x31\x2e\x31\x00\x05\x00\x05\x01\x00\x00\x00\x00\x00\x0d\x00\x14\x00\x12\x04\x03\x08" - "\x04\x04\x01\x05\x03\x08\x05\x05\x01\x08\x06\x06\x01\x02\x01\x00\x12\x00\x00\x00\x33\x00\x2b\x00\x29"), + "\x04\x04\x01\x05\x03\x08\x05\x05\x01\x08\x06\x06\x01\x00\x12\x00\x00\x00\x33\x00\x2b\x00\x29"), Op::grease(4), Op::string("\x00\x01\x00\x00\x1d\x00\x20"), Op::key(),