summaryrefslogtreecommitdiff
path: root/bigcrypt.c
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2013-04-26 12:57:56 +0200
committerTimo Weingärtner <timo@tiwe.de>2013-05-11 01:38:39 +0200
commit629c03d7775e1f4b5c0fdee358c6773f70e91961 (patch)
treee8f01909604d50376a38c9c6fc19902432621781 /bigcrypt.c
parentfbce1a480fda4c97b21c87fb39096d23db6eedfb (diff)
downloadlibpam-pwdfile-629c03d7775e1f4b5c0fdee358c6773f70e91961.tar.gz
add debug module option and use pam_syslog
also: * remove some unnessesary comments * add vim settings for unusual indentation
Diffstat (limited to 'bigcrypt.c')
-rw-r--r--bigcrypt.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/bigcrypt.c b/bigcrypt.c
index b1568d6..28d042a 100644
--- a/bigcrypt.c
+++ b/bigcrypt.c
@@ -25,7 +25,6 @@
*/
#include <string.h>
-#include <security/_pam_macros.h>
char *crypt(const char *key, const char *salt);
char *bigcrypt(const char *key, const char *salt);
@@ -51,8 +50,6 @@ char *bigcrypt(const char *key, const char *salt)
char *cipher_ptr, *plaintext_ptr, *tmp_ptr, *salt_ptr;
char keybuf[KEYBUF_SIZE + 1];
- D(("called with key='%s', salt='%s'.", key, salt));
-
/* reset arrays */
memset(keybuf, 0, KEYBUF_SIZE + 1);
memset(dec_c2_cryptbuf, 0, CBUF_SIZE);
@@ -111,9 +108,7 @@ char *bigcrypt(const char *key, const char *salt)
salt_ptr = cipher_ptr - ESEGMENT_SIZE;
}
}
- D(("key=|%s|, salt=|%s|\nbuf=|%s|\n", key, salt, dec_c2_cryptbuf));
/* this is the <NUL> terminated encrypted password */
-
return dec_c2_cryptbuf;
}