From: Felix Fietkau Date: Fri, 21 Mar 2014 23:39:02 +0000 (+0100) Subject: fix CyaSSL build X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fustream-ssl.git;a=commitdiff_plain;h=515d8c344086746b44939652004a7b5ac1b85097 fix CyaSSL build Signed-off-by: Felix Fietkau --- diff --git a/ustream-io-cyassl.c b/ustream-io-cyassl.c index ea2efa9..d97d55e 100644 --- a/ustream-io-cyassl.c +++ b/ustream-io-cyassl.c @@ -97,10 +97,10 @@ static int io_send_cb(char *buf, int sz, void *ctx) } #endif -__hidden void ustream_set_io(void *ctx, void *ssl, struct ustream *conn) +__hidden void ustream_set_io(struct ustream_ssl_ctx *ctx, void *ssl, struct ustream *conn) { CyaSSL_SetIOReadCtx(ssl, conn); CyaSSL_SetIOWriteCtx(ssl, conn); - CyaSSL_SetIORecv(ctx, io_recv_cb); - CyaSSL_SetIOSend(ctx, io_send_cb); + CyaSSL_SetIORecv((void *) ctx, io_recv_cb); + CyaSSL_SetIOSend((void *) ctx, io_send_cb); }