mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
RNG : change to --disable-rng, non-autoconf scenario, help msg
This commit is contained in:
12
configure.ac
12
configure.ac
@@ -221,17 +221,17 @@ then
|
||||
fi
|
||||
|
||||
|
||||
AC_ARG_ENABLE([norng],
|
||||
[ --enable-norng Enable Test Cert (default: disabled)],
|
||||
[ ENABLED_NORNG=$enableval ],
|
||||
[ ENABLED_NORNG=no ]
|
||||
AC_ARG_ENABLE([rng],
|
||||
[AS_HELP_STRING([ --enable-rng Enable compiling and using RNG (default: enabled)])],
|
||||
[ ENABLED_RNG=$enableval ],
|
||||
[ ENABLED_RNG=yes ]
|
||||
)
|
||||
|
||||
if test "$ENABLED_NORNG" = "yes"
|
||||
if test "$ENABLED_RNG" = "no"
|
||||
then
|
||||
AM_CFLAGS="$AM_CFLAGS -DWC_NO_RNG"
|
||||
fi
|
||||
AM_CONDITIONAL([BUILD_RNG], [test "x$ENABLED_NORNG" = "xno"])
|
||||
AM_CONDITIONAL([BUILD_RNG], [test "x$ENABLED_RNG" = "xyes"])
|
||||
|
||||
|
||||
# DTLS-SCTP
|
||||
|
@@ -82,6 +82,7 @@ int wc_RNG_GenerateByte(WC_RNG* rng, byte* b)
|
||||
}
|
||||
#endif /* HAVE_HASHDRBG || NO_RC4 */
|
||||
#else /* else build without fips */
|
||||
#ifndef WC_NO_RNG /* if not FIPS and RNG is disabled then do not compile */
|
||||
#include <wolfssl/wolfcrypt/error-crypt.h>
|
||||
|
||||
/* Allow custom RNG system */
|
||||
@@ -1671,5 +1672,6 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
||||
|
||||
#endif /* USE_WINDOWS_API */
|
||||
#endif /* CUSTOM_RAND_GENERATE_BLOCK */
|
||||
#endif /* WC_NO_RNG */
|
||||
#endif /* HAVE_FIPS */
|
||||
|
||||
|
Reference in New Issue
Block a user