1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 20:53:12 +02:00

changed the source argument of enc_decrypt to const

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2744 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
DukePyrolator
2010-01-10 19:56:16 +00:00
parent d66e928529
commit 20b5056315
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ E void HostServSyncVhosts(NickAlias *na);
/**** encrypt.c ****/
E int enc_encrypt(const std::string &src, std::string &dest);
E int enc_encrypt_in_place(std::string &buf);
E int enc_decrypt(std::string &src, std::string &dest);
E int enc_decrypt(const std::string &src, std::string &dest);
E int enc_check_password(std::string &plaintext, std::string &password);
/**** hostserv.c ****/
+1 -1
View File
@@ -50,7 +50,7 @@ int enc_encrypt_in_place(std::string &buf)
* allow decryption, and -1 if another failure occurred (e.g. destination
* buffer too small).
**/
int enc_decrypt(std::string &src, std::string &dest)
int enc_decrypt(const std::string &src, std::string &dest)
{
size_t pos = src.find(":");
if (pos == std::string::npos)