X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_sasl.cpp;h=f8d8c5322d26788da4d6aae37bf3a478c5a39010;hb=3f782d5cad84165d695203977c75d2a3877f4644;hp=59751588eaa8d8640645436d4037848374e4fc7d;hpb=e3e3a35899931d98e76023464f9b077b09ba828d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp index 59751588e..f8d8c5322 100644 --- a/src/modules/m_sasl.cpp +++ b/src/modules/m_sasl.cpp @@ -22,6 +22,7 @@ #include "m_cap.h" #include "account.h" #include "sasl.h" +#include "ssl.h" /* $ModDesc: Provides support for IRC Authentication Layer (aka: atheme SASL) via AUTHENTICATE. */ @@ -62,6 +63,15 @@ class SaslAuthenticator params.push_back("S"); params.push_back(method); + if (method == "EXTERNAL" && IS_LOCAL(user_)) + { + SocketCertificateRequest req(&((LocalUser*)user_)->eh, ServerInstance->Modules->Find("m_sasl.so")); + std::string fp = req.GetFingerprint(); + + if (fp.size()) + params.push_back(fp); + } + SendSASL(params); }