File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1428,6 +1428,7 @@ then
14281428 test "$enable_md5" = "" && enable_md5=yes
14291429 test "$enable_anon" = "" && enable_anon=yes
14301430 test "$enable_ssh" = "" && test "$enable_hmac" != "no" && enable_ssh=yes
1431+ test "$enable_rng_bank" = "" && enable_rng_bank=yes
14311432
14321433 # the compiler optimizer generates a weird out-of-bounds bss reference for
14331434 # find_hole() in the FP_ECC implementation.
@@ -2208,6 +2209,19 @@ then
22082209 AM_CFLAGS="$AM_CFLAGS -DWC_NO_RNG"
22092210fi
22102211
2212+ AC_ARG_ENABLE ( [ rng-bank] ,
2213+ [ AS_HELP_STRING ( [ --enable-rng-bank] ,[ Enable compiling and using RNG banks (default: disabled)] ) ] ,
2214+ [ ENABLED_RNG_BANK=$enableval ] ,
2215+ [ ENABLED_RNG_BANK=$KERNEL_MODE_DEFAULTS ]
2216+ )
2217+
2218+ if test "$ENABLED_RNG_BANK" = "yes"
2219+ then
2220+ AS_IF ( [ test "$ENABLED_RNG" = "no"] ,
2221+ AC_MSG_ERROR ( [ --enable-rng-bank requires --enable-rng] ) )
2222+ AM_CFLAGS="$AM_CFLAGS -DWC_RNG_BANK_SUPPORT"
2223+ fi
2224+
22112225
22122226# DTLS-SCTP
22132227AC_ARG_ENABLE ( [ sctp] ,
You can’t perform that action at this time.
0 commit comments