[sr-dev] git:master:9f338d75: tls: test if ssl crypto locking callback is already set
Daniel-Constantin Mierla
miconda at gmail.com
Mon Jul 11 13:23:04 CEST 2016
Module: kamailio
Branch: master
Commit: 9f338d7525edf72f10bfed3b37b8db5a2870431f
URL: https://github.com/kamailio/kamailio/commit/9f338d7525edf72f10bfed3b37b8db5a2870431f
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-07-11T13:22:29+02:00
tls: test if ssl crypto locking callback is already set
- don't start if yes, ssl lib needs to use shared memory
---
Modified: modules/tls/tls_locking.c
---
Diff: https://github.com/kamailio/kamailio/commit/9f338d7525edf72f10bfed3b37b8db5a2870431f.diff
Patch: https://github.com/kamailio/kamailio/commit/9f338d7525edf72f10bfed3b37b8db5a2870431f.patch
---
diff --git a/modules/tls/tls_locking.c b/modules/tls/tls_locking.c
index 3515f01..b969186 100644
--- a/modules/tls/tls_locking.c
+++ b/modules/tls/tls_locking.c
@@ -145,6 +145,10 @@ int tls_init_locks()
n_static_locks=0;
}
if (n_static_locks){
+ if (CRYPTO_get_locking_callback()!=NULL) {
+ LM_CRIT("ssl locking callback already set\n");
+ return -1;
+ }
static_locks=lock_set_alloc(n_static_locks);
if (static_locks==0){
LOG(L_CRIT, "ERROR: tls_init_locking: could not allocate lockset"
More information about the sr-dev
mailing list