]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ssl/ServerBump.cc
4 * DEBUG: section 33 Client-side Routines
10 #include "client_side.h"
13 #include "ssl/ServerBump.h"
17 CBDATA_NAMESPACED_CLASS_INIT(Ssl
, ServerBump
);
20 Ssl::ServerBump::ServerBump(HttpRequest
*fakeRequest
, StoreEntry
*e
):
24 debugs(33, 4, HERE
<< "will peek at " << request
->GetHost() << ':' << request
->port
);
25 const char *uri
= urlCanonical(request
);
30 entry
= storeCreateEntry(uri
, uri
, request
->flags
, request
->method
);
31 // We do not need to be a client because the error contents will be used
32 // later, but an entry without any client will trim all its contents away.
33 sc
= storeClientListAdd(entry
, this);
36 Ssl::ServerBump::~ServerBump()
38 debugs(33, 4, HERE
<< "destroying");
40 debugs(33, 4, HERE
<< *entry
);
41 storeUnregister(sc
, entry
, this);
44 cbdataReferenceDone(sslErrors
);