diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-03 20:31:18 -0700 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-03 20:31:18 -0700 |
commit | b138da4a4b9d57b850ca4d0061969f5e3299861d (patch) | |
tree | 3e20a6f4a29bfe91b2b51f416673d9fad1e0b7c7 /pam_cap/test.c | |
download | libcap-b138da4a4b9d57b850ca4d0061969f5e3299861d.tar.gz libcap-b138da4a4b9d57b850ca4d0061969f5e3299861d.tar.bz2 libcap-b138da4a4b9d57b850ca4d0061969f5e3299861d.zip |
Imported Upstream version 2.22upstream/2.22
Diffstat (limited to 'pam_cap/test.c')
-rw-r--r-- | pam_cap/test.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pam_cap/test.c b/pam_cap/test.c new file mode 100644 index 0000000..5150ba5 --- /dev/null +++ b/pam_cap/test.c @@ -0,0 +1,12 @@ +#include <stdio.h> +#include <stdlib.h> +#include <security/pam_modules.h> + +int main(int argc, char **argv) +{ + if (pam_sm_authenticate(NULL, 0, 0, NULL) != PAM_SUCCESS) { + printf("failed to authenticate\n"); + exit(1); + } + exit(0); +} |