X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=test%2Frc2test.c;h=7b965094fc45ee7ddc73d3f72d5b9f7268cbb708;hb=ee2993abd0830ec27a2dd49e07db8d0eb5f3e579;hp=056157653c4493bb22855597c2fba40d1c09a604;hpb=a9c6d221055c3a85edb23b1364cd60baafed4b9f;p=openssl.git diff --git a/test/rc2test.c b/test/rc2test.c index 056157653c..7b965094fc 100644 --- a/test/rc2test.c +++ b/test/rc2test.c @@ -1,13 +1,19 @@ /* * Copyright 1995-2017 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 */ -#include "../e_os.h" +/* + * RC2 low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + +#include "internal/nelem.h" #include "testutil.h" #ifndef OPENSSL_NO_RC2 @@ -59,9 +65,10 @@ static int test_rc2(const int n) #endif -void register_tests(void) +int setup_tests(void) { #ifndef OPENSSL_NO_RC2 ADD_ALL_TESTS(test_rc2, OSSL_NELEM(RC2key)); #endif + return 1; }