summaryrefslogtreecommitdiff
path: root/src/encrypt.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-11-22 00:50:33 -0500
committerAdam <Adam@anope.org>2012-11-22 00:50:33 -0500
commitd33a0f75a5c0c584fbb7cc0076da36d494f39494 (patch)
tree7b2274cc833c793c0f5595660cbd4d715de52ffd /src/encrypt.cpp
parent368d469631763e9c8bf399980d0ac7c5b5664d39 (diff)
Pretty large coding style cleanup, in source doc
cleanup, and allow protocol mods to depend on each other
Diffstat (limited to 'src/encrypt.cpp')
-rw-r--r--src/encrypt.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/encrypt.cpp b/src/encrypt.cpp
index 154f600bf..0227be2ef 100644
--- a/src/encrypt.cpp
+++ b/src/encrypt.cpp
@@ -1,4 +1,4 @@
-/* Include file for high-level encryption routines.
+/*
*
* (C) 2003-2012 Anope Team
* Contact us at team@anope.org
@@ -7,11 +7,11 @@
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
+ *
*/
#include "services.h"
#include "modules.h"
-#include "extern.h"
/******************************************************************************/
@@ -19,7 +19,7 @@
* @param src The source string
* @param dest The destination strnig
*/
-void enc_encrypt(const Anope::string &src, Anope::string &dest)
+void Anope::Encrypt(const Anope::string &src, Anope::string &dest)
{
EventReturn MOD_RESULT;
FOREACH_RESULT(I_OnEncrypt, OnEncrypt(src, dest));
@@ -30,12 +30,12 @@ void enc_encrypt(const Anope::string &src, Anope::string &dest)
* @param desc The destination string
* @return true on success
*/
-bool enc_decrypt(const Anope::string &src, Anope::string &dest)
+bool Anope::Decrypt(const Anope::string &src, Anope::string &dest)
{
size_t pos = src.find(':');
if (pos == Anope::string::npos)
{
- Log() << "Error: enc_decrypt() called with invalid password string (" << src << ")";
+ Log() << "Error: Anope::Decrypt() called with invalid password string (" << src << ")";
return false;
}
Anope::string hashm(src.begin(), src.begin() + pos);