View | Details | Raw Unified | Return to bug 223994 | Differences between
and this patch

Collapse All | Expand All

(-)src/lib/openssl.c (-3 / +3 lines)
Lines 69-75 Link Here
69
   }
69
   }
70
}
70
}
71
71
72
#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
72
#if ( (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) )
73
/* Array of mutexes for use with OpenSSL static locking */
73
/* Array of mutexes for use with OpenSSL static locking */
74
static pthread_mutex_t *mutexes;
74
static pthread_mutex_t *mutexes;
75
75
Lines 263-269 Link Here
263
{
263
{
264
   int stat = 0;
264
   int stat = 0;
265
265
266
#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
266
#if ( (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) )
267
   if ((stat = openssl_init_threads()) != 0) {
267
   if ((stat = openssl_init_threads()) != 0) {
268
      berrno be;
268
      berrno be;
269
      Jmsg1(NULL, M_ABORT, 0,
269
      Jmsg1(NULL, M_ABORT, 0,
Lines 310-316 Link Here
310
      Jmsg0(NULL, M_ERROR, 0, _("Failed to save OpenSSL PRNG\n"));
310
      Jmsg0(NULL, M_ERROR, 0, _("Failed to save OpenSSL PRNG\n"));
311
   }
311
   }
312
312
313
#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
313
#if ( (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) )
314
   openssl_cleanup_threads();
314
   openssl_cleanup_threads();
315
315
316
   /* Free libssl and libcrypto error strings */
316
   /* Free libssl and libcrypto error strings */

Return to bug 223994