Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <znc/znc.h>
- class CFred : public CModule { public: MODCONSTRUCTOR(CFred) {} virtual bool OnBoot() { const std::vector<CListener*>& vListeners = CZNC::Get().GetListeners(); std::vector<CListener*>::const_iterator it; for (it = vListeners.begin(); it != vListeners.end(); ++it) (*it)->GetRealListener()->SetCipher("HIGH+EECDH+TLSv1.2:HIGH+EDH+TLSv1.2:!TLSv1.0:!TLSv1.1:!aNULL:!MD5:!DSS:!COMPLEMENTOFDEFAULT"); return true; } virtual void OnPostRehash() { OnBoot(); } virtual bool OnLoad(const CString& sArgs, CString& sMessage) { return OnBoot(); } }; GLOBALMODULEDEFS(CFred, "secure_webadmin_ssl")
Advertisement
Add Comment
Please, Sign In to add comment