]> git.ipfire.org Git - thirdparty/squid.git/commit
Handle resummed sessions
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 5 Nov 2015 18:20:01 +0000 (20:20 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 5 Nov 2015 18:20:01 +0000 (20:20 +0200)
commitffbfd5beac8a229f2e1b40f91220ca8a80a01118
tree593914b11068a0b4f67219df0b37dc309ed3210d
parenta7300c7a59a8b95ed7da1beb63950cf5864a82db
Handle resummed sessions

On resumed sessions the SSL server will send a "Change Cipher Spec Protocol"
message instead of Certificates message.
After the CCS protocol message received we waiting an Finished SSL handshake
message. However this message may received encrypted and we can not decrypt it
in order to parse it correctly.

This patch after the CCS message received finishes parsing.

However maybe still messages from server must received and appended to
ServerBio::rbuf in order to sent later on SSL client in the case of splice.

This patch get back the ServerBio::record_ mechanism which is enabled/disabled
by the caller Ssl::PeekingPeerConnector class. The ServerBio code writes to
ServerBio::rbuf buffer as long as the ServerBio::record_ flag is set to true
by the Ssl::PeekingPeerConnector.
src/ssl/PeerConnector.cc
src/ssl/bio.cc
src/ssl/bio.h