diff options
author | jsing <> | 2021-05-16 10:55:17 +0000 |
---|---|---|
committer | jsing <> | 2021-05-16 10:55:17 +0000 |
commit | d137fa7fa05c81ef9436f77118c7175b4d21ad9a (patch) | |
tree | fc7528bc7ba19d9333869135c50942e9b79073f5 | |
parent | ff561112246739bbef361b6d774791837e3c4506 (diff) | |
download | openbsd-d137fa7fa05c81ef9436f77118c7175b4d21ad9a.tar.gz openbsd-d137fa7fa05c81ef9436f77118c7175b4d21ad9a.tar.bz2 openbsd-d137fa7fa05c81ef9436f77118c7175b4d21ad9a.zip |
Avoid pulling ssl_sigalgs.h in via ssl_locl.h.
Forward declare struct sigalg in ssl_locl.h and avoid including
ssl_sigalgs.h. Explicitly include ssl_sigalgs.h where it is needed.
-rw-r--r-- | src/lib/libssl/ssl_locl.h | 5 | ||||
-rw-r--r-- | src/lib/libssl/tls13_client.c | 3 | ||||
-rw-r--r-- | src/lib/libssl/tls13_server.c | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index ad21a3d28d..52daec611f 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.344 2021/05/16 08:24:21 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_locl.h,v 1.345 2021/05/16 10:55:17 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 | * |
@@ -162,7 +162,6 @@ | |||
162 | #include <openssl/stack.h> | 162 | #include <openssl/stack.h> |
163 | 163 | ||
164 | #include "bytestring.h" | 164 | #include "bytestring.h" |
165 | #include "ssl_sigalgs.h" | ||
166 | #include "tls13_internal.h" | 165 | #include "tls13_internal.h" |
167 | 166 | ||
168 | __BEGIN_HIDDEN_DECLS | 167 | __BEGIN_HIDDEN_DECLS |
@@ -417,6 +416,8 @@ typedef struct cert_pkey_st { | |||
417 | STACK_OF(X509) *chain; | 416 | STACK_OF(X509) *chain; |
418 | } CERT_PKEY; | 417 | } CERT_PKEY; |
419 | 418 | ||
419 | struct ssl_sigalg; | ||
420 | |||
420 | typedef struct ssl_handshake_tls12_st { | 421 | typedef struct ssl_handshake_tls12_st { |
421 | /* Used when SSL_ST_FLUSH_DATA is entered. */ | 422 | /* Used when SSL_ST_FLUSH_DATA is entered. */ |
422 | int next_state; | 423 | int next_state; |
diff --git a/src/lib/libssl/tls13_client.c b/src/lib/libssl/tls13_client.c index e0febee926..05a6fbc862 100644 --- a/src/lib/libssl/tls13_client.c +++ b/src/lib/libssl/tls13_client.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_client.c,v 1.77 2021/03/29 16:46:09 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_client.c,v 1.78 2021/05/16 10:55:17 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -20,6 +20,7 @@ | |||
20 | #include <openssl/ssl3.h> | 20 | #include <openssl/ssl3.h> |
21 | 21 | ||
22 | #include "bytestring.h" | 22 | #include "bytestring.h" |
23 | #include "ssl_sigalgs.h" | ||
23 | #include "ssl_tlsext.h" | 24 | #include "ssl_tlsext.h" |
24 | #include "tls13_handshake.h" | 25 | #include "tls13_handshake.h" |
25 | #include "tls13_internal.h" | 26 | #include "tls13_internal.h" |
diff --git a/src/lib/libssl/tls13_server.c b/src/lib/libssl/tls13_server.c index 4fed1a43d0..a1c0e122a8 100644 --- a/src/lib/libssl/tls13_server.c +++ b/src/lib/libssl/tls13_server.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_server.c,v 1.74 2021/03/29 16:46:09 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_server.c,v 1.75 2021/05/16 10:55:17 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2019, 2020 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2019, 2020 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2020 Bob Beck <beck@openbsd.org> | 4 | * Copyright (c) 2020 Bob Beck <beck@openbsd.org> |
@@ -19,6 +19,7 @@ | |||
19 | #include <openssl/x509v3.h> | 19 | #include <openssl/x509v3.h> |
20 | 20 | ||
21 | #include "ssl_locl.h" | 21 | #include "ssl_locl.h" |
22 | #include "ssl_sigalgs.h" | ||
22 | #include "ssl_tlsext.h" | 23 | #include "ssl_tlsext.h" |
23 | 24 | ||
24 | #include "tls13_handshake.h" | 25 | #include "tls13_handshake.h" |