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
- Download openssl source files from here
- Configure the environment :
perl Configure VC-WIN32 --prefix=c:/some/openssl/dir
Where the prefix argument specifies where OpenSSL will be installed to.
- Build the Makefiles and optionally the assembly language files:
ms\do_masm
- Build and install openssl : From the VC++ environment at a prompt do:
nmake -f ms\ntdll.mak nmake -f ms\ntdll.mak install
- Copy ssleay32.lib to ssleay32Mt.lib and libeay32.lib to libeay32Mt.lib
(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
- Open wpa_supplicant/vs2005/wpa_supplicant.sln with VC++ 2005
- Add paths to openssl and winpcap libraries and include files from Tools → Options → VC++ Directories
- For MSVC++ 2005 Express :
- Add the following in Properties → Configuration Properties → Linker → Input → Additional Dependencies
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: windows, wireless, security |
|

Comment