mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-30 13:58:51 +09:00
![AKASHI Takahiro](/assets/img/avatar_default.png)
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>
21 lines
468 B
C
21 lines
468 B
C
/* 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 */
|