diff options
author | Randall S. Becker <the.n.e.key@gmail.com> | 2024-06-19 13:24:21 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-06-20 13:02:31 -0700 |
commit | 8b731b8d06b710ce25dcef8134db30e1389dd92f (patch) | |
tree | 6c2e4118d61dbd12df5d5396021f1bb31f0842cd /help.c | |
parent | 66ac6e4bcd111be3fa9c2a6b3fafea718d00678d (diff) |
version: --build-options reports OpenSSL version information
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>
Diffstat (limited to 'help.c')
-rw-r--r-- | help.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 } } |