From: tb Date: Tue, 18 Apr 2023 08:33:43 +0000 (+0000) Subject: Move some includes out of OPENSSL_NO_DEPRECATED X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c6a6590f55230fc4fe72212c9c23b423830fca10;p=openbsd 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 --- 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 #include -#ifndef OPENSSL_NO_DEPRECATED #include -#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 #endif #include -#ifndef OPENSSL_NO_DEPRECATED #include -#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 #include -#ifndef OPENSSL_NO_DEPRECATED #include #ifndef OPENSSL_NO_DH # include #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 #include -#ifndef OPENSSL_NO_DEPRECATED #include -#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 #include -#ifndef OPENSSL_NO_DEPRECATED #include -#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 #ifndef OPENSSL_NO_RSA #include @@ -92,7 +91,6 @@ #endif #include #include -#endif #include 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 #include -#ifndef OPENSSL_NO_DEPRECATED #include -#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 -#ifndef OPENSSL_NO_DEPRECATED #include -#endif #include #include 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 #endif -#ifndef OPENSSL_NO_DEPRECATED #ifndef OPENSSL_NO_RSA #include #endif @@ -101,7 +100,6 @@ #ifndef OPENSSL_NO_DH #include #endif -#endif #ifndef OPENSSL_NO_SHA #include