From f919bb0748fe1ba09114f22841efb5af7c5bb37d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 10 Mar 2024 16:14:22 +0000 Subject: Add self-tests to the encryption providers. --- modules/extra/enc_argon2.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/extra') 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(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; + } }; -- cgit