From dfcb4ecb06c82031088dcdf3b5b578c8f99ef4e2 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 9 Aug 2021 11:38:20 +0200 Subject: [PATCH] Fixed socket lib compile without SSL --- lib/socket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/socket.h b/lib/socket.h index 61e58a2f..05239f61 100644 --- a/lib/socket.h +++ b/lib/socket.h @@ -91,10 +91,10 @@ namespace Socket{ bool iread(Buffer &buffer, int flags = 0); ///< Incremental write call that is compatible with Socket::Buffer. bool iwrite(std::string &buffer); ///< Write call that is compatible with std::string. void setBoundAddr(); -#ifdef SSL - /// optional extension that uses mbedtls for SSL protected: std::string lastErr; ///< Stores last error, if any. +#ifdef SSL + /// optional extension that uses mbedtls for SSL bool sslConnected; int ssl_iread(void *buffer, int len, int flags = 0); ///< Incremental read call. unsigned int ssl_iwrite(const void *buffer, int len); ///< Incremental write call.