]> git.ipfire.org Git - thirdparty/git.git/commitdiff
version: --build-options reports OpenSSL version information
authorRandall S. Becker <the.n.e.key@gmail.com>
Wed, 19 Jun 2024 17:24:21 +0000 (13:24 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Jun 2024 20:02:31 +0000 (13:02 -0700)
This change uses the OpenSSL supplied OPENSSL_VERSION_TEXT #define supplied
for this purpose by that project. If the #define is not present, the version
is not reported.

Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c

diff --git a/help.c b/help.c
index 1d057aa6073eef2d5b83640986b6eab564130a2f..ce55aaa2c0bcd5f9242a3502c7dbee3f27689fba 100644 (file)
--- a/help.c
+++ b/help.c
@@ -757,6 +757,9 @@ void get_version_info(struct strbuf *buf, int show_build_options)
 
                if (fsmonitor_ipc__is_supported())
                        strbuf_addstr(buf, "feature: fsmonitor--daemon\n");
+#if defined OPENSSL_VERSION_TEXT
+               strbuf_addf(buf, "OpenSSL: %s\n", OPENSSL_VERSION_TEXT);
+#endif
        }
 }