mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-08 15:39:41 +00:00
Fix build with no-threads no-ec
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3817)
This commit is contained in:
parent
b5319bdbd0
commit
1297ef9928
@ -8,6 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <openssl/crypto.h>
|
#include <openssl/crypto.h>
|
||||||
|
#include <internal/cryptlib.h>
|
||||||
|
|
||||||
#if !defined(OPENSSL_THREADS) || defined(CRYPTO_TDEBUG)
|
#if !defined(OPENSSL_THREADS) || defined(CRYPTO_TDEBUG)
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <openssl/opensslconf.h> /* To see if OPENSSL_NO_EC is defined */
|
#include <openssl/opensslconf.h> /* To see if OPENSSL_NO_EC is defined */
|
||||||
|
# include "testutil.h"
|
||||||
|
|
||||||
#ifndef OPENSSL_NO_EC
|
#ifndef OPENSSL_NO_EC
|
||||||
|
|
||||||
@ -26,7 +27,6 @@
|
|||||||
# endif
|
# endif
|
||||||
# include <openssl/err.h>
|
# include <openssl/err.h>
|
||||||
# include <openssl/rand.h>
|
# include <openssl/rand.h>
|
||||||
# include "testutil.h"
|
|
||||||
|
|
||||||
static const char rnd_seed[] =
|
static const char rnd_seed[] =
|
||||||
"string to make the random number generator think it has randomness";
|
"string to make the random number generator think it has randomness";
|
||||||
@ -394,6 +394,7 @@ static int test_builtin(void)
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void register_tests(void)
|
void register_tests(void)
|
||||||
{
|
{
|
||||||
@ -406,4 +407,3 @@ void register_tests(void)
|
|||||||
ADD_TEST(test_builtin);
|
ADD_TEST(test_builtin);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user