summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Shyti <andi@etezian.org>2012-09-03 23:11:52 +0200
committerAndi Shyti <andi@etezian.org>2012-09-03 23:11:52 +0200
commit44db5c7c6ca77d6a649f3e7f284164a18305c1aa (patch)
tree42e8b3db090d26f4e98ad48c7a646bea3631c949
parent2ed56f94b88114f2d7158bc1064fa42795ed3b34 (diff)
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 <andi@etezian.org>
-rw-r--r--src/crypt_sha256.c6
1 files changed, 0 insertions, 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");