From b3e5a85146c40bfcc4ba370e15ef126cd77d8a7c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Thu, 20 Sep 2007 20:57:36 +0000 Subject: [PATCH] * honor the openssl configure define, so we don't die if we don't have it. --- citadel/modules/imap/serv_imap.c | 2 ++ citadel/modules/pop3/serv_pop3.c | 2 ++ citadel/modules/smtp/serv_smtp.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/citadel/modules/imap/serv_imap.c b/citadel/modules/imap/serv_imap.c index 1454781aa..19299eba1 100644 --- a/citadel/modules/imap/serv_imap.c +++ b/citadel/modules/imap/serv_imap.c @@ -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(); } diff --git a/citadel/modules/pop3/serv_pop3.c b/citadel/modules/pop3/serv_pop3.c index fadb9f50c..74b3255c9 100644 --- a/citadel/modules/pop3/serv_pop3.c +++ b/citadel/modules/pop3/serv_pop3.c @@ -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(); } diff --git a/citadel/modules/smtp/serv_smtp.c b/citadel/modules/smtp/serv_smtp.c index df9b3d632..ac60e79d7 100644 --- a/citadel/modules/smtp/serv_smtp.c +++ b/citadel/modules/smtp/serv_smtp.c @@ -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); } -- 2.30.2