diff --git a/td/mtproto/TlsInit.cpp b/td/mtproto/TlsInit.cpp index 4e956a6a9..75d419f14 100644 --- a/td/mtproto/TlsInit.cpp +++ b/td/mtproto/TlsInit.cpp @@ -93,6 +93,33 @@ class TlsHello { static const TlsHello &get_default() { static TlsHello result = [] { TlsHello res; +#if TD_DARWIN + res.ops_ = { + Op::string("\x16\x03\x01\x02\x00\x01\x00\x01\xfc\x03\x03"), + Op::zero(32), + Op::string("\x20"), + Op::random(32), + Op::string("\x00\x34\x13\x03\x13\x01\x13\x02\xc0\x2c\xc0\x2b\xc0\x24\xc0\x23\xc0\x0a\xc0\x09\xcc\xa9\xc0\x30" + "\xc0\x2f\xc0\x28\xc0\x27\xc0\x14\xc0\x13\xcc\xa8\x00\x9d\x00\x9c\x00\x3d\x00\x3c\x00\x35\x00\x2f" + "\xc0\x08\xc0\x12\x00\x0a\x01\x00\x01\x7f\xff\x01\x00\x01\x00\x00\x00"), + Op::begin_scope(), + Op::begin_scope(), + Op::string("\x00"), + Op::begin_scope(), + Op::domain(), + Op::end_scope(), + Op::end_scope(), + Op::end_scope(), + Op::string("\x00\x17\x00\x00\x00\x0d\x00\x18\x00\x16\x04\x03\x08\x04\x04\x01\x05\x03\x02\x03\x08\x05\x08\x05" + "\x05\x01\x08\x06\x06\x01\x02\x01\x00\x05\x00\x05\x01\x00\x00\x00\x00\x33\x74\x00\x00\x00\x12\x00" + "\x00\x00\x10\x00\x30\x00\x2e\x02\x68\x32\x05\x68\x32\x2d\x31\x36\x05\x68\x32\x2d\x31\x35\x05\x68" + "\x32\x2d\x31\x34\x08\x73\x70\x64\x79\x2f\x33\x2e\x31\x06\x73\x70\x64\x79\x2f\x33\x08\x68\x74\x74" + "\x70\x2f\x31\x2e\x31\x00\x0b\x00\x02\x01\x00\x00\x33\x00\x26\x00\x24\x00\x1d\x00\x20"), + Op::key(), + Op::string("\x00\x2d\x00\x02\x01\x01\x00\x2b\x00\x09\x08\x03\x04\x03\x03\x03\x02\x03\x01\x00\x0a\x00\x0a\x00" + "\x08\x00\x1d\x00\x17\x00\x18\x00\x19\x00\x15")}; + res.grease_size_ = 0; +#else res.ops_ = { Op::string("\x16\x03\x01\x02\x00\x01\x00\x01\xfc\x03\x03"), Op::zero(32), @@ -127,6 +154,7 @@ class TlsHello { Op::grease(3), Op::string("\x00\x01\x00\x00\x15")}; res.grease_size_ = 7; +#endif return res; }(); return result;