summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-07-05 15:45:28 -0400
committerAdam <Adam@anope.org>2010-07-05 15:45:28 -0400
commite42f125a850c11ead01602e01da53ba9200621ab (patch)
tree5696b0b38380b5f88e03e4c0f2ca8ab24235f03b /include
parentf5a7a5d8bcc5645a6667f2c6328060dbaa407218 (diff)
Removed enc_encrypt_in_place, it is unnecessary and using it like it was designed breaks long passwords.
Diffstat (limited to 'include')
-rw-r--r--include/encrypt.h1
-rw-r--r--include/extern.h2
2 files changed, 0 insertions, 3 deletions
diff --git a/include/encrypt.h b/include/encrypt.h
index 33c2eb36c..0b4c81bb4 100644
--- a/include/encrypt.h
+++ b/include/encrypt.h
@@ -13,7 +13,6 @@
typedef struct encryption_ {
int (*encrypt)(const char *src, int len, char *dest, int size);
- int (*encrypt_in_place)(char *buf, int size);
int (*encrypt_check_len)(int passlen, int bufsize);
int (*decrypt)(const char *src, char *dest, int size);
int (*check_password)(const char *plaintext, const char *password);
diff --git a/include/extern.h b/include/extern.h
index d63d7d1fd..c9d67cdbb 100644
--- a/include/extern.h
+++ b/include/extern.h
@@ -576,12 +576,10 @@ E long unsigned int UserKey3;
/**** encrypt.c ****/
E char *EncModule;
E int enc_encrypt(const char *src, int len, char *dest, int size);
-E int enc_encrypt_in_place(char *buf, int size);
E int enc_encrypt_check_len(int passlen, int bufsize);
E int enc_decrypt(const char *src, char *dest, int size);
E int enc_check_password(const char *plaintext, const char *password);
E void encmodule_encrypt(int (*func)(const char *src, int len, char *dest, int size));
-E void encmodule_encrypt_in_place(int (*func)(char *buf, int size));
E void encmodule_encrypt_check_len(int (*func)(int passlen, int bufsize));
E void encmodule_decrypt(int (*func)(const char *src, char *dest, int size));
E void encmodule_check_password(int (*func)(const char *plaintext, const char *password));