From 5bbc61a7edc5c744d08636dcc4e79dc54331d229 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Sat, 25 Feb 2017 15:24:48 +0100 Subject: debug_cmd: print openssl version --- modules/debug_cmd/debug_cmd.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules') diff --git a/modules/debug_cmd/debug_cmd.c b/modules/debug_cmd/debug_cmd.c index 8a59d78..56c1a8f 100644 --- a/modules/debug_cmd/debug_cmd.c +++ b/modules/debug_cmd/debug_cmd.c @@ -5,6 +5,9 @@ */ #include #include +#ifdef USE_OPENSSL +#include +#endif #include #include @@ -51,6 +54,11 @@ static int print_system_info(struct re_printf *pf, void *arg) err |= re_hprintf(pf, " Compiler: %s\n", __VERSION__); #endif +#ifdef USE_OPENSSL + err |= re_hprintf(pf, " OpenSSL: %s\n", + SSLeay_version(SSLEAY_VERSION)); +#endif + return err; } -- cgit v1.2.3