diff options
author | Matt Caswell <matt@openssl.org> | 2015-10-07 10:00:22 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-11-20 23:35:19 +0000 |
commit | 05a6347fec744bd11ef94dd2ac9f68b4f679de8e (patch) | |
tree | 49050849ccea74b747a4a66789d6da1e2ebe216a /crypto | |
parent | add2f5ca6dd174154bf2f2b63e3cfd8bf5ce5109 (diff) | |
download | openssl-05a6347fec744bd11ef94dd2ac9f68b4f679de8e.tar.gz |
Tweak async documentation based on feedback
Add some clarifications to the async documentation. Also changed
ASYNC_pause_job() so that it returns success if you are not within the
context of a job. This is so that engines can be used either asynchronously
or synchronously and can treat an error from ASYNC_pause_job() as a real
error.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/async/async.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/async/async.c b/crypto/async/async.c index e0ff110e33..8fdff52d99 100644 --- a/crypto/async/async.c +++ b/crypto/async/async.c @@ -280,10 +280,10 @@ int ASYNC_pause_job(void) if(!async_get_ctx() || !async_get_ctx()->currjob) { /* - * Could be we've deliberately not been started within a job so we - * don't put an error on the error queue here. + * Could be we've deliberately not been started within a job so this is + * counted as success. */ - return 0; + return 1; } job = async_get_ctx()->currjob; |