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

Spdm-emu should read corresponding cert according to alias_cert model the when set cert #310

Closed
Wenxing-hou opened this issue Dec 6, 2023 · 0 comments · Fixed by #318
Closed
Assignees

Comments

@Wenxing-hou
Copy link
Contributor

res = libspdm_read_responder_public_certificate_chain(m_use_hash_algo,
m_use_asym_algo,
&cert_chain_to_set,
&cert_chain_size_to_set,
NULL, NULL);
if (!res) {
printf("set certificate :read_responder_public_certificate_chain fail!\n");
free(cert_chain_to_set);
return LIBSPDM_STATUS_INVALID_CERT;
}
/*set_certificate for slot_id:0 in secure environment*/
if ((m_exe_connection & EXE_CONNECTION_SET_CERT) != 0) {
slot_id = 0;
status = libspdm_set_certificate(spdm_context, NULL, slot_id,

Wenxing-hou added a commit to Wenxing-hou/spdm-emu that referenced this issue Dec 12, 2023
Fix the issue: DMTF#310

Signed-off-by: Wenxing Hou <wenxing.hou@intel.com>
Wenxing-hou added a commit to Wenxing-hou/spdm-emu that referenced this issue Dec 14, 2023
Fix the issue: DMTF#310

Signed-off-by: Wenxing Hou <wenxing.hou@intel.com>
jyao1 pushed a commit that referenced this issue Dec 16, 2023
Fix the issue: #310

Signed-off-by: Wenxing Hou <wenxing.hou@intel.com>
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 a pull request may close this issue.

1 participant