2 * Copyright (C) 1996-2023 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 #include "compat/openssl.h"
16 #if HAVE_OPENSSL_SSL_H
17 #include <openssl/ssl.h>
21 #if HAVE_GNUTLS_GNUTLS_H
22 #include <gnutls/gnutls.h>
29 typedef std::shared_ptr
<SSL_CTX
> ContextPointer
;
32 typedef std::shared_ptr
<struct gnutls_certificate_credentials_st
> ContextPointer
;
35 // use void* so we can check against nullptr
36 typedef std::shared_ptr
<void> ContextPointer
;
40 } // namespace Security
42 #endif /* SQUID_SRC_SECURITY_CONTEXT_H */