You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using OpenSSL 1.1.1n version with Azure C SDK and facing below error code 2 while handshaking with iothub end point. Looks like below code inside adaptor/tlsio_openssl.c is not handled for Error Code 2 (SSL_ERROR_WANT_READ). Can you help how to handle this please?
// Non-NULL tls_io_instance is guaranteed by callers.
// We are in TLSIO_STATE_IN_HANDSHAKE when entering this method.
static void send_handshake_bytes(TLS_IO_INSTANCE* tls_io_instance)
{
int hsret;
// ERR_clear_error must be called before any call that might set an
// SSL_get_error result
ERR_clear_error();
hsret = SSL_do_handshake(tls_io_instance->ssl);
if (hsret != SSL_DO_HANDSHAKE_SUCCESS)
{
The text was updated successfully, but these errors were encountered:
Hi @venugchary, I looked at the portion of code you mentioned above and attempted to repro with my debugger but have not found a way to replicate a failure stemming from SSL_ERROR_WANT_READ.
What error message are you seeing? Can you provide logs?
I am using OpenSSL 1.1.1n version with Azure C SDK and facing below error code 2 while handshaking with iothub end point. Looks like below code inside adaptor/tlsio_openssl.c is not handled for Error Code 2 (SSL_ERROR_WANT_READ). Can you help how to handle this please?
// Non-NULL tls_io_instance is guaranteed by callers.
// We are in TLSIO_STATE_IN_HANDSHAKE when entering this method.
static void send_handshake_bytes(TLS_IO_INSTANCE* tls_io_instance)
{
int hsret;
// ERR_clear_error must be called before any call that might set an
// SSL_get_error result
ERR_clear_error();
hsret = SSL_do_handshake(tls_io_instance->ssl);
if (hsret != SSL_DO_HANDSHAKE_SUCCESS)
{
The text was updated successfully, but these errors were encountered: