From #1655.
There are currently three public APIs to fetch a certificate chain. The length parameter is no longer needed now that libspdm automatically sizes the request. The three APIs can then be condensed into one
libspdm_return_t libspdm_get_certificate(void *spdm_context,
const uint32_t *session_id,
uint8_t slot_id,
size_t *cert_chain_size,
void *cert_chain,
const void **trust_anchor,
size_t *trust_anchor_size);
The Integrator can set trust_anchor to NULL if they so desire.
From #1655.
There are currently three public APIs to fetch a certificate chain. The
lengthparameter is no longer needed now that libspdm automatically sizes the request. The three APIs can then be condensed into oneThe Integrator can set
trust_anchortoNULLif they so desire.