~ubuntu-branches/ubuntu/oneiric/libcap2/oneiric

« back to all changes in this revision

Viewing changes to pam_cap/test.c

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2008-03-29 10:19:58 UTC
  • Revision ID: james.westby@ubuntu.com-20080329101958-mi16dsb9fuzn1352
Tags: upstream-2.08
ImportĀ upstreamĀ versionĀ 2.08

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
#include <stdlib.h>
 
3
#include <security/pam_modules.h>
 
4
 
 
5
int main(int argc, char **argv)
 
6
{
 
7
    if (pam_sm_authenticate(NULL, 0, 0, NULL) != PAM_SUCCESS) {
 
8
        printf("failed to authenticate\n");
 
9
        exit(1);
 
10
    }
 
11
    exit(0);
 
12
}