projects
/
oweals
/
openwrt-ustream-ssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ustream-io-cyassl.c: fix client-mode connections
[oweals/openwrt-ustream-ssl.git]
/
ustream-ssl.c
diff --git
a/ustream-ssl.c
b/ustream-ssl.c
index dd0faf9f7ce3a25f8abf5aef644af334c7247cbf..e6b084bcadac3f14f793dc8fd364ee497674a85e 100644
(file)
--- a/
ustream-ssl.c
+++ b/
ustream-ssl.c
@@
-179,6
+179,9
@@
static int _ustream_ssl_init(struct ustream_ssl *us, struct ustream *conn, struc
us->conn = conn;
us->ctx = ctx;
+#if defined(HAVE_WOLFSSL) && defined(NO_WOLFSSL_SSLSETIO_SEND_RECV)
+ ustream_set_io(ctx, NULL, conn);
+#endif
us->ssl = __ustream_ssl_session_new(us->ctx);
if (!us->ssl)
return -ENOMEM;