diff options
author | tb <> | 2023-12-29 12:06:48 +0000 |
---|---|---|
committer | tb <> | 2023-12-29 12:06:48 +0000 |
commit | 3bb20b5309c2ee7a1cffbae029be5dbf4306a10b (patch) | |
tree | 5c5e36628dffe9c350604857846ae2b19e25713e | |
parent | 74f37a921dec4d88238715b69fdd65f00d225fda (diff) | |
download | openbsd-3bb20b5309c2ee7a1cffbae029be5dbf4306a10b.tar.gz openbsd-3bb20b5309c2ee7a1cffbae029be5dbf4306a10b.tar.bz2 openbsd-3bb20b5309c2ee7a1cffbae029be5dbf4306a10b.zip |
s_client: pause hasn't worked in ages. Just ignore it
ok jsing
-rw-r--r-- | src/usr.bin/openssl/openssl.1 | 7 | ||||
-rw-r--r-- | src/usr.bin/openssl/s_client.c | 11 |
2 files changed, 5 insertions, 13 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1 index be060a3e54..3c376f4b46 100644 --- a/src/usr.bin/openssl/openssl.1 +++ b/src/usr.bin/openssl/openssl.1 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: openssl.1,v 1.152 2023/07/27 07:01:50 tb Exp $ | 1 | .\" $OpenBSD: openssl.1,v 1.153 2023/12/29 12:06:48 tb Exp $ |
2 | .\" ==================================================================== | 2 | .\" ==================================================================== |
3 | .\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | .\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
4 | .\" | 4 | .\" |
@@ -110,7 +110,7 @@ | |||
110 | .\" copied and put under another distribution licence | 110 | .\" copied and put under another distribution licence |
111 | .\" [including the GNU Public Licence.] | 111 | .\" [including the GNU Public Licence.] |
112 | .\" | 112 | .\" |
113 | .Dd $Mdocdate: July 27 2023 $ | 113 | .Dd $Mdocdate: December 29 2023 $ |
114 | .Dt OPENSSL 1 | 114 | .Dt OPENSSL 1 |
115 | .Os | 115 | .Os |
116 | .Sh NAME | 116 | .Sh NAME |
@@ -4279,7 +4279,6 @@ Verify the input data and output the recovered data. | |||
4279 | .Op Fl no_tls1_2 | 4279 | .Op Fl no_tls1_2 |
4280 | .Op Fl no_tls1_3 | 4280 | .Op Fl no_tls1_3 |
4281 | .Op Fl pass Ar arg | 4281 | .Op Fl pass Ar arg |
4282 | .Op Fl pause | ||
4283 | .Op Fl policy_check | 4282 | .Op Fl policy_check |
4284 | .Op Fl port Ar port | 4283 | .Op Fl port Ar port |
4285 | .Op Fl prexit | 4284 | .Op Fl prexit |
@@ -4445,8 +4444,6 @@ Disable the use of TLS1.2 and 1.3, respectively. | |||
4445 | Disable RFC 4507 session ticket support. | 4444 | Disable RFC 4507 session ticket support. |
4446 | .It Fl pass Ar arg | 4445 | .It Fl pass Ar arg |
4447 | The private key password source. | 4446 | The private key password source. |
4448 | .It Fl pause | ||
4449 | Pause 1 second between each read and write call. | ||
4450 | .It Fl port Ar port | 4447 | .It Fl port Ar port |
4451 | The | 4448 | The |
4452 | .Ar port | 4449 | .Ar port |
diff --git a/src/usr.bin/openssl/s_client.c b/src/usr.bin/openssl/s_client.c index e5a6b006b4..d993f51636 100644 --- a/src/usr.bin/openssl/s_client.c +++ b/src/usr.bin/openssl/s_client.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s_client.c,v 1.62 2023/07/03 08:03:56 beck Exp $ */ | 1 | /* $OpenBSD: s_client.c,v 1.63 2023/12/29 12:06:48 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 | * |
@@ -223,7 +223,6 @@ static struct { | |||
223 | char *npn_in; | 223 | char *npn_in; |
224 | unsigned int off; | 224 | unsigned int off; |
225 | char *passarg; | 225 | char *passarg; |
226 | int pause; | ||
227 | int peekaboo; | 226 | int peekaboo; |
228 | char *port; | 227 | char *port; |
229 | int prexit; | 228 | int prexit; |
@@ -659,9 +658,7 @@ static const struct option s_client_options[] = { | |||
659 | }, | 658 | }, |
660 | { | 659 | { |
661 | .name = "pause", | 660 | .name = "pause", |
662 | .desc = "Pause 1 second between each read and write call", | 661 | .type = OPTION_DISCARD, |
663 | .type = OPTION_FLAG, | ||
664 | .opt.flag = &cfg.pause, | ||
665 | }, | 662 | }, |
666 | { | 663 | { |
667 | .name = "peekaboo", | 664 | .name = "peekaboo", |
@@ -832,7 +829,7 @@ sc_usage(void) | |||
832 | " [-keymatexport label] [-keymatexportlen len] [-legacy_server_connect]\n" | 829 | " [-keymatexport label] [-keymatexportlen len] [-legacy_server_connect]\n" |
833 | " [-msg] [-mtu mtu] [-nbio] [-nbio_test] [-no_comp] [-no_ign_eof]\n" | 830 | " [-msg] [-mtu mtu] [-nbio] [-nbio_test] [-no_comp] [-no_ign_eof]\n" |
834 | " [-no_legacy_server_connect] [-no_ticket] \n" | 831 | " [-no_legacy_server_connect] [-no_ticket] \n" |
835 | " [-no_tls1_2] [-no_tls1_3] [-pass arg] [-pause] [-policy_check]\n" | 832 | " [-no_tls1_2] [-no_tls1_3] [-pass arg] [-policy_check]\n" |
836 | " [-port port] [-prexit] [-proxy host:port] [-quiet] [-reconnect]\n" | 833 | " [-port port] [-prexit] [-proxy host:port] [-quiet] [-reconnect]\n" |
837 | " [-servername name] [-serverpref] [-sess_in file] [-sess_out file]\n" | 834 | " [-servername name] [-serverpref] [-sess_in file] [-sess_out file]\n" |
838 | " [-showcerts] [-starttls protocol] [-state] [-status] [-timeout]\n" | 835 | " [-showcerts] [-starttls protocol] [-state] [-status] [-timeout]\n" |
@@ -1088,8 +1085,6 @@ s_client_main(int argc, char **argv) | |||
1088 | goto end; | 1085 | goto end; |
1089 | } | 1086 | } |
1090 | } | 1087 | } |
1091 | if (cfg.pause & 0x01) | ||
1092 | SSL_set_debug(con, 1); | ||
1093 | 1088 | ||
1094 | if (SSL_is_dtls(con)) { | 1089 | if (SSL_is_dtls(con)) { |
1095 | sbio = BIO_new_dgram(s, BIO_NOCLOSE); | 1090 | sbio = BIO_new_dgram(s, BIO_NOCLOSE); |