Move WANT_READ/WANT_WRITE codes to SSL
diff --git a/programs/x509/cert_app.c b/programs/x509/cert_app.c
index 6c0659a..d0aea99 100644
--- a/programs/x509/cert_app.c
+++ b/programs/x509/cert_app.c
@@ -440,7 +440,7 @@
*/
while( ( ret = mbedtls_ssl_handshake( &ssl ) ) != 0 )
{
- if( ret != MBEDTLS_ERR_NET_WANT_READ && ret != MBEDTLS_ERR_NET_WANT_WRITE )
+ if( ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE )
{
mbedtls_printf( " failed\n ! mbedtls_ssl_handshake returned %d\n\n", ret );
goto ssl_exit;