diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-04-18 08:33:44 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-04-18 08:33:44 +0000 |
commit | bb3ef9f7c8d0cbbcd44d19b91dff690afd317c7e (patch) | |
tree | e06c08f96036b266af21a9e653df0a85dadf33ad /lib | |
parent | 2c87517126efcb8a18496889d798975bf4c14aec (diff) |
Move some includes out of OPENSSL_NO_DEPRECATED
Some headers were included conditionally on OPENSSL_NO_DEPRECATED in hopes
that eventually the mess of everything includes everything will magically
resolve itself. Of course everyone would end up building openssl with
OPENSSL_NO_DEPRECATED over time... Right.
Surprisingly, the ecosystem has come to rely on these implicit inclusions,
so about two dozen ports would fail to build because of this. Patching this
would be easy but really not worth the effort.
ok jsing
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/asn1/asn1.h | 4 | ||||
-rw-r--r-- | lib/libcrypto/dh/dh.h | 4 | ||||
-rw-r--r-- | lib/libcrypto/dsa/dsa.h | 4 | ||||
-rw-r--r-- | lib/libcrypto/ecdh/ecdh.h | 4 | ||||
-rw-r--r-- | lib/libcrypto/ecdsa/ecdsa.h | 4 | ||||
-rw-r--r-- | lib/libcrypto/engine/engine.h | 4 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa.h | 4 | ||||
-rw-r--r-- | lib/libcrypto/ui/ui.h | 4 | ||||
-rw-r--r-- | lib/libcrypto/x509/x509.h | 4 |
9 files changed, 9 insertions, 27 deletions
diff --git a/lib/libcrypto/asn1/asn1.h b/lib/libcrypto/asn1/asn1.h index fc1d4be02bc..01bfcd31e0e 100644 --- a/lib/libcrypto/asn1/asn1.h +++ b/lib/libcrypto/asn1/asn1.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1.h,v 1.72 2022/11/13 13:59:46 tb Exp $ */ +/* $OpenBSD: asn1.h,v 1.73 2023/04/18 08:33:43 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -70,9 +70,7 @@ #include <openssl/safestack.h> #include <openssl/ossl_typ.h> -#ifndef OPENSSL_NO_DEPRECATED #include <openssl/bn.h> -#endif #ifdef __cplusplus extern "C" { diff --git a/lib/libcrypto/dh/dh.h b/lib/libcrypto/dh/dh.h index 402ef6e17b6..65b4348acf5 100644 --- a/lib/libcrypto/dh/dh.h +++ b/lib/libcrypto/dh/dh.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dh.h,v 1.36 2023/04/09 19:10:23 tb Exp $ */ +/* $OpenBSD: dh.h,v 1.37 2023/04/18 08:33:43 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -69,9 +69,7 @@ #include <openssl/bio.h> #endif #include <openssl/ossl_typ.h> -#ifndef OPENSSL_NO_DEPRECATED #include <openssl/bn.h> -#endif #ifndef OPENSSL_DH_MAX_MODULUS_BITS # define OPENSSL_DH_MAX_MODULUS_BITS 10000 diff --git a/lib/libcrypto/dsa/dsa.h b/lib/libcrypto/dsa/dsa.h index c1ff3d7de74..3d81dc6dec8 100644 --- a/lib/libcrypto/dsa/dsa.h +++ b/lib/libcrypto/dsa/dsa.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dsa.h,v 1.41 2023/04/09 19:10:23 tb Exp $ */ +/* $OpenBSD: dsa.h,v 1.42 2023/04/18 08:33:43 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -77,12 +77,10 @@ #include <openssl/crypto.h> #include <openssl/ossl_typ.h> -#ifndef OPENSSL_NO_DEPRECATED #include <openssl/bn.h> #ifndef OPENSSL_NO_DH # include <openssl/dh.h> #endif -#endif #ifndef OPENSSL_DSA_MAX_MODULUS_BITS # define OPENSSL_DSA_MAX_MODULUS_BITS 10000 diff --git a/lib/libcrypto/ecdh/ecdh.h b/lib/libcrypto/ecdh/ecdh.h index b39a90f165c..98cc2223a18 100644 --- a/lib/libcrypto/ecdh/ecdh.h +++ b/lib/libcrypto/ecdh/ecdh.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ecdh.h,v 1.6 2022/07/12 14:42:49 kn Exp $ */ +/* $OpenBSD: ecdh.h,v 1.7 2023/04/18 08:33:43 tb Exp $ */ /* ==================================================================== * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. * @@ -77,9 +77,7 @@ #include <openssl/ec.h> #include <openssl/ossl_typ.h> -#ifndef OPENSSL_NO_DEPRECATED #include <openssl/bn.h> -#endif #ifdef __cplusplus extern "C" { diff --git a/lib/libcrypto/ecdsa/ecdsa.h b/lib/libcrypto/ecdsa/ecdsa.h index 3f0eb3b66fe..d095ef40a39 100644 --- a/lib/libcrypto/ecdsa/ecdsa.h +++ b/lib/libcrypto/ecdsa/ecdsa.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ecdsa.h,v 1.13 2022/12/26 07:18:51 jmc Exp $ */ +/* $OpenBSD: ecdsa.h,v 1.14 2023/04/18 08:33:43 tb Exp $ */ /** * \file crypto/ecdsa/ecdsa.h Include file for the OpenSSL ECDSA functions * \author Written by Nils Larsch for the OpenSSL project @@ -67,9 +67,7 @@ #include <openssl/ec.h> #include <openssl/ossl_typ.h> -#ifndef OPENSSL_NO_DEPRECATED #include <openssl/bn.h> -#endif #ifdef __cplusplus extern "C" { diff --git a/lib/libcrypto/engine/engine.h b/lib/libcrypto/engine/engine.h index 41f05d48af6..8a3574fd575 100644 --- a/lib/libcrypto/engine/engine.h +++ b/lib/libcrypto/engine/engine.h @@ -1,4 +1,4 @@ -/* $OpenBSD: engine.h,v 1.35 2022/12/26 07:18:52 jmc Exp $ */ +/* $OpenBSD: engine.h,v 1.36 2023/04/18 08:33:43 tb Exp $ */ /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL * project 2000. */ @@ -70,7 +70,6 @@ #error ENGINE is disabled. #endif -#ifndef OPENSSL_NO_DEPRECATED #include <openssl/bn.h> #ifndef OPENSSL_NO_RSA #include <openssl/rsa.h> @@ -92,7 +91,6 @@ #endif #include <openssl/ui.h> #include <openssl/err.h> -#endif #include <openssl/ossl_typ.h> diff --git a/lib/libcrypto/rsa/rsa.h b/lib/libcrypto/rsa/rsa.h index 3ee2afd627f..bf0aac647e7 100644 --- a/lib/libcrypto/rsa/rsa.h +++ b/lib/libcrypto/rsa/rsa.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa.h,v 1.60 2023/04/15 18:44:17 tb Exp $ */ +/* $OpenBSD: rsa.h,v 1.61 2023/04/18 08:33:43 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -68,9 +68,7 @@ #endif #include <openssl/crypto.h> #include <openssl/ossl_typ.h> -#ifndef OPENSSL_NO_DEPRECATED #include <openssl/bn.h> -#endif #ifdef OPENSSL_NO_RSA #error RSA is disabled. diff --git a/lib/libcrypto/ui/ui.h b/lib/libcrypto/ui/ui.h index 79d807f03c9..c6884313941 100644 --- a/lib/libcrypto/ui/ui.h +++ b/lib/libcrypto/ui/ui.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ui.h,v 1.17 2023/03/10 16:41:32 tb Exp $ */ +/* $OpenBSD: ui.h,v 1.18 2023/04/18 08:33:43 tb Exp $ */ /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL * project 2001. */ @@ -61,9 +61,7 @@ #include <openssl/opensslconf.h> -#ifndef OPENSSL_NO_DEPRECATED #include <openssl/crypto.h> -#endif #include <openssl/safestack.h> #include <openssl/ossl_typ.h> diff --git a/lib/libcrypto/x509/x509.h b/lib/libcrypto/x509/x509.h index 78623075714..ac14dd38683 100644 --- a/lib/libcrypto/x509/x509.h +++ b/lib/libcrypto/x509/x509.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.h,v 1.94 2023/03/10 16:43:02 tb Exp $ */ +/* $OpenBSD: x509.h,v 1.95 2023/04/18 08:33:43 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -91,7 +91,6 @@ #include <openssl/ecdh.h> #endif -#ifndef OPENSSL_NO_DEPRECATED #ifndef OPENSSL_NO_RSA #include <openssl/rsa.h> #endif @@ -101,7 +100,6 @@ #ifndef OPENSSL_NO_DH #include <openssl/dh.h> #endif -#endif #ifndef OPENSSL_NO_SHA #include <openssl/sha.h> |