From: jsing Date: Sun, 16 May 2021 10:55:17 +0000 (+0000) Subject: Avoid pulling ssl_sigalgs.h in via ssl_locl.h. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=eb42ff5b38d6a4be738904ddf2ff0e68f2d915a6;p=openbsd 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. --- diff --git a/lib/libssl/ssl_locl.h b/lib/libssl/ssl_locl.h index ad21a3d28d8..52daec611fd 100644 --- a/lib/libssl/ssl_locl.h +++ b/lib/libssl/ssl_locl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_locl.h,v 1.344 2021/05/16 08:24:21 jsing Exp $ */ +/* $OpenBSD: ssl_locl.h,v 1.345 2021/05/16 10:55:17 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -162,7 +162,6 @@ #include #include "bytestring.h" -#include "ssl_sigalgs.h" #include "tls13_internal.h" __BEGIN_HIDDEN_DECLS @@ -417,6 +416,8 @@ typedef struct cert_pkey_st { STACK_OF(X509) *chain; } CERT_PKEY; +struct ssl_sigalg; + typedef struct ssl_handshake_tls12_st { /* Used when SSL_ST_FLUSH_DATA is entered. */ int next_state; diff --git a/lib/libssl/tls13_client.c b/lib/libssl/tls13_client.c index e0febee926d..05a6fbc862b 100644 --- a/lib/libssl/tls13_client.c +++ b/lib/libssl/tls13_client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_client.c,v 1.77 2021/03/29 16:46:09 jsing Exp $ */ +/* $OpenBSD: tls13_client.c,v 1.78 2021/05/16 10:55:17 jsing Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing * @@ -20,6 +20,7 @@ #include #include "bytestring.h" +#include "ssl_sigalgs.h" #include "ssl_tlsext.h" #include "tls13_handshake.h" #include "tls13_internal.h" diff --git a/lib/libssl/tls13_server.c b/lib/libssl/tls13_server.c index 4fed1a43d04..a1c0e122a81 100644 --- a/lib/libssl/tls13_server.c +++ b/lib/libssl/tls13_server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_server.c,v 1.74 2021/03/29 16:46:09 jsing Exp $ */ +/* $OpenBSD: tls13_server.c,v 1.75 2021/05/16 10:55:17 jsing Exp $ */ /* * Copyright (c) 2019, 2020 Joel Sing * Copyright (c) 2020 Bob Beck @@ -19,6 +19,7 @@ #include #include "ssl_locl.h" +#include "ssl_sigalgs.h" #include "ssl_tlsext.h" #include "tls13_handshake.h"