Building wpa_supplicant with TLS support in windows using MSVC++ 2005


This howto is a step by step guide for building wpa_supplicant in windows with support for TLS. The two main steps described here are how to build openssl and howto configure Microsoft Visual Studio/C++ 2005 for compiling wpa_supplicant.


1 . Build openssl

 perl Configure VC-WIN32 --prefix=c:/some/openssl/dir

Where the prefix argument specifies where OpenSSL will be installed to.

  ms\do_masm
  nmake -f ms\ntdll.mak
  nmake -f ms\ntdll.mak install

(This is a dirty workaround because wpa_supplicant requires Mt, but openssl doesnot explain how to compile with Mt )


2. Download and install WinPcap

Download WinPcap from here and unpack it somewhere.


3. Prepare build environment for wpa_supplicant under vs2005

OleAut32.Lib
AdvAPI32.Lib
Ole32.Lib

4. Build and distrubute wpa_supplicant

ssleay32.dll and libeay32.dll are needed by wpa_supplicant, they can found in out32dll under the openssl build directory.



Labels: , , Wireless Internet Security Coding Network Monitoring