mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-08-04 15:19:47 +00:00
Signed-off-by: raytosa <rayto_sa@163.com>
This commit is contained in:
parent
9da50be1bd
commit
00dfbada79
1 changed files with 6 additions and 6 deletions
|
|
@ -46,12 +46,12 @@
|
|||
-define(MAX_IN_PACKET_SIZE, 65535). % sizeof(uint16) - 1
|
||||
-define(MAX_OUT_PACKET_SIZE, 16384). % 2^14 https://tools.ietf.org/html/rfc8446#section-5.1
|
||||
|
||||
-define(TLS_10_VERSION, 3, 1).
|
||||
-define(TLS_12_VERSION, 3, 3).
|
||||
-define(TLS_13_VERSION, 3, 4).
|
||||
-define(TLS_REC_CHANGE_CIPHER, 20).
|
||||
-define(TLS_REC_HANDSHAKE, 22).
|
||||
-define(TLS_REC_DATA, 23).
|
||||
-define(TLS_10_VERSION, 63, 8). %%-----yhb 3-63,1-8
|
||||
-define(TLS_12_VERSION, 63, 10). %%-----yhb 3-63,3-10
|
||||
-define(TLS_13_VERSION, 63, 11). %%-----yhb 3-63,4-11
|
||||
-define(TLS_REC_CHANGE_CIPHER, 53). %%-----yhb 20-53
|
||||
-define(TLS_REC_HANDSHAKE, 55). %%-----yhb 22-55
|
||||
-define(TLS_REC_DATA, 56). %%-----yhb 23-56
|
||||
|
||||
-define(TLS_12_DATA, ?TLS_REC_DATA, ?TLS_12_VERSION).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue