From 0a9b2eebd959bd9a2fe64f36f8389266a7c0b88b Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 28 Jul 2023 15:50:33 +0000 Subject: Stop including ecdsa.h and ecdh.h internally These headers are now reduced to #include and are provided for compatiblity only. There's no point in using them. At the same time garbage collect the last uses of OPENSSL_NO_{ECDSA,ECDH} in our tree. ok jsing --- src/lib/libcrypto/ec/ec_local.h | 3 +-- src/lib/libcrypto/ec/ec_pmeth.c | 3 +-- src/lib/libcrypto/ecdsa/ecdsa_local.h | 4 ++-- src/lib/libcrypto/gost/gost_local.h | 3 +-- src/lib/libcrypto/gost/gostr341001_pmeth.c | 3 +-- src/lib/libcrypto/sm2/sm2.h | 3 +-- src/lib/libcrypto/sm2/sm2_local.h | 3 +-- src/lib/libcrypto/x509/x509.h | 8 +------- 8 files changed, 9 insertions(+), 21 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h index 8153d4a96a..3252eeb1c8 100644 --- a/src/lib/libcrypto/ec/ec_local.h +++ b/src/lib/libcrypto/ec/ec_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_local.h,v 1.25 2023/07/28 09:28:37 tb Exp $ */ +/* $OpenBSD: ec_local.h,v 1.26 2023/07/28 15:50:33 tb Exp $ */ /* * Originally written by Bodo Moeller for the OpenSSL project. */ @@ -73,7 +73,6 @@ #include #include -#include #include #include "bn_local.h" diff --git a/src/lib/libcrypto/ec/ec_pmeth.c b/src/lib/libcrypto/ec/ec_pmeth.c index 7c94f80c7f..d3bf7e8cdc 100644 --- a/src/lib/libcrypto/ec/ec_pmeth.c +++ b/src/lib/libcrypto/ec/ec_pmeth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ec_pmeth.c,v 1.18 2023/06/25 19:26:04 tb Exp $ */ +/* $OpenBSD: ec_pmeth.c,v 1.19 2023/07/28 15:50:33 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -61,7 +61,6 @@ #include #include -#include #include #include #include diff --git a/src/lib/libcrypto/ecdsa/ecdsa_local.h b/src/lib/libcrypto/ecdsa/ecdsa_local.h index 249e045900..cc3af3e10f 100644 --- a/src/lib/libcrypto/ecdsa/ecdsa_local.h +++ b/src/lib/libcrypto/ecdsa/ecdsa_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ecdsa_local.h,v 1.1 2023/07/05 11:37:46 tb Exp $ */ +/* $OpenBSD: ecdsa_local.h,v 1.2 2023/07/28 15:50:33 tb Exp $ */ /* * Written by Nils Larsch for the OpenSSL project */ @@ -59,7 +59,7 @@ #ifndef HEADER_ECS_LOCAL_H #define HEADER_ECS_LOCAL_H -#include +#include __BEGIN_HIDDEN_DECLS diff --git a/src/lib/libcrypto/gost/gost_local.h b/src/lib/libcrypto/gost/gost_local.h index 830f14149e..db07d06f04 100644 --- a/src/lib/libcrypto/gost/gost_local.h +++ b/src/lib/libcrypto/gost/gost_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: gost_local.h,v 1.2 2022/11/26 17:23:18 tb Exp $ */ +/* $OpenBSD: gost_local.h,v 1.3 2023/07/28 15:50:33 tb Exp $ */ /* * Copyright (c) 2014 Dmitry Eremin-Solenikov * Copyright (c) 2005-2006 Cryptocom LTD @@ -53,7 +53,6 @@ #define HEADER_GOST_LOCAL_H #include -#include __BEGIN_HIDDEN_DECLS diff --git a/src/lib/libcrypto/gost/gostr341001_pmeth.c b/src/lib/libcrypto/gost/gostr341001_pmeth.c index 93e4820d7c..c5e05bec60 100644 --- a/src/lib/libcrypto/gost/gostr341001_pmeth.c +++ b/src/lib/libcrypto/gost/gostr341001_pmeth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gostr341001_pmeth.c,v 1.18 2023/07/05 11:37:45 tb Exp $ */ +/* $OpenBSD: gostr341001_pmeth.c,v 1.19 2023/07/28 15:50:33 tb Exp $ */ /* * Copyright (c) 2014 Dmitry Eremin-Solenikov * Copyright (c) 2005-2006 Cryptocom LTD @@ -59,7 +59,6 @@ #include #include #include -#include #include #include "ecdsa_local.h" diff --git a/src/lib/libcrypto/sm2/sm2.h b/src/lib/libcrypto/sm2/sm2.h index dee75eb68b..2f14fe666e 100644 --- a/src/lib/libcrypto/sm2/sm2.h +++ b/src/lib/libcrypto/sm2/sm2.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sm2.h,v 1.2 2022/07/12 14:42:50 kn Exp $ */ +/* $OpenBSD: sm2.h,v 1.3 2023/07/28 15:50:33 tb Exp $ */ /* * Copyright (c) 2017, 2019 Ribose Inc * @@ -21,7 +21,6 @@ #include #include -#include #ifdef OPENSSL_NO_SM2 #error SM2 is disabled. diff --git a/src/lib/libcrypto/sm2/sm2_local.h b/src/lib/libcrypto/sm2/sm2_local.h index ad97f2c771..388c468ef2 100644 --- a/src/lib/libcrypto/sm2/sm2_local.h +++ b/src/lib/libcrypto/sm2/sm2_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sm2_local.h,v 1.2 2022/11/26 17:23:18 tb Exp $ */ +/* $OpenBSD: sm2_local.h,v 1.3 2023/07/28 15:50:33 tb Exp $ */ /* * Copyright (c) 2017, 2019 Ribose Inc * @@ -19,7 +19,6 @@ #define HEADER_SM2_LOCAL_H #include -#include __BEGIN_HIDDEN_DECLS diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index c2a9dfedc5..f76576f61c 100644 --- a/src/lib/libcrypto/x509/x509.h +++ b/src/lib/libcrypto/x509/x509.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.h,v 1.100 2023/04/25 18:57:57 tb Exp $ */ +/* $OpenBSD: x509.h,v 1.101 2023/07/28 15:50:33 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -82,12 +82,6 @@ #ifndef OPENSSL_NO_EC #include #endif -#ifndef OPENSSL_NO_ECDSA -#include -#endif -#ifndef OPENSSL_NO_ECDH -#include -#endif #ifndef OPENSSL_NO_EVP #include #endif -- cgit v1.2.3-55-g6feb