summaryrefslogtreecommitdiff
path: root/src/encrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/encrypt.c')
-rw-r--r--src/encrypt.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/encrypt.c b/src/encrypt.c
index 2c85d444a..0555c221a 100644
--- a/src/encrypt.c
+++ b/src/encrypt.c
@@ -23,11 +23,6 @@ void encmodule_encrypt(int (*func)
encryption.encrypt = func;
}
-void encmodule_encrypt_in_place(int (*func) (char *buf, int size))
-{
- encryption.encrypt_in_place = func;
-}
-
void encmodule_encrypt_check_len(int (*func) (int passlen, int bufsize))
{
encryption.encrypt_check_len = func;
@@ -60,19 +55,6 @@ int enc_encrypt(const char *src, int len, char *dest, int size)
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(char *buf, int size)
-{
- if (encryption.encrypt_in_place) {
- return encryption.encrypt_in_place(buf, size);
- }
- return -1;
-}
-
/**
* Check whether the result of encrypting a password of length `passlen'
* will fit in a buffer of size `bufsize'. Returns 0 if the encrypted