assign cid tpid and nonce when protocol != gndpki

This commit is contained in:
David Rocha 2025-06-02 22:55:19 +00:00
parent 3ca573b344
commit e97025727a
1 changed files with 3 additions and 0 deletions

View File

@ -493,6 +493,9 @@ static int rsu_handle_recv(EI1_TPM_t* tpm_rx, void** security_socket, uint8_t* n
if (tolling->protocol.p != TOLLING_PROTOCOL_GN_DPKI) { if (tolling->protocol.p != TOLLING_PROTOCOL_GN_DPKI) {
log_warn("[tolling] cannot cryptographically verify entryProof in mode different than GN-DPKI"); log_warn("[tolling] cannot cryptographically verify entryProof in mode different than GN-DPKI");
client_id = type_rx->choice.exit->choice.request->clientId;
nonce = type_rx->choice.exit->choice.request->transactionNonce;
info_id = type_rx->choice.exit->choice.request->infoId;
} else { } else {
client_id = type_rx->choice.exit->choice.request->clientId; client_id = type_rx->choice.exit->choice.request->clientId;
nonce = type_rx->choice.exit->choice.request->transactionNonce; nonce = type_rx->choice.exit->choice.request->transactionNonce;