#ifndef CRACKLIB_H
#define CRACKLIB_H

#ifdef __cplusplus
extern "C" {
#endif

/* Pass this function a password (pw) and a path to the
 * dictionaries (/usr/share/cracklib/pw_dict should be specified)
 * and it will either return a NULL string, meaning that the
 * password is good, or a pointer to a string that explains the
 * problem with the password.
 * You must link with -lcrack
 */

extern const char *FascistCheck(const char *pw, const char *dictpath);

#ifdef __cplusplus
};
#endif

#endif