]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
%ssl::<negotiated_version, %ssl::>negotiated_version for TLS/1.3 (#803)
authorChristos Tsantilas <christos@chtsanti.net>
Thu, 8 Apr 2021 17:32:32 +0000 (17:32 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Thu, 6 May 2021 04:56:26 +0000 (16:56 +1200)
Both %codes were logged as dashes when Squid negotiated TLS v1.3.

This is a Measurement Factory project.

src/security/NegotiationHistory.cc

index e4b758c2f6f5e5dc99a74f2a3dcf507fee1d696a..b68716384702d6ca9be074f4d00e4227dd6790bb 100644 (file)
@@ -38,6 +38,10 @@ static AnyP::ProtocolVersion
 toProtocolVersion(const int v)
 {
     switch(v) {
+#if defined(TLS1_3_VERSION)
+    case TLS1_3_VERSION:
+        return AnyP::ProtocolVersion(AnyP::PROTO_TLS, 1, 3);
+#endif
 #if defined(TLS1_2_VERSION)
     case TLS1_2_VERSION:
         return AnyP::ProtocolVersion(AnyP::PROTO_TLS, 1, 2);