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:
+1
-1
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user