aboutsummaryrefslogtreecommitdiffhomepage
path: root/zxcvbn.h
diff options
context:
space:
mode:
Diffstat (limited to 'zxcvbn.h')
-rw-r--r--zxcvbn.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/zxcvbn.h b/zxcvbn.h
index d7a0c17..796d6b4 100644
--- a/zxcvbn.h
+++ b/zxcvbn.h
@@ -69,7 +69,8 @@ typedef enum
SEQUENCE_MATCH, /* 7 */
SPATIAL_MATCH, /* 8 */
DATE_MATCH, /* 9 */
- YEAR_MATCH /* 10 */
+ YEAR_MATCH, /* 10 */
+ MULTIPLE_MATCH = 32 /* Added to above to indicate matching part has been repeated */
} ZxcTypeMatch_t;
/* Linked list of information returned in the Info arg to ZxcvbnMatch */
@@ -78,6 +79,7 @@ struct ZxcMatch
int Begin; /* Char position of begining of match */
int Length; /* Number of chars in the match */
double Entrpy; /* The entropy of the match */
+ double MltEnpy; /* Entropy with additional allowance for multipart password */
ZxcTypeMatch_t Type; /* Type of match (Spatial/Dictionary/Order/Repeat) */
struct ZxcMatch *Next;
};