C, Encryption

Build OpenSSL for Windows

> You need Visual Studio to build OpenSSL for Windows.

> Download OpenSSL source code from here.

> Download and Install ActivePerl from here. Don’t forget to configure System path. Remove from System path any other perl installation, leave only ActivePerl.

Build x86 static library (.lib):
> Open Vs2013 x86 Native Tools Command Prompt
> cd to OpenSSL directory and execute:

perl Configure VC-WIN32 no-asm no-shared

for Debug:

perl Configure debug-VC-WIN32 no-asm no-shared
ms\do_ms
nmake -f ms\nt.mak
nmake -f ms\nt.mak install

Build x86-64 static library (.lib):
> Open Vs2013 x64 Native Tools Command Prompt
> cd to OpenSSL directory and execute:

perl Configure VC-WIN64A no-asm no-shared

for Debug:

perl Configure debug-VC-WIN64A no-asm no-shared
ms\do_win64a
nmake -f ms\nt.mak
nmake -f ms\nt.mak install

You will find your libraries at out32 folder. libeay32.lib and ssleay32.lib.

Build x86 shared library (.dll):
> Open Vs2013 x86 Native Tools Command Prompt
> cd to OpenSSL directory and execute:

perl Configure VC-WIN32 no-asm shared

for Debug:

perl Configure debug-VC-WIN32 no-asm shared
ms\do_ms
nmake -f ms\ntdll.mak
nmake -f ms\ntdll.mak install

Build x86-64 shared library (.dll):
> Open Vs2013 x64 Native Tools Command Prompt
> cd to OpenSSL directory and execute:

perl Configure VC-WIN64A no-asm shared

for Debug:

perl Configure debug-VC-WIN64A no-asm shared
ms\do_win64a
nmake -f ms\ntdll.mak
nmake -f ms\ntdll.mak install

You will find your libraries at out32dll folder. libeay32.dll and ssleay32.dll.