]> git.ipfire.org Git - thirdparty/tor.git/commit
Compatibility defines should be used for LibreSSL.
authordana koch <dsk@google.com>
Fri, 25 Dec 2015 02:54:29 +0000 (18:54 -0800)
committerNick Mathewson <nickm@torproject.org>
Thu, 7 Jan 2016 20:48:59 +0000 (12:48 -0800)
commitbe841f77aaa818f445d5b9a5e2eca6aa7ce4f0b6
tree84cc927b6223c6069fce55fd58d4a612126c2a37
parent62bc4a199a975a5cfe3891a59a0161f22906df1f
Compatibility defines should be used for LibreSSL.

LibreSSL doesn't use OpenSSL_version (it uses the older SSLeay_version
API), but it reports a major version number as 2 in
OPENSSL_VERSION_NUMBER. Instead of fudging the version check, for now,
let's just check if we're using LibreSSL by checking the version number
macro exists, and use compatibility defines unconditionally when we
detect LibreSSL.
src/common/compat_openssl.h