mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-16 02:22:12 +03:00
always parse :len bytes in +de:der
This commit is contained in:
parent
67590f70c7
commit
a9871af7fb
@ -287,7 +287,13 @@
|
||||
:: +de:der: decode atom to +spec:asn1
|
||||
::
|
||||
++ de
|
||||
=< |=([len=@ud dat=@ux] `(unit spec:asn1)`(rush dat parse))
|
||||
=< |= [len=@ud dat=@ux]
|
||||
^- (unit spec:asn1)
|
||||
:: XX refactor into +parse
|
||||
=/ a (rip 3 dat)
|
||||
=/ b ~| %der-invalid-len
|
||||
(sub len (lent a))
|
||||
(rust `(list @D)`(weld a (reap b 0)) parse)
|
||||
|%
|
||||
:: +parse:de:der: DER parser combinator
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user