From b22ca18d77116271ae2e170a2b810bbbb3be95e7 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Mon, 10 Aug 2009 21:00:40 -0400 Subject: [PATCH] Updated and fixed some pinentry quality strings. --- src/pinentry.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pinentry.c b/src/pinentry.c index 36028e5a..d90e2680 100644 --- a/src/pinentry.c +++ b/src/pinentry.c @@ -196,7 +196,7 @@ static int quality_cb(void *data, const char *line) if (!(tmp = FascistCheck(line+8, CRACKLIB_DICT))) return assuan_send_data(pwm->pctx, "100", 3); - if (!strcmp(tmp, N_("it's WAY too short"))) + if (!strcmp(tmp, N_("it is WAY too short"))) score = 10; else if (!strcmp(tmp, N_("it is too short"))) score = 20; @@ -204,17 +204,23 @@ static int quality_cb(void *data, const char *line) score = 25; else if (!strcmp(tmp, N_("it is based on your username"))) score = 30; + else if (!strcmp(tmp, N_("it does not contain enough DIFFERENT characters"))) + score = 35; else if (!strcmp(tmp, N_("it is based on a dictionary word"))) score = 40; else if (!strcmp(tmp, N_("it is based upon your password entry"))) score = 50; else if (!strcmp(tmp, N_("it's derived from your password entry"))) score = 50; + else if (!strcmp(tmp, N_("it is derived from your password entry"))) + score = 50; else if (!strcmp(tmp, N_("it is based on a (reversed) dictionary word"))) score = 60; else if (!strcmp(tmp, N_("it is derivable from your password entry"))) score = 70; - else if (!strcmp(tmp, N_("it does not contain enough DIFFERENT characters"))) + else if (!strcmp(tmp, N_("it's derivable from your password entry"))) + score = 70; + else if (!strcmp(tmp, N_("it looks like a National Insurance number."))) score = 80; else if (!strcmp(tmp, N_("it is too simplistic/systematic"))) score = 90; -- 2.11.4.GIT