internals:windows:libs:openssl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
internals:windows:libs:openssl [2008/06/24 21:04] – works with latest ntmak.dll pajoyeinternals:windows:libs:openssl [2008/08/25 17:05] – VC9 fix pajoye
Line 17: Line 17:
 Configure for Win32 Configure for Win32
 <code bash> <code bash>
-cd  C:\phpbuild\libs\openssl-0.9.8d+cd  C:\phpbuild\libs\openssl-0.9.8h
 perl Configure --openssldir=C:/phpbuild/apps_install/ VC-WIN32 perl Configure --openssldir=C:/phpbuild/apps_install/ VC-WIN32
 </code> </code>
Line 24: Line 24:
 Configure for Win64 Configure for Win64
 <code bash> <code bash>
-cd  C:\phpbuild\libs\openssl-0.9.8d+cd  C:\phpbuild\libs\openssl-0.9.8h
 perl Configure --openssldir=C:/phpbuild/apps_install/ VC-WIN64A perl Configure --openssldir=C:/phpbuild/apps_install/ VC-WIN64A
 </code> </code>
Line 31: Line 31:
  
 Modify the path using your configurations. Please not the unix directory separators / instead of the Windows backslash \. Modify the path using your configurations. Please not the unix directory separators / instead of the Windows backslash \.
 +
 +  The headers are not compatible with VC9 which seems to be more picky. The openssl/ossl_typ.h header has a forward typedef that reads:
 +  <code>typedef struct ocsp_response_st OCSP_RESPONSE;</code>
 +  ocsp_response_st is defined in openssl/ocsp.h, this typedef has to be move there.
  
 === Assembly languages options === === Assembly languages options ===
Line 36: Line 40:
 PHP build default in 5.2 don't use ASM. PHP build default in 5.2 don't use ASM.
 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  the file crypto\perlasm\x86ms.pl. On the line 273 remove "$extra".
 +
  
 For Win64 builds, use only: For Win64 builds, use only:
Line 84: Line 91:
 </code> </code>
  
 +If you get the following compilation error (with other letters):
 +<code bash>
 +.\crypto\cversion.c(105) : warning C4129: 'p' : unrecognized character escape sequence
 +.\crypto\cversion.c(105) : warning C4129: 'l' : unrecognized character escape sequence
 +</code>
 +
 +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
 +</code>
  
 ===== Install ===== ===== Install =====
internals/windows/libs/openssl.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1