From 42f01311dc806cb1baadf150ded2384c2287aafa Mon Sep 17 00:00:00 2001 From: bert hubert Date: Tue, 2 Feb 2016 15:25:31 +0100 Subject: [PATCH] this commit enters verbose debugging output into our packages. This is because it is the packages that have problems, not what we compile locally. --- pdns/opensslsigners.cc | 69 +++++++++++++++++++++++++++++++++++++++++- pdns/opensslsigners.hh | 56 ++-------------------------------- 2 files changed, 71 insertions(+), 54 deletions(-) diff --git a/pdns/opensslsigners.cc b/pdns/opensslsigners.cc index b722d1cde..a9d5e8eae 100644 --- a/pdns/opensslsigners.cc +++ b/pdns/opensslsigners.cc @@ -6,9 +6,76 @@ #include #include #include - +#include "opensslsigners.hh" #include "dnssecinfra.hh" + +static pthread_mutex_t *openssllocks; + +extern "C" { +void openssl_pthreads_locking_callback(int mode, int type, const char *file, int line) +{ + if (mode & CRYPTO_LOCK) { + if(type != 19 && type !=18) + cout<<"Lock of "< " << ((type&CRYPTO_READ)?"r":"w")< "<<((type&CRYPTO_READ)?"r":"w")<