summaryrefslogtreecommitdiffstats
path: root/crypto/async/async_locl.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-11-13 11:22:21 +0000
committerMatt Caswell <matt@openssl.org>2015-11-20 23:37:17 +0000
commit2b2c78d4f0a73498739cfc0879299d7325c35160 (patch)
tree2ed0601fe6fa8482bca8646a8cc0b290386e48f4 /crypto/async/async_locl.h
parente38565f536b7674ef507564b5c646712b1d7eed4 (diff)
Swap to using proper windows pipes
We were using _pipe to create a pipe on windows. This uses the "int" type for its file descriptor for compatibility. However most windows functions expect to use a "HANDLE". Probably we could get away with just casting but it seems more robust to use the proper type and main stream windows functions. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/async/async_locl.h')
-rw-r--r--crypto/async/async_locl.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/async/async_locl.h b/crypto/async/async_locl.h
index ba329788b3..3cf97479ed 100644
--- a/crypto/async/async_locl.h
+++ b/crypto/async/async_locl.h
@@ -73,8 +73,8 @@ struct async_job_st {
int ret;
int status;
int wake_set;
- int wait_fd;
- int wake_fd;
+ OSSL_ASYNC_FD wait_fd;
+ OSSL_ASYNC_FD wake_fd;
};
DECLARE_STACK_OF(ASYNC_JOB)
@@ -88,6 +88,6 @@ void async_release_job_to_pool(ASYNC_JOB *job);
size_t async_pool_max_size(void);
void async_release_pool(void);
int async_pool_can_grow(void);
-int async_pipe(int *pipefds);
-int async_write1(int fd, const void *buf);
-int async_read1(int fd, void *buf);
+int async_pipe(OSSL_ASYNC_FD *pipefds);
+int async_write1(OSSL_ASYNC_FD fd, const void *buf);
+int async_read1(OSSL_ASYNC_FD fd, void *buf);