-
Enrico Scholz authored
avoid '#ifdef HAVE_LIBGNUTLS' blocks within the main code and move send/recv into dedicated functions. There, non-fatal TLS errors will be handled which seems to be required when speaking with TLS 1.3 servers (where _AGAIN is returned by gnutls_record_recv()). E.g. shortly after STARTTLS it happens here: | gsasl->gnutls_record_recv(0x1d48b90 <unfinished ...> | libgnutls.so.30->recv(3, "\027\003\003", 5, 0) = 5 | libgnutls.so.30->recv(3, "voJz~k"..., 250, 0) = 250 | <... gnutls_record_recv resumed> , "p\335\324\001", 1) = -28 (GNUTLS_E_AGAIN) | gsasl->gnutls_record_recv(0x1d48b90 <unfinished ...> | libgnutls.so.30->recv(3, "\027\003\003", 5, 0) = 5 | libgnutls.so.30->recv(3, " H\274"..., 250, 0) = 250 | <... gnutls_record_recv resumed> , "p\335\324\001", 1) = -28 (GNUTLS_E_AGAIN) | gsasl->gnutls_record_recv(0x1d48b90 <unfinished ...> | libgnutls.so.30->recv(3, "\027\003"..., 5, 0) = 5 | libgnutls.so.30->recv(3, "\036\033"..., 818, 0) = 818 | <... gnutls_record_recv resumed> , "*", 1) = 1 | gsasl->gnutls_record_recv(0x1d48b90, " ", 1) = 1 Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
1729c443