X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftestsuite%2Fhashcalc.c;h=4e8a4328cc58b27c569218baf3db02d343a4731f;hb=148ab3024621f97b9cf95091657db2448098bc66;hp=2d83a51d014dc5811330ff158858b54e713b852c;hpb=9c78378bebc1a9f3d400f422df8ede9efea57dea;p=util-vserver.git diff --git a/src/testsuite/hashcalc.c b/src/testsuite/hashcalc.c index 2d83a51..4e8a432 100644 --- a/src/testsuite/hashcalc.c +++ b/src/testsuite/hashcalc.c @@ -39,17 +39,18 @@ int main(int UNUSED argc, char *argv[]) volatile unsigned int canary2; volatile unsigned int canary3; } __attribute__((__packed__)) d_path; - + d_path.canary0 = 0x12345678; d_path.canary1 = 0x21436587; d_path.canary2 = 0x89abcdef; d_path.canary3 = 0x98badcfe; memset(d_path.d, 0x66, sizeof d_path.d); - global_info.hash_conf.method = hashFunctionFind(argv[2]); + ensc_crypto_init(); + global_info.hash_conf.method = ensc_crypto_hash_find(argv[2]); - assert(hashFunctionContextInit(&global_info.hash_context, - global_info.hash_conf.method)!=-1); + assert(ensc_crypto_hashctx_init(&global_info.hash_context, + global_info.hash_conf.method)!=-1); assert(fstat(fd, &st)!=-1); @@ -68,7 +69,7 @@ int main(int UNUSED argc, char *argv[]) Vwrite(1, d_path.d, strlen(d_path.d)); Vwrite(1, "\n", 1); - hashFunctionContextFree(&global_info.hash_context); + ensc_crypto_hashctx_free(&global_info.hash_context); return 0; }