-
Notifications
You must be signed in to change notification settings - Fork 105
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 parameters to libspdm_write_certificate_to_nvm #2901
base: main
Are you sure you want to change the base?
Conversation
@rw8896 as well. |
|
||
uint32_t base_hash_algo, uint32_t base_asym_algo | ||
#if LIBSPDM_SET_CERT_PARAMS | ||
, bool *need_reset, bool *is_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.
I am wondering if we need is_busy
for CSR API 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.
Yes probably. I can do that in a separate pull request, but let me rename LIBSPDM_SET_CERT_PARAMS
to something more generic so that CSR can leverage 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.
See #2893 (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.
Can we file a separate issue? I feel #2893 only handles INVALID_REQUEST.
if ((fp_out = open(file_name, O_WRONLY | O_TRUNC)) == -1) { | ||
printf("Unable to open file %s\n", file_name); | ||
return false; | ||
|
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.
Do we need to handle the (cert_chain == NULL) case?
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's a separate issue. I just added
if (g_set_cert_is_busy) {
*is_busy = true;
and everything got adjusted. But yes, it looks like the "sample" implementation doesn't support erasing a certificate slot.
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, the handling could be done in a separate change.
Signed-off-by: Steven Bellock <sbellock@nvidia.com>
Fix DMTF#2873. Signed-off-by: Steven Bellock <sbellock@nvidia.com>
bb3bc2f
to
26e0a5d
Compare
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.
Looks good to me, thanks!
Fix #2873.