-#if OPENSSL_VERSION_NUMBER < 0x10100000L
-
-static void locking_callback(int mode, int type, UNUSED const char *file, UNUSED int line)
-{
- /* Ignore NULL mutexes and lock/unlock error codes as we can't do anything
- * about them. */
-
- if (mutexes == NULL)
- return;
-
- if (mode & CRYPTO_LOCK)
- pthread_mutex_lock(&mutexes[type]);
- else if (mode & CRYPTO_UNLOCK)
- pthread_mutex_unlock(&mutexes[type]);
-}
-
-static unsigned long thread_id_callback()
-{
- return pthread_self();
-}
-
-static void destroy_mutexes(int count)
-{
- if (mutexes != NULL) {
- for (int i = 0; i < count; i++) {
- /* Ignore returned value as we can't do anything about it */
- pthread_mutex_destroy(&mutexes[i]);
- }
- yaca_free(mutexes);
- mutexes = NULL;
- }
-}
-
-#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */
-