windows x64 build openssl

简介:

编译环境及工具:

vs2008

windows server 2008 x64版本

openssl源码包openssl-1.0.1c(可以从http://www.openssl.org/上下载)

activeperl(可以从http://www.activestate.com/activeperl下载)

编译步骤:

  1. 从visual studio 2008的安装菜单中打开visual studio 2008 x64兼容工具命令,不从普通 的cmd编译的原因是:编译时会用到visual studio 2008安装的一些工具,设置这些工具的路径很麻烦,visual studio自带的工具已经设置好了这些工具的路径 。
  2. 在打开的命令行中运行openssl源码中文件INSTALL.W64中的一些编译步骤即可,即:

         针对x64架构:

          > perl Configure VC-WIN64A
          > ms\do_win64a
          > nmake -f ms\ntdll.mak
          > cd out32dll
          > ..\ms\test

          针对IA64架构:

          > perl Configure VC-WIN64I
          > ms\do_win64i
          > nmake -f ms\ntdll.mak
          > cd out32dll
          > ..\ms\test

 编译好后生成的dll在源代码目录中的out32dll目录中,最好是把生成的以32结尾的dll改成64。手动可以改,也可以编译前修改相关文件,修改方法可见:http://blog.csdn.net/boise/article/details/5627191

生成的头文件在inc32目录中。

注:

通过修改ms\ntdll.mak文件中的/MD为/MDd /MT /MTd可以生成各种编译版本。修改ms\nt.mak来生成相应的.lib时,在使用时我遇到了链接不成功,不过通过修改ms\ntdll.mak时,可以。










本文转自 hakuyo 51CTO博客,原文链接:http://blog.51cto.com/hakuyo/1100642,如需转载请自行联系原作者

目录
相关文章
|
网络协议 安全 网络安全
Windows下配置OpenSSL(傻瓜式教程,一看就会)
Windows下配置OpenSSL(傻瓜式教程,一看就会)
3427 0
|
安全 虚拟化 Windows
Windows x64内核下注入DLL姿势之一
讲述了Windows x64内核下注入DLL的思路与流程
|
16天前
|
安全 物联网 API
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 9 月更新)
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 9 月更新)
271 1
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 9 月更新)
|
7月前
|
虚拟化 Windows
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 3 月更新)
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 3 月更新)
315 3
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 3 月更新)
|
3月前
|
自然语言处理 监控 安全
Magnet Axiom 9.0 Windows x64 Multilingual - 数字取证与分析
Magnet Axiom 9.0 Windows x64 Multilingual - 数字取证与分析
67 0
Magnet Axiom 9.0 Windows x64 Multilingual - 数字取证与分析
|
3月前
|
监控 Windows
Veeam Backup & Replication 12.3.2 Windows x64 - 备份和恢复
Veeam Backup & Replication 12.3.2 Windows x64 - 备份和恢复
163 1
|
5月前
|
人工智能 安全 网络安全
Burp Suite Professional 2025.5 for Windows x64 - 领先的 Web 渗透测试软件
Burp Suite Professional 2025.5 for Windows x64 - 领先的 Web 渗透测试软件
236 4
Burp Suite Professional 2025.5 for Windows x64 - 领先的 Web 渗透测试软件
|
虚拟化 Windows
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 6 月更新)
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 6 月更新)
325 0
|
6月前
|
XML 安全 网络安全
Nipper 3.7.0 Windows x64 - 网络设备漏洞评估
Nipper 3.7.0 Windows x64 - 网络设备漏洞评估
118 0
Nipper 3.7.0 Windows x64 - 网络设备漏洞评估
|
8月前
|
虚拟化 Windows
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 2 月更新)
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 2 月更新)
203 4
Windows 11 24H2 中文版、英文版 (x64、ARM64) 下载 (2025 年 2 月更新)

热门文章

最新文章