diff options
author | tb <> | 2023-12-29 12:24:33 +0000 |
---|---|---|
committer | tb <> | 2023-12-29 12:24:33 +0000 |
commit | 478738b6c1a32e580360e52244a9f70a6d84b967 (patch) | |
tree | 63b098be008d3bd6041d78d9a5fe9c6c51396721 /src/lib/libssl/ssl_clnt.c | |
parent | babb3323a9b758848d4756d3ea704a02aa7f586f (diff) | |
download | openbsd-478738b6c1a32e580360e52244a9f70a6d84b967.tar.gz openbsd-478738b6c1a32e580360e52244a9f70a6d84b967.tar.bz2 openbsd-478738b6c1a32e580360e52244a9f70a6d84b967.zip |
Neuter the SSL_set_debug(3) API
The TLSv1.3 stack didn't support this in the first place, and in the legacy
stack it only added some dubious BIO_flush(3) calls. The sleep call between
SSL_read(3) and SSL_write(3) advertised in the comment next to the flag has
been a sleep call in the s_server since time immemorial, nota bene between
calls to BIO_gets(3). Anyway. This can all go and what remains will go with
the next major bump.
ok jsing
Diffstat (limited to 'src/lib/libssl/ssl_clnt.c')
-rw-r--r-- | src/lib/libssl/ssl_clnt.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/libssl/ssl_clnt.c b/src/lib/libssl/ssl_clnt.c index 76ed10f806..52f5de35a4 100644 --- a/src/lib/libssl/ssl_clnt.c +++ b/src/lib/libssl/ssl_clnt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_clnt.c,v 1.162 2023/11/19 15:50:29 tb Exp $ */ | 1 | /* $OpenBSD: ssl_clnt.c,v 1.163 2023/12/29 12:24:33 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 | * |
@@ -631,11 +631,6 @@ ssl3_connect(SSL *s) | |||
631 | 631 | ||
632 | /* did we do anything */ | 632 | /* did we do anything */ |
633 | if (!s->s3->hs.tls12.reuse_message && !skip) { | 633 | if (!s->s3->hs.tls12.reuse_message && !skip) { |
634 | if (s->debug) { | ||
635 | if ((ret = BIO_flush(s->wbio)) <= 0) | ||
636 | goto end; | ||
637 | } | ||
638 | |||
639 | if (s->s3->hs.state != state) { | 634 | if (s->s3->hs.state != state) { |
640 | new_state = s->s3->hs.state; | 635 | new_state = s->s3->hs.state; |
641 | s->s3->hs.state = state; | 636 | s->s3->hs.state = state; |