summaryrefslogtreecommitdiff
path: root/modules/m_challenge.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-16 11:30:30 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-16 11:30:30 +0000
commitd4882ea1a16af359f9aea4ab818a690e1d807d11 (patch)
tree8f61987b87e066cbc832ccfedd5853c0e59d057c /modules/m_challenge.c
parentef672ecfcc78b21f04143c6f21c5450c972cdffc (diff)
- Add operator::ssl_connection_required configuration option
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2249 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/m_challenge.c')
-rw-r--r--modules/m_challenge.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/m_challenge.c b/modules/m_challenge.c
index 83fa9ea..29ff32f 100644
--- a/modules/m_challenge.c
+++ b/modules/m_challenge.c
@@ -144,6 +144,13 @@ m_challenge(struct Client *client_p, struct Client *source_p,
return;
}
+ if (IsConfSSL(conf) && !HasUMode(source_p, UMODE_SSL))
+ {
+ sendto_one(source_p, form_str(ERR_NOOPERHOST), me.name, source_p->name);
+ failed_challenge_notice(source_p, conf->name, "requires SSL/TLS");
+ return;
+ }
+
if (!EmptyString(conf->certfp))
{
if (EmptyString(source_p->certfp) || strcasecmp(source_p->certfp, conf->certfp))