mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
make the full error set explicit in asn1.DecodeError
This commit is contained in:
parent
a32d812785
commit
946ed0db9e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue