cmd: add asn1_compiler
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Wed, 13 Nov 2019 00:44:53 +0000 (09:44 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 6 Dec 2019 21:44:20 +0000 (16:44 -0500)
commit2b12196dc17c235674e6bdcaf8bb35fba78924b4
treeb665d0078372e12e49ee221b0d4e833e1b0d8a3f
parentbd3c3dd7fbb152412c16688cf3b70c6a302eda8a
cmd: add asn1_compiler

Imported from linux kernel v5.3:
 asn1.h without changes
 asn1_ber_bytecode.h without changes
 asn1_decoder.h without changes
 asn1_compiler.c without changes

This host command will be used to create a ASN1 parser, for example,
for pkcs7 messages or x509 certificates. More specifically, it will
generate *byte code* which will be interpreted by asn1 decoder library.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/linux/asn1.h [new file with mode: 0644]
include/linux/asn1_ber_bytecode.h [new file with mode: 0644]
include/linux/asn1_decoder.h [new file with mode: 0644]
lib/Kconfig
scripts/Makefile.build
tools/Makefile
tools/asn1_compiler.c [new file with mode: 0644]