]> git.ipfire.org Git - thirdparty/squid.git/blob - src/security/Session.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / security / Session.h
1 /*
2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #ifndef SQUID_SRC_SECURITY_SESSION_H
10 #define SQUID_SRC_SECURITY_SESSION_H
11
12 #if USE_OPENSSL
13 #if HAVE_OPENSSL_SSL_H
14 #include <openssl/ssl.h>
15 #endif
16 #endif
17
18 #if USE_GNUTLS
19 #if HAVE_GNUTLS_GNUTLS_H
20 #include <gnutls/gnutls.h>
21 #endif
22 #endif
23
24 namespace Security {
25
26 #if USE_OPENSSL
27 typedef SSL* SessionPointer;
28
29 #elif USE_GNUTLS
30 typedef gnutls_session_t SessionPointer;
31
32 #else
33 // use void* so we can check against NULL
34 typedef void* SessionPointer;
35 #endif
36
37 } // namespace Security
38
39 #endif /* SQUID_SRC_SECURITY_SESSION_H */
40