Skip to content

TLS Unit Test#1747

Draft
Flickdm wants to merge 2 commits intomicrosoft:release/202511from
Flickdm:feat/TlsLibUnitTest
Draft

TLS Unit Test#1747
Flickdm wants to merge 2 commits intomicrosoft:release/202511from
Flickdm:feat/TlsLibUnitTest

Conversation

@Flickdm
Copy link
Copy Markdown
Member

@Flickdm Flickdm commented Apr 5, 2026

Description

Host and Qemu based Tests that confirm if expected TLS behavior (and expected algorithms) are present and exposed.

This is to help prevent regressions with TLS.

For details on how to complete these options and their meaning refer to CONTRIBUTING.md.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

<Describe the test(s) that were run to verify the changes.>

Integration Instructions

<Describe how these changes should be integrated. Use N/A if nothing is required.>

@Flickdm Flickdm force-pushed the feat/TlsLibUnitTest branch 2 times, most recently from e871aae to 041ed35 Compare April 6, 2026 22:03
Add host-based unit tests for TlsLib that validate TLS
functionality in a provider-agnostic manner. Tests cover:

- TLS function pointer availability (TlsInitialize, TlsCtxNew,
  TlsNew)
- TLS context lifecycle (create/free, connection endpoint,
  version setting)
- Firmware client-only assertion (server mode must return
  EFI_UNSUPPORTED)
- DFCI/Intune required cipher suites hard-fail validation
  (ECDHE-RSA-AES-256-GCM, ECDHE-RSA-AES-128-GCM,
  ECDHE-RSA-AES-256-CBC, ECDHE-RSA-AES-128-CBC)
- TLS 1.2 cipher suite enumeration (14 ciphers)
- EC curve support probing (P-256, P-384, P-521, X25519, X448)
- TLS 1.3 cipher suite probing
- PQC hybrid key exchange group probing (X25519MLKEM768,
  SecP256r1MLKEM768, SecP384r1MLKEM1024)

Signed-off-by: Doug Flick <dougflick@microsoft.com>
@Flickdm Flickdm force-pushed the feat/TlsLibUnitTest branch 2 times, most recently from ed5109e to febab6c Compare April 7, 2026 04:35
Extract shared test suite definitions and CreateUnitTest() from
UnitTestMainHost.c into TlsLibUnitTests.c so both Host and Shell
entry points can reuse them. Add TestTlsLibApp.inf as a
UEFI_APPLICATION and UnitTestMain.c as the DXE entry point.

Signed-off-by: Doug Flick <dougflick@microsoft.com>
@Flickdm Flickdm force-pushed the feat/TlsLibUnitTest branch from febab6c to 8975eb2 Compare April 7, 2026 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant