Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
OpenSSL: Initialise if LibreSSL
Browse files Browse the repository at this point in the history
LibreSSL's definition of OPENSSL_VERSION_NUMBER bites us in the ass,
*again*.
  • Loading branch information
aaronmdjones committed Sep 1, 2016
1 parent 6008896 commit f92b4d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libratbox/src/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,13 +358,13 @@ rb_init_ssl(void)
{
char libratbox_data[] = "libratbox data";

#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
/*
* OpenSSL 1.1.0 and above automatically initialises itself with sane defaults
*/
#if defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x10100000L)
SSL_library_init();
SSL_load_error_strings();
#endif
#endif

libratbox_index = SSL_get_ex_new_index(0, libratbox_data, NULL, NULL, NULL);

Expand Down

0 comments on commit f92b4d8

Please sign in to comment.