diff options
author | jsing <> | 2021-12-25 08:52:44 +0000 |
---|---|---|
committer | jsing <> | 2021-12-25 08:52:44 +0000 |
commit | a1aa360082915390f4dce8cb202c7a908f0801d7 (patch) | |
tree | deb13cf3156e23b9aed2e7ab7fcc949a90f0b8a0 /src/lib/libcrypto/asn1/a_object.c | |
parent | 9bcf656c985ee0377aa1efaa225459e511cda945 (diff) | |
download | openbsd-a1aa360082915390f4dce8cb202c7a908f0801d7.tar.gz openbsd-a1aa360082915390f4dce8cb202c7a908f0801d7.tar.bz2 openbsd-a1aa360082915390f4dce8cb202c7a908f0801d7.zip |
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@
Diffstat (limited to 'src/lib/libcrypto/asn1/a_object.c')
-rw-r--r-- | src/lib/libcrypto/asn1/a_object.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 @@ | |||
1 | /* $OpenBSD: a_object.c,v 1.34 2021/12/25 07:48:09 jsing Exp $ */ | 1 | /* $OpenBSD: a_object.c,v 1.35 2021/12/25 08:52:44 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -61,11 +61,18 @@ | |||
61 | #include <string.h> | 61 | #include <string.h> |
62 | 62 | ||
63 | #include <openssl/asn1.h> | 63 | #include <openssl/asn1.h> |
64 | #include <openssl/asn1t.h> | ||
64 | #include <openssl/bn.h> | 65 | #include <openssl/bn.h> |
65 | #include <openssl/err.h> | 66 | #include <openssl/err.h> |
66 | #include <openssl/buffer.h> | 67 | #include <openssl/buffer.h> |
67 | #include <openssl/objects.h> | 68 | #include <openssl/objects.h> |
68 | 69 | ||
70 | const ASN1_ITEM ASN1_OBJECT_it = { | ||
71 | .itype = ASN1_ITYPE_PRIMITIVE, | ||
72 | .utype = V_ASN1_OBJECT, | ||
73 | .sname = "ASN1_OBJECT", | ||
74 | }; | ||
75 | |||
69 | ASN1_OBJECT * | 76 | ASN1_OBJECT * |
70 | ASN1_OBJECT_new(void) | 77 | ASN1_OBJECT_new(void) |
71 | { | 78 | { |