diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-06-15 19:17:25 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-06-15 19:17:25 +0000 |
commit | ce95a3cb27a9e0fe669a81e778bf8166dba47e43 (patch) | |
tree | a37a9f806797fcd21e616c6e41293d5456ff37e8 /modules/core | |
parent | 625717a9fb3815adc180680339719b5ce8174916 (diff) |
- Implement CERTFP
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2237 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules/core')
-rw-r--r-- | modules/core/Makefile.in | 2 | ||||
-rw-r--r-- | modules/core/m_server.c | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/modules/core/Makefile.in b/modules/core/Makefile.in index 749a81f..5233c93 100644 --- a/modules/core/Makefile.in +++ b/modules/core/Makefile.in @@ -1,4 +1,4 @@ -# Makefile.in generated by automake 1.13.3 from Makefile.am. +# Makefile.in generated by automake 1.13.4 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. diff --git a/modules/core/m_server.c b/modules/core/m_server.c index f869a37..8ede844 100644 --- a/modules/core/m_server.c +++ b/modules/core/m_server.c @@ -161,6 +161,17 @@ mr_server(struct Client *client_p, struct Client *source_p, exit_client(client_p, client_p, "Invalid host."); return; + case -4: + sendto_realops_flags(UMODE_ALL, L_ADMIN, SEND_NOTICE, + "Unauthorized server connection attempt from %s: Invalid certificate fingerprint " + "for server %s", get_client_name(client_p, HIDE_IP), name); + + sendto_realops_flags(UMODE_ALL, L_OPER, SEND_NOTICE, + "Unauthorized server connection attempt from %s: Invalid certificate fingerprint " + "for server %s", get_client_name(client_p, MASK_IP), name); + + exit_client(client_p, client_p, "Invalid certificate fingerprint."); + return; /* NOT REACHED */ break; } |