Skip to content

Unit-test the certificate fetch loop and ConnectStandard over the loopback peer #33

Description

@aidangarske

Context

The Opus review of wolftpm-core found that the GET_CERTIFICATE fetch loop and wolfSPDM_ConnectStandard are exercised only by the spdm-emu CI job. ParseCertificate, ParseDigests and chain validation have unit tests, but the loopback peer in test_peer_dispatch does not answer GET_VERSION, CAPABILITIES, ALGORITHMS, DIGESTS or CERTIFICATE.

Origin

main...wolftpm-core

What is needed

  • Extend the loopback peer to serve GET_DIGESTS and GET_CERTIFICATE from test_rsp_chain_der in small portions.
  • Cases: a multi-portion chain, a zero-length non-final portion, a chain-header Length mismatch, and a responder DataTransferSize below 1032 that forces reqLen clamping.
  • Run wolfSPDM_ConnectStandard end to end over the loopback: slot selection, ValidateCertChain, KEY_EXCHANGE and FINISH.

Blockers and dependencies

No response

Acceptance criteria

make check covers each branch of wolfSPDM_GetCertificate and a full wolfSPDM_ConnectStandard without spdm-emu.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low: cleanup, warnings, hardware-gated or future worktodoDeferred work tracked for later

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions