diff options
author | Matt Caswell <matt@openssl.org> | 2015-09-23 23:12:36 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-11-20 23:34:34 +0000 |
commit | 44a27ac282ec2a419027383ce0ac6c7f304b1490 (patch) | |
tree | bd1e0800584ece3edb368849620f1ce7039c6344 /ssl/ssl_lib.c | |
parent | c00793da995b6e2d52ac4423dc8d5a8607852ff8 (diff) |
Remove ASYNC_in_job()
The ASYNC_in_job() function is redundant. The same effect can be achieved by
using ASYNC_get_current_job().
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/ssl_lib.c')
-rw-r--r-- | ssl/ssl_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 270a908a3e..55b64bbcb1 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -961,7 +961,7 @@ int SSL_accept(SSL *s) args.s = s; - if((s->mode & SSL_MODE_ASYNC) && !ASYNC_in_job()) { + if((s->mode & SSL_MODE_ASYNC) && ASYNC_get_current_job() == NULL) { switch(ASYNC_start_job(&s->job, &ret, ssl_accept_intern, &args, sizeof(struct ssl_async_args))) { case ASYNC_ERR: @@ -1031,7 +1031,7 @@ int SSL_read(SSL *s, void *buf, int num) args.buf = buf; args.num = num; - if((s->mode & SSL_MODE_ASYNC) && !ASYNC_in_job()) { + if((s->mode & SSL_MODE_ASYNC) && ASYNC_get_current_job() == NULL) { switch(ASYNC_start_job(&s->job, &ret, ssl_read_intern, &args, sizeof(struct ssl_async_args))) { case ASYNC_ERR: @@ -1104,7 +1104,7 @@ int SSL_write(SSL *s, const void *buf, int num) args.buf = (void *) buf; args.num = num; - if((s->mode & SSL_MODE_ASYNC) && !ASYNC_in_job()) { + if((s->mode & SSL_MODE_ASYNC) && ASYNC_get_current_job() == NULL) { switch(ASYNC_start_job(&s->job, &ret, ssl_write_intern, &args, sizeof(struct ssl_async_args))) { case ASYNC_ERR: |