diff options
author | tb <> | 2024-11-01 18:34:06 +0000 |
---|---|---|
committer | tb <> | 2024-11-01 18:34:06 +0000 |
commit | 12b149689e9ecef5eabf56c91c4a00f1d0742bd0 (patch) | |
tree | 50dbf2120c2d877acc8fd462ded3fb682c9f7c17 | |
parent | d4ca6fa06f50f56e26012c7847abb219e21f3d1a (diff) | |
download | openbsd-12b149689e9ecef5eabf56c91c4a00f1d0742bd0.tar.gz openbsd-12b149689e9ecef5eabf56c91c4a00f1d0742bd0.tar.bz2 openbsd-12b149689e9ecef5eabf56c91c4a00f1d0742bd0.zip |
Only include cryptlib.h where it's needed
Clean up the other includes while there.
-rw-r--r-- | src/lib/libcrypto/cms/cms_enc.c | 16 | ||||
-rw-r--r-- | src/lib/libcrypto/cms/cms_kari.c | 14 | ||||
-rw-r--r-- | src/lib/libcrypto/ct/ct_log.c | 7 | ||||
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_ameth.c | 12 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509_def.c | 7 |
5 files changed, 31 insertions, 25 deletions
diff --git a/src/lib/libcrypto/cms/cms_enc.c b/src/lib/libcrypto/cms/cms_enc.c index dee643fa19..ef6925dbd6 100644 --- a/src/lib/libcrypto/cms/cms_enc.c +++ b/src/lib/libcrypto/cms/cms_enc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cms_enc.c,v 1.24 2024/01/14 18:40:24 tb Exp $ */ | 1 | /* $OpenBSD: cms_enc.c,v 1.25 2024/11/01 18:34:06 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
4 | * project. | 4 | * project. |
@@ -52,19 +52,19 @@ | |||
52 | * ==================================================================== | 52 | * ==================================================================== |
53 | */ | 53 | */ |
54 | 54 | ||
55 | #include <stdlib.h> | ||
55 | #include <string.h> | 56 | #include <string.h> |
56 | 57 | ||
57 | #include "cryptlib.h" | 58 | #include <openssl/asn1.h> |
58 | #include <openssl/asn1t.h> | 59 | #include <openssl/bio.h> |
59 | #include <openssl/pem.h> | ||
60 | #include <openssl/x509v3.h> | ||
61 | #include <openssl/err.h> | ||
62 | #include <openssl/cms.h> | 60 | #include <openssl/cms.h> |
63 | #include <openssl/rand.h> | 61 | #include <openssl/err.h> |
62 | #include <openssl/evp.h> | ||
63 | #include <openssl/objects.h> | ||
64 | #include <openssl/x509.h> | ||
64 | 65 | ||
65 | #include "cms_local.h" | 66 | #include "cms_local.h" |
66 | #include "evp_local.h" | 67 | #include "evp_local.h" |
67 | #include "x509_local.h" | ||
68 | 68 | ||
69 | /* CMS EncryptedData Utilities */ | 69 | /* CMS EncryptedData Utilities */ |
70 | 70 | ||
diff --git a/src/lib/libcrypto/cms/cms_kari.c b/src/lib/libcrypto/cms/cms_kari.c index 242a496932..86b1ad9e83 100644 --- a/src/lib/libcrypto/cms/cms_kari.c +++ b/src/lib/libcrypto/cms/cms_kari.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cms_kari.c,v 1.16 2024/02/02 14:11:45 tb Exp $ */ | 1 | /* $OpenBSD: cms_kari.c,v 1.17 2024/11/01 18:34:06 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
4 | * project. | 4 | * project. |
@@ -52,17 +52,15 @@ | |||
52 | * ==================================================================== | 52 | * ==================================================================== |
53 | */ | 53 | */ |
54 | 54 | ||
55 | #include <stdlib.h> | ||
55 | #include <string.h> | 56 | #include <string.h> |
56 | 57 | ||
57 | #include "cryptlib.h" | 58 | #include <openssl/asn1.h> |
58 | #include <openssl/asn1t.h> | ||
59 | #include <openssl/pem.h> | ||
60 | #include <openssl/x509v3.h> | ||
61 | #include <openssl/err.h> | ||
62 | #include <openssl/cms.h> | 59 | #include <openssl/cms.h> |
63 | #include <openssl/aes.h> | 60 | #include <openssl/err.h> |
61 | #include <openssl/evp.h> | ||
62 | |||
64 | #include "cms_local.h" | 63 | #include "cms_local.h" |
65 | #include "asn1/asn1_local.h" | ||
66 | 64 | ||
67 | /* Key Agreement Recipient Info (KARI) routines */ | 65 | /* Key Agreement Recipient Info (KARI) routines */ |
68 | 66 | ||
diff --git a/src/lib/libcrypto/ct/ct_log.c b/src/lib/libcrypto/ct/ct_log.c index 514246ff4f..0b2b061167 100644 --- a/src/lib/libcrypto/ct/ct_log.c +++ b/src/lib/libcrypto/ct/ct_log.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ct_log.c,v 1.7 2024/08/31 09:26:18 tb Exp $ */ | 1 | /* $OpenBSD: ct_log.c,v 1.8 2024/11/01 18:34:06 tb Exp $ */ |
2 | /* Author: Adam Eijdenberg <adam.eijdenberg@gmail.com>. */ | 2 | /* Author: Adam Eijdenberg <adam.eijdenberg@gmail.com>. */ |
3 | /* ==================================================================== | 3 | /* ==================================================================== |
4 | * Copyright (c) 1998-2016 The OpenSSL Project. All rights reserved. | 4 | * Copyright (c) 1998-2016 The OpenSSL Project. All rights reserved. |
@@ -58,14 +58,17 @@ | |||
58 | * https://www.openssl.org/source/license.html | 58 | * https://www.openssl.org/source/license.html |
59 | */ | 59 | */ |
60 | 60 | ||
61 | #include <stdint.h> | ||
61 | #include <stdlib.h> | 62 | #include <stdlib.h> |
62 | #include <string.h> | 63 | #include <string.h> |
63 | 64 | ||
65 | #include <openssl/asn1.h> | ||
64 | #include <openssl/conf.h> | 66 | #include <openssl/conf.h> |
65 | #include <openssl/ct.h> | 67 | #include <openssl/ct.h> |
66 | #include <openssl/err.h> | 68 | #include <openssl/err.h> |
67 | #include <openssl/evp.h> | 69 | #include <openssl/evp.h> |
68 | #include <openssl/safestack.h> | 70 | #include <openssl/sha.h> |
71 | #include <openssl/x509.h> | ||
69 | 72 | ||
70 | #include "conf_local.h" | 73 | #include "conf_local.h" |
71 | 74 | ||
diff --git a/src/lib/libcrypto/rsa/rsa_ameth.c b/src/lib/libcrypto/rsa/rsa_ameth.c index eb5d599bf0..a42f04d42c 100644 --- a/src/lib/libcrypto/rsa/rsa_ameth.c +++ b/src/lib/libcrypto/rsa/rsa_ameth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_ameth.c,v 1.60 2024/08/29 16:58:19 tb Exp $ */ | 1 | /* $OpenBSD: rsa_ameth.c,v 1.61 2024/11/01 18:34:06 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -57,19 +57,25 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include <stdint.h> | ||
61 | #include <stdlib.h> | ||
60 | 62 | ||
61 | #include <openssl/opensslconf.h> | 63 | #include <openssl/opensslconf.h> |
62 | 64 | ||
63 | #include <openssl/asn1t.h> | 65 | #include <openssl/asn1.h> |
66 | #include <openssl/bio.h> | ||
64 | #include <openssl/bn.h> | 67 | #include <openssl/bn.h> |
65 | #include <openssl/cms.h> | 68 | #include <openssl/cms.h> |
66 | #include <openssl/err.h> | 69 | #include <openssl/err.h> |
70 | #include <openssl/evp.h> | ||
71 | #include <openssl/objects.h> | ||
72 | #include <openssl/pkcs7.h> | ||
67 | #include <openssl/rsa.h> | 73 | #include <openssl/rsa.h> |
74 | #include <openssl/sha.h> | ||
68 | #include <openssl/x509.h> | 75 | #include <openssl/x509.h> |
69 | 76 | ||
70 | #include "asn1_local.h" | 77 | #include "asn1_local.h" |
71 | #include "bn_local.h" | 78 | #include "bn_local.h" |
72 | #include "cryptlib.h" | ||
73 | #include "evp_local.h" | 79 | #include "evp_local.h" |
74 | #include "rsa_local.h" | 80 | #include "rsa_local.h" |
75 | #include "x509_local.h" | 81 | #include "x509_local.h" |
diff --git a/src/lib/libcrypto/x509/x509_def.c b/src/lib/libcrypto/x509/x509_def.c index f85781afdd..aca40329dc 100644 --- a/src/lib/libcrypto/x509/x509_def.c +++ b/src/lib/libcrypto/x509/x509_def.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_def.c,v 1.7 2023/02/16 08:38:17 tb Exp $ */ | 1 | /* $OpenBSD: x509_def.c,v 1.8 2024/11/01 18:34:06 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -56,11 +56,10 @@ | |||
56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <stdio.h> | ||
60 | #include "cryptlib.h" | ||
61 | #include <openssl/crypto.h> | ||
62 | #include <openssl/x509.h> | 59 | #include <openssl/x509.h> |
63 | 60 | ||
61 | #include "cryptlib.h" | ||
62 | |||
64 | const char * | 63 | const char * |
65 | X509_get_default_private_dir(void) | 64 | X509_get_default_private_dir(void) |
66 | { | 65 | { |