diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2019-11-13 09:44:53 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-06 16:44:20 -0500 |
commit | 2b12196dc17c235674e6bdcaf8bb35fba78924b4 (patch) | |
tree | b665d0078372e12e49ee221b0d4e833e1b0d8a3f /include/linux/asn1_decoder.h | |
parent | bd3c3dd7fbb152412c16688cf3b70c6a302eda8a (diff) | |
download | u-boot-2b12196dc17c235674e6bdcaf8bb35fba78924b4.zip u-boot-2b12196dc17c235674e6bdcaf8bb35fba78924b4.tar.gz u-boot-2b12196dc17c235674e6bdcaf8bb35fba78924b4.tar.bz2 |
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>
Diffstat (limited to 'include/linux/asn1_decoder.h')
-rw-r--r-- | include/linux/asn1_decoder.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/asn1_decoder.h b/include/linux/asn1_decoder.h new file mode 100644 index 0000000..83f9c6e --- /dev/null +++ b/include/linux/asn1_decoder.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* ASN.1 decoder + * + * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. + * Written by David Howells (dhowells@redhat.com) + */ + +#ifndef _LINUX_ASN1_DECODER_H +#define _LINUX_ASN1_DECODER_H + +#include <linux/asn1.h> + +struct asn1_decoder; + +extern int asn1_ber_decoder(const struct asn1_decoder *decoder, + void *context, + const unsigned char *data, + size_t datalen); + +#endif /* _LINUX_ASN1_DECODER_H */ |