20 April 2026: Wouter
- Fix compile warnings for thread setname routine, and test compile.
- Fix unused variable warning when compiled without ssl.
+ - Fix test with https zone for libressl.
17 April 2026: Wouter
- Fix setup of ssl context copy of the tls service pem option,
return 0;
}
if((r = SSL_read(ssl, buf+n, 1)) <= 0) {
- if(SSL_get_error(ssl, r) == SSL_ERROR_ZERO_RETURN) {
+ int e = SSL_get_error(ssl, r);
+ if(e == SSL_ERROR_ZERO_RETURN) {
/* EOF */
break;
+ } else if(e == SSL_ERROR_WANT_READ) {
+ continue;
+ } else if(e == SSL_ERROR_WANT_WRITE) {
+ continue;
+ } else if(e == SSL_ERROR_SYSCALL) {
+ if(verb) printf("could not SSL_read %s\n",
+ strerror(errno));
+ } else if(e == SSL_ERROR_SSL) {
+ int er = ERR_peek_error();
+ if(er)
+ printf("could not SSL_read: %s\n",
+ ERR_reason_error_string(er));
+ } else {
+ if(verb) printf("could not SSL_read "
+ "(SSL_get_error %d)\n", e);
}
- if(verb) printf("could not SSL_read\n");
return 0;
}
if(endnl && buf[n] == '\n') {