X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=test%2Fhmactest.c;h=ca775773a6e6b778a309270c6b206b9e5b56de85;hp=e837391ae6d6869b21f6522b2924fbc6f89ff229;hb=5281435258b5d8201a00b4a9781bb724d99630f0;hpb=c2500f658bbf378a94a76420ea7ef3d2bff17f9c diff --git a/test/hmactest.c b/test/hmactest.c index e837391ae6..ca775773a6 100644 --- a/test/hmactest.c +++ b/test/hmactest.c @@ -11,7 +11,7 @@ #include #include -#include "../e_os.h" +#include "internal/nelem.h" # include # include @@ -105,7 +105,7 @@ static int test_hmac_md5(int idx) } # endif -static int test_hmac_bad() +static int test_hmac_bad(void) { HMAC_CTX *ctx = NULL; int ret = 0; @@ -125,7 +125,7 @@ err: return ret; } -static int test_hmac_run() +static int test_hmac_run(void) { char *p; HMAC_CTX *ctx = NULL; @@ -180,7 +180,7 @@ err: } -static int test_hmac_single_shot() +static int test_hmac_single_shot(void) { char *p; @@ -194,7 +194,7 @@ static int test_hmac_single_shot() } -static int test_hmac_copy() +static int test_hmac_copy(void) { char *p; HMAC_CTX *ctx = NULL, *ctx2 = NULL; @@ -236,12 +236,13 @@ static char *pt(unsigned char *md, unsigned int len) } # endif -void register_tests(void) +int setup_tests(void) { ADD_ALL_TESTS(test_hmac_md5, 4); ADD_TEST(test_hmac_single_shot); ADD_TEST(test_hmac_bad); ADD_TEST(test_hmac_run); ADD_TEST(test_hmac_copy); + return 1; }