X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=test%2Frc4test.c;h=0ca2ca9aefaa93194ab59c770e5ce138f7b54cea;hb=HEAD;hp=e6d4ccf74da1f1fb3e57e66aafaac00d25eb1242;hpb=74284c887e4a54cf0d2378535ef5f98e7b722483;p=oweals%2Fopenssl.git diff --git a/test/rc4test.c b/test/rc4test.c index e6d4ccf74d..0ca2ca9aef 100644 --- a/test/rc4test.c +++ b/test/rc4test.c @@ -1,16 +1,21 @@ /* - * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. * - * Licensed under the OpenSSL license (the "License"). You may not use + * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html */ +/* + * RC4 and SHA-1 low level APIs are deprecated for public use, but still ok for + * internal use. + */ +#include "internal/deprecated.h" + #include -#include "../e_os.h" -#include "test_main.h" +#include "internal/nelem.h" #include "testutil.h" #ifndef OPENSSL_NO_RC4 @@ -117,7 +122,7 @@ static int test_rc_bulk(void) } #endif -void register_tests(void) +int setup_tests(void) { #ifndef OPENSSL_NO_RC4 ADD_ALL_TESTS(test_rc4_encrypt, OSSL_NELEM(data_len)); @@ -125,4 +130,5 @@ void register_tests(void) ADD_ALL_TESTS(test_rc4_multi_call, data_len[3]); ADD_TEST(test_rc_bulk); #endif + return 1; }