- Changed behaviour of net_recv(), ssl_fetch_input() and ssl_read(). net_recv() now returns 0 on EOF instead of POLARSSL_ERR_NET_CONN_RESET. ssl_fetch_input() returns POLARSSL_ERR_SSL_CONN_EOF on an EOF from its f_recv() function. ssl_read() returns 0 if a POLARSSL_ERR_SSL_CONN_EOF is received after the handshake.
- Network functions now return POLARSSL_ERR_NET_WANT_READ or POLARSSL_ERR_NET_WANT_WRITE instead of the ambiguous POLARSSL_ERR_NET_TRY_AGAIN
diff --git a/include/polarssl/error.h b/include/polarssl/error.h
index b9a73af..8a3f304 100644
--- a/include/polarssl/error.h
+++ b/include/polarssl/error.h
@@ -56,7 +56,7 @@
* XTEA 1 0x0028-0x0028
* PADLOCK 1 0x0030-0x0030
* DES 1 0x0032-0x0032
- * NET 10 0x0040-0x0052
+ * NET 11 0x0040-0x0054
*
* High-level module nr (3 bits - 0x1...-0x8...)
* Name ID Nr of Errors