summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1')
-rw-r--r--src/lib/libcrypto/asn1/asn1.h16
-rw-r--r--src/lib/libcrypto/asn1/asn1_locl.h16
2 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h
index e850f2b801..2e854f511e 100644
--- a/src/lib/libcrypto/asn1/asn1.h
+++ b/src/lib/libcrypto/asn1/asn1.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1.h,v 1.59 2022/01/14 07:57:17 tb Exp $ */ 1/* $OpenBSD: asn1.h,v 1.60 2022/01/14 08:09:18 tb 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 *
@@ -162,20 +162,6 @@ DECLARE_STACK_OF(X509_ALGOR)
162#define DECLARE_ASN1_SET_OF(type) /* filled in by mkstack.pl */ 162#define DECLARE_ASN1_SET_OF(type) /* filled in by mkstack.pl */
163#define IMPLEMENT_ASN1_SET_OF(type) /* nothing, no longer needed */ 163#define IMPLEMENT_ASN1_SET_OF(type) /* nothing, no longer needed */
164 164
165/* These are used internally in the ASN1_OBJECT to keep track of
166 * whether the names and data need to be free()ed */
167#define ASN1_OBJECT_FLAG_DYNAMIC 0x01 /* internal use */
168#define ASN1_OBJECT_FLAG_CRITICAL 0x02 /* critical x509v3 object id */
169#define ASN1_OBJECT_FLAG_DYNAMIC_STRINGS 0x04 /* internal use */
170#define ASN1_OBJECT_FLAG_DYNAMIC_DATA 0x08 /* internal use */
171typedef struct asn1_object_st {
172 const char *sn, *ln;
173 int nid;
174 int length;
175 const unsigned char *data; /* data remains const after init */
176 int flags; /* Should we free this one */
177} ASN1_OBJECT;
178
179#define ASN1_STRING_FLAG_BITS_LEFT 0x08 /* Set if 0x07 has bits left value */ 165#define ASN1_STRING_FLAG_BITS_LEFT 0x08 /* Set if 0x07 has bits left value */
180/* This indicates that the ASN1_STRING is not a real value but just a place 166/* This indicates that the ASN1_STRING is not a real value but just a place
181 * holder for the location where indefinite length constructed data should 167 * holder for the location where indefinite length constructed data should
diff --git a/src/lib/libcrypto/asn1/asn1_locl.h b/src/lib/libcrypto/asn1/asn1_locl.h
index 76b165e77f..cca92aa686 100644
--- a/src/lib/libcrypto/asn1/asn1_locl.h
+++ b/src/lib/libcrypto/asn1/asn1_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1_locl.h,v 1.17 2022/01/10 12:10:26 tb Exp $ */ 1/* $OpenBSD: asn1_locl.h,v 1.18 2022/01/14 08:09:18 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2006. 3 * project 2006.
4 */ 4 */
@@ -65,6 +65,20 @@ __BEGIN_HIDDEN_DECLS
65ASN1_TYPE *ASN1_TYPE_pack_sequence(const ASN1_ITEM *it, void *s, ASN1_TYPE **t); 65ASN1_TYPE *ASN1_TYPE_pack_sequence(const ASN1_ITEM *it, void *s, ASN1_TYPE **t);
66void *ASN1_TYPE_unpack_sequence(const ASN1_ITEM *it, const ASN1_TYPE *t); 66void *ASN1_TYPE_unpack_sequence(const ASN1_ITEM *it, const ASN1_TYPE *t);
67 67
68/* These are used internally in the ASN1_OBJECT to keep track of
69 * whether the names and data need to be free()ed */
70#define ASN1_OBJECT_FLAG_DYNAMIC 0x01 /* internal use */
71#define ASN1_OBJECT_FLAG_CRITICAL 0x02 /* critical x509v3 object id */
72#define ASN1_OBJECT_FLAG_DYNAMIC_STRINGS 0x04 /* internal use */
73#define ASN1_OBJECT_FLAG_DYNAMIC_DATA 0x08 /* internal use */
74struct asn1_object_st {
75 const char *sn, *ln;
76 int nid;
77 int length;
78 const unsigned char *data; /* data remains const after init */
79 int flags; /* Should we free this one */
80} /* ASN1_OBJECT */;
81
68/* ASN1 print context structure */ 82/* ASN1 print context structure */
69 83
70struct asn1_pctx_st { 84struct asn1_pctx_st {