* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include "mutt.h"
#include "mx.h"
#include "url.h"
return -2;
}
-#if defined(USE_SSL) && !defined(USE_NSS)
+#if (defined(USE_SSL) || defined(USE_GNUTLS)) && !defined(USE_NSS)
/* Attempt STLS if available and desired. */
if (pop_data->cmd_stls && !pop_data->conn->ssf)
{
mutt_error ("%s", pop_data->err_msg);
mutt_sleep (2);
}
+#ifdef USE_SSL
else if (mutt_ssl_starttls (pop_data->conn))
+#elif USE_GNUTLS
+ else if (mutt_gnutls_starttls (pop_data->conn))
+#endif
{
mutt_error (_("Could not negotiate TLS connection"));
mutt_sleep (2);