/[Development]/mod_auth_ibmdb2/db2-auth-udfs/test_hash.c
ViewVC logotype

Contents of /mod_auth_ibmdb2/db2-auth-udfs/test_hash.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations)
Tue Feb 27 02:40:57 2007 UTC (3 years, 6 months ago) by tessus
Branch: MAIN
CVS Tags: RELEASE_1_3, RELEASE_1_2, HEAD
File MIME type: text/x-csrc
renamed test_tessus.c to test_hash.c
1 #include <stdio.h>
2 #include <string.h>
3 #include "hash.h"
4
5 int main( void )
6 {
7 char *vmd5;
8 char *vapr_md5;
9 char *vapr_crypt;
10 char *vapr_sha1;
11
12 printf( "\nUsing word Test\n" );
13
14 vmd5 = mk_hash( "Test", ALG_MD5 );
15 vapr_md5 = mk_hash( "Test", ALG_APMD5 );
16 vapr_crypt = mk_hash( "Test", ALG_CRYPT );
17 vapr_sha1 = mk_hash( "Test", ALG_APSHA );
18
19 printf( "\nmd5 -> %s", vmd5);
20 printf( "\napr_md5 -> %s", vapr_md5);
21 printf( "\napr_crypt -> %s", vapr_crypt);
22 printf( "\napr_sha1 -> %s\n\n", vapr_sha1);
23
24 free(vmd5);
25 free(vapr_md5);
26 free(vapr_crypt);
27 free(vapr_sha1);
28
29 return 0;
30 }

CVS admin
ViewVC Help
Powered by ViewVC 1.1.5