Skip to content

vendor_response_get_id should not exist #3045

@steven-bellock

Description

@steven-bellock

libspdm_get_vendor_defined_response makes separate calls to

status = spdm_context->vendor_response_get_id(
spdm_context,
&spdm_response->standard_id,
&spdm_response->len,
resp_data);
and
status = spdm_context->vendor_response_callback(spdm_context,
spdm_request->standard_id,
spdm_request->len,
req_vendor_id, req_size, req_data,
&resp_size,
resp_data
);
In the case where a Responder supports multiple VDM types, for the call to vendor_response_get_id the Integrator is completely blind as to what data to return, as it needs to examine the request message. Only vendor_response_callback is needed and this should include the response VDM's RegisteryId, etc.

Metadata

Metadata

Assignees

Labels

4.0Issues and features slated for the next major revision of libspdm.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions