]> The Tcpdump Group git mirrors - tcpdump/commitdiff
also tell OpenSSL and libsmi versions
authorGisle Vanem <[email protected]>
Wed, 7 May 2014 19:07:35 +0000 (23:07 +0400)
committerDenis Ovsienko <[email protected]>
Wed, 7 May 2014 19:10:03 +0000 (23:10 +0400)
tcpdump.c

index f7cd1b603628b3f43ba4ce95cdf817a8a60e4e93..2e9a5055fee7e0c0112d740ff37f6e3d4521e5d7 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -57,6 +57,10 @@ extern int SIZE_BUF;
 #include <smi.h>
 #endif
 
+#ifdef HAVE_LIBCRYPTO
+#include <openssl/crypto.h>
+#endif
+
 #ifdef HAVE_GETOPT_LONG
 #include <getopt.h>
 #else
@@ -2281,6 +2285,14 @@ print_version(void)
        (void)fprintf(stderr, "libpcap version %s\n", pcap_version);
 #endif /* WIN32 */
 #endif /* HAVE_PCAP_LIB_VERSION */
+
+#if defined(HAVE_LIBCRYPTO) && defined(SSLEAY_VERSION)
+       (void)fprintf (stderr, "%s\n", SSLeay_version(SSLEAY_VERSION));
+#endif
+
+#if defined(HAVE_SMI_H)
+       (void)fprintf (stderr, "SMI-library: %s\n", smi_version_string);
+#endif
 }
 
 static void