mirror of
				https://github.com/eledio-devices/thirdparty-AsyncTCPSock.git
				synced 2025-10-31 00:32:37 +01:00 
			
		
		
		
	Add macro definition for end-of-stream condition
This commit is contained in:
		| @@ -15,6 +15,7 @@ | |||||||
| #include "mbedtls/error.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 | class AsyncTCP_TLS_Context | ||||||
| { | { | ||||||
| @@ -39,8 +40,6 @@ private: | |||||||
|  |  | ||||||
|     int _socket; |     int _socket; | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
|     // Delete certificates used in handshake |     // Delete certificates used in handshake | ||||||
|     void _deleteHandshakeCerts(void); |     void _deleteHandshakeCerts(void); | ||||||
| public: | public: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user