wolfssl: remove now deprecated compatibility code
[project/ustream-ssl.git] / ustream-io-wolfssl.c
index db69499a8e4b42b89a1e0d8eca8b5ea08fa7fbf0..4ff85d34e33331535f25645121d90b11078e20df 100644 (file)
@@ -67,15 +67,8 @@ static int io_send_cb(SSL* ssl, char *buf, int sz, void *ctx)
 
 __hidden void ustream_set_io(struct ustream_ssl_ctx *ctx, void *ssl, struct ustream *conn)
 {
-#ifndef NO_WOLFSSL_SSLSETIO_SEND_RECV
        wolfSSL_SSLSetIORecv(ssl, io_recv_cb);
        wolfSSL_SSLSetIOSend(ssl, io_send_cb);
-#else
-       wolfSSL_SetIORecv((void *) ctx, io_recv_cb);
-       wolfSSL_SetIOSend((void *) ctx, io_send_cb);
-       if (ssl == NULL)
-               return;
-#endif
        wolfSSL_SetIOReadCtx(ssl, conn);
        wolfSSL_SetIOWriteCtx(ssl, conn);
 }