From bae11b88357db72b19413cd05c62ac9242b9b597 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 22 Nov 2020 21:49:58 +0000 Subject: Fix a few bugs. sbearssl appears to be working. --- src/tls/s6-tlsc-io.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/tls/s6-tlsc-io.c') diff --git a/src/tls/s6-tlsc-io.c b/src/tls/s6-tlsc-io.c index 48965cc..f6a0210 100644 --- a/src/tls/s6-tlsc-io.c +++ b/src/tls/s6-tlsc-io.c @@ -55,8 +55,6 @@ static int handshake_cb (br_ssl_engine_context *ctx, sbearssl_handshake_cb_conte static inline void doit (int *fds, tain_t const *tto, uint32_t preoptions, uint32_t options, unsigned int verbosity, char const *servername, unsigned int notif) { - if (ndelay_on(fds[0]) < 0 || ndelay_on(fds[1]) < 0) - strerr_diefu1sys(111, "set local fds non-blocking") ; if (!random_init()) strerr_diefu1sys(111, "initialize random device") ; sbearssl_client_init_and_run(fds, tto, preoptions, options, verbosity, servername, &handshake_cb, notif) ; } @@ -111,8 +109,6 @@ int main (int argc, char const *const *argv, char const *const *envp) fds[1] = u ; } - if (ndelay_on(0) < 0 || ndelay_on(1) < 0) - strerr_diefu1sys(111, "set stdin/stdout non-blocking") ; if (sig_ignore(SIGPIPE) < 0) strerr_diefu1sys(111, "ignore SIGPIPE") ; tain_now_set_stopwatch_g() ; doit(fds, &tto, preoptions, options, verbosity, servername, notif) ; -- cgit v1.2.3