From c398758f1638db002320d3567be908ae6cad4ec7 Mon Sep 17 00:00:00 2001 From: Yi LIU Date: Sun, 15 Feb 2026 19:32:53 +0800 Subject: [PATCH] fix(x509): set CONSTRUCTED=true for X509Name Tagged impl X509Name is a SEQUENCE type which is always constructed in ASN.1/DER. The Tagged trait implementation incorrectly had CONSTRUCTED set to false, which could cause tag matching issues when the framework validates or reconstructs tags for this type. --- src/x509.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x509.rs b/src/x509.rs index c33a00a..8fa57b8 100644 --- a/src/x509.rs +++ b/src/x509.rs @@ -483,7 +483,7 @@ impl<'a> From> for Vec> { } impl Tagged for X509Name<'_> { - const CONSTRUCTED: bool = false; + const CONSTRUCTED: bool = true; const TAG: Tag = Tag::Sequence; }