From 44db5c7c6ca77d6a649f3e7f284164a18305c1aa Mon Sep 17 00:00:00 2001 From: Andi Shyti Date: Mon, 3 Sep 2012 23:11:52 +0200 Subject: encrypt_sha256: removed password length check in the encryption password The length check is demanded to the get password function Signed-off-by: Andi Shyti --- src/crypt_sha256.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/crypt_sha256.c b/src/crypt_sha256.c index c480637..fb19a07 100644 --- a/src/crypt_sha256.c +++ b/src/crypt_sha256.c @@ -35,12 +35,6 @@ char* get_crypt_sha256(const char *p) char enc64_pwd[LEN_ENC64]; char *final_pwd; - if (!check_passwd(p, len)) { - fprintf(stderr, - "the password has to be between 8 and 64 chars\n"); - exit(EXIT_FAILURE); - } - rand_fd = open(RAND_FILE, O_RDONLY); if (rand_fd < 0) { fprintf(stderr, "impossible to open " RAND_FILE "\n"); -- cgit v1.2.3