mirror of
				https://github.com/eledio-devices/thirdparty-AsyncTCPSock.git
				synced 2025-10-31 08:42:38 +01:00 
			
		
		
		
	Add macro definition for end-of-stream condition
This commit is contained in:
		| @@ -14,7 +14,8 @@ | ||||
| #include "mbedtls/ctr_drbg.h" | ||||
| #include "mbedtls/error.h" | ||||
|  | ||||
| #define ASYNCTCP_TLS_CAN_RETRY(r) (((r) == MBEDTLS_ERR_SSL_WANT_READ) || ((r) == MBEDTLS_ERR_SSL_WANT_WRITE)) | ||||
| #define ASYNCTCP_TLS_CAN_RETRY(r)   (((r) == MBEDTLS_ERR_SSL_WANT_READ) || ((r) == MBEDTLS_ERR_SSL_WANT_WRITE)) | ||||
| #define ASYNCTCP_TLS_EOF(r)         (((r) == MBEDTLS_ERR_SSL_CONN_EOF) || ((r) == MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY)) | ||||
|  | ||||
| class AsyncTCP_TLS_Context | ||||
| { | ||||
| @@ -39,8 +40,6 @@ private: | ||||
|  | ||||
|     int _socket; | ||||
|  | ||||
|  | ||||
|  | ||||
|     // Delete certificates used in handshake | ||||
|     void _deleteHandshakeCerts(void); | ||||
| public: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user