summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-02-25 15:24:48 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-02-25 15:24:48 +0100
commit5bbc61a7edc5c744d08636dcc4e79dc54331d229 (patch)
tree69a06df0589111b28f5c055c3aea998dfe72bf37 /modules
parent5ba600674af9187e2e3ea9c000e63177a300acf8 (diff)
debug_cmd: print openssl version
Diffstat (limited to 'modules')
-rw-r--r--modules/debug_cmd/debug_cmd.c8
1 files changed, 8 insertions, 0 deletions
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 <stdlib.h>
#include <time.h>
+#ifdef USE_OPENSSL
+#include <openssl/crypto.h>
+#endif
#include <re.h>
#include <baresip.h>
@@ -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;
}