| 410 | } |
| 411 | |
| 412 | void openssl_thread_config::locking_callback(int mode, int type, const char *file, int line) |
| 413 | { |
| 414 | if (mode & CRYPTO_LOCK) |
| 415 | openssl_mutexes[type].lock(); |
| 416 | else |
| 417 | openssl_mutexes[type].unlock(); |
| 418 | } |
| 419 | |
| 420 | // Warning: Things get complicated if third-party libraries also try to install their their own |
| 421 | // OpenSSL thread functions. Right now, we don't install our own handlers if another library has |