Skip to content

Commit 1c27eb7

Browse files
vaintroubsanja-byelkin
authored andcommitted
Do not compile socket IO code in WolfSSL
We use own IO callbacks from server code anyway.
1 parent f61a980 commit 1c27eb7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

extra/wolfssl/user_settings.h.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#define SESSION_CERT
1414
#define KEEP_OUR_CERT
1515
#define WOLFSSL_STATIC_RSA
16+
#define WOLFSSL_USER_IO
1617
#define WC_RSA_BLINDING
1718
#define HAVE_TLS_EXTENSIONS
1819
#define HAVE_AES_ECB

vio/viosocket.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ int vio_socket_io_wait(Vio *vio, enum enum_vio_io_event event)
148148
#define VIO_DONTWAIT 0
149149
#endif
150150

151+
#ifndef SOCKET_EAGAIN
152+
#define SOCKET_EAGAIN SOCKET_EWOULDBLOCK
153+
#endif
154+
151155
/*
152156
returns number of bytes read or -1 in case of an error
153157
*/

0 commit comments

Comments
 (0)