From: Gisle Vanem Date: Wed, 7 May 2014 19:07:35 +0000 (+0400) Subject: also tell OpenSSL and libsmi versions X-Git-Tag: tcpdump-4.6.0~25 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/e1e0824e40f4bfaaec7636f1e452911a6b8f7eca also tell OpenSSL and libsmi versions --- diff --git a/tcpdump.c b/tcpdump.c index f7cd1b60..2e9a5055 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -57,6 +57,10 @@ extern int SIZE_BUF; #include #endif +#ifdef HAVE_LIBCRYPTO +#include +#endif + #ifdef HAVE_GETOPT_LONG #include #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