]> jfr.im git - solanum.git/commit - librb/src/openssl.c
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:54:43 +0000 (17:54 +0000)
commit5325f9d2d275fd284c6d387fb73bb0236a3ce966
treef272cc9b7849fe0c4595429548f643a7b8139224
parent0763237d5fa8abaa7fcad9b4ce76f5455690c410
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