summaryrefslogtreecommitdiff
path: root/lib/libcrypto/asn1/asn1_locl.h
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2021-12-14 17:35:22 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2021-12-14 17:35:22 +0000
commit21fccdcda6a5af59433905ae9f6a20dacb8e371b (patch)
treeed7cc63ad0ceee0bce4c7c4ecf78527a549e5f4d /lib/libcrypto/asn1/asn1_locl.h
parentc229d3008350fb52ed0141aa12f23feade41e147 (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.h4
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