Async clean ups
Removed the function ASYNC_job_is_waiting() as it was redundant. The only time user code has a handle on a job is when one is waiting, so all they need to do is check whether the job is NULL. Also did some cleanups to make sure the job really is NULL after it has been freed! Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
@@ -925,9 +925,9 @@ int SSL_check_private_key(const SSL *ssl)
|
||||
|
||||
int SSL_waiting_for_async(SSL *s)
|
||||
{
|
||||
if(s->job) {
|
||||
return ASYNC_job_is_waiting(s->job);
|
||||
}
|
||||
if(s->job)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user