-
Notifications
You must be signed in to change notification settings - Fork 135
Move local_used_cert_chain_slot_id to session_info
#3423
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
Conversation
| spdm_context->connection_info.peer_used_cert_chain_slot_id = 0xFF; | ||
| spdm_context->connection_info.local_used_cert_chain_slot_id = 0xFF; |
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.
Question: how about peer_used_cert_chain_slot_id ?
should we remove it as well?
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.
That can be used both inside and outside of a session, so it will stay inside connection_info. I will add it to session_info in a later pull request.
| spdm_key_update_request_t last_key_update_request; | ||
| void *secured_message_context; | ||
| /* Only present in session info as it is currently only used within a secure session. */ | ||
| uint8_t local_used_cert_chain_slot_id; |
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.
should we remove local_used_cert_chain_slot_id from libspdm_connection_info_t ?
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.
Yes. Thanks for catching that.
4874109 to
f324ca4
Compare
| * @retval false Local used certificate chain data without spdm_cert_chain_t header is not found. | ||
| **/ | ||
| bool libspdm_get_local_cert_chain_data(void *spdm_context, | ||
| uint8_t slot_id, |
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.
libspdm_get_local_cert_chain_data is an unused function, so I am also fine if the entire function is removed.
Fix DMTF#3405 and move local_used_cert_chain_slot_id from connection_info to session_info. Signed-off-by: Steven Bellock <[email protected]>
f324ca4 to
2225b82
Compare
Fix #3405 and move
local_used_cert_chain_slot_idfromconnection_infotosession_info.