From a1aa360082915390f4dce8cb202c7a908f0801d7 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 25 Dec 2021 08:52:44 +0000 Subject: Consolidate code/templates for ASN.1 types. Where an ASN.1 type has its own file, move the ASN.1 item template and template related functions into the file. Discussed with tb@ --- src/lib/libcrypto/asn1/a_object.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/asn1/a_object.c') diff --git a/src/lib/libcrypto/asn1/a_object.c b/src/lib/libcrypto/asn1/a_object.c index cc4f5dd424..a029a12fd8 100644 --- a/src/lib/libcrypto/asn1/a_object.c +++ b/src/lib/libcrypto/asn1/a_object.c @@ -1,4 +1,4 @@ -/* $OpenBSD: a_object.c,v 1.34 2021/12/25 07:48:09 jsing Exp $ */ +/* $OpenBSD: a_object.c,v 1.35 2021/12/25 08:52:44 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -61,11 +61,18 @@ #include #include +#include #include #include #include #include +const ASN1_ITEM ASN1_OBJECT_it = { + .itype = ASN1_ITYPE_PRIMITIVE, + .utype = V_ASN1_OBJECT, + .sname = "ASN1_OBJECT", +}; + ASN1_OBJECT * ASN1_OBJECT_new(void) { -- cgit v1.2.3-55-g6feb