X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=test%2Fdsatest.c;h=fa2ec4af12b40c8714be688b4ead1108c11be96b;hp=e4ed8ebd632f20df712f28ceb44eae4c412a6a2d;hb=c6d38183d6754b0a7b90527d085a500680e7d2ea;hpb=a9c6d221055c3a85edb23b1364cd60baafed4b9f diff --git a/test/dsatest.c b/test/dsatest.c index e4ed8ebd63..fa2ec4af12 100644 --- a/test/dsatest.c +++ b/test/dsatest.c @@ -1,5 +1,5 @@ /* - * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-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 @@ -19,8 +19,9 @@ #include #include "testutil.h" -#include "e_os.h" +#include "internal/nelem.h" +#ifndef OPENSSL_NO_DSA static int dsa_cb(int p, int n, BN_GENCB *arg); /* @@ -62,9 +63,6 @@ static unsigned char out_g[] = { static const unsigned char str1[] = "12345678901234567890"; -static const char rnd_seed[] = - "string to make the random number generator think it has entropy"; - static int dsa_test(void) { BN_GENCB *cb; @@ -76,8 +74,6 @@ static int dsa_test(void) unsigned int siglen; const BIGNUM *p = NULL, *q = NULL, *g = NULL; - RAND_seed(rnd_seed, sizeof rnd_seed); - if (!TEST_ptr(cb = BN_GENCB_new())) goto end; @@ -134,10 +130,12 @@ static int dsa_cb(int p, int n, BN_GENCB *arg) } return 1; } +#endif /* OPENSSL_NO_DSA */ -void register_tests(void) +int setup_tests(void) { #ifndef OPENSSL_NO_DSA ADD_TEST(dsa_test); #endif + return 1; }