Skip to content

Commit 8b731b8

Browse files
Randall S. Beckergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 66ac6e4 commit 8b731b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

help.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,9 @@ void get_version_info(struct strbuf *buf, int show_build_options)
757757

758758
if (fsmonitor_ipc__is_supported())
759759
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
760763
}
761764
}
762765

0 commit comments

Comments
 (0)