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
internals:windows:libs:openssl [2008/06/29 13:13] – add test and install doc pajoyeinternals:windows:libs:openssl [2017/09/22 13:28] (current) – external edit 127.0.0.1
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://github.com/winlibs/openssl]]
 ===== 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:\phpbuild\libs\openssl-0.9.8h+cd  C:\phpbuild\libs\openssl-0.9.8k
 perl Configure --openssldir=C:/phpbuild/apps_install/ VC-WIN32 perl Configure --openssldir=C:/phpbuild/apps_install/ VC-WIN32
 </code> </code>
Line 24: Line 23:
 Configure for Win64 Configure for Win64
 <code bash> <code bash>
-cd  C:\phpbuild\libs\openssl-0.9.8h+cd  C:\phpbuild\libs\openssl-0.9.8k
 perl Configure --openssldir=C:/phpbuild/apps_install/ VC-WIN64A perl Configure --openssldir=C:/phpbuild/apps_install/ VC-WIN64A
 </code> </code>
Line 30: Line 29:
 The configure will prepare the sources to compile OpenSSL for windows 32bit and install it under c:\phpbuilds\apps.  The configure will prepare the sources to compile OpenSSL for windows 32bit and install it under c:\phpbuilds\apps. 
  
-Modify the path using your configurations. Please not the unix directory separators / instead of the Windows backslash \.+Modify the path using your configurations. Please note the unix directory separators / instead of the Windows backslash \
 + 
 +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/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. 
 + 
 +  bufferoverflowu.lib is also not present anymore (not needed) in VC9. Comment out the reference in the util/pl/VC-32.pl script on line 142, 276 and 286.
  
 === 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  the file crypto\perlasm\x86ms.pl. On the line 273 remove "$extra".+  For 0.9.8k you have to modify  the file crypto\perlasm\x86ms.pl. On the line 273 remove "$extra".
  
  
Line 102: Line 109:
 nmake -f ms\ntdll.mak test nmake -f ms\ntdll.mak test
 </code> </code>
- 
-===== Install ===== 
- 
-The install command will copy every files that should be distributed in the directory specified using --openssldir or --prefix during the configure phase: 
- 
-<code bash> 
-nmake -f ms\ntdll.mak install 
-</code> 
- 
  
 ===== Install ===== ===== Install =====
internals/windows/libs/openssl.1214745229.txt.gz · Last modified: 2017/09/22 13:28 (external edit)