#include "checkpw.h"
#include <syslog.h>
+#include <unistd.h>
#define PAM_STACK_NAME "checkpw"
+static
int checkpw_internal_pam( const char* uname, const char* password )
{
int checkpwret = CHECKPW_FAILURE;
}
+#warning TODO: this should be declared in some header.
+int checkpw_internal( const struct passwd* pw, const char* password );
int checkpw_internal( const struct passwd* pw, const char* password )
{
return checkpw(pw->pw_name, password);