diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-11-01 18:34:07 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-11-01 18:34:07 +0000 |
commit | 98c862c86b4c36ef66d94822cc18435c75e865d6 (patch) | |
tree | a6d1e33475341faf75bef900c400571846ba59c3 /lib | |
parent | c65f3bde4d013c965b8092180a77d71e61004c1f (diff) |
Only include cryptlib.h where it's needed
Clean up the other includes while there.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/cms/cms_enc.c | 16 | ||||
-rw-r--r-- | lib/libcrypto/cms/cms_kari.c | 14 | ||||
-rw-r--r-- | lib/libcrypto/ct/ct_log.c | 7 | ||||
-rw-r--r-- | lib/libcrypto/rsa/rsa_ameth.c | 12 | ||||
-rw-r--r-- | lib/libcrypto/x509/x509_def.c | 7 |
5 files changed, 31 insertions, 25 deletions
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 <stdlib.h> #include <string.h> -#include "cryptlib.h" -#include <openssl/asn1t.h> -#include <openssl/pem.h> -#include <openssl/x509v3.h> -#include <openssl/err.h> +#include <openssl/asn1.h> +#include <openssl/bio.h> #include <openssl/cms.h> -#include <openssl/rand.h> +#include <openssl/err.h> +#include <openssl/evp.h> +#include <openssl/objects.h> +#include <openssl/x509.h> #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 <stdlib.h> #include <string.h> -#include "cryptlib.h" -#include <openssl/asn1t.h> -#include <openssl/pem.h> -#include <openssl/x509v3.h> -#include <openssl/err.h> +#include <openssl/asn1.h> #include <openssl/cms.h> -#include <openssl/aes.h> +#include <openssl/err.h> +#include <openssl/evp.h> + #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 <adam.eijdenberg@gmail.com>. */ /* ==================================================================== * Copyright (c) 1998-2016 The OpenSSL Project. All rights reserved. @@ -58,14 +58,17 @@ * https://www.openssl.org/source/license.html */ +#include <stdint.h> #include <stdlib.h> #include <string.h> +#include <openssl/asn1.h> #include <openssl/conf.h> #include <openssl/ct.h> #include <openssl/err.h> #include <openssl/evp.h> -#include <openssl/safestack.h> +#include <openssl/sha.h> +#include <openssl/x509.h> #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 <stdio.h> +#include <stdint.h> +#include <stdlib.h> #include <openssl/opensslconf.h> -#include <openssl/asn1t.h> +#include <openssl/asn1.h> +#include <openssl/bio.h> #include <openssl/bn.h> #include <openssl/cms.h> #include <openssl/err.h> +#include <openssl/evp.h> +#include <openssl/objects.h> +#include <openssl/pkcs7.h> #include <openssl/rsa.h> +#include <openssl/sha.h> #include <openssl/x509.h> #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 <stdio.h> -#include "cryptlib.h" -#include <openssl/crypto.h> #include <openssl/x509.h> +#include "cryptlib.h" + const char * X509_get_default_private_dir(void) { |