]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/security/Session.h
Handling missing issuer certificates for TLSv1.3 (#766)
[thirdparty/squid.git] / src / security / Session.h
index d32bd44696754357b91b28ae82e4b9b84a282290..52b3681691cf0015ef1dec65cd1dfaa1467768d0 100644 (file)
@@ -41,6 +41,8 @@ class PeerOptions;
 bool CreateServerSession(const Security::ContextPointer &, const Comm::ConnectionPointer &, Security::PeerOptions &, const char *squidCtx);
 
 #if USE_OPENSSL
+typedef SSL Connection;
+
 typedef std::shared_ptr<SSL> SessionPointer;
 
 typedef std::unique_ptr<SSL_SESSION, HardFun<void, SSL_SESSION*, &SSL_SESSION_free>> SessionStatePointer;
@@ -53,6 +55,8 @@ inline void squid_gnutls_free(void *d) {gnutls_free(d);}
 typedef std::unique_ptr<gnutls_datum_t, HardFun<void, void*, &Security::squid_gnutls_free>> SessionStatePointer;
 
 #else
+typedef std::nullptr_t Connection;
+
 typedef std::shared_ptr<void> SessionPointer;
 
 typedef std::unique_ptr<int> SessionStatePointer;