]> git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_checkpw/test/perf-checkpw.c
Security-59754.80.3.tar.gz
[apple/security.git] / OSX / libsecurity_checkpw / test / perf-checkpw.c
1
2
3 #include <security/checkpw.h>
4 #include <stdio.h>
5
6 int
7 main(int argv, char *argc[])
8 {
9 char *uname = "local";
10 char *pass = "local";
11 int retval = 0, i = 0;
12
13 for(i=0; i < 1024; i++)
14 {
15 retval = checkpw(uname, pass);
16 if (0 != retval)
17 {
18 printf("Incorrect password.\n");
19 break;
20 }
21 }
22
23 return retval;
24 }