fix FIPS Ready compatibility with WC_RNG_SEED_CB

pull/73/head
Chris Conlon 2021-11-10 16:05:52 -07:00
parent 2b402959bc
commit 6e0b59090f
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#include <wolfssl/wolfcrypt/logging.h>
#include <wolfssl/wolfcrypt/hmac.h>
#include <wolfssl/wolfcrypt/asn_public.h>
#include <wolfssl/wolfcrypt/random.h>
#ifdef HAVE_FIPS
#include <wolfssl/wolfcrypt/fips_test.h>
#endif
@ -63,6 +64,9 @@ JNIEXPORT jint JNICALL Java_com_wolfssl_WolfSSL_init
(void)jenv;
(void)jcl;
#ifdef WC_RNG_SEED_CB
wc_SetSeed_Cb(wc_GenerateSeed);
#endif
return (jint)wolfSSL_Init();
}