23 #include <openssl/err.h>
24 #include <openssl/ssl.h>
43 _read = read((this->handle).fd, buf, count);
51 case (EAGAIN|EWOULDBLOCK):
58 }
else if (_read == 0) {
67 done = SSL_read((this->handle).ssl, buf, count);
71 }
else if (0 > done) {
72 switch (SSL_get_error((this->handle).ssl, done)) {
73 case SSL_ERROR_SYSCALL:
81 case (EAGAIN|EWOULDBLOCK):
95 while (0 != (err = ERR_get_error())) {
99 ERR_error_string(err, NULL));
104 case SSL_ERROR_ZERO_RETURN:
ssize_t streamRead(Stream this, void *buf, size_t count)
void loggerLog(void *, logger_level, const char *const,...)