summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_srvr.c
diff options
context:
space:
mode:
authortb <>2023-12-29 12:24:33 +0000
committertb <>2023-12-29 12:24:33 +0000
commit478738b6c1a32e580360e52244a9f70a6d84b967 (patch)
tree63b098be008d3bd6041d78d9a5fe9c6c51396721 /src/lib/libssl/ssl_srvr.c
parentbabb3323a9b758848d4756d3ea704a02aa7f586f (diff)
downloadopenbsd-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 '')
-rw-r--r--src/lib/libssl/ssl_srvr.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/libssl/ssl_srvr.c b/src/lib/libssl/ssl_srvr.c
index a571549b64..f26fde5061 100644
--- a/src/lib/libssl/ssl_srvr.c
+++ b/src/lib/libssl/ssl_srvr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_srvr.c,v 1.157 2023/11/18 10:51:09 tb Exp $ */ 1/* $OpenBSD: ssl_srvr.c,v 1.158 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 *
@@ -740,12 +740,6 @@ ssl3_accept(SSL *s)
740 } 740 }
741 741
742 if (!s->s3->hs.tls12.reuse_message && !skip) { 742 if (!s->s3->hs.tls12.reuse_message && !skip) {
743 if (s->debug) {
744 if ((ret = BIO_flush(s->wbio)) <= 0)
745 goto end;
746 }
747
748
749 if (s->s3->hs.state != state) { 743 if (s->s3->hs.state != state) {
750 new_state = s->s3->hs.state; 744 new_state = s->s3->hs.state;
751 s->s3->hs.state = state; 745 s->s3->hs.state = state;