From 9a463768eac2b75c15102a54dfb18e0bd75f4cb4 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sat, 5 Jul 2014 23:11:45 +0200 Subject: [PATCH] complain about RequireSSL with no SSL versions enabled --- src/drv_imap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/drv_imap.c b/src/drv_imap.c index d8a4692..13e4f37 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -2364,6 +2364,11 @@ imap_parse_store( conffile_t *cfg, store_conf_t **storep ) server->use_ssl = server->sconf.use_sslv2 | server->sconf.use_sslv3 | server->sconf.use_tlsv1 | server->sconf.use_tlsv11 | server->sconf.use_tlsv12; + if (server->require_ssl && !server->use_ssl) { + error( "%s '%s' requires SSL but no SSL versions enabled\n", type, name ); + cfg->err = 1; + return 1; + } #endif } if (store) {