Fix async deadlock problem
authorMatt Caswell <matt@openssl.org>
Thu, 12 Nov 2015 10:52:30 +0000 (10:52 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 20 Nov 2015 23:37:17 +0000 (23:37 +0000)
commit625146d9fbb74651e6158af7db0e76b899c39c9e
tree7d4873c32f513f2bedff61e73031ec1be9ac5b37
parente8dfb5bf8e525c9799820d01b2df5fde098a9c4c
Fix async deadlock problem

The rand code can aquire locks and then attempt crypto operations. This
can end up in a deadlock if we are using an async engine, because control
returns back to the user code whilst still holding the lock. We need to
force synchronous operation for these sections of code.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/rand/md_rand.c