summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authordoug <>2015-09-30 04:10:07 +0000
committerdoug <>2015-09-30 04:10:07 +0000
commitd504bbe07a26c46daaa2fe5bbcddf3c209ada5c6 (patch)
tree12879e61c23f68eff868df11ee802b979fa5debf /src/lib
parentc649d811f1ee784aef5143f06fd038b66b6caf01 (diff)
downloadopenbsd-d504bbe07a26c46daaa2fe5bbcddf3c209ada5c6.tar.gz
openbsd-d504bbe07a26c46daaa2fe5bbcddf3c209ada5c6.tar.bz2
openbsd-d504bbe07a26c46daaa2fe5bbcddf3c209ada5c6.zip
Remove support for NO_ASN1_TYPEDEFS.
This ifdef was introduced 15 years ago and was known to cause problems with STACK_OF() back then. ok jsing@, beck@, jca@
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/ossl_typ.h22
-rw-r--r--src/lib/libssl/src/crypto/ossl_typ.h22
2 files changed, 2 insertions, 42 deletions
diff --git a/src/lib/libcrypto/ossl_typ.h b/src/lib/libcrypto/ossl_typ.h
index 2a3f5b740d..234fdca1ea 100644
--- a/src/lib/libcrypto/ossl_typ.h
+++ b/src/lib/libcrypto/ossl_typ.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ossl_typ.h,v 1.12 2014/06/12 15:49:27 deraadt Exp $ */ 1/* $OpenBSD: ossl_typ.h,v 1.13 2015/09/30 04:10:07 doug Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -58,25 +58,6 @@
58 58
59#include <openssl/opensslconf.h> 59#include <openssl/opensslconf.h>
60 60
61#ifdef NO_ASN1_TYPEDEFS
62#define ASN1_INTEGER ASN1_STRING
63#define ASN1_ENUMERATED ASN1_STRING
64#define ASN1_BIT_STRING ASN1_STRING
65#define ASN1_OCTET_STRING ASN1_STRING
66#define ASN1_PRINTABLESTRING ASN1_STRING
67#define ASN1_T61STRING ASN1_STRING
68#define ASN1_IA5STRING ASN1_STRING
69#define ASN1_UTCTIME ASN1_STRING
70#define ASN1_GENERALIZEDTIME ASN1_STRING
71#define ASN1_TIME ASN1_STRING
72#define ASN1_GENERALSTRING ASN1_STRING
73#define ASN1_UNIVERSALSTRING ASN1_STRING
74#define ASN1_BMPSTRING ASN1_STRING
75#define ASN1_VISIBLESTRING ASN1_STRING
76#define ASN1_UTF8STRING ASN1_STRING
77#define ASN1_BOOLEAN int
78#define ASN1_NULL int
79#else
80typedef struct asn1_string_st ASN1_INTEGER; 61typedef struct asn1_string_st ASN1_INTEGER;
81typedef struct asn1_string_st ASN1_ENUMERATED; 62typedef struct asn1_string_st ASN1_ENUMERATED;
82typedef struct asn1_string_st ASN1_BIT_STRING; 63typedef struct asn1_string_st ASN1_BIT_STRING;
@@ -95,7 +76,6 @@ typedef struct asn1_string_st ASN1_UTF8STRING;
95typedef struct asn1_string_st ASN1_STRING; 76typedef struct asn1_string_st ASN1_STRING;
96typedef int ASN1_BOOLEAN; 77typedef int ASN1_BOOLEAN;
97typedef int ASN1_NULL; 78typedef int ASN1_NULL;
98#endif
99 79
100typedef struct ASN1_ITEM_st ASN1_ITEM; 80typedef struct ASN1_ITEM_st ASN1_ITEM;
101typedef struct asn1_pctx_st ASN1_PCTX; 81typedef struct asn1_pctx_st ASN1_PCTX;
diff --git a/src/lib/libssl/src/crypto/ossl_typ.h b/src/lib/libssl/src/crypto/ossl_typ.h
index 2a3f5b740d..234fdca1ea 100644
--- a/src/lib/libssl/src/crypto/ossl_typ.h
+++ b/src/lib/libssl/src/crypto/ossl_typ.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ossl_typ.h,v 1.12 2014/06/12 15:49:27 deraadt Exp $ */ 1/* $OpenBSD: ossl_typ.h,v 1.13 2015/09/30 04:10:07 doug Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2001 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -58,25 +58,6 @@
58 58
59#include <openssl/opensslconf.h> 59#include <openssl/opensslconf.h>
60 60
61#ifdef NO_ASN1_TYPEDEFS
62#define ASN1_INTEGER ASN1_STRING
63#define ASN1_ENUMERATED ASN1_STRING
64#define ASN1_BIT_STRING ASN1_STRING
65#define ASN1_OCTET_STRING ASN1_STRING
66#define ASN1_PRINTABLESTRING ASN1_STRING
67#define ASN1_T61STRING ASN1_STRING
68#define ASN1_IA5STRING ASN1_STRING
69#define ASN1_UTCTIME ASN1_STRING
70#define ASN1_GENERALIZEDTIME ASN1_STRING
71#define ASN1_TIME ASN1_STRING
72#define ASN1_GENERALSTRING ASN1_STRING
73#define ASN1_UNIVERSALSTRING ASN1_STRING
74#define ASN1_BMPSTRING ASN1_STRING
75#define ASN1_VISIBLESTRING ASN1_STRING
76#define ASN1_UTF8STRING ASN1_STRING
77#define ASN1_BOOLEAN int
78#define ASN1_NULL int
79#else
80typedef struct asn1_string_st ASN1_INTEGER; 61typedef struct asn1_string_st ASN1_INTEGER;
81typedef struct asn1_string_st ASN1_ENUMERATED; 62typedef struct asn1_string_st ASN1_ENUMERATED;
82typedef struct asn1_string_st ASN1_BIT_STRING; 63typedef struct asn1_string_st ASN1_BIT_STRING;
@@ -95,7 +76,6 @@ typedef struct asn1_string_st ASN1_UTF8STRING;
95typedef struct asn1_string_st ASN1_STRING; 76typedef struct asn1_string_st ASN1_STRING;
96typedef int ASN1_BOOLEAN; 77typedef int ASN1_BOOLEAN;
97typedef int ASN1_NULL; 78typedef int ASN1_NULL;
98#endif
99 79
100typedef struct ASN1_ITEM_st ASN1_ITEM; 80typedef struct ASN1_ITEM_st ASN1_ITEM;
101typedef struct asn1_pctx_st ASN1_PCTX; 81typedef struct asn1_pctx_st ASN1_PCTX;