diff options
author | tb <> | 2023-04-18 08:47:28 +0000 |
---|---|---|
committer | tb <> | 2023-04-18 08:47:28 +0000 |
commit | 6e1f6667e4c4f6bc69bbeeee57ecfc42bfb2ac10 (patch) | |
tree | b6cd13926762a1a092fe7bec28431b4cc10eef72 | |
parent | 67408c75ffa5cf9afa8816721916e650afef8c32 (diff) | |
download | openbsd-6e1f6667e4c4f6bc69bbeeee57ecfc42bfb2ac10.tar.gz openbsd-6e1f6667e4c4f6bc69bbeeee57ecfc42bfb2ac10.tar.bz2 openbsd-6e1f6667e4c4f6bc69bbeeee57ecfc42bfb2ac10.zip |
Bring includes into canonical order
Requested by jsing
-rw-r--r-- | src/lib/libcrypto/asn1/asn1.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/dsa/dsa.h | 8 | ||||
-rw-r--r-- | src/lib/libcrypto/ecdsa/ecdsa.h | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/engine/engine.h | 16 | ||||
-rw-r--r-- | src/lib/libcrypto/rsa/rsa.h | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509.h | 34 |
6 files changed, 35 insertions, 37 deletions
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h index 01bfcd31e0..03d7a2939f 100644 --- a/src/lib/libcrypto/asn1/asn1.h +++ b/src/lib/libcrypto/asn1/asn1.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1.h,v 1.73 2023/04/18 08:33:43 tb Exp $ */ | 1 | /* $OpenBSD: asn1.h,v 1.74 2023/04/18 08:47:28 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 | * |
@@ -66,11 +66,11 @@ | |||
66 | #ifndef OPENSSL_NO_BIO | 66 | #ifndef OPENSSL_NO_BIO |
67 | #include <openssl/bio.h> | 67 | #include <openssl/bio.h> |
68 | #endif | 68 | #endif |
69 | #include <openssl/bn.h> | ||
69 | #include <openssl/stack.h> | 70 | #include <openssl/stack.h> |
70 | #include <openssl/safestack.h> | 71 | #include <openssl/safestack.h> |
71 | 72 | ||
72 | #include <openssl/ossl_typ.h> | 73 | #include <openssl/ossl_typ.h> |
73 | #include <openssl/bn.h> | ||
74 | 74 | ||
75 | #ifdef __cplusplus | 75 | #ifdef __cplusplus |
76 | extern "C" { | 76 | extern "C" { |
diff --git a/src/lib/libcrypto/dsa/dsa.h b/src/lib/libcrypto/dsa/dsa.h index 3d81dc6dec..8029e7f94c 100644 --- a/src/lib/libcrypto/dsa/dsa.h +++ b/src/lib/libcrypto/dsa/dsa.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa.h,v 1.42 2023/04/18 08:33:43 tb Exp $ */ | 1 | /* $OpenBSD: dsa.h,v 1.43 2023/04/18 08:47:28 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 | * |
@@ -74,14 +74,14 @@ | |||
74 | #ifndef OPENSSL_NO_BIO | 74 | #ifndef OPENSSL_NO_BIO |
75 | #include <openssl/bio.h> | 75 | #include <openssl/bio.h> |
76 | #endif | 76 | #endif |
77 | #include <openssl/crypto.h> | ||
78 | #include <openssl/ossl_typ.h> | ||
79 | |||
80 | #include <openssl/bn.h> | 77 | #include <openssl/bn.h> |
78 | #include <openssl/crypto.h> | ||
81 | #ifndef OPENSSL_NO_DH | 79 | #ifndef OPENSSL_NO_DH |
82 | # include <openssl/dh.h> | 80 | # include <openssl/dh.h> |
83 | #endif | 81 | #endif |
84 | 82 | ||
83 | #include <openssl/ossl_typ.h> | ||
84 | |||
85 | #ifndef OPENSSL_DSA_MAX_MODULUS_BITS | 85 | #ifndef OPENSSL_DSA_MAX_MODULUS_BITS |
86 | # define OPENSSL_DSA_MAX_MODULUS_BITS 10000 | 86 | # define OPENSSL_DSA_MAX_MODULUS_BITS 10000 |
87 | #endif | 87 | #endif |
diff --git a/src/lib/libcrypto/ecdsa/ecdsa.h b/src/lib/libcrypto/ecdsa/ecdsa.h index d095ef40a3..6139dbac1a 100644 --- a/src/lib/libcrypto/ecdsa/ecdsa.h +++ b/src/lib/libcrypto/ecdsa/ecdsa.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecdsa.h,v 1.14 2023/04/18 08:33:43 tb Exp $ */ | 1 | /* $OpenBSD: ecdsa.h,v 1.15 2023/04/18 08:47:28 tb Exp $ */ |
2 | /** | 2 | /** |
3 | * \file crypto/ecdsa/ecdsa.h Include file for the OpenSSL ECDSA functions | 3 | * \file crypto/ecdsa/ecdsa.h Include file for the OpenSSL ECDSA functions |
4 | * \author Written by Nils Larsch for the OpenSSL project | 4 | * \author Written by Nils Larsch for the OpenSSL project |
@@ -65,9 +65,10 @@ | |||
65 | #error ECDSA is disabled. | 65 | #error ECDSA is disabled. |
66 | #endif | 66 | #endif |
67 | 67 | ||
68 | #include <openssl/bn.h> | ||
68 | #include <openssl/ec.h> | 69 | #include <openssl/ec.h> |
70 | |||
69 | #include <openssl/ossl_typ.h> | 71 | #include <openssl/ossl_typ.h> |
70 | #include <openssl/bn.h> | ||
71 | 72 | ||
72 | #ifdef __cplusplus | 73 | #ifdef __cplusplus |
73 | extern "C" { | 74 | extern "C" { |
diff --git a/src/lib/libcrypto/engine/engine.h b/src/lib/libcrypto/engine/engine.h index 8a3574fd57..51c6b63393 100644 --- a/src/lib/libcrypto/engine/engine.h +++ b/src/lib/libcrypto/engine/engine.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: engine.h,v 1.36 2023/04/18 08:33:43 tb Exp $ */ | 1 | /* $OpenBSD: engine.h,v 1.37 2023/04/18 08:47:28 tb Exp $ */ |
2 | /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL | 2 | /* Written by Geoff Thorpe (geoff@geoffthorpe.net) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -71,14 +71,14 @@ | |||
71 | #endif | 71 | #endif |
72 | 72 | ||
73 | #include <openssl/bn.h> | 73 | #include <openssl/bn.h> |
74 | #ifndef OPENSSL_NO_RSA | 74 | #ifndef OPENSSL_NO_DH |
75 | #include <openssl/rsa.h> | 75 | #include <openssl/dh.h> |
76 | #endif | 76 | #endif |
77 | #ifndef OPENSSL_NO_DSA | 77 | #ifndef OPENSSL_NO_DSA |
78 | #include <openssl/dsa.h> | 78 | #include <openssl/dsa.h> |
79 | #endif | 79 | #endif |
80 | #ifndef OPENSSL_NO_DH | 80 | #ifndef OPENSSL_NO_EC |
81 | #include <openssl/dh.h> | 81 | #include <openssl/ec.h> |
82 | #endif | 82 | #endif |
83 | #ifndef OPENSSL_NO_ECDH | 83 | #ifndef OPENSSL_NO_ECDH |
84 | #include <openssl/ecdh.h> | 84 | #include <openssl/ecdh.h> |
@@ -86,11 +86,11 @@ | |||
86 | #ifndef OPENSSL_NO_ECDSA | 86 | #ifndef OPENSSL_NO_ECDSA |
87 | #include <openssl/ecdsa.h> | 87 | #include <openssl/ecdsa.h> |
88 | #endif | 88 | #endif |
89 | #ifndef OPENSSL_NO_EC | 89 | #include <openssl/err.h> |
90 | #include <openssl/ec.h> | 90 | #ifndef OPENSSL_NO_RSA |
91 | #include <openssl/rsa.h> | ||
91 | #endif | 92 | #endif |
92 | #include <openssl/ui.h> | 93 | #include <openssl/ui.h> |
93 | #include <openssl/err.h> | ||
94 | 94 | ||
95 | #include <openssl/ossl_typ.h> | 95 | #include <openssl/ossl_typ.h> |
96 | 96 | ||
diff --git a/src/lib/libcrypto/rsa/rsa.h b/src/lib/libcrypto/rsa/rsa.h index bf0aac647e..cddd80bc85 100644 --- a/src/lib/libcrypto/rsa/rsa.h +++ b/src/lib/libcrypto/rsa/rsa.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa.h,v 1.61 2023/04/18 08:33:43 tb Exp $ */ | 1 | /* $OpenBSD: rsa.h,v 1.62 2023/04/18 08:47:28 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 | * |
@@ -66,9 +66,10 @@ | |||
66 | #ifndef OPENSSL_NO_BIO | 66 | #ifndef OPENSSL_NO_BIO |
67 | #include <openssl/bio.h> | 67 | #include <openssl/bio.h> |
68 | #endif | 68 | #endif |
69 | #include <openssl/bn.h> | ||
69 | #include <openssl/crypto.h> | 70 | #include <openssl/crypto.h> |
71 | |||
70 | #include <openssl/ossl_typ.h> | 72 | #include <openssl/ossl_typ.h> |
71 | #include <openssl/bn.h> | ||
72 | 73 | ||
73 | #ifdef OPENSSL_NO_RSA | 74 | #ifdef OPENSSL_NO_RSA |
74 | #error RSA is disabled. | 75 | #error RSA is disabled. |
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index ac14dd3868..9f87700c60 100644 --- a/src/lib/libcrypto/x509/x509.h +++ b/src/lib/libcrypto/x509/x509.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509.h,v 1.95 2023/04/18 08:33:43 tb Exp $ */ | 1 | /* $OpenBSD: x509.h,v 1.96 2023/04/18 08:47:28 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 | * |
@@ -66,44 +66,40 @@ | |||
66 | 66 | ||
67 | #include <openssl/opensslconf.h> | 67 | #include <openssl/opensslconf.h> |
68 | 68 | ||
69 | #include <openssl/asn1.h> | ||
70 | #ifndef OPENSSL_NO_BIO | ||
71 | #include <openssl/bio.h> | ||
72 | #endif | ||
69 | #ifndef OPENSSL_NO_BUFFER | 73 | #ifndef OPENSSL_NO_BUFFER |
70 | #include <openssl/buffer.h> | 74 | #include <openssl/buffer.h> |
71 | #endif | 75 | #endif |
72 | #ifndef OPENSSL_NO_EVP | 76 | #ifndef OPENSSL_NO_DH |
73 | #include <openssl/evp.h> | 77 | #include <openssl/dh.h> |
74 | #endif | 78 | #endif |
75 | #ifndef OPENSSL_NO_BIO | 79 | #ifndef OPENSSL_NO_DSA |
76 | #include <openssl/bio.h> | 80 | #include <openssl/dsa.h> |
77 | #endif | 81 | #endif |
78 | #include <openssl/stack.h> | ||
79 | #include <openssl/asn1.h> | ||
80 | #include <openssl/safestack.h> | ||
81 | |||
82 | #ifndef OPENSSL_NO_EC | 82 | #ifndef OPENSSL_NO_EC |
83 | #include <openssl/ec.h> | 83 | #include <openssl/ec.h> |
84 | #endif | 84 | #endif |
85 | |||
86 | #ifndef OPENSSL_NO_ECDSA | 85 | #ifndef OPENSSL_NO_ECDSA |
87 | #include <openssl/ecdsa.h> | 86 | #include <openssl/ecdsa.h> |
88 | #endif | 87 | #endif |
89 | |||
90 | #ifndef OPENSSL_NO_ECDH | 88 | #ifndef OPENSSL_NO_ECDH |
91 | #include <openssl/ecdh.h> | 89 | #include <openssl/ecdh.h> |
92 | #endif | 90 | #endif |
93 | 91 | #ifndef OPENSSL_NO_EVP | |
92 | #include <openssl/evp.h> | ||
93 | #endif | ||
94 | #ifndef OPENSSL_NO_RSA | 94 | #ifndef OPENSSL_NO_RSA |
95 | #include <openssl/rsa.h> | 95 | #include <openssl/rsa.h> |
96 | #endif | 96 | #endif |
97 | #ifndef OPENSSL_NO_DSA | ||
98 | #include <openssl/dsa.h> | ||
99 | #endif | ||
100 | #ifndef OPENSSL_NO_DH | ||
101 | #include <openssl/dh.h> | ||
102 | #endif | ||
103 | |||
104 | #ifndef OPENSSL_NO_SHA | 97 | #ifndef OPENSSL_NO_SHA |
105 | #include <openssl/sha.h> | 98 | #include <openssl/sha.h> |
106 | #endif | 99 | #endif |
100 | #include <openssl/stack.h> | ||
101 | #include <openssl/safestack.h> | ||
102 | |||
107 | #include <openssl/ossl_typ.h> | 103 | #include <openssl/ossl_typ.h> |
108 | 104 | ||
109 | #ifdef __cplusplus | 105 | #ifdef __cplusplus |