summaryrefslogtreecommitdiff
path: root/modules/extra
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-10 16:14:22 +0000
committerSadie Powell <sadie@witchery.services>2024-03-10 20:20:24 +0000
commitf919bb0748fe1ba09114f22841efb5af7c5bb37d (patch)
tree109cf55b73ad6c11d47233429d0c98723fea165a /modules/extra
parent3b85a8071f4d7238088834b4924af79b57cb36d1 (diff)
Add self-tests to the encryption providers.
Diffstat (limited to 'modules/extra')
-rw-r--r--modules/extra/enc_argon2.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/extra/enc_argon2.cpp b/modules/extra/enc_argon2.cpp
index 6454411eb..266a80d30 100644
--- a/modules/extra/enc_argon2.cpp
+++ b/modules/extra/enc_argon2.cpp
@@ -104,6 +104,13 @@ public:
{
return std::make_unique<Argon2Context>(this->type);
}
+
+ Anope::string ToPrintable(const Anope::string &hash) override
+ {
+ // We have no way to make this printable without the creating context
+ // so we always return the printed form.
+ return hash;
+ }
};