]> 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)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 9 Apr 2021 22:53:17 +0000 (22:53 +0000)
Both %codes were logged as dashes when Squid negotiated TLS v1.3.

This is a Measurement Factory project.

src/security/NegotiationHistory.cc

index 3a1130faa5649c1e61f972c42ffe38f4f8998e53..8ce28c29ece0b1e248147dc30964e6969eafcbe0 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);