diff options
author | Matt Caswell <matt@openssl.org> | 2015-11-13 11:22:21 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-11-20 23:37:17 +0000 |
commit | 2b2c78d4f0a73498739cfc0879299d7325c35160 (patch) | |
tree | 2ed0601fe6fa8482bca8646a8cc0b290386e48f4 /crypto/async/async.c | |
parent | e38565f536b7674ef507564b5c646712b1d7eed4 (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.c')
-rw-r--r-- | crypto/async/async.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/async/async.c b/crypto/async/async.c index 86f4c09675..5bf64afa22 100644 --- a/crypto/async/async.c +++ b/crypto/async/async.c @@ -109,7 +109,7 @@ static int async_ctx_free(void) static ASYNC_JOB *async_job_new(void) { ASYNC_JOB *job = NULL; - int pipefds[2]; + OSSL_ASYNC_FD pipefds[2]; job = OPENSSL_malloc(sizeof (ASYNC_JOB)); if (job == NULL) { @@ -387,7 +387,7 @@ ASYNC_JOB *ASYNC_get_current_job(void) return ctx->currjob; } -int ASYNC_get_wait_fd(ASYNC_JOB *job) +OSSL_ASYNC_FD ASYNC_get_wait_fd(ASYNC_JOB *job) { return job->wait_fd; } |