aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/str/libkvistr.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/modules/str/libkvistr.cpp b/src/modules/str/libkvistr.cpp
index 84eaf7a0e..87b71d5b3 100644
--- a/src/modules/str/libkvistr.cpp
+++ b/src/modules/str/libkvistr.cpp
@@ -40,7 +40,7 @@
#if defined( COMPILE_SSL_SUPPORT ) && !defined( COMPILE_NO_EMBEDDED_CODE )
// The current implementation
- #include <openssl/ssl.h>
+ #include <kvi_ssl.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#elif defined(COMPILE_NO_EMBEDDED_CODE)
@@ -2229,15 +2229,12 @@ static bool str_kvs_fnc_evpSign(KviKvsModuleFunctionCall * c)
#if defined(COMPILE_SSL_SUPPORT) && !defined(COMPILE_NO_EMBEDDED_CODE)
+ KviSSL::globalSSLInit();
EVP_MD_CTX md_ctx;
EVP_PKEY * pKey = 0;
unsigned int len = 0;
unsigned char *sig = 0;
- //FIXME do we need a mutex here?
- SSL_library_init();
- SSL_load_error_strings();
-
if(szCert.isEmpty())
{
//use default cert
@@ -2364,10 +2361,7 @@ static bool str_kvs_fnc_evpVerify(KviKvsModuleFunctionCall * c)
#if defined(COMPILE_SSL_SUPPORT) && !defined(COMPILE_NO_EMBEDDED_CODE)
- //FIXME do we need a mutex here?
- SSL_library_init();
- SSL_load_error_strings();
-
+ KviSSL::globalSSLInit();
szSign = QByteArray::fromBase64(szSignB64);
const char * message = szMessage.data();