summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-05-23 19:09:47 +0100
committerPeter Powell <petpow@saberuk.com>2016-09-13 22:33:41 +0100
commit3b0f52c92b744836520af4b9915478569f297d39 (patch)
tree1816865eccc62fb60a9e546a298dfc74e51504f4 /include
parent164ad71fc36f79efc823b7523de79603f6e0ac27 (diff)
Remove Anope::Decrypt now encryption is mandated.
Diffstat (limited to 'include')
-rw-r--r--include/anope.h8
-rw-r--r--include/event.h9
2 files changed, 0 insertions, 17 deletions
diff --git a/include/anope.h b/include/anope.h
index c298d5d86..f3f05cb15 100644
--- a/include/anope.h
+++ b/include/anope.h
@@ -474,14 +474,6 @@ namespace Anope
*/
extern CoreExport void Encrypt(const Anope::string &src, Anope::string &dest);
- /** Decrypts what is in 'src' to 'dest'.
- * @param src The source string to decrypt
- * @param dest The destination where the decrypted string is placed
- * @return true if decryption was successful. This is usually not the case
- * as most encryption methods we use are one way.
- */
- extern CoreExport bool Decrypt(const Anope::string &src, Anope::string &dest);
-
/** Returns a sequence of data formatted as the format argument specifies.
** After the format parameter, the function expects at least as many
** additional arguments as specified in format.
diff --git a/include/event.h b/include/event.h
index 7705e44e3..b71eef738 100644
--- a/include/event.h
+++ b/include/event.h
@@ -327,15 +327,6 @@ namespace Event
virtual EventReturn OnEncrypt(const Anope::string &src, Anope::string &dest) anope_abstract;
};
- struct CoreExport Decrypt : Events
- {
- static constexpr const char *NAME = "decrypt";
-
- using Events::Events;
-
- virtual EventReturn OnDecrypt(const Anope::string &hashm, const Anope::string &src, Anope::string &dest) anope_abstract;
- };
-
struct CoreExport CreateBot : Events
{
static constexpr const char *NAME = "createbot";