diff options
author | jsing <> | 2021-05-16 08:24:21 +0000 |
---|---|---|
committer | jsing <> | 2021-05-16 08:24:21 +0000 |
commit | b38eb13d0250b437c5743cee5f970c84ec31d898 (patch) | |
tree | c555c29a1b17b1ecaa4ed197e78441f09086f14b | |
parent | ef9d8bd13ca04028d27714bedb7b235bc28a7725 (diff) | |
download | openbsd-b38eb13d0250b437c5743cee5f970c84ec31d898.tar.gz openbsd-b38eb13d0250b437c5743cee5f970c84ec31d898.tar.bz2 openbsd-b38eb13d0250b437c5743cee5f970c84ec31d898.zip |
Explicitly include <openssl/opensslconf.h> in files using OPENSSL_NO_*
Where a file references to OPENSSL_NO_* conditions, ensure that we
explicitly include <openssl/opensslconf.h> before any references, rather
than relying on another header to pull this in.
-rw-r--r-- | src/lib/libssl/d1_srtp.c | 3 | ||||
-rw-r--r-- | src/lib/libssl/s3_lib.c | 3 | ||||
-rw-r--r-- | src/lib/libssl/ssl_algs.c | 3 | ||||
-rw-r--r-- | src/lib/libssl/ssl_ciph.c | 3 | ||||
-rw-r--r-- | src/lib/libssl/ssl_clnt.c | 3 | ||||
-rw-r--r-- | src/lib/libssl/ssl_err.c | 3 | ||||
-rw-r--r-- | src/lib/libssl/ssl_lib.c | 3 | ||||
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 3 | ||||
-rw-r--r-- | src/lib/libssl/ssl_sess.c | 3 | ||||
-rw-r--r-- | src/lib/libssl/ssl_sigalgs.c | 3 | ||||
-rw-r--r-- | src/lib/libssl/ssl_srvr.c | 10 | ||||
-rw-r--r-- | src/lib/libssl/ssl_tlsext.c | 3 | ||||
-rw-r--r-- | src/lib/libssl/t1_enc.c | 3 |
13 files changed, 30 insertions, 16 deletions
diff --git a/src/lib/libssl/d1_srtp.c b/src/lib/libssl/d1_srtp.c index 1ea678a218..2236e94e63 100644 --- a/src/lib/libssl/d1_srtp.c +++ b/src/lib/libssl/d1_srtp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: d1_srtp.c,v 1.26 2020/10/11 02:44:27 tb Exp $ */ | 1 | /* $OpenBSD: d1_srtp.c,v 1.27 2021/05/16 08:24:21 jsing 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 | * |
@@ -118,6 +118,7 @@ | |||
118 | #include <stdio.h> | 118 | #include <stdio.h> |
119 | 119 | ||
120 | #include <openssl/objects.h> | 120 | #include <openssl/objects.h> |
121 | #include <openssl/opensslconf.h> | ||
121 | 122 | ||
122 | #include "ssl_locl.h" | 123 | #include "ssl_locl.h" |
123 | 124 | ||
diff --git a/src/lib/libssl/s3_lib.c b/src/lib/libssl/s3_lib.c index 9dd6343b84..2867d32deb 100644 --- a/src/lib/libssl/s3_lib.c +++ b/src/lib/libssl/s3_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_lib.c,v 1.208 2021/04/21 19:27:56 jsing Exp $ */ | 1 | /* $OpenBSD: s3_lib.c,v 1.209 2021/05/16 08:24:21 jsing 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 | * |
@@ -156,6 +156,7 @@ | |||
156 | #include <openssl/dh.h> | 156 | #include <openssl/dh.h> |
157 | #include <openssl/md5.h> | 157 | #include <openssl/md5.h> |
158 | #include <openssl/objects.h> | 158 | #include <openssl/objects.h> |
159 | #include <openssl/opensslconf.h> | ||
159 | 160 | ||
160 | #include "ssl_locl.h" | 161 | #include "ssl_locl.h" |
161 | #include "bytestring.h" | 162 | #include "bytestring.h" |
diff --git a/src/lib/libssl/ssl_algs.c b/src/lib/libssl/ssl_algs.c index bb736c5de9..5ed56b883a 100644 --- a/src/lib/libssl/ssl_algs.c +++ b/src/lib/libssl/ssl_algs.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_algs.c,v 1.28 2019/04/04 16:44:24 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_algs.c,v 1.29 2021/05/16 08:24:21 jsing 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 | * |
@@ -60,6 +60,7 @@ | |||
60 | 60 | ||
61 | #include <openssl/lhash.h> | 61 | #include <openssl/lhash.h> |
62 | #include <openssl/objects.h> | 62 | #include <openssl/objects.h> |
63 | #include <openssl/opensslconf.h> | ||
63 | 64 | ||
64 | #include "ssl_locl.h" | 65 | #include "ssl_locl.h" |
65 | 66 | ||
diff --git a/src/lib/libssl/ssl_ciph.c b/src/lib/libssl/ssl_ciph.c index 2db531abb1..bf22c4ed99 100644 --- a/src/lib/libssl/ssl_ciph.c +++ b/src/lib/libssl/ssl_ciph.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_ciph.c,v 1.122 2021/05/10 17:03:57 tb Exp $ */ | 1 | /* $OpenBSD: ssl_ciph.c,v 1.123 2021/05/16 08:24:21 jsing 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 | * |
@@ -143,6 +143,7 @@ | |||
143 | #include <stdio.h> | 143 | #include <stdio.h> |
144 | 144 | ||
145 | #include <openssl/objects.h> | 145 | #include <openssl/objects.h> |
146 | #include <openssl/opensslconf.h> | ||
146 | 147 | ||
147 | #ifndef OPENSSL_NO_ENGINE | 148 | #ifndef OPENSSL_NO_ENGINE |
148 | #include <openssl/engine.h> | 149 | #include <openssl/engine.h> |
diff --git a/src/lib/libssl/ssl_clnt.c b/src/lib/libssl/ssl_clnt.c index 1874d22b94..8520bb7c05 100644 --- a/src/lib/libssl/ssl_clnt.c +++ b/src/lib/libssl/ssl_clnt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_clnt.c,v 1.96 2021/05/02 17:46:58 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_clnt.c,v 1.97 2021/05/16 08:24:21 jsing 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 | * |
@@ -161,6 +161,7 @@ | |||
161 | #include <openssl/evp.h> | 161 | #include <openssl/evp.h> |
162 | #include <openssl/md5.h> | 162 | #include <openssl/md5.h> |
163 | #include <openssl/objects.h> | 163 | #include <openssl/objects.h> |
164 | #include <openssl/opensslconf.h> | ||
164 | 165 | ||
165 | #ifndef OPENSSL_NO_ENGINE | 166 | #ifndef OPENSSL_NO_ENGINE |
166 | #include <openssl/engine.h> | 167 | #include <openssl/engine.h> |
diff --git a/src/lib/libssl/ssl_err.c b/src/lib/libssl/ssl_err.c index cbc2898234..8507690f79 100644 --- a/src/lib/libssl/ssl_err.c +++ b/src/lib/libssl/ssl_err.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_err.c,v 1.37 2020/01/21 05:19:02 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_err.c,v 1.38 2021/05/16 08:24:21 jsing Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -61,6 +61,7 @@ | |||
61 | #include <stdio.h> | 61 | #include <stdio.h> |
62 | 62 | ||
63 | #include <openssl/err.h> | 63 | #include <openssl/err.h> |
64 | #include <openssl/opensslconf.h> | ||
64 | #include <openssl/ssl.h> | 65 | #include <openssl/ssl.h> |
65 | 66 | ||
66 | #include "ssl_locl.h" | 67 | #include "ssl_locl.h" |
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index 2e3be8b13f..3cb64cfb16 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_lib.c,v 1.256 2021/05/10 17:05:26 tb Exp $ */ | 1 | /* $OpenBSD: ssl_lib.c,v 1.257 2021/05/16 08:24:21 jsing 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 | * |
@@ -153,6 +153,7 @@ | |||
153 | #include <openssl/lhash.h> | 153 | #include <openssl/lhash.h> |
154 | #include <openssl/objects.h> | 154 | #include <openssl/objects.h> |
155 | #include <openssl/ocsp.h> | 155 | #include <openssl/ocsp.h> |
156 | #include <openssl/opensslconf.h> | ||
156 | #include <openssl/x509v3.h> | 157 | #include <openssl/x509v3.h> |
157 | 158 | ||
158 | #ifndef OPENSSL_NO_ENGINE | 159 | #ifndef OPENSSL_NO_ENGINE |
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 50ed47d7d8..ad21a3d28d 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_locl.h,v 1.343 2021/05/05 19:52:00 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.344 2021/05/16 08:24:21 jsing 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 | * |
@@ -152,6 +152,7 @@ | |||
152 | #include <unistd.h> | 152 | #include <unistd.h> |
153 | 153 | ||
154 | #include <openssl/opensslconf.h> | 154 | #include <openssl/opensslconf.h> |
155 | |||
155 | #include <openssl/bio.h> | 156 | #include <openssl/bio.h> |
156 | #include <openssl/buffer.h> | 157 | #include <openssl/buffer.h> |
157 | #include <openssl/dsa.h> | 158 | #include <openssl/dsa.h> |
diff --git a/src/lib/libssl/ssl_sess.c b/src/lib/libssl/ssl_sess.c index 68298db809..2e3300eb0f 100644 --- a/src/lib/libssl/ssl_sess.c +++ b/src/lib/libssl/ssl_sess.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_sess.c,v 1.103 2021/05/10 17:07:24 tb Exp $ */ | 1 | /* $OpenBSD: ssl_sess.c,v 1.104 2021/05/16 08:24:21 jsing 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 | * |
@@ -136,6 +136,7 @@ | |||
136 | */ | 136 | */ |
137 | 137 | ||
138 | #include <openssl/lhash.h> | 138 | #include <openssl/lhash.h> |
139 | #include <openssl/opensslconf.h> | ||
139 | 140 | ||
140 | #ifndef OPENSSL_NO_ENGINE | 141 | #ifndef OPENSSL_NO_ENGINE |
141 | #include <openssl/engine.h> | 142 | #include <openssl/engine.h> |
diff --git a/src/lib/libssl/ssl_sigalgs.c b/src/lib/libssl/ssl_sigalgs.c index 68bb6a3889..2612d5ac1d 100644 --- a/src/lib/libssl/ssl_sigalgs.c +++ b/src/lib/libssl/ssl_sigalgs.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_sigalgs.c,v 1.23 2021/03/10 18:27:02 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_sigalgs.c,v 1.24 2021/05/16 08:24:21 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018-2020 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2018-2020 Bob Beck <beck@openbsd.org> |
4 | * | 4 | * |
@@ -18,6 +18,7 @@ | |||
18 | #include <stdlib.h> | 18 | #include <stdlib.h> |
19 | 19 | ||
20 | #include <openssl/evp.h> | 20 | #include <openssl/evp.h> |
21 | #include <openssl/opensslconf.h> | ||
21 | 22 | ||
22 | #include "bytestring.h" | 23 | #include "bytestring.h" |
23 | #include "ssl_locl.h" | 24 | #include "ssl_locl.h" |
diff --git a/src/lib/libssl/ssl_srvr.c b/src/lib/libssl/ssl_srvr.c index f884ea316f..5891424b26 100644 --- a/src/lib/libssl/ssl_srvr.c +++ b/src/lib/libssl/ssl_srvr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_srvr.c,v 1.108 2021/05/02 17:46:58 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_srvr.c,v 1.109 2021/05/16 08:24:21 jsing 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 | * |
@@ -157,14 +157,16 @@ | |||
157 | #include <openssl/curve25519.h> | 157 | #include <openssl/curve25519.h> |
158 | #include <openssl/evp.h> | 158 | #include <openssl/evp.h> |
159 | #include <openssl/dh.h> | 159 | #include <openssl/dh.h> |
160 | #ifndef OPENSSL_NO_GOST | ||
161 | #include <openssl/gost.h> | ||
162 | #endif | ||
163 | #include <openssl/hmac.h> | 160 | #include <openssl/hmac.h> |
164 | #include <openssl/md5.h> | 161 | #include <openssl/md5.h> |
165 | #include <openssl/objects.h> | 162 | #include <openssl/objects.h> |
163 | #include <openssl/opensslconf.h> | ||
166 | #include <openssl/x509.h> | 164 | #include <openssl/x509.h> |
167 | 165 | ||
166 | #ifndef OPENSSL_NO_GOST | ||
167 | #include <openssl/gost.h> | ||
168 | #endif | ||
169 | |||
168 | #include "bytestring.h" | 170 | #include "bytestring.h" |
169 | #include "ssl_sigalgs.h" | 171 | #include "ssl_sigalgs.h" |
170 | #include "ssl_tlsext.h" | 172 | #include "ssl_tlsext.h" |
diff --git a/src/lib/libssl/ssl_tlsext.c b/src/lib/libssl/ssl_tlsext.c index 0ed53f7ab2..be3756a9fe 100644 --- a/src/lib/libssl/ssl_tlsext.c +++ b/src/lib/libssl/ssl_tlsext.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_tlsext.c,v 1.90 2021/04/22 18:27:53 tb Exp $ */ | 1 | /* $OpenBSD: ssl_tlsext.c,v 1.91 2021/05/16 08:24:21 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> | 4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> |
@@ -20,6 +20,7 @@ | |||
20 | #include <ctype.h> | 20 | #include <ctype.h> |
21 | 21 | ||
22 | #include <openssl/ocsp.h> | 22 | #include <openssl/ocsp.h> |
23 | #include <openssl/opensslconf.h> | ||
23 | 24 | ||
24 | #include "ssl_locl.h" | 25 | #include "ssl_locl.h" |
25 | 26 | ||
diff --git a/src/lib/libssl/t1_enc.c b/src/lib/libssl/t1_enc.c index 57ddecbd77..9cd0c331c1 100644 --- a/src/lib/libssl/t1_enc.c +++ b/src/lib/libssl/t1_enc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t1_enc.c,v 1.144 2021/05/05 19:52:00 jsing Exp $ */ | 1 | /* $OpenBSD: t1_enc.c,v 1.145 2021/05/16 08:24:21 jsing 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 | * |
@@ -143,6 +143,7 @@ | |||
143 | #include <openssl/evp.h> | 143 | #include <openssl/evp.h> |
144 | #include <openssl/hmac.h> | 144 | #include <openssl/hmac.h> |
145 | #include <openssl/md5.h> | 145 | #include <openssl/md5.h> |
146 | #include <openssl/opensslconf.h> | ||
146 | 147 | ||
147 | void | 148 | void |
148 | tls1_cleanup_key_block(SSL *s) | 149 | tls1_cleanup_key_block(SSL *s) |