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>
Randall S. Becker committed
Jun 19, 2024 at 13:24 UTC
8b731b8d06b710ce25dcef8134db30e1389dd92f
1 file changed
+3
help.c
+3
@@ -757,6 +757,9 @@ void get_version_info(struct strbuf *buf, int show_build_options)
757
758
if (fsmonitor_ipc__is_supported())
759
strbuf_addstr(buf, "feature: fsmonitor--daemon\n");
760
+#if defined OPENSSL_VERSION_TEXT
761
+ strbuf_addf(buf, "OpenSSL: %s\n", OPENSSL_VERSION_TEXT);
762
+#endif
763
}
764
}
765