aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2018-02-27 20:00:00 +0100
committerRechi <Rechi@users.noreply.github.com>2018-02-27 20:00:00 +0100
commit1b5fa88e0771a3fa89b3f67bf1e50eb5f6d1a6eb (patch)
tree56d8ff0f87c86f505247abb10cd6cfbd3405af23
parent98565c188bfcf13bae6d1b38520bdca6b982a825 (diff)
[cleanup] drop support for libgcrypt lower than 1.6.0
-rw-r--r--xbmc/utils/CryptThreading.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/xbmc/utils/CryptThreading.cpp b/xbmc/utils/CryptThreading.cpp
index 5803cdd48d..b2b6be2fa3 100644
--- a/xbmc/utils/CryptThreading.cpp
+++ b/xbmc/utils/CryptThreading.cpp
@@ -34,16 +34,6 @@
#include <openssl/crypto.h>
#endif
-#ifdef HAVE_GCRYPT
-#include <gcrypt.h>
-#include <errno.h>
-
-#if GCRYPT_VERSION_NUMBER < 0x010600
-GCRY_THREAD_OPTION_PTHREAD_IMPL;
-#endif
-
-#endif
-
/* ========================================================================= */
/* openssl locking implementation for curl */
#if defined(HAVE_OPENSSL) && OPENSSL_VERSION_NUMBER < 0x10100000L
@@ -84,14 +74,6 @@ CryptThreadingInitializer::CryptThreadingInitializer()
for (int i = 0; i < numlocks; i++)
locks[i] = NULL;
-#ifdef HAVE_GCRYPT
-#if GCRYPT_VERSION_NUMBER < 0x010600
- // set up gcrypt
- gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
- attemptedToSetSSLMTHook = true;
-#endif
-#endif
-
if (!attemptedToSetSSLMTHook)
CLog::Log(LOGWARNING, "Could not determine the libcurl security library to set the locking scheme. This may cause problem with multithreaded use of ssl or libraries that depend on it (libcurl).");