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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user