summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_grpc_module.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2018-08-10 20:49:06 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2018-08-10 20:49:06 +0300
commit0dc7de77362b5799ef36391513c759264f783f02 (patch)
treefce267d62f6660cb0f72fcc8fb07cf4bdacc022e /src/http/modules/ngx_http_grpc_module.c
parentf7dd520ba55bf5af871c40aa87a22c5255c6f754 (diff)
downloadnginx-0dc7de77362b5799ef36391513c759264f783f02.tar.gz
nginx-0dc7de77362b5799ef36391513c759264f783f02.tar.bz2
SSL: fixed build with LibreSSL 2.8.0 (ticket #1605).
LibreSSL 2.8.0 "added const annotations to many existing APIs from OpenSSL, making interoperability easier for downstream applications". This includes the const change in the SSL_CTX_sess_set_get_cb() callback function (see 9dd43f4ef67e), which breaks compilation. To fix this, added a condition on how we redefine OPENSSL_VERSION_NUMBER when working with LibreSSL (see 382fc7069e3a). With LibreSSL 2.8.0, we now set OPENSSL_VERSION_NUMBER to 0x1010000fL (OpenSSL 1.1.0), so the appropriate conditions in the code will use "const" as it happens with OpenSSL 1.1.0 and later versions.
Diffstat (limited to 'src/http/modules/ngx_http_grpc_module.c')
0 files changed, 0 insertions, 0 deletions