]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Handshake Error: ccs received early
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 14 Apr 2016 17:31:46 +0000 (20:31 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 14 Apr 2016 17:31:46 +0000 (20:31 +0300)
Some servers cause an SSL handshake error with peek and splice.
The problem is related to the TLS Session Tickets extension handling. Squid
expects always a Tls Session Tickets extension, included in server hello
message, to assume that the ticket accepted and the session is a resumed
session, which is not always true.

This is a Measurement Factory project

src/ssl/bio.cc

index 55e49fc07cf0644f793a49f4b4c0cd5136d3df89..034661fbc7fda29f3e596ecd846ab72b9aa27d31 100644 (file)
@@ -518,9 +518,7 @@ Ssl::ServerBio::resumingSession()
         return clientFeatures.sessionId == receivedHelloFeatures_.sessionId;
 
     // is this a session resuming attempt using TLS tickets?
-    if (clientFeatures.hasTlsTicket &&
-            receivedHelloFeatures_.tlsTicketsExtension &&
-            receivedHelloFeatures_.hasCcsOrNst)
+    if (clientFeatures.hasTlsTicket && receivedHelloFeatures_.hasCcsOrNst)
         return true;
 
     return false;