summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/asn1.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/asn1.h')
-rw-r--r--src/lib/libcrypto/asn1/asn1.h16
1 files changed, 1 insertions, 15 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