The functions defined in passwdqc.h may be used without PAM at all, and all of them are in fact exported by libpasswdqc.