You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by LeeTroy August 22, 2023
I'm running libspdm in a embedded project, the spdm context will be created and released over and over again.
However, I found there's no proper way to release some of data within context.
Discussed in DMTF/libspdm#2320
Originally posted by LeeTroy August 22, 2023
I'm running libspdm in a embedded project, the spdm context will be created and released over and over again.
However, I found there's no proper way to release some of data within context.
spdm-emu/spdm_emu/spdm_requester_emu/spdm_requester_spdm.c
Lines 454 to 467 in 3630f47
libspdm_read_responder_root_public_certificate
allocatesdata
data
can't be release becauseroot_cert
sit insidedata
libspdm_get_data
doesn't supportLIBSPDM_DATA_PEER_PUBLIC_ROOT_CERT
, even if it is supported, the pointer isroot_cert
but notdata
.One solution I can think of storing
data
pointer withLIBSPDM_DATA_APP_CONTEXT_DATA
, and release it when the spdm context is not needed.Thanks!
The text was updated successfully, but these errors were encountered: