diff options
Diffstat (limited to 'vendor/der/src/error.rs')
-rw-r--r-- | vendor/der/src/error.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/der/src/error.rs b/vendor/der/src/error.rs index 94378ef71..902863d49 100644 --- a/vendor/der/src/error.rs +++ b/vendor/der/src/error.rs @@ -227,6 +227,9 @@ pub enum ErrorKind { oid: ObjectIdentifier, }, + /// `SET` cannot contain duplicates. + SetDuplicate, + /// `SET` ordering error: items not in canonical order. SetOrdering, @@ -329,6 +332,7 @@ impl fmt::Display for ErrorKind { ErrorKind::OidUnknown { oid } => { write!(f, "unknown/unsupported OID: {}", oid) } + ErrorKind::SetDuplicate => write!(f, "SET OF contains duplicate"), ErrorKind::SetOrdering => write!(f, "SET OF ordering error"), ErrorKind::Overflow => write!(f, "integer overflow"), ErrorKind::Overlength => write!(f, "ASN.1 DER message is too long"), |