1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 05:03:11 +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
@@ -178,6 +178,11 @@ public:
{
if (ModuleManager::FindFirstOf(ENCRYPTION) == this)
throw ModuleException("enc_sha1 is deprecated and can not be used as a primary encryption method");
sha1provider.Check({
{ "da39a3ee5e6b4b0d3255bfef95601890afd80709", "" },
{ "2fd4e1c67a2d28fced849ee1bb76e7391b93eb12", "The quick brown fox jumps over the lazy dog" },
});
}
EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) override