TSG-8261,TSG-8291: 部分QUIC RFC9000未解析出SNI/User-Agent字段

This commit is contained in:
liuxueli
2021-11-02 19:55:46 +03:00
parent a6d1dbf9d2
commit eecd661b91
26 changed files with 1757 additions and 1490 deletions

View File

@@ -49,6 +49,7 @@ extern "C" unsigned char QUIC_TEST_PLUG_ENTRY(stSessionInfo *session_info, void
}
quic_info = (struct _quic_info *)session_info->app_info;
cJSON_AddStringToObject(ctx, "SNI", (char *)(quic_info->client_hello->ext_tags[quic_info->client_hello->sni_idx].value));
cJSON_AddStringToObject(ctx, "UA", (char *)(quic_info->client_hello->ext_tags[quic_info->client_hello->ua_idx].value));
break;
case QUIC_USEING_VERSION:
version = *(unsigned int *)(session_info->buf);