aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-08-31 16:12:13 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-08-31 16:13:04 +0200
commit70febd225b0255cee6408a97b360f4edb7c7e8e3 (patch)
tree5eb253a02444e5962086c487e6cbf6d151dc9053
parent9c3b5170fc0429a579b556cc864bc8597a37500c (diff)
nDPId: Print compiled-in libgcrypt version (if libndpi was compiled with libgcrypt support).
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--nDPId.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nDPId.c b/nDPId.c
index c279875d0..bc8ff4980 100644
--- a/nDPId.c
+++ b/nDPId.c
@@ -2166,6 +2166,12 @@ int main(int argc, char ** argv)
ndpi_revision(),
ndpi_get_api_version(),
pcap_lib_version() + strlen("libpcap version "));
+ if (ndpi_get_gcrypt_version() != NULL)
+ {
+ printf("gcrypt version: %s\n"
+ "----------------------------------\n",
+ ndpi_get_gcrypt_version());
+ }
openlog("nDPId", LOG_CONS | LOG_PERROR, LOG_DAEMON);