Add TLS_POLL support return codes. - geomyidae - A small C-based gopherd.
HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 95199c7edbf0fa3bb1ea0b521ffe8d04f0a60a52
DIR parent 60b382884e98afcc7e8dc4b679094ef2a1c652fa
HTML 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:
M Makefile | 2 +-
M main.c | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
---
DIR 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
DIR 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",