commit 95199c7edbf0fa3bb1ea0b521ffe8d04f0a60a52
parent 60b382884e98afcc7e8dc4b679094ef2a1c652fa
Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 12 Aug 2023 19:15:20 +0200
Add TLS_POLL support return codes.
* Maybe fix the OpenBSD_Evil issue.
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -3,7 +3,7 @@
.POSIX:
NAME = geomyidae
-VERSION = 0.69
+VERSION = 0.72
PREFIX = /usr/local
BINDIR = ${PREFIX}/bin
diff --git a/main.c b/main.c
@@ -1134,6 +1134,11 @@ read_selector_again:
wlen = tls_write(tlsclientctx,
shufbuf+shufpos,
shuflen-shufpos);
+ if (wlen == TLS_WANT_POLLIN
+ || wlen == TLS_WANT_POLLOUT) {
+ wlan = 0;
+ continue;
+ }
if (wlen < 0) {
fprintf(stderr,
"tls_write failed: %s\n",