added gnutls backend and moved backend code into new files
[ircu2.10.12-pk.git] / include / ssl.h
index db4cad0f50fcc46f363a36e8e08e1034a80c5cca..03494cbc9231e9fcd8b54b0d563dbbed6962475f 100644 (file)
@@ -24,7 +24,7 @@ enum SSLDataType {
   SSLData_Client
 };
 
-#if defined(HAVE_GNUTLS_GNUTLS_H)
+#if defined(HAVE_GNUTLS)
 #include <gnutls/gnutls.h>
 
 struct SSLConnection {
@@ -39,7 +39,7 @@ struct SSLListener {
   gnutls_certificate_credentials_t credentials;
 };
 
-#elif defined(HAVE_OPENSSL_SSL_H)
+#elif defined(HAVE_OPENSSL)
 #include <openssl/rand.h>
 #include <openssl/ssl.h>
 #include <openssl/err.h>