Welcome! Log In Create A New Profile

Advanced

[njs] SSL: fixed reporting of the detected library version.

Dmitry Volyntsev
November 17, 2021 12:02PM
details: https://hg.nginx.org/njs/rev/a2d200d79c58
branches:
changeset: 1747:a2d200d79c58
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Wed Nov 17 17:01:07 2021 +0000
description:
SSL: fixed reporting of the detected library version.

Previously, `openssl version` command was used to report the OpenSSL
version. Whereas, when provided with custom CFLAGS and LDFLAGS the
used library may differ from the system one.

The fix is to report OpenSSL version using the provided library.

diffstat:

auto/openssl | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r fd40eb687bc7 -r a2d200d79c58 auto/openssl
--- a/auto/openssl Wed Nov 17 14:11:28 2021 +0000
+++ b/auto/openssl Wed Nov 17 17:01:07 2021 +0000
@@ -25,7 +25,16 @@ njs_feature_test="#include <openssl/evp.


if [ $njs_found = yes ]; then
- echo " + OpenSSL version: `openssl version`"
+ njs_feature="OpenSSL version"
+ njs_feature_name=NJS_OPENSSL_VERSION
+ njs_feature_run=value
+ njs_feature_test="#include <openssl/ssl.h>
+
+ int main() {
+ printf(\"\\\"%s\\\"\", OPENSSL_VERSION_TEXT);
+ return 0;
+ }"
+ . auto/feature

NJS_HAVE_OPENSSL=YES
NJS_OPENSSL_LIB="$njs_feature_libs"
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] SSL: fixed reporting of the detected library version.

Dmitry Volyntsev 293 November 17, 2021 12:02PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 242
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready