mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-20 03:44:15 +08:00
Fix TLS 1.3 middlebox
This commit is contained in:
@@ -2455,6 +2455,9 @@ int tls_ctx_init(TLS_CTX *ctx, int protocol, int is_client)
|
||||
|
||||
ctx->is_client = is_client ? 1 : 0;
|
||||
|
||||
// TLS 1.3 middlebox compatibility
|
||||
ctx->accept_change_cipher_spec = 1;
|
||||
|
||||
|
||||
// supported_versions
|
||||
memcpy(ctx->supported_versions, supported_versions, sizeof(supported_versions));
|
||||
|
||||
Reference in New Issue
Block a user