1
1
mirror of https://github.com/wader/fq.git synced 2024-11-27 14:14:58 +03:00
fq/format/asn1/asn1_ber.jq

9 lines
231 B
Plaintext
Raw Normal View History

def _asn1_ber_torepr:
if .class == "universal" then
if .tag | . == "sequence" or . == "set" then
.constructed | map(_asn1_ber_torepr)
else .value | tovalue
end
else .constructed | map(_asn1_ber_torepr)
end;