Skip to content
Permalink
Browse files

Do not compile socket IO code in WolfSSL

We use own IO callbacks from server code anyway.
  • Loading branch information...
vaintroub authored and Oleksandr Byelkin committed Jun 30, 2019
1 parent f61a980 commit 1c27eb7ebd2c95008ba9b4fdfdee40615ca2f803
Showing with 5 additions and 0 deletions.
  1. +1 −0 extra/wolfssl/user_settings.h.in
  2. +4 −0 vio/viosocket.c
@@ -13,6 +13,7 @@
#define SESSION_CERT
#define KEEP_OUR_CERT
#define WOLFSSL_STATIC_RSA
#define WOLFSSL_USER_IO
#define WC_RSA_BLINDING
#define HAVE_TLS_EXTENSIONS
#define HAVE_AES_ECB
@@ -148,6 +148,10 @@ int vio_socket_io_wait(Vio *vio, enum enum_vio_io_event event)
#define VIO_DONTWAIT 0
#endif

#ifndef SOCKET_EAGAIN
#define SOCKET_EAGAIN SOCKET_EWOULDBLOCK
#endif

/*
returns number of bytes read or -1 in case of an error
*/

0 comments on commit 1c27eb7

Please sign in to comment.
You can’t perform that action at this time.