diff options
Diffstat (limited to 'src/usr/secureboot/node_comm/node_comm_exchange.C')
-rw-r--r-- | src/usr/secureboot/node_comm/node_comm_exchange.C | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/secureboot/node_comm/node_comm_exchange.C b/src/usr/secureboot/node_comm/node_comm_exchange.C index 78521b0e4..eb29413c6 100644 --- a/src/usr/secureboot/node_comm/node_comm_exchange.C +++ b/src/usr/secureboot/node_comm/node_comm_exchange.C @@ -172,7 +172,9 @@ errlHndl_t nodeCommAbusGetRandom(uint64_t & o_nonce) // but no extra error handling is needed as it should not have gotten this // far if CONFIG_TPMDD wasn't set #ifdef CONFIG_TPMDD - err = TRUSTEDBOOT::GetRandom(tpm_tgt, o_nonce); + err = TRUSTEDBOOT::GetRandom(tpm_tgt, + reinterpret_cast<uint8_t*>(&o_nonce), + sizeof(o_nonce)); #endif if (err) { |