diff options
Diffstat (limited to 'test/ssl_test_plug.cpp')
| -rw-r--r-- | test/ssl_test_plug.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ssl_test_plug.cpp b/test/ssl_test_plug.cpp index e4cbbec..9f956e6 100644 --- a/test/ssl_test_plug.cpp +++ b/test/ssl_test_plug.cpp @@ -83,10 +83,14 @@ extern "C" unsigned char SSL_TEST_PLUG_ENTRY(stSessionInfo *session_info, void * break; } - if (a_ssl->stClientHello->server_name != NULL && strlen((char *)(a_ssl->stClientHello->server_name)) > 0) + if (strlen((char *)(a_ssl->stClientHello->server_name)) > 0) { cJSON_AddStringToObject(ctx, (const char *)"ssl_sni", (const char *)(a_ssl->stClientHello->server_name)); } + if (a_ssl->stClientHello->encrypt_chello != NULL) + { + cJSON_AddStringToObject(ctx, (const char *)"ssl_ech", "1"); + } if (a_ssl->stClientHello->encrypted_server_name.esni != NULL) { |
