* honor the openssl configure define, so we don't die if we don't have it.
authorWilfried Göesgens <willi@citadel.org>
Thu, 20 Sep 2007 20:57:36 +0000 (20:57 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 20 Sep 2007 20:57:36 +0000 (20:57 +0000)
citadel/modules/imap/serv_imap.c
citadel/modules/pop3/serv_pop3.c
citadel/modules/smtp/serv_smtp.c

index 1454781aacde94685ed4e0d84f9800faadd65d56..19299eba19812ba13d906f6f8aa5845d91849088 100644 (file)
@@ -508,7 +508,9 @@ void imap_greeting(void)
  */
 void imaps_greeting(void) {
        CtdlModuleStartCryptoMsgs(NULL, NULL, NULL);
+#ifdef HAVE_OPENSSL
        if (!CC->redirect_ssl) CC->kill_me = 1;         /* kill session if no crypto */
+#endif
        imap_greeting();
 }
 
index fadb9f50cc15b0096111c3f147f096b7905d3aff..74b3255c957c74563bb3674fc657268afee5798c 100644 (file)
@@ -98,7 +98,9 @@ void pop3_greeting(void) {
  */
 void pop3s_greeting(void) {
        CtdlModuleStartCryptoMsgs(NULL, NULL, NULL);
+#ifdef HAVE_OPENSSL
        if (!CC->redirect_ssl) CC->kill_me = 1;         /* kill session if no crypto */
+#endif
        pop3_greeting();
 }
 
index df9b3d632eea8e49cd6bb035c90ac76367dad85b..ac60e79d7311cfaa73eea5233bfe67ced6c47a66 100644 (file)
@@ -166,7 +166,9 @@ void smtp_greeting(int is_msa)
  */
 void smtps_greeting(void) {
        CtdlModuleStartCryptoMsgs(NULL, NULL, NULL);
+#ifdef HAVE_OPENSSL
        if (!CC->redirect_ssl) CC->kill_me = 1;         /* kill session if no crypto */
+#endif
        smtp_greeting(0);
 }