From d4882ea1a16af359f9aea4ab818a690e1d807d11 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 16 Jun 2013 11:30:30 +0000 Subject: - 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 --- modules/m_challenge.c | 7 +++++++ modules/m_oper.c | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'modules') 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)) -- cgit