1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 14:16:39 +02:00

Removed OnEncryptInPlace, although it currently causes no problems it is just redundant.

This commit is contained in:
Adam
2010-07-05 16:14:17 -04:00
parent de1bf10690
commit f71d5b4d3a
9 changed files with 2 additions and 49 deletions
-14
View File
@@ -27,20 +27,6 @@ int enc_encrypt(const std::string &src, std::string &dest)
return -1;
}
/**
* Encrypt null-terminated string stored in buffer `buf' of size `size',
* placing the result in the same buffer. Returns 0 on success, -1 on
* error.
**/
int enc_encrypt_in_place(std::string &buf)
{
EventReturn MOD_RESULT;
FOREACH_RESULT(I_OnEncryptInPlace, OnEncryptInPlace(buf));
if (MOD_RESULT == EVENT_ALLOW)
return 0;
return -1;
}
/**
* Decrypt encrypted string `src' into buffer `dest' of length `len'.
* Returns 1 (not 0) on success, -1 if the encryption algorithm does not