File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,16 @@ register-codec [
29
29
wl: length? form length? data
30
30
wr: negate wl
31
31
]
32
- if data/1 <> 48 [
33
- if verbose > 0 [
34
- prin "*** DER data does not start with SEQUENCE tag ***^/ *** "
35
- probe copy/part data 10
32
+
33
+ case [
34
+ all [data/1 = 0 data/2 = 48 ][data: next data]
35
+ data/1 <> 48 [
36
+ if verbose > 0 [
37
+ prin "*** DER data does not start with SEQUENCE tag ***^/ *** "
38
+ probe copy/part data 10
39
+ ]
40
+ return none
36
41
]
37
- return none
38
42
]
39
43
40
44
der: binary data
@@ -118,12 +122,12 @@ register-codec [
118
122
;data: none
119
123
;]
120
124
BIT_STRING [
121
- if data/1 = 0 [data: next data]
125
+ ;@@ if data/1 = 0 [data: next data]
122
126
;data: enbase data 2
123
127
]
124
128
INTEGER [
125
129
;@@ TODO: review if the null skipping is correct!
126
- if data/1 = 0 [data: next data]
130
+ ;@@ if data/1 = 0 [data: next data]
127
131
]
128
132
]
129
133
if data [
You can’t perform that action at this time.
0 commit comments