check if info_id is known on rsu tpm recv

This commit is contained in:
dmtar 2025-06-04 14:47:53 +01:00
parent e97025727a
commit b25c47fba2
1 changed files with 6 additions and 0 deletions

View File

@ -615,6 +615,12 @@ static int rsu_handle_recv(EI1_TPM_t* tpm_rx, void** security_socket, uint8_t* n
break; break;
} }
for (int i = 0; i < facilities.tolling.infos.length; i++) {
if (info_id != facilities.tolling->z[i].asn->id) {
log_warn("[tolling] received TPM has unkown info_id");
return 1;
}
}
asn_enc_rval_t enc; asn_enc_rval_t enc;
EIS_NetworkingRequest_t* nr = NULL; EIS_NetworkingRequest_t* nr = NULL;