1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#[derive(Debug, PartialEq)]
pub enum BerError {
BerTypeError,
BerValueError,
InvalidTag,
InvalidLength,
IntegerTooLarge,
BerMaxDepth,
DerConstraintFailed,
Unsupported,
}
pub type DerError = BerError;
pub const BER_TAG_ERROR: u32 = 128;
pub const BER_CLASS_ERROR: u32 = 129;
pub const BER_STRUCT_ERROR: u32 = 130;
pub const BER_TAG_UNKNOWN: u32 = 131;
pub const BER_INVALID_LENGTH: u32 = 132;
pub const BER_OBJ_TOOSHORT: u32 = 133;
pub const BER_INTEGER_TOO_LARGE: u32 = 134;
pub const BER_UNSUPPORTED: u32 = 150;
pub const BER_MAX_DEPTH : u32 = 151;
pub const DER_CONSTRAINT_FAIL: u32 = 160;