summaryrefslogtreecommitdiff
path: root/src/pwqprivate.h
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@redhat.com>2015-07-16 13:57:57 +0200
committerTomas Mraz <tmraz@redhat.com>2015-07-16 13:57:57 +0200
commit81cd3fc9c56e5fa8dcc258aac8f1a84dd287b4fa (patch)
treebf54f557c72e18bf59a7ecab12ef15f39c6c1180 /src/pwqprivate.h
parentb0810b9b2555fcf4870420688da8878260c0261c (diff)
downloadlibpwquality-81cd3fc9c56e5fa8dcc258aac8f1a84dd287b4fa.tar.gz
Make the cracklib check optional - on by default.
Diffstat (limited to 'src/pwqprivate.h')
-rw-r--r--src/pwqprivate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pwqprivate.h b/src/pwqprivate.h
index 692fae6..6b0e9e2 100644
--- a/src/pwqprivate.h
+++ b/src/pwqprivate.h
@@ -24,6 +24,7 @@ struct pwquality_settings {
int max_class_repeat;
int max_sequence;
int gecos_check;
+ int dict_check;
char *bad_words;
char *dict_path;
};
@@ -40,6 +41,7 @@ struct setting_mapping {
#define PWQ_DEFAULT_UP_CREDIT 0
#define PWQ_DEFAULT_LOW_CREDIT 0
#define PWQ_DEFAULT_OTH_CREDIT 0
+#define PWQ_DEFAULT_DICT_CHECK 1
#define PWQ_TYPE_INT 1
#define PWQ_TYPE_STR 2