From 5919df439b43f90642a7bbb21a03895e4b7c261d Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 21 Mar 2015 04:58:32 -0700 Subject: [PATCH] Define Security::ContextPointer for GnuTLS --- src/security/Context.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/security/Context.h b/src/security/Context.h index 36a6163429..84a59da25e 100644 --- a/src/security/Context.h +++ b/src/security/Context.h @@ -10,15 +10,25 @@ #define SQUID_SRC_SECURITY_CONTEXT_H #if USE_OPENSSL -#include "ssl/gadgets.h" +#if HAVE_OPENSSL_SSL_H +#include +#endif +#endif + +#if USE_GNUTLS +#if HAVE_GNUTLS_GNUTLS_H +#include +#endif #endif namespace Security { #if USE_OPENSSL -// XXX: make this a SSL_CTX_Pointer typedef SSL_CTX* ContextPointer; +#elif USE_GNUTLS +typedef gnutls_certificate_credentials_t* ContextPointer; + #else // use void* so we can check against NULL typedef void* ContextPointer; -- 2.47.3