summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/openssl/s_client.c5
-rw-r--r--usr.bin/openssl/s_server.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/openssl/s_client.c b/usr.bin/openssl/s_client.c
index 88b098286a3..cc886b11e6d 100644
--- a/usr.bin/openssl/s_client.c
+++ b/usr.bin/openssl/s_client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_client.c,v 1.45 2020/05/22 16:11:23 deraadt Exp $ */
+/* $OpenBSD: s_client.c,v 1.46 2020/05/23 12:52:54 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -653,6 +653,9 @@ s_client_main(int argc, char **argv)
ERR_print_errors(bio_err);
goto end;
}
+
+ SSL_CTX_clear_mode(ctx, SSL_MODE_AUTO_RETRY);
+
if (vpm)
SSL_CTX_set1_param(ctx, vpm);
diff --git a/usr.bin/openssl/s_server.c b/usr.bin/openssl/s_server.c
index e0838b2b503..dbf59ad8544 100644
--- a/usr.bin/openssl/s_server.c
+++ b/usr.bin/openssl/s_server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s_server.c,v 1.36 2020/05/23 09:02:02 tb Exp $ */
+/* $OpenBSD: s_server.c,v 1.37 2020/05/23 12:52:54 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -968,6 +968,8 @@ s_server_main(int argc, char *argv[])
goto end;
}
+ SSL_CTX_clear_mode(ctx, SSL_MODE_AUTO_RETRY);
+
if (!SSL_CTX_set_min_proto_version(ctx, min_version))
goto end;
if (!SSL_CTX_set_max_proto_version(ctx, max_version))