Daniel Pouzzner a3fb5029f8 clean up trailing whitespace and misplaced CRLFs, add missing final newlines, remove stray UTF8 nonprintables (BOMs) and ASCIIfy stray homoglyphs (spaces and apostrophes), guided by expanded coverage in wolfssl-multi-test check-source-text. 2 hónapja
..
README_WIN.md a3fb5029f8 clean up trailing whitespace and misplaced CRLFs, add missing final newlines, remove stray UTF8 nonprintables (BOMs) and ASCIIfy stray homoglyphs (spaces and apostrophes), guided by expanded coverage in wolfssl-multi-test check-source-text. 2 hónapja
include.am 9a7ff8773b add --with-libsuffix support, append suffix to library artifact name 1 éve
snifftest.c 208f2d6781 One more occurrence 3 hónapja
sslSniffTest.vcproj 8f121e7752 file modes: clear inappropriate executable bits. 3 éve
sslSniffTest.vcxproj b91e48d770 Add snifftest vcxproj file and documentation 2 éve

README_WIN.md

Build snifftest on Windows

  • To build the snifftest executable on Windows, first follow the steps to build wolfSSL on Visual Studio found here.

  • Next, download the WinPcap development pack found here.

  • Extract the WpdPack folder from the downloaded zip and place adjacently to the wolfSSL directory as shown below.

    Projects\
        wolfssl\
        WpdPack\
    
  • Then on Visual Studio, open the configuration manager for the wolfssl solution. This can be done by right-clicking on the solution viewer then selecting properties. The button for the configuration manager should be on the top-right of the window.

  • On the configuration manager, tick the box to build sslSniffTest on your desired configuration. Make sure to configure the project for either Release or Debug and not DLL Release or DLL Debug. The snifftest project requires sslSniffer.lib, which is not built in the cases of DLL Release and DLL Debug.

  • Add the following to your user_settings.h.

    #define WOLFSSL_STATIC_EPHEMERAL
    #define WOLFSSL_DH_EXTRA
    #define HAVE_ECC
    #define HAVE_ECC_SECPR2
    
  • You can now build the solution and see snifftest.exe built.

For details on usage, see sniffer README.md for more details.