http://sovereign.i2p/pam-resource.html
= PAM_SUCCESS)
fprintf(stderr, "acct_mgmt failed: %d\n", result);
else if ((result = pam_end(pamh, result)) != PAM_SUCCESS)
fprintf(stderr, "end failed: %d\n", result);
else
//Run_PAM_Aware_Application( ); /* Run your application code */
printf("running PAM AWARE program\n");
} If the source file is named example-app.c, compile and link with: gcc -o example-app example-app.c -lpam -lpam_misc A simple C++ program illustrating PAM awareness:...