From: Wilfried Göesgens Date: Thu, 20 Sep 2007 20:57:36 +0000 (+0000) Subject: * honor the openssl configure define, so we don't die if we don't have it. X-Git-Tag: v7.86~3057 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=b3e5a85146c40bfcc4ba370e15ef126cd77d8a7c * honor the openssl configure define, so we don't die if we don't have it. --- 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); }