浏览代码

OpenedSessionsTLS13 counter

Source commit: 01d076f6e08ee6474c31f0d10cec1ec7c421ef6e
Martin Prikryl 5 年之前
父节点
当前提交
2f713de2e6
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      source/core/Terminal.cpp

+ 5 - 1
source/core/Terminal.cpp

@@ -7790,7 +7790,11 @@ void __fastcall TTerminal::CacheCertificate(const UnicodeString & CertificateSto
 void __fastcall TTerminal::CollectTlsUsage(const UnicodeString & TlsVersionStr)
 {
   // see SSL_get_version() in OpenSSL ssl_lib.c
-  if (TlsVersionStr == L"TLSv1.2")
+  if (TlsVersionStr == L"TLSv1.3")
+  {
+    Configuration->Usage->Inc(L"OpenedSessionsTLS13");
+  }
+  else if (TlsVersionStr == L"TLSv1.2")
   {
     Configuration->Usage->Inc(L"OpenedSessionsTLS12");
   }