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