Guard SSLContext lock checks with init mutex and add setSSLLockTypesAndInitOpenSSL
Summary: Improve concurrency guards for `setSSLLockTypes` and `isSSLLockDisabled` by using initMutex. Also verify that openssl has been initialized w/ DCHECK in isSSLLockDisabled. We also add a method to do the setting of locks and initialization in one shot. Reviewed By: knekritz Differential Revision: D4937242 fbshipit-source-id: 308f516c17485281604d4322954c09beb58688e2
Showing
Please register or sign in to comment