Skip to content

Commit

Permalink
ssl: Fix usage of mbedtls_ssl_set_bio for nonblock
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 Jul 3, 2019
1 parent c875220 commit c1b29bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ssl.c
Expand Up @@ -92,7 +92,7 @@ int uwsc_ssl_init(struct uwsc_ssl_ctx **ctx, int sock)
mbedtls_ssl_conf_rng(&c->cfg, mbedtls_ctr_drbg_random, &c->drbg);

mbedtls_ssl_set_bio(&c->ssl, &c->net, mbedtls_net_send,
mbedtls_net_recv, mbedtls_net_recv_timeout);
mbedtls_net_recv, NULL);

mbedtls_ssl_setup(&c->ssl, &c->cfg);

Expand Down

0 comments on commit c1b29bb

Please sign in to comment.