Skip to content
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

Add EventAllPolicy to key exchange #2839

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Conversation

steven-bellock
Copy link
Contributor

Fix #2566.

This pull request adds two parameters to libspdm_event_subscribe. session_id is needed because event subscription is based on sessions, and subscribe_type specifies whether to subscribe/unsubscribe to all events, or to use the event list. Previously subscribe_event_group_count == 0 was used to unsubscribe from all events. However that does not work for subscribing to all events. Ie, subscribe_event_group_count == 0xff is legal with the event list.

Signed-off-by: Steven Bellock sbellock@nvidia.com

@steven-bellock
Copy link
Contributor Author

@Xiaohanjlll

@steven-bellock steven-bellock force-pushed the event-all-policy branch 2 times, most recently from f72e3a6 to aa1a634 Compare September 17, 2024 16:19
@steven-bellock steven-bellock marked this pull request as ready for review September 17, 2024 16:43
Comment on lines 308 to 312
LIBSPDM_ASSERT(((session_policy & SPDM_KEY_EXCHANGE_REQUEST_SESSION_POLICY_EVENT_ALL_POLICY)
== 0) ||
libspdm_is_capabilities_flag_supported(
spdm_context, true, 0, SPDM_GET_CAPABILITIES_RESPONSE_FLAGS_EVENT_CAP));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check should only for SPDM 1.3 where the event is introduced.
Otherwise, the reserved bit should be ignored.

Fix DMTF#2566

Signed-off-by: Steven Bellock <sbellock@nvidia.com>
@jyao1 jyao1 merged commit 98d4a3a into DMTF:main Sep 23, 2024
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.

Add EventAllPolicy to key exchange
2 participants