Skip to content

Commit

Permalink
Merge pull request #376 from danielinux/random_stub_panic
Browse files Browse the repository at this point in the history
TPM mode, safety: panic() when calling random stub
  • Loading branch information
dgarske authored Oct 12, 2023
2 parents e742385 + 25c8356 commit d27fc91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/user_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ extern int tolower(int c);
#define WOLFSSL_PUBLIC_MP

/* Configure RNG seed */
#define CUSTOM_RAND_GENERATE_SEED(buf, sz) ({(void)buf; (void)sz; 0;}) /* stub, not used */
#include "loader.h"
#define CUSTOM_RAND_GENERATE_SEED(buf, sz) ({(void)buf; (void)sz; wolfBoot_panic(); 0;}) /* stub, not used */
#define WC_RNG_SEED_CB
#endif

Expand Down

0 comments on commit d27fc91

Please sign in to comment.