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
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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.
https://github.com/DMTF/spdm-emu/blob/3630f472927a42a4f1b8847b0372258d715577a3/spdm_emu/spdm_requester_emu/spdm_requester_spdm.c#L454-L467
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!
Beta Was this translation helpful? Give feedback.
All reactions