2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_SRC_SECURITY_CONTEXT_H
10 #define SQUID_SRC_SECURITY_CONTEXT_H
15 #if HAVE_OPENSSL_SSL_H
16 #include <openssl/ssl.h>
20 #if HAVE_GNUTLS_GNUTLS_H
21 #include <gnutls/gnutls.h>
28 typedef std::shared_ptr
<SSL_CTX
> ContextPointer
;
31 typedef std::shared_ptr
<struct gnutls_certificate_credentials_st
> ContextPointer
;
34 // use void* so we can check against nullptr
35 typedef std::shared_ptr
<void> ContextPointer
;
39 } // namespace Security
41 #endif /* SQUID_SRC_SECURITY_CONTEXT_H */