From 98c862c86b4c36ef66d94822cc18435c75e865d6 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Fri, 1 Nov 2024 18:34:07 +0000 Subject: Only include cryptlib.h where it's needed Clean up the other includes while there. --- lib/libcrypto/cms/cms_enc.c | 16 ++++++++-------- lib/libcrypto/cms/cms_kari.c | 14 ++++++-------- lib/libcrypto/ct/ct_log.c | 7 +++++-- lib/libcrypto/rsa/rsa_ameth.c | 12 +++++++++--- lib/libcrypto/x509/x509_def.c | 7 +++---- 5 files changed, 31 insertions(+), 25 deletions(-) (limited to 'lib') diff --git a/lib/libcrypto/cms/cms_enc.c b/lib/libcrypto/cms/cms_enc.c index dee643fa19e..ef6925dbd6f 100644 --- a/lib/libcrypto/cms/cms_enc.c +++ b/lib/libcrypto/cms/cms_enc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cms_enc.c,v 1.24 2024/01/14 18:40:24 tb Exp $ */ +/* $OpenBSD: cms_enc.c,v 1.25 2024/11/01 18:34:06 tb Exp $ */ /* * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. @@ -52,19 +52,19 @@ * ==================================================================== */ +#include #include -#include "cryptlib.h" -#include -#include -#include -#include +#include +#include #include -#include +#include +#include +#include +#include #include "cms_local.h" #include "evp_local.h" -#include "x509_local.h" /* CMS EncryptedData Utilities */ diff --git a/lib/libcrypto/cms/cms_kari.c b/lib/libcrypto/cms/cms_kari.c index 242a496932f..86b1ad9e837 100644 --- a/lib/libcrypto/cms/cms_kari.c +++ b/lib/libcrypto/cms/cms_kari.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cms_kari.c,v 1.16 2024/02/02 14:11:45 tb Exp $ */ +/* $OpenBSD: cms_kari.c,v 1.17 2024/11/01 18:34:06 tb Exp $ */ /* * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. @@ -52,17 +52,15 @@ * ==================================================================== */ +#include #include -#include "cryptlib.h" -#include -#include -#include -#include +#include #include -#include +#include +#include + #include "cms_local.h" -#include "asn1/asn1_local.h" /* Key Agreement Recipient Info (KARI) routines */ diff --git a/lib/libcrypto/ct/ct_log.c b/lib/libcrypto/ct/ct_log.c index 514246ff4f9..0b2b0611674 100644 --- a/lib/libcrypto/ct/ct_log.c +++ b/lib/libcrypto/ct/ct_log.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ct_log.c,v 1.7 2024/08/31 09:26:18 tb Exp $ */ +/* $OpenBSD: ct_log.c,v 1.8 2024/11/01 18:34:06 tb Exp $ */ /* Author: Adam Eijdenberg . */ /* ==================================================================== * Copyright (c) 1998-2016 The OpenSSL Project. All rights reserved. @@ -58,14 +58,17 @@ * https://www.openssl.org/source/license.html */ +#include #include #include +#include #include #include #include #include -#include +#include +#include #include "conf_local.h" diff --git a/lib/libcrypto/rsa/rsa_ameth.c b/lib/libcrypto/rsa/rsa_ameth.c index eb5d599bf07..a42f04d42cc 100644 --- a/lib/libcrypto/rsa/rsa_ameth.c +++ b/lib/libcrypto/rsa/rsa_ameth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_ameth.c,v 1.60 2024/08/29 16:58:19 tb Exp $ */ +/* $OpenBSD: rsa_ameth.c,v 1.61 2024/11/01 18:34:06 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -57,19 +57,25 @@ */ #include +#include +#include #include -#include +#include +#include #include #include #include +#include +#include +#include #include +#include #include #include "asn1_local.h" #include "bn_local.h" -#include "cryptlib.h" #include "evp_local.h" #include "rsa_local.h" #include "x509_local.h" diff --git a/lib/libcrypto/x509/x509_def.c b/lib/libcrypto/x509/x509_def.c index f85781afdd8..aca40329dcc 100644 --- a/lib/libcrypto/x509/x509_def.c +++ b/lib/libcrypto/x509/x509_def.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_def.c,v 1.7 2023/02/16 08:38:17 tb Exp $ */ +/* $OpenBSD: x509_def.c,v 1.8 2024/11/01 18:34:06 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -56,11 +56,10 @@ * [including the GNU Public Licence.] */ -#include -#include "cryptlib.h" -#include #include +#include "cryptlib.h" + const char * X509_get_default_private_dir(void) { -- cgit v1.2.3