wolfGlass is now wolfssl-compliance-tooling. Its master removed the old
function and script names, so a re-sync alone breaks the CMake build.
- Re-vendor tools/sbom/ at 8a96c64 and pin it in
.wolfssl-compliance-tooling-rev.
- Call wolfssl_compliance_tooling_add_sbom in CMakeLists.txt.
- Add the new vendored files to EXTRA_DIST, so the release tarball has
what the CMake helper needs.
- Point the drift check at wolfSSL/wolfssl-compliance-tooling and rename
the job to compliance_tooling_drift.
- Use the new name in the docs, the Japanese docs, and comments.
The CMake helper now also adds install-sbom and uninstall-sbom targets.
Only configure could enable WOLFTPM_V185 or WOLFTPM_PQC, so a CMake build
had no ML-DSA or ML-KEM, and its options.h did not tell consumers about
them. The CMake build now takes the same choices as configure:
WOLFTPM_V185 and WOLFTPM_PQC (detect, yes, no), and the WOLFTPM_MLDSA,
WOLFTPM_MLKEM and WOLFTPM_HASH_MLDSA trims. The options also accept CMake
booleans such as ON and OFF, and yes means all for WOLFTPM_MLDSA and
WOLFTPM_MLKEM; any other unknown value stops the configure. As in
configure, a fwTPM build enables v1.85 when wolfCrypt has wc_MlDsaKey_Init
and wc_MlKemKey_Init, an explicit request fails when it does not, and
WOLFTPM_PQC is promoted to WOLFTPM_V185 for the fwTPM. Against an
installed wolfSSL the check only compiles against its headers, resolves a
relative WITH_WOLFSSL against the source directory as the build's include
path does, and runs on every configure, so a build directory follows a
change of wolfSSL. A wolfSSL found as a CMake package is passed to the
check as the wolfssl::wolfssl target, so its include directories resolve
as they do for the build. With WITH_WOLFSSL_TREE, which is added before
the check, it reads the tree's WOLFSSL_MLKEM and WOLFSSL_MLDSA (or
WOLFSSL_DILITHIUM) options instead, and also needs wc_mldsa.h and
wc_mlkem.h in the tree: wolfSSL 5.9.1 has the WOLFSSL_DILITHIUM option
but no wc_mldsa.h, which the fwTPM includes. Configure prints the
resolved mode and trims, as the configure summary does. The examples/pqc
programs are built when PQC is on.
wolfSSL's CMake build leaves ML-DSA off by default, so the shared wolfSSL
of the existing CMake CI jobs keeps detection off and those jobs are
unchanged. A new cmake-pqc job builds wolfSSL with -DWOLFSSL_MLDSA=yes,
checks that options.h carries WOLFTPM_V185, runs ctest and runs
pqc_mssim_e2e against the fwTPM. It also builds the lean WOLFTPM_PQC
client library without fwTPM, and a fwTPM from WOLFTPM_PQC=yes, which
must be promoted to WOLFTPM_V185, trimmed to ML-DSA verify-only, ML-KEM
encapsulation and no Hash-ML-DSA. It checks that WOLFTPM_V185=OFF leaves
options.h without PQC defines, and that WOLFTPM_V185=yes stops the
configure against a copy of the wolfSSL headers without ML-DSA.