#include <lib-lib/lib-lib.h>
-#if defined(USE_SSL) || (defined(USE_GNUTLS) && defined(HAVE_GNUTLS_OPENSSL_H))
+#if defined(HAVE_GNUTLS_OPENSSL_H)
#include <openssl/ssl.h>
#endif
}
static int handle_invalid_peer_certificate (long vfy_result) {
-#if defined (USE_SSL) || (defined (USE_GNUTLS) && defined (HAVE_GNUTLS_OPENSSL_H))
+#if defined (HAVE_GNUTLS_OPENSSL_H)
mutt_error (_("Error verifying certificate: %s"),
NONULL (X509_verify_cert_error_string (vfy_result)));
#else
smtp_dsn_set_ret (message, Ret_FULL);
}
-#if defined (USE_LIBESMTP) && (defined (USE_SSL) || defined (USE_GNUTLS))
+#ifdef USE_LIBESMTP
int send_smtp_check_usetls (const char* option, unsigned long p,
char* errbuf, ssize_t errlen) {
char* val = (char*) p;
if ((session = smtp_create_session ()) == NULL)
SMTPFAIL ("smtp_create_session");
-#if defined (USE_SSL) || (defined (USE_GNUTLS) && defined (HAVE_GNUTLS_OPENSSL_H))
+#ifdef HAVE_GNUTLS_OPENSSL_H
if (SmtpUseTLS != NULL && ascii_strncasecmp("enabled", SmtpUseTLS, 7) == 0) {
smtp_starttls_enable(session, Starttls_ENABLED);
} else if (SmtpUseTLS != NULL && ascii_strncasecmp("required", SmtpUseTLS, 8) == 0) {
SMTPFAIL ("smtp_auth_set_context");
}
-#if defined (USE_SSL) || (defined (USE_GNUTLS) && defined (HAVE_GNUTLS_OPENSSL_H))
+#ifdef HAVE_GNUTLS_OPENSSL_H
smtp_starttls_set_ctx (session, NULL);
#endif
smtp_set_eventcb (session, event_cb, NULL);