diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/m_challenge.c | 7 | ||||
-rw-r--r-- | modules/m_oper.c | 7 |
2 files changed, 14 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)) diff --git a/modules/m_oper.c b/modules/m_oper.c index 52d4033..976fdc4 100644 --- a/modules/m_oper.c +++ b/modules/m_oper.c @@ -95,6 +95,13 @@ m_oper(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_oper_notice(source_p, name, "requires SSL/TLS"); + return; + } + if (!EmptyString(conf->certfp)) { if (EmptyString(source_p->certfp) || strcasecmp(source_p->certfp, conf->certfp)) |