Using SSL_ERROR_WANT_READ, SSL_ERROR_WANT_WRITE defs
refactored ns_ssl_err()