-
Notifications
You must be signed in to change notification settings - Fork 0
split libspdm_try_get_capabilities #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
wmaroneAMD
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Github is awful with its "pending review"
| } | ||
| LIBSPDM_ASSERT (message_size >= transport_header_size + | ||
| spdm_context->local_context.capability.transport_tail_size); | ||
| spdm_request = (void *)(message + transport_header_size); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why were these variables renamed? This causes the diff to be rather large relative to what the goal is.
| size_t spdm_request_size; | ||
|
|
||
| /* -=[Verify State Phase]=- */ | ||
| if (spdm_context->connection_info.connection_state != LIBSPDM_CONNECTION_STATE_AFTER_VERSION) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the user expected to take ownership of this verification, or will this be duplicated in the user-accessible API? I think it should be moved into the send_request function.
| return status; | ||
| } | ||
| LIBSPDM_ASSERT (message_size >= transport_header_size); | ||
| (void)(transport_header_size); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would discard this variable and reference the source directly.
Signed-off-by: Manjeet Singh <itsmanjeet1998@gmail.com>
No description provided.