diff options
| author | jsing <> | 2020-05-11 18:18:21 +0000 |
|---|---|---|
| committer | jsing <> | 2020-05-11 18:18:21 +0000 |
| commit | 0aacbacc726cfdae8884a4b0eda8820033ad8e29 (patch) | |
| tree | e2bb4635cd3928b01eb6ff5a7e1603a37448247e | |
| parent | 23234c739ce9f6e61430c2e01d1c0571f344f8e1 (diff) | |
| download | openbsd-0aacbacc726cfdae8884a4b0eda8820033ad8e29.tar.gz openbsd-0aacbacc726cfdae8884a4b0eda8820033ad8e29.tar.bz2 openbsd-0aacbacc726cfdae8884a4b0eda8820033ad8e29.zip | |
Use tls_legacy_server_method() for SSLv2 record tests.
Diffstat (limited to '')
| -rw-r--r-- | src/regress/lib/libssl/server/Makefile | 4 | ||||
| -rw-r--r-- | src/regress/lib/libssl/server/servertest.c | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/regress/lib/libssl/server/Makefile b/src/regress/lib/libssl/server/Makefile index 705190d076..0621a5f243 100644 --- a/src/regress/lib/libssl/server/Makefile +++ b/src/regress/lib/libssl/server/Makefile | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.1 2017/03/05 14:15:53 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2020/05/11 18:18:21 jsing Exp $ |
| 2 | 2 | ||
| 3 | PROG= servertest | 3 | PROG= servertest |
| 4 | LDADD= -lssl -lcrypto | 4 | LDADD= ${SSL_INT} -lcrypto |
| 5 | DPADD= ${LIBSSL} ${LIBCRYPTO} | 5 | DPADD= ${LIBSSL} ${LIBCRYPTO} |
| 6 | WARNINGS= Yes | 6 | WARNINGS= Yes |
| 7 | CFLAGS+= -DLIBRESSL_INTERNAL -Werror | 7 | CFLAGS+= -DLIBRESSL_INTERNAL -Werror |
diff --git a/src/regress/lib/libssl/server/servertest.c b/src/regress/lib/libssl/server/servertest.c index e2ee3bb5e5..7a0caefc2b 100644 --- a/src/regress/lib/libssl/server/servertest.c +++ b/src/regress/lib/libssl/server/servertest.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: servertest.c,v 1.2 2020/01/25 05:02:27 jsing Exp $ */ | 1 | /* $OpenBSD: servertest.c,v 1.3 2020/05/11 18:18:21 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2015, 2016, 2017 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2015, 2016, 2017 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -25,6 +25,8 @@ | |||
| 25 | #include <stdio.h> | 25 | #include <stdio.h> |
| 26 | #include <string.h> | 26 | #include <string.h> |
| 27 | 27 | ||
| 28 | const SSL_METHOD *tls_legacy_server_method(void); | ||
| 29 | |||
| 28 | char *server_ca_file; | 30 | char *server_ca_file; |
| 29 | char *server_cert_file; | 31 | char *server_cert_file; |
| 30 | char *server_key_file; | 32 | char *server_key_file; |
| @@ -89,7 +91,7 @@ static struct server_hello_test server_hello_tests[] = { | |||
| 89 | .desc = "TLSv1.0 in SSLv2 record", | 91 | .desc = "TLSv1.0 in SSLv2 record", |
| 90 | .client_hello = sslv2_client_hello_tls10, | 92 | .client_hello = sslv2_client_hello_tls10, |
| 91 | .client_hello_len = sizeof(sslv2_client_hello_tls10), | 93 | .client_hello_len = sizeof(sslv2_client_hello_tls10), |
| 92 | .ssl_method = TLS_server_method, | 94 | .ssl_method = tls_legacy_server_method, |
| 93 | .ssl_clear_options = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1, | 95 | .ssl_clear_options = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1, |
| 94 | .ssl_set_options = 0, | 96 | .ssl_set_options = 0, |
| 95 | }, | 97 | }, |
| @@ -97,7 +99,7 @@ static struct server_hello_test server_hello_tests[] = { | |||
| 97 | .desc = "TLSv1.2 in SSLv2 record", | 99 | .desc = "TLSv1.2 in SSLv2 record", |
| 98 | .client_hello = sslv2_client_hello_tls12, | 100 | .client_hello = sslv2_client_hello_tls12, |
| 99 | .client_hello_len = sizeof(sslv2_client_hello_tls12), | 101 | .client_hello_len = sizeof(sslv2_client_hello_tls12), |
| 100 | .ssl_method = TLS_server_method, | 102 | .ssl_method = tls_legacy_server_method, |
| 101 | .ssl_clear_options = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1, | 103 | .ssl_clear_options = SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1, |
| 102 | .ssl_set_options = 0, | 104 | .ssl_set_options = 0, |
| 103 | }, | 105 | }, |
