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>
This commit is contained in:
Matt Caswell
2015-10-07 10:00:22 +01:00
parent add2f5ca6d
commit 05a6347fec
5 changed files with 24 additions and 17 deletions

View File

@@ -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;