]> git.kaiwu.me - nginx.git/commit
SSL: reasonable version for LibreSSL.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 31 Mar 2016 20:38:29 +0000 (23:38 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 31 Mar 2016 20:38:29 +0000 (23:38 +0300)
commitbad99ee0047282fd5a8e5730d440a032eb2452ed
tree14436be2e5c36209f85c5e0b488400859732bbb0
parent5afd74bed6b9a93b800bf0b5cc8b4e82990e1e9e
SSL: reasonable version for LibreSSL.

LibreSSL defines OPENSSL_VERSION_NUMBER to 0x20000000L, but uses an old
API derived from OpenSSL at the time LibreSSL forked.  As a result, every
version check we use to test for new API elements in newer OpenSSL versions
requires an explicit check for LibreSSL.

To reduce clutter, redefine OPENSSL_VERSION_NUMBER to 0x1000107fL if
LibreSSL is used.  The same is done by FreeBSD port of LibreSSL.
src/event/ngx_event_openssl.c
src/event/ngx_event_openssl.h