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 committed Jan 24, 2024
1 parent 33ed7e3 commit 979cd81
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 979cd81

Please sign in to comment.