#include <string.h>
#include <stdlib.h>
-#include "../e_os.h"
+#include "internal/nelem.h"
# include <openssl/hmac.h>
# include <openssl/sha.h>
}
# endif
-static int test_hmac_bad()
+static int test_hmac_bad(void)
{
HMAC_CTX *ctx = NULL;
int ret = 0;
return ret;
}
-static int test_hmac_run()
+static int test_hmac_run(void)
{
char *p;
HMAC_CTX *ctx = NULL;
}
-static int test_hmac_single_shot()
+static int test_hmac_single_shot(void)
{
char *p;
}
-static int test_hmac_copy()
+static int test_hmac_copy(void)
{
char *p;
HMAC_CTX *ctx = NULL, *ctx2 = NULL;
}
# 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;
}