X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=test%2Fconstant_time_test.c;h=200cb376c5d306cf8789db9568131b476c331574;hb=a8ea8018fa187e22fb4989450b550589e20f62c2;hp=fdd4075c775c4e21eb1c7a875bf61def58a90cbc;hpb=e3908501ca32e6629eed046f2ec44b66ecd1854b;p=openssl.git diff --git a/test/constant_time_test.c b/test/constant_time_test.c index fdd4075c77..200cb376c5 100644 --- a/test/constant_time_test.c +++ b/test/constant_time_test.c @@ -1,5 +1,5 @@ /* - * Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2014-2017 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -10,7 +10,7 @@ #include #include -#include "e_os.h" +#include "internal/nelem.h" #include "internal/constant_time_locl.h" #include "testutil.h" #include "internal/numbers.h" @@ -327,11 +327,12 @@ static int test_64values(int i) return ret; } -void register_tests(void) +int setup_tests(void) { ADD_TEST(test_sizeofs); ADD_ALL_TESTS(test_binops, OSSL_NELEM(test_values)); ADD_ALL_TESTS(test_signed, OSSL_NELEM(signed_test_values)); ADD_ALL_TESTS(test_8values, OSSL_NELEM(test_values_8)); ADD_ALL_TESTS(test_64values, OSSL_NELEM(test_values_64)); + return 1; }