/* * Copyright (C) 2014-2018 Yubico AB - See COPYING */ #include #include #include /* These #defines must be present according to PAM documentation. */ #define PAM_SM_AUTH #ifdef HAVE_SECURITY_PAM_APPL_H #include #endif #ifdef HAVE_SECURITY_PAM_MODULES_H #include #endif int main(int argc, const char **argv) { pam_handle_t *pamh = NULL; int rc; rc = pam_sm_authenticate(pamh, 0, 1, argv); printf("rc %d\n", rc); return 0; }