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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user