Skip to content

GET_CERTIFICATE public API #3426

@steven-bellock

Description

@steven-bellock

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.

Metadata

Metadata

Assignees

Labels

4.0Issues and features slated for the next major revision of libspdm.enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions