1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 05:13:12 +02:00

Add self-tests to the encryption providers.

This commit is contained in:
Sadie Powell
2024-03-10 16:14:22 +00:00
parent 3b85a8071f
commit f919bb0748
5 changed files with 51 additions and 1 deletions
+5
View File
@@ -54,6 +54,11 @@ public:
{
if (ModuleManager::FindFirstOf(ENCRYPTION) == this)
throw ModuleException("enc_md5 is deprecated and can not be used as a primary encryption method");
md5provider.Check({
{ "d41d8cd98f00b204e9800998ecf8427e", "" },
{ "9e107d9d372bb6826bd81d3542a419d6", "The quick brown fox jumps over the lazy dog" },
});
}
EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) override