diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2021-12-14 17:35:22 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2021-12-14 17:35:22 +0000 |
commit | 21fccdcda6a5af59433905ae9f6a20dacb8e371b (patch) | |
tree | ed7cc63ad0ceee0bce4c7c4ecf78527a549e5f4d /lib/libcrypto/asn1/asn1_locl.h | |
parent | c229d3008350fb52ed0141aa12f23feade41e147 (diff) |
Consolidate ASN.1 universal tag type data.
There are currently three different tables in three different files that
contain information about ASN.1 universal class tag types. Range checking
is also implemented in three different places (with different
implementations).
Consolidate all of this into a single table, provide a lookup function that
deals with the range checks and wrappers to deal with specific types.
ok inoguchi@ tb@
Diffstat (limited to 'lib/libcrypto/asn1/asn1_locl.h')
-rw-r--r-- | lib/libcrypto/asn1/asn1_locl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libcrypto/asn1/asn1_locl.h b/lib/libcrypto/asn1/asn1_locl.h index 39779d9377b..f7731ec5dd3 100644 --- a/lib/libcrypto/asn1/asn1_locl.h +++ b/lib/libcrypto/asn1/asn1_locl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1_locl.h,v 1.12 2019/10/24 16:36:10 jsing Exp $ */ +/* $OpenBSD: asn1_locl.h,v 1.13 2021/12/14 17:35:21 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -155,4 +155,6 @@ struct x509_crl_method_st { int UTF8_getc(const unsigned char *str, int len, unsigned long *val); int UTF8_putc(unsigned char *str, int len, unsigned long value); +int asn1_tag2charwidth(int tag); + __END_HIDDEN_DECLS |