Skip to content

Conversation

@steven-bellock
Copy link
Contributor

@steven-bellock steven-bellock commented Dec 9, 2025

Fix #3405 and move local_used_cert_chain_slot_id from connection_info to session_info.

@steven-bellock steven-bellock marked this pull request as ready for review December 9, 2025 22:55
@steven-bellock steven-bellock requested a review from jyao1 as a code owner December 9, 2025 22:55
Comment on lines 2037 to -2038
spdm_context->connection_info.peer_used_cert_chain_slot_id = 0xFF;
spdm_context->connection_info.local_used_cert_chain_slot_id = 0xFF;
Copy link
Member

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?

Copy link
Contributor Author

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;
Copy link
Member

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 ?

Copy link
Contributor Author

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.

@steven-bellock steven-bellock force-pushed the fix-3405 branch 2 times, most recently from 4874109 to f324ca4 Compare December 16, 2025 22:51
@steven-bellock steven-bellock requested a review from jyao1 December 16, 2025 23:42
* @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,
Copy link
Contributor Author

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]>
@jyao1 jyao1 merged commit 16bbbc7 into DMTF:main Dec 19, 2025
97 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

connection_info.local_used_cert_chain_slot_id should not exist

2 participants