]> jfr.im git - solanum.git/commit
openssl: More LibreSSL compatibility
authorAaron Jones <redacted>
Wed, 1 Jun 2016 17:54:43 +0000 (17:54 +0000)
committerAaron Jones <redacted>
Wed, 1 Jun 2016 17:55:53 +0000 (17:55 +0000)
commit1490b52e19cafaf765691d07be9b84a45c469e79
treefa5e410d889aacc91438ea66e60d228b66b93aae
parent3057f91d9818260e44ac9792fe37d1fcc6ad5c14
openssl: More LibreSSL compatibility

LibreSSL does not have the new version macros & functions that OpenSSL
1.1.0 implements. This causes a compile-time failure against LibreSSL.

Further, the runtime function for returning the library version returns
the wrong number (the hardcoded constant number SSLEAY_VERSION_NUMBER
aka OPENSSL_VERSION_NUMBER, instead of LIBRESSL_VERSION_NUMBER).

Add more ifdef soup to remedy the situation.
librb/src/openssl.c