session: improve error reporting

Type: improvement

Change-Id: I9dd850a1ce85b0adb5136233f176117e0ee38817
Signed-off-by: Florin Coras <fcoras@cisco.com>
This commit is contained in:
Florin Coras
2019-10-21 16:07:46 -07:00
committed by Dave Barach
parent 39aa7a5202
commit 00e01d3e87
31 changed files with 199 additions and 160 deletions

View File

@ -414,11 +414,11 @@ mbedtls_ctx_handshake_rx (tls_ctx_t * ctx)
*/
if (ctx->srv_hostname)
{
tls_notify_app_connected (ctx, /* is failed */ 0);
tls_notify_app_connected (ctx, SESSION_E_TLS_HANDSHAKE);
return -1;
}
}
tls_notify_app_connected (ctx, /* is failed */ 0);
tls_notify_app_connected (ctx, SESSION_E_NONE);
}
else
{