From: Randall S. Becker Date: Wed, 19 Jun 2024 17:24:21 +0000 (-0400) Subject: version: --build-options reports OpenSSL version information X-Git-Tag: v2.46.0-rc0~19^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b731b8d06b710ce25dcef8134db30e1389dd92f;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/help.c b/help.c index 1d057aa607..ce55aaa2c0 100644 --- 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 } }