Skip to content

Commit

Permalink
obtain human-readable error message for SSL_connect
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
  • Loading branch information
Jianhui Zhao committed Feb 23, 2019
1 parent 8681d4a commit 4e77257
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ int uwsc_ssl_handshake(struct uwsc_ssl_ctx *ctx)
int err = SSL_get_error(ctx->ssl, ret);
if (err == SSL_ERROR_WANT_READ || err == SSL_ERROR_WANT_WRITE)
return 0;
uwsc_log_err("%s\n", ERR_error_string(err, NULL));
return -1;
}
#endif
Expand Down

0 comments on commit 4e77257

Please sign in to comment.