diff options
Diffstat (limited to 'regress/lib/libssl/server')
-rw-r--r-- | regress/lib/libssl/server/Makefile | 4 | ||||
-rw-r--r-- | regress/lib/libssl/server/servertest.c | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/regress/lib/libssl/server/Makefile b/regress/lib/libssl/server/Makefile index 705190d076b..0621a5f2433 100644 --- a/regress/lib/libssl/server/Makefile +++ b/regress/lib/libssl/server/Makefile @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile,v 1.1 2017/03/05 14:15:53 jsing Exp $ +# $OpenBSD: Makefile,v 1.2 2020/05/11 18:18:21 jsing Exp $ PROG= servertest -LDADD= -lssl -lcrypto +LDADD= ${SSL_INT} -lcrypto DPADD= ${LIBSSL} ${LIBCRYPTO} WARNINGS= Yes CFLAGS+= -DLIBRESSL_INTERNAL -Werror diff --git a/regress/lib/libssl/server/servertest.c b/regress/lib/libssl/server/servertest.c index e2ee3bb5e5f..7a0caefc2be 100644 --- a/regress/lib/libssl/server/servertest.c +++ b/regress/lib/libssl/server/servertest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: servertest.c,v 1.2 2020/01/25 05:02:27 jsing Exp $ */ +/* $OpenBSD: servertest.c,v 1.3 2020/05/11 18:18:21 jsing Exp $ */ /* * Copyright (c) 2015, 2016, 2017 Joel Sing <jsing@openbsd.org> * @@ -25,6 +25,8 @@ #include <stdio.h> #include <string.h> +const SSL_METHOD *tls_legacy_server_method(void); + char *server_ca_file; char *server_cert_file; char *server_key_file; @@ -89,7 +91,7 @@ static struct server_hello_test server_hello_tests[] = { .desc = "TLSv1.0 in SSLv2 record", .client_hello = sslv2_client_hello_tls10, .client_hello_len = sizeof(sslv2_client_hello_tls10), - .ssl_method = TLS_server_method, + .ssl_method = tls_legacy_server_method, .ssl_clear_options = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1, .ssl_set_options = 0, }, @@ -97,7 +99,7 @@ static struct server_hello_test server_hello_tests[] = { .desc = "TLSv1.2 in SSLv2 record", .client_hello = sslv2_client_hello_tls12, .client_hello_len = sizeof(sslv2_client_hello_tls12), - .ssl_method = TLS_server_method, + .ssl_method = tls_legacy_server_method, .ssl_clear_options = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1, .ssl_set_options = 0, }, |