diff options
| author | tb <> | 2020-05-23 13:00:30 +0000 |
|---|---|---|
| committer | tb <> | 2020-05-23 13:00:30 +0000 |
| commit | 3af5ecc52ab53ab12b55b8edb68f52096070099e (patch) | |
| tree | dae6f61c84cf5824026401aa2c67f09e3eaf73c8 /src | |
| parent | 7f32076794cf53c4cba481f25dd750539030b92b (diff) | |
| download | openbsd-3af5ecc52ab53ab12b55b8edb68f52096070099e.tar.gz openbsd-3af5ecc52ab53ab12b55b8edb68f52096070099e.tar.bz2 openbsd-3af5ecc52ab53ab12b55b8edb68f52096070099e.zip | |
While the second SSL_CTX in this code is only used on servername
callback, so its mode is not used to update the ssl's mode, it
seems more appropriate to clear the SSL_MODE_AUTO_RETRY flag on
it as well.
ok jsing
Diffstat (limited to 'src')
| -rw-r--r-- | src/usr.bin/openssl/s_server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/s_server.c b/src/usr.bin/openssl/s_server.c index dbf59ad854..2ff142dab8 100644 --- a/src/usr.bin/openssl/s_server.c +++ b/src/usr.bin/openssl/s_server.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: s_server.c,v 1.37 2020/05/23 12:52:54 tb Exp $ */ | 1 | /* $OpenBSD: s_server.c,v 1.38 2020/05/23 13:00:30 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -1033,6 +1033,7 @@ s_server_main(int argc, char *argv[]) | |||
| 1033 | goto end; | 1033 | goto end; |
| 1034 | if (!SSL_CTX_set_max_proto_version(ctx2, max_version)) | 1034 | if (!SSL_CTX_set_max_proto_version(ctx2, max_version)) |
| 1035 | goto end; | 1035 | goto end; |
| 1036 | SSL_CTX_clear_mode(ctx2, SSL_MODE_AUTO_RETRY); | ||
| 1036 | } | 1037 | } |
| 1037 | if (ctx2) { | 1038 | if (ctx2) { |
| 1038 | BIO_printf(bio_s_out, "Setting secondary ctx parameters\n"); | 1039 | BIO_printf(bio_s_out, "Setting secondary ctx parameters\n"); |
