-/* $OpenBSD: tlsexttest.c,v 1.74 2022/08/05 17:19:09 tb Exp $ */
+/* $OpenBSD: tlsexttest.c,v 1.75 2022/08/21 19:46:19 jsing Exp $ */
/*
* Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
static int
test_tlsext_quic_transport_parameters_client(void)
{
+ const SSL_QUIC_METHOD quic_method;
unsigned char *data = NULL;
SSL_CTX *ssl_ctx = NULL;
SSL *ssl = NULL;
goto err;
}
- ssl->quic_method = ssl->method; /* XXX */
+ ssl->quic_method = &quic_method;
if (!client_funcs->needs(ssl, SSL_TLSEXT_MSG_CH)) {
FAIL("client should need QUIC\n");
static int
test_tlsext_quic_transport_parameters_server(void)
{
+ const SSL_QUIC_METHOD quic_method;
unsigned char *data = NULL;
SSL_CTX *ssl_ctx = NULL;
SSL *ssl = NULL;
goto err;
}
- ssl->quic_method = ssl->method; /* XXX */
+ ssl->quic_method = &quic_method;
if (!server_funcs->needs(ssl, SSL_TLSEXT_MSG_EE)) {
FAIL("server should need QUIC\n");
goto err;
}
- ssl->quic_method = ssl->method; /* XXX */
+ ssl->quic_method = &quic_method;
if (!client_funcs->parse(ssl, SSL_TLSEXT_MSG_SH, &cbs, &alert)) {
FAIL("client_parse of QUIC from server failed\n");