summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-07-24 13:49:59 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-07-24 13:49:59 +0000
commit48565b968929937cc0a517610dc3fceb677fb6e9 (patch)
treed6b1c70b8f71c90e20e89c2d86bc734b75614a6a /lib
parentf84e078dada1e3e4f0d352c8ba53ddf9b47ddbe7 (diff)
Expand IMPLEMENT_ASN1_MSTRING macros - the generated assembly only differs
by changes to line numbers.
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/asn1/a_time.c13
-rw-r--r--lib/libcrypto/asn1/tasn_typ.c35
2 files changed, 42 insertions, 6 deletions
diff --git a/lib/libcrypto/asn1/a_time.c b/lib/libcrypto/asn1/a_time.c
index 95481fc4c6f..f51a8b1fbe0 100644
--- a/lib/libcrypto/asn1/a_time.c
+++ b/lib/libcrypto/asn1/a_time.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a_time.c,v 1.23 2015/02/09 15:05:59 jsing Exp $ */
+/* $OpenBSD: a_time.c,v 1.24 2015/07/24 13:49:58 jsing Exp $ */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
*
@@ -69,7 +69,16 @@
#include "o_time.h"
-IMPLEMENT_ASN1_MSTRING(ASN1_TIME, B_ASN1_TIME)
+
+const ASN1_ITEM ASN1_TIME_it = {
+ .itype = ASN1_ITYPE_MSTRING,
+ .utype = B_ASN1_TIME,
+ .templates = NULL,
+ .tcount = 0,
+ .funcs = NULL,
+ .size = sizeof(ASN1_STRING),
+ .sname = "ASN1_TIME",
+};
ASN1_TIME *
diff --git a/lib/libcrypto/asn1/tasn_typ.c b/lib/libcrypto/asn1/tasn_typ.c
index 5b8b4f79f6d..5e838e2cf07 100644
--- a/lib/libcrypto/asn1/tasn_typ.c
+++ b/lib/libcrypto/asn1/tasn_typ.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tasn_typ.c,v 1.11 2015/02/10 09:52:16 jsing Exp $ */
+/* $OpenBSD: tasn_typ.c,v 1.12 2015/07/24 13:49:58 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2000.
*/
@@ -595,7 +595,16 @@ ASN1_TYPE_free(ASN1_TYPE *a)
/* Multistring types */
-IMPLEMENT_ASN1_MSTRING(ASN1_PRINTABLE, B_ASN1_PRINTABLE)
+
+const ASN1_ITEM ASN1_PRINTABLE_it = {
+ .itype = ASN1_ITYPE_MSTRING,
+ .utype = B_ASN1_PRINTABLE,
+ .templates = NULL,
+ .tcount = 0,
+ .funcs = NULL,
+ .size = sizeof(ASN1_STRING),
+ .sname = "ASN1_PRINTABLE",
+};
ASN1_STRING *
d2i_ASN1_PRINTABLE(ASN1_STRING **a, const unsigned char **in, long len)
@@ -622,7 +631,16 @@ ASN1_PRINTABLE_free(ASN1_STRING *a)
ASN1_item_free((ASN1_VALUE *)a, &ASN1_PRINTABLE_it);
}
-IMPLEMENT_ASN1_MSTRING(DISPLAYTEXT, B_ASN1_DISPLAYTEXT)
+
+const ASN1_ITEM DISPLAYTEXT_it = {
+ .itype = ASN1_ITYPE_MSTRING,
+ .utype = B_ASN1_DISPLAYTEXT,
+ .templates = NULL,
+ .tcount = 0,
+ .funcs = NULL,
+ .size = sizeof(ASN1_STRING),
+ .sname = "DISPLAYTEXT",
+};
ASN1_STRING *
d2i_DISPLAYTEXT(ASN1_STRING **a, const unsigned char **in, long len)
@@ -649,7 +667,16 @@ DISPLAYTEXT_free(ASN1_STRING *a)
ASN1_item_free((ASN1_VALUE *)a, &DISPLAYTEXT_it);
}
-IMPLEMENT_ASN1_MSTRING(DIRECTORYSTRING, B_ASN1_DIRECTORYSTRING)
+
+const ASN1_ITEM DIRECTORYSTRING_it = {
+ .itype = ASN1_ITYPE_MSTRING,
+ .utype = B_ASN1_DIRECTORYSTRING,
+ .templates = NULL,
+ .tcount = 0,
+ .funcs = NULL,
+ .size = sizeof(ASN1_STRING),
+ .sname = "DIRECTORYSTRING",
+};
ASN1_STRING *
d2i_DIRECTORYSTRING(ASN1_STRING **a, const unsigned char **in, long len)