diff options
| author | Adam <Adam@anope.org> | 2010-07-05 16:14:17 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-07-05 16:14:17 -0400 |
| commit | f71d5b4d3ae2fc5db3f2e96c1cc3cceb1a103c2e (patch) | |
| tree | 52f20f6d8c4e281a63018616a8ede9422f650cae /src/encrypt.cpp | |
| parent | de1bf10690570477f5d8cd126b30f81300c1376a (diff) | |
Removed OnEncryptInPlace, although it currently causes no problems it is just redundant.
Diffstat (limited to 'src/encrypt.cpp')
| -rw-r--r-- | src/encrypt.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/encrypt.cpp b/src/encrypt.cpp index 1910c00f9..f70d8fa8c 100644 --- a/src/encrypt.cpp +++ b/src/encrypt.cpp @@ -28,20 +28,6 @@ int enc_encrypt(const std::string &src, std::string &dest) } /** - * 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 * allow decryption, and -1 if another failure occurred (e.g. destination |
