Files
Lily Chen f0e21a5334 Reland "crypto/x509: Verify standalone Merkle Tree Certs (MTCs)"
This reverts commit 96a007fb32,
thus relanding commit f89068d303.

The build failure in Chromium's component build was because accessing
impl->tbs_sig_alg.get() instantiates the StackAllocated<X509_ALGOR, ...>
template, which emits relocations for internal symbols (x509_algor_init
and x509_algor_cleanup), and these are not pruned in unoptimized mode.

The fix (diff from patchset 1) is to avoid reaching into X509Impl
internals to construct the test cert. Instead, all the desired
(intentionally invalid) test certs were generated by the MTC demo tool,
and checked in as testdata and parsed directly.

Original change's description:
> Revert "crypto/x509: Verify standalone Merkle Tree Certs (MTCs)"
>
> This reverts commit f89068d303.
>
> Reason for revert: build failure crbug.com/549361069
>
> Failure Link: https://ci.chromium.org/ui/p/chrome/builders/try/linux-chrome-dbg-cog-cache-warmer/79105/overview
>
> Original change's description:
> > crypto/x509: Verify standalone Merkle Tree Certs (MTCs)
> >
> > This implements verification of "standalone" Merkle Tree Certs (see
> > draft-ietf-plants-merkle-tree-certs-05, section 6.3) as part of the
> > X509_STORE_CTX API, if the flag X509_V_FLAG_USE_MTC_DRAFT_PLANTS_05
> > is specified.
> >
> > Bug: 503746594
> > Change-Id: Ie5abd17eb34c37139d3be1261e1914976a6a6964
> > Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/100707
> > Reviewed-by: David Benjamin <davidben@google.com>
> > Commit-Queue: Lily Chen <chlily@google.com>
> > Presubmit-BoringSSL-Verified: boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com>
>
> TBR=davidben@google.com,boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com,chlily@google.com
>
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 503746594, 549361069
> Change-Id: If43293ba7c2199a463a98dcf848fcc60bdd1e9bb
> Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/101307
> Presubmit-BoringSSL-Verified: boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com>
> Auto-Submit: Lily Chen <chlily@google.com>
> Reviewed-by: David Benjamin <davidben@google.com>
> Commit-Queue: David Benjamin <davidben@google.com>

# Not skipping CQ checks because this is a reland.

Bug: 503746594
Cq-Include-Trybots: luci.boringssl.try:linux_clang_shared_compile,linux_clang_shared_rel_compile
Change-Id: I2376b492ecc0e6bfcfc0acb36cc0f1511dd29db7
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/101467
Commit-Queue: Lily Chen <chlily@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
2026-08-20 15:21:18 -07:00
..
2026-03-12 00:04:00 -07:00
2026-08-18 07:36:13 -07:00
2026-06-27 16:00:17 -07:00
2026-08-18 07:36:13 -07:00
2026-06-29 09:23:49 -07:00
2026-06-29 10:15:41 -07:00
2026-08-07 11:06:33 -07:00
2026-08-07 11:58:17 -07:00
2026-08-07 11:58:17 -07:00
2026-08-18 07:36:13 -07:00
2026-04-02 11:03:31 -07:00
2026-03-03 14:47:30 -08:00
2026-03-03 14:47:30 -08:00