]> eyrie.org Git - kerberos/krb5-strength.git/blobdiff - plugin/api.h
Fix configuration and status codes in the MIT plugin
[kerberos/krb5-strength.git] / plugin / api.h
index bc23deb6ea0d32a690cd61e081feec9317d2295e..1f6d6a5a6b90f2d6989d00b1a464ac9aeb59da4f 100644 (file)
 #include <config.h>
 
 /* General public API. */
-int pwcheck_init(void **context, const char *dictionary);
-int pwcheck_check(void *context, const char *password, const char *principal,
-                  char *errstr, int errstrlen);
+krb5_error_code pwcheck_init(void **context, const char *dictionary);
+krb5_error_code pwcheck_check(void *context, const char *password,
+                              const char *principal, char *errstr,
+                              int errstrlen);
 void pwcheck_close(void *context);
 
 #endif /* !PLUGIN_INTERNAL_H */