diff options
author | tb <> | 2024-03-30 09:53:41 +0000 |
---|---|---|
committer | tb <> | 2024-03-30 09:53:41 +0000 |
commit | ff541f229729672630c618b24bb4c738d0c0239a (patch) | |
tree | 8c95a8929b45af13a447db1b6294c845b66b245b /src | |
parent | 5e96b349ea474efe05437418ccd8fd7732200f3d (diff) | |
download | openbsd-ff541f229729672630c618b24bb4c738d0c0239a.tar.gz openbsd-ff541f229729672630c618b24bb4c738d0c0239a.tar.bz2 openbsd-ff541f229729672630c618b24bb4c738d0c0239a.zip |
Initialize quic_method in tlsexttest
This is only there to pretend a quic method was set on the SSL, but
apparently some compilers warn about an uninitialized variable.
from Christian Andersen
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libssl/tlsext/tlsexttest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libssl/tlsext/tlsexttest.c b/src/regress/lib/libssl/tlsext/tlsexttest.c index 832063dd0a..18e800031a 100644 --- a/src/regress/lib/libssl/tlsext/tlsexttest.c +++ b/src/regress/lib/libssl/tlsext/tlsexttest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tlsexttest.c,v 1.89 2024/03/28 01:45:18 beck Exp $ */ | 1 | /* $OpenBSD: tlsexttest.c,v 1.90 2024/03/30 09:53:41 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> | 4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> |
@@ -2040,7 +2040,7 @@ static const unsigned char tlsext_quic_transport_data[] = { | |||
2040 | static int | 2040 | static int |
2041 | test_tlsext_quic_transport_parameters_client(void) | 2041 | test_tlsext_quic_transport_parameters_client(void) |
2042 | { | 2042 | { |
2043 | const SSL_QUIC_METHOD quic_method; | 2043 | const SSL_QUIC_METHOD quic_method = {0}; |
2044 | unsigned char *data = NULL; | 2044 | unsigned char *data = NULL; |
2045 | SSL_CTX *ssl_ctx = NULL; | 2045 | SSL_CTX *ssl_ctx = NULL; |
2046 | SSL *ssl = NULL; | 2046 | SSL *ssl = NULL; |
@@ -2171,7 +2171,7 @@ test_tlsext_quic_transport_parameters_client(void) | |||
2171 | static int | 2171 | static int |
2172 | test_tlsext_quic_transport_parameters_server(void) | 2172 | test_tlsext_quic_transport_parameters_server(void) |
2173 | { | 2173 | { |
2174 | const SSL_QUIC_METHOD quic_method; | 2174 | const SSL_QUIC_METHOD quic_method = {0}; |
2175 | unsigned char *data = NULL; | 2175 | unsigned char *data = NULL; |
2176 | SSL_CTX *ssl_ctx = NULL; | 2176 | SSL_CTX *ssl_ctx = NULL; |
2177 | SSL *ssl = NULL; | 2177 | SSL *ssl = NULL; |