projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
505f74c
)
Don't use select on Windows
author
Matt Caswell
<matt@openssl.org>
Wed, 20 Apr 2016 11:56:54 +0000
(12:56 +0100)
committer
Matt Caswell
<matt@openssl.org>
Wed, 20 Apr 2016 13:52:46 +0000
(14:52 +0100)
Windows "select" only works for sockets so don't use it to wait for async.
Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/apps.c
patch
|
blob
|
history
diff --git
a/apps/apps.c
b/apps/apps.c
index 6d8c4897d0ed6a2d679749e1a14c08a467d69973..8cf3b59ee84414f1fac36bbcf95bb4443e007a12 100644
(file)
--- a/
apps/apps.c
+++ b/
apps/apps.c
@@
-2621,6
+2621,8
@@
BIO *bio_open_default_quiet(const char *filename, char mode, int format)
void wait_for_async(SSL *s)
{
+ /* On Windows select only works for sockets, so we simply don't wait */
+#ifndef OPENSSL_SYS_WINDOWS
int width = 0;
fd_set asyncfds;
OSSL_ASYNC_FD *fds;
@@
-2644,4
+2646,5
@@
void wait_for_async(SSL *s)
fds++;
}
select(width, (void *)&asyncfds, NULL, NULL, NULL);
+#endif
}