v / vlib / net / mbedtls / mbedtls_helpers.h
9 lines · 7 sloc · 256 bytes · 5a1b7b030ce9ca6eb47c6eb3ee92cfa44608c49d
Raw
1#ifndef V_NET_MBEDTLS_HELPERS_H
2#define V_NET_MBEDTLS_HELPERS_H
3
4static inline void v_mbedtls_ssl_set_bio_nonblocking(mbedtls_ssl_context *ssl, mbedtls_net_context *net)
5{
6 mbedtls_ssl_set_bio(ssl, net, mbedtls_net_send, mbedtls_net_recv, NULL);
7}
8
9#endif
10