internals:windows:libs:openssl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
internals:windows:libs:openssl [2008/06/27 17:56] – pajoye | internals:windows:libs:openssl [2013/02/21 18:13] – [OpenSSL Windows, How to compile] ab | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== OpenSSL Windows, How to compile ====== | ====== OpenSSL Windows, How to compile ====== | ||
+ | For PHP suitable sources and up-to-date information see [[https:// | ||
===== Building OpenSSL 0.9.8 ===== | ===== Building OpenSSL 0.9.8 ===== | ||
- | |||
- | |||
Line 17: | Line 16: | ||
Configure for Win32 | Configure for Win32 | ||
<code bash> | <code bash> | ||
- | cd C: | + | cd C: |
perl Configure --openssldir=C:/ | perl Configure --openssldir=C:/ | ||
</ | </ | ||
Line 24: | Line 23: | ||
Configure for Win64 | Configure for Win64 | ||
<code bash> | <code bash> | ||
- | cd C: | + | cd C: |
perl Configure --openssldir=C:/ | perl Configure --openssldir=C:/ | ||
</ | </ | ||
Line 30: | Line 29: | ||
The configure will prepare the sources to compile OpenSSL for windows 32bit and install it under c: | The configure will prepare the sources to compile OpenSSL for windows 32bit and install it under c: | ||
- | Modify the path using your configurations. Please | + | Modify the path using your configurations. Please |
+ | |||
+ | The following steps are only for 0.9.8k, later versions have been fixed. | ||
+ | |||
+ | The headers are not compatible with VC9 which seems to be more picky. The openssl/ | ||
+ | < | ||
+ | ocsp_response_st is defined in openssl/ | ||
+ | |||
+ | bufferoverflowu.lib is also not present anymore (not needed) in VC9. Comment out the reference in the util/ | ||
=== Assembly languages options === | === Assembly languages options === | ||
Line 37: | Line 44: | ||
PHP build default in 5.3 and later uses ASM. | PHP build default in 5.3 and later uses ASM. | ||
- | For 0.9.8h you have to modify | + | For 0.9.8k you have to modify |
Line 94: | Line 101: | ||
Go back to the configure phase and be sure to use only slashed and no backslashes for --openssldir (or --prefix) | Go back to the configure phase and be sure to use only slashed and no backslashes for --openssldir (or --prefix) | ||
+ | |||
+ | ===== Testing ===== | ||
+ | |||
+ | The possible point of failures in the OpenSSL implementations are numerous. Thanks to their tests suite, it is possible to minimize the risk by running it after each update: | ||
+ | |||
+ | <code bash> | ||
+ | nmake -f ms\ntdll.mak test | ||
+ | </ | ||
===== Install ===== | ===== Install ===== |
internals/windows/libs/openssl.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1