]> eyrie.org Git - kerberos/krb5-strength.git/blobdiff - plugin/internal.h
Refactor checking for passwords based on principals
[kerberos/krb5-strength.git] / plugin / internal.h
index 669ac6f176142d7d89ddd4da46ea27157bfe5b46..14171e6804bcb30b3be960ce0c7438f9083ff538 100644 (file)
@@ -99,6 +99,11 @@ krb5_error_code strength_init_cracklib(krb5_context, krb5_pwqual_moddata,
 krb5_error_code strength_check_cracklib(krb5_context, krb5_pwqual_moddata,
                                         const char *password);
 
+/* Check whether the password is based on the principal in some way. */
+krb5_error_code strength_check_principal(krb5_context, krb5_pwqual_moddata,
+                                         const char *principal,
+                                         const char *password);
+
 /*
  * Obtain configuration settings from krb5.conf.  These are wrappers around
  * the krb5_appdefault_* APIs that handle setting the section name, obtaining