Skip to content

Commit d27fc91

Browse files
authored
Merge pull request #376 from danielinux/random_stub_panic
TPM mode, safety: panic() when calling random stub
2 parents e742385 + 25c8356 commit d27fc91

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/user_settings.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ extern int tolower(int c);
300300
#define WOLFSSL_PUBLIC_MP
301301

302302
/* Configure RNG seed */
303-
#define CUSTOM_RAND_GENERATE_SEED(buf, sz) ({(void)buf; (void)sz; 0;}) /* stub, not used */
303+
#include "loader.h"
304+
#define CUSTOM_RAND_GENERATE_SEED(buf, sz) ({(void)buf; (void)sz; wolfBoot_panic(); 0;}) /* stub, not used */
304305
#define WC_RNG_SEED_CB
305306
#endif
306307

0 commit comments

Comments
 (0)