-
Notifications
You must be signed in to change notification settings - Fork 108
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
Cleanup csrlib #2923
Cleanup csrlib #2923
Conversation
Fix DMTF#2908. Signed-off-by: Steven Bellock <[email protected]>
@@ -327,7 +335,9 @@ bool libspdm_gen_csr_ex( | |||
if (*req_csr_tracking_tag == 0) { | |||
if (available_csr_tracking_tag == 0) { | |||
/*no available tracking tag*/ | |||
*req_csr_tracking_tag = 0xFF; | |||
#if LIBSPDM_SET_CERT_CSR_PARAMS | |||
*is_busy = true; |
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.
The comment above said "no available tracking tag" so I am confused how does this imply "device is busy".
Would you help clarify this?
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 comes from
If the Responder requires a reset to process a GET_CSR request, but does not have any available CSRTrackingTags, it shall respond with an ERROR message of ErrorCode=Busy.
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.
Got it, thanks!
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.
The change looks good to me.
I am OK with that. |
Fix #2908.
This was tested with all four combination of values for
LIBSPDM_SET_CERT_CSR_PARAMS
andLIBSPDM_ENABLE_CAPABILITY_CSR_CAP_EX
.