]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ssl/ServerBump.cc
2 * DEBUG: section 33 Client-side Routines
8 #include "client_side.h"
10 #include "ssl/ServerBump.h"
12 #include "StoreClient.h"
15 CBDATA_NAMESPACED_CLASS_INIT(Ssl
, ServerBump
);
17 Ssl::ServerBump::ServerBump(HttpRequest
*fakeRequest
, StoreEntry
*e
, Ssl::BumpMode md
):
22 debugs(33, 4, HERE
<< "will peek at " << request
->GetHost() << ':' << request
->port
);
23 const char *uri
= urlCanonical(request
.getRaw());
26 entry
->lock("Ssl::ServerBump");
28 entry
= storeCreateEntry(uri
, uri
, request
->flags
, request
->method
);
29 // We do not need to be a client because the error contents will be used
30 // later, but an entry without any client will trim all its contents away.
31 sc
= storeClientListAdd(entry
, this);
34 Ssl::ServerBump::~ServerBump()
36 debugs(33, 4, HERE
<< "destroying");
38 debugs(33, 4, HERE
<< *entry
);
39 storeUnregister(sc
, entry
, this);
40 entry
->unlock("Ssl::ServerBump");
42 cbdataReferenceDone(sslErrors
);