openssl1_1-win-build
openssl-1.1 Windows build with Visual Studio.
This version is openssl-1.1.1d.
To build, simply open the required solution file, and you know how to use Visual Studio, right? (or perhaps this is the wrong place for you.)
Depends on zlib-win-build. There are hard references assuming zlib-win-build sits next to openssl1_1-win-build.
Basically, in a command prompt:
> cd {somewhere}\
> git clone https://github.com/kiyolee/zlib-win-build.git
> git clone https://github.com/kiyolee/openssl1_1-win-build.git
Build zlib first and then openssl1_1, with the same corresponding Visual Studio solution of course.
Note that only zlib static libraries are used.
This repository tracks the openssl 1.1 series. For openssl 1.0, check repository https://github.com/kiyolee/openssl1_0-win-build.git.
Highlights:
- Multiple Visual Studio versions build happily sharing the same build directory.
- Build both 32-bit (x86) and 64-bit (x64) binaries in one solution.
- Assembly sources are generated from original perlasm scripts. No pre-generated assembly source are checked in.
- Keyboard is optional. (Once this repository is cloned.)
Build Requirements:
The following third party tools are required:
-
Perl
Any reasonably recent version should be fine.
ActivePerl from ActiveState is used to develop this project.
Download ActivePerl from https://www.activestate.com/activeperl/. -
NASM (Assembler)
Download NASM from https://www.nasm.us.
Make sure both perl and nasm can be found through command path.
Testing:
To test one set of output binaries that use DLLs:
> cd {somewhere}\openssl1_1-win-build
> test\test_one.cmd build-{vsver}\{outdir}
where build-{vsver} is one of the VS build directories and {outdir} is one of the following:
- Release (32-bit release build)
- Debug (32-bit debug build)
- x64\Release (64-bit release build)
- x64\Debug (64-bit debug build)
To test one set of output binaries that use static libraries:
> cd {somewhere}\openssl1_1-win-build
> test\test_one.cmd build-{vsver}\{outdir} -static
To test all binaries that have been built:
> cd {somewhere}\openssl1_1-win-build
> test\test_all.cmd
Using The Build:
It is not necessary to install OpenSSL to develop applications linking to OpenSSL libraries built with this repository.
Every $(OutDir) for different combinations of Platform and Configuration from a solution has a copy of "include\openssl" which is the same as what get installed like the official package. Note that the include directories are exactly the same between different Platforms and/or Configurations.
For a project to use OpenSSL from this repository, simply add "$(OutDir)\include"
to the include path and link to libraries from
If static libraries (libcrypto-1_1-static.lib and libssl-1_1-static.lib) are used, libz-static.lib (from zlib-win-build) is needed as well.