Skip to content

Commit

Permalink
fix SPDM 1.3 MEL algorithm negotiate
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaohanjlll <[email protected]>
  • Loading branch information
Xiaohanjlll authored and jyao1 committed Jan 25, 2024
1 parent dc021c0 commit 8725922
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/spdm_requester_lib/libspdm_req_negotiate_algorithms.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,11 @@ static libspdm_return_t libspdm_try_negotiate_algorithms(libspdm_context_t *spdm
status = LIBSPDM_STATUS_INVALID_MSG_FIELD;
goto receive_done;
}
} else {
if (spdm_context->connection_info.algorithm.mel_spec != 0) {
status = LIBSPDM_STATUS_INVALID_MSG_FIELD;
goto receive_done;
}
}
}
}
Expand Down

0 comments on commit 8725922

Please sign in to comment.