From 946ed0db9e9ceaa18780e0fe38a8556e8c99e743 Mon Sep 17 00:00:00 2001 From: Ben Burkert Date: Fri, 3 Oct 2025 11:40:59 -0400 Subject: [PATCH] make the full error set explicit in asn1.DecodeError --- lib/std/crypto/codecs/asn1.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/crypto/codecs/asn1.zig b/lib/std/crypto/codecs/asn1.zig index 4fec6006d8..0b4c50644c 100644 --- a/lib/std/crypto/codecs/asn1.zig +++ b/lib/std/crypto/codecs/asn1.zig @@ -183,7 +183,7 @@ pub const Element = struct { } }; - pub const DecodeError = error{InvalidLength} || std.Io.Reader.Error; + pub const DecodeError = error{ InvalidLength, EndOfStream, ReadFailed }; /// Safely decode a DER/BER/CER element at `index`: /// - Ensures length uses shortest form