谁有OPENSSL的VC6工程文件?

yuechuan 2009-05-20 11:11:04
我很想问一下,为啥是要利用perl来完成编译呢?
我现在因为要移植openssl,所以想自己完成源代码的编译,而不是利用现成的库文件
自己尝试编译了一下,出现一堆ERROR
网上好像有现成的工程文件的,但是我没找到,有几个连接还是坏的
大家谁有,麻烦发我一下,谢谢
thunderbird1000@hotmail.com
...全文
149 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
joshuahuangjinghua 2010-03-17
  • 打赏
  • 举报
回复
楼主能不能共享下VC工程啊?Thanks!
僵哥 2009-05-21
  • 打赏
  • 举报
回复
在Install.W32的说明当中是这样子写的
引用
Visual C++
----------

If you want to compile in the assembly language routines with Visual C++ then
you will need an assembler. This is worth doing because it will result in
faster code: for example it will typically result in a 2 times speedup in the
RSA routines. Currently the following assemblers are supported:

* Microsoft MASM (aka "ml")
* Free Netwide Assembler NASM.

MASM is distributed with most versions of VC++. For the versions where it is
not included in VC++, it is also distributed with some Microsoft DDKs, for
example the Windows NT 4.0 DDK and the Windows 98 DDK. If you do not have
either of these DDKs then you can just download the binaries for the Windows
98 DDK and extract and rename the two files XXXXXml.exe and XXXXXml.err, to
ml.exe and ml.err and install somewhere on your PATH. Both DDKs can be
downloaded from the Microsoft developers site www.msdn.com.

NASM is freely available. Version 0.98 was used during testing: other versions
may also work. It is available from many places, see for example:
http://www.kernel.org/pub/software/devel/nasm/binaries/win32/
The NASM binary nasmw.exe needs to be installed anywhere on your PATH.

Firstly you should run Configure:

> perl Configure VC-WIN32 --prefix=c:/some/openssl/dir

Where the prefix argument specifies where OpenSSL will be installed to.

Next you need to build the Makefiles and optionally the assembly language
files:

- If you are using MASM then run:

> ms\do_masm

- If you are using NASM then run:

> ms\do_nasm

- If you don't want to use the assembly language files at all then run:

> ms\do_ms

If you get errors about things not having numbers assigned then check the
troubleshooting section: you probably won't be able to compile it as it
stands.

Then from the VC++ environment at a prompt do:

> nmake -f ms\ntdll.mak

If all is well it should compile and you will have some DLLs and executables
in out32dll. If you want to try the tests then do:

> nmake -f ms\ntdll.mak test


To install OpenSSL to the specified location do:

> nmake -f ms\ntdll.mak install

Tweaks:

There are various changes you can make to the Win32 compile environment. By
default the library is not compiled with debugging symbols. If you add 'debug'
to the mk1mf.pl lines in the do_* batch file then debugging symbols will be
compiled in. Note that mk1mf.pl expects the platform to be the last argument
on the command line, so 'debug' must appear before that, as all other options.


By default in 0.9.8 OpenSSL will compile builtin ENGINES into the libeay32.dll
shared library. If you specify the "no-static-engine" option on the command
line to Configure the shared library build (ms\ntdll.mak) will compile the
engines as separate DLLs.

The default Win32 environment is to leave out any Windows NT specific
features.

If you want to enable the NT specific features of OpenSSL (currently only the
logging BIO) follow the instructions above but call the batch file do_nt.bat
instead of do_ms.bat.

You can also build a static version of the library using the Makefile
ms\nt.mak
僵哥 2009-05-21
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 yuechuan 的回复:]
楼上什么意思? 我的意思是说,我想在自己的工程中直接使用源代码编译,而不是用编译出来OPENSSL的动态链接库
[/Quote]
那你编译成静态库,不就好了?全部添加进工程当中并不合适,这样子会让你每次编译都花费大量的时间,并且不利于升级和维护.

在执行完perl Configure VC-WIN32之后,会在ms目录下生成两个makefile,一个是ntdll.mak,这是动态库的版本,另一个是nt.mak,这是静态库的版本。
yuechuan 2009-05-21
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 unsigned 的回复:]
引用 2 楼 yuechuan 的回复:
楼上什么意思? 我的意思是说,我想在自己的工程中直接使用源代码编译,而不是用编译出来OPENSSL的动态链接库

那你编译成静态库,不就好了?全部添加进工程当中并不合适,这样子会让你每次编译都花费大量的时间,并且不利于升级和维护.

在执行完perl Configure VC-WIN32之后,会在ms目录下生成两个makefile,一个是ntdll.mak,这是动态库的版本,另一个是nt.mak,这是静态库的版本。
[/Quote]

额,是这样的,想把这个东西弄到嵌入式系统中,不是WINDOWS或者Linux的系统.不过想首先在VC上作试验看下
干了一天,还剩下1个Link error...唉..痛苦..
blackcat242 2009-05-20
  • 打赏
  • 举报
回复
这个跟vc6有什么关系?
你要看下编译的条件,把库文件都找全了,有点麻烦
yuechuan 2009-05-20
  • 打赏
  • 举报
回复
就是不用DLL和LIB呀
na_he 2009-05-20
  • 打赏
  • 举报
回复
不太明白意思
yuechuan 2009-05-20
  • 打赏
  • 举报
回复
楼上什么意思? 我的意思是说,我想在自己的工程中直接使用源代码编译,而不是用编译出来OPENSSL的动态链接库
这两天制作的openssl 的VC工程for openssl-1.0.0e,除DGST和ocsp不能单独生成文件(编译时报错找不到符号,不用理会)外,基本上可生成所有其他的文件。具体列表如下: 2011-09-27 10:48 36,955 4758cca.dll 2011-09-27 10:48 668 4758cca.exp 2011-09-27 10:48 83,888 4758cca.ilk 2011-09-27 10:48 2,108 4758cca.lib 2011-09-27 10:48 132,096 4758cca.pdb 2011-09-27 10:48 32,855 aep.dll 2011-09-27 10:48 652 aep.exp 2011-09-27 10:48 81,216 aep.ilk 2011-09-27 10:48 2,056 aep.lib 2011-09-27 10:48 132,096 aep.pdb 2011-09-27 10:48 57,437 asn1parse.exe 2011-09-27 10:48 293,756 asn1parse.ilk 2011-09-27 10:48 238,592 asn1parse.pdb 2011-09-27 10:48 32,858 atalla.dll 2011-09-27 10:48 665 atalla.exp 2011-09-27 10:48 79,116 atalla.ilk 2011-09-27 10:48 2,094 atalla.lib 2011-09-27 10:48 123,904 atalla.pdb 2011-09-27 10:48 32,858 bftest.exe 2011-09-27 10:48 57,028 bftest.ilk 2011-09-27 10:48 123,904 bftest.pdb 2011-09-27 10:48 49,242 bntest.exe 2011-09-27 10:48 132,236 bntest.ilk 2011-09-27 10:48 164,864 bntest.pdb 2011-09-27 10:48 98,390 ca.exe 2011-09-27 10:48 437,108 ca.ilk 2011-09-27 10:48 312,320 ca.pdb 2011-09-27 10:50 45,144 capi.dll 2011-09-27 10:50 657 capi.exp 2011-09-27 10:50 164,212 capi.ilk 2011-09-27 10:50 2,068 capi.lib 2011-09-27 10:50 164,864 capi.pdb 2011-09-27 10:50 28,764 casttest.exe 2011-09-27 10:50 46,260 casttest.ilk 2011-09-27 10:50 115,712 casttest.pdb 2011-09-27 10:50 36,952 chil.dll 2011-09-27 10:50 657 chil.exp 2011-09-27 10:50 110,116 chil.ilk 2011-09-27 10:50 2,068 chil.lib 2011-09-27 10:50 140,288 chil.pdb 2011-09-27 10:50 57,435 ciphers.exe 2011-09-27 10:50 294,204 ciphers.ilk 2011-09-27 10:50 230,400 ciphers.pdb 2011-09-27 10:51 61,527 crl.exe 2011-09-27 10:51 303,084 crl.ilk 2011-09-27 10:51 238,592 crl.pdb 2011-09-27 10:51 57,437 crl2pkcs7.exe 2011-09-27 10:51 289,828 crl2pkcs7.ilk 2011-09-27 10:51 230,400 crl2pkcs7.pdb 2011-09-27 10:51 36,954 cswift.dll 2011-09-27 10:51 665 cswift.exp 2011-09-27 10:51 88,068 cswift.ilk 2011-09-27 10:51 2,094 cswift.lib 2011-09-27 10:51 132,096 cswift.pdb 2011-09-27 10:51 41,051 destest.exe 2011-09-27 10:51 73,468 destest.ilk 2011-09-27 10:51 123,904 destest.pdb 2011-09-27 11:17 25,600 dgst.pdb 2011-09-27 11:00 57,430 dh.exe 2011-09-27 11:00 295,624 dh.ilk 2011-09-27 11:00 238,592 dh.pdb 2011-09-27 14:42 61,531 dhparam.exe 2011-09-27 14:42 311,364 dhparam.ilk 2011-09-27 14:42 205,824 dhparam.pdb 2011-09-27 11:00 28,762 dhtest.exe 2011-09-27 11:00 73,740 dhtest.ilk 2011-09-27 11:00 123,904 dhtest.pdb 2011-09-27 11:00 57,431 dsa.exe 2011-09-27 11:00 295,496 dsa.ilk 2011-09-27 11:00 238,592 dsa.pdb 2011-09-27 11:00 61,532 dsaparam.exe 2011-09-27 11:00 312,244 dsaparam.ilk 2011-09-27 11:00 246,784 dsaparam.pdb 2011-09-27 11:00 28,763 dsatest.exe 2011-09-27 11:00 67,660 dsatest.ilk 2011-09-27 11:00 123,904 dsatest.pdb 2011-09-27 11:00 32,860 ecdhtest.exe 2011-09-27 11:00 87,668 ecdhtest.ilk 2011-09-27 11:00 132,096 ecdhtest.pdb 2011-09-27 11:00 32,861 ecdsatest.exe 2011-09-27 11:00 100,972 ecdsatest.ilk 2011-09-27 11:00 140,288 ecdsatest.pdb 2011-09-27 11:01 114,778 ectest.exe 2011-09-27 11:01 140,400 ectest.ilk 2011-09-27 11:01 156,672 ectest.pdb 2011-09-27 11:01 61,527 enc.exe 2011-09-27 11:01 320,504 enc.ilk 2011-09-27 11:01 246,784 enc.pdb 2011-09-27 11:01 61,530 engine.exe 2011-09-27 11:01 304,268 engine.ilk 2011-09-27 11:01 238,592 engine.pdb 2011-09-27 11:01 28,766 enginetest.exe 2011-09-27 11:01 78,116 enginetest.ilk 2011-09-27 11:01 123,904 enginetest.pdb 2011-09-27 11:01 57,434 errstr.exe 2011-09-27 11:01 285,692 errstr.ilk 2011-09-27 11:01 230,400 errstr.pdb 2011-09-27 11:01 32,860 evp_test.exe 2011-09-27 11:01 95,560 evp_test.ilk 2011-09-27 11:01 140,288 evp_test.pdb 2011-09-27 11:01 28,763 exptest.exe 2011-09-27 11:01 66,476 exptest.ilk 2011-09-27 11:01 123,904 exptest.pdb 2011-09-27 11:01 57,433 gendh.exe 2011-09-27 11:01 291,808 gendh.ilk 2011-09-27 11:01 238,592 gendh.pdb 2011-09-27 11:01 57,434 gendsa.exe 2011-09-27 11:01 304,916 gendsa.ilk 2011-09-27 11:01 238,592 gendsa.pdb 2011-09-27 11:01 57,434 genrsa.exe 2011-09-27 11:01 306,056 genrsa.ilk 2011-09-27 11:01 246,784 genrsa.pdb 2011-09-27 11:03 28,759 gmp.dll 2011-09-27 11:03 652 gmp.exp 2011-09-27 11:03 27,120 gmp.ilk 2011-09-27 11:03 2,056 gmp.lib 2011-09-27 11:03 99,328 gmp.pdb 2011-09-27 11:03 90,200 gost.dll 2011-09-27 11:03 657 gost.exp 2011-09-27 11:03 287,660 gost.ilk 2011-09-27 11:03 2,068 gost.lib 2011-09-27 11:03 304,128 gost.pdb 2011-09-27 11:04 28,764 hmactest.exe 2011-09-27 11:04 43,464 hmactest.ilk 2011-09-27 11:04 115,712 hmactest.pdb 2011-09-27 11:04 28,764 ideatest.exe 2011-09-27 11:04 49,520 ideatest.ilk 2011-09-27 11:04 115,712 ideatest.pdb 2011-09-27 10:31 1,966,172 libeay32.dll 2011-09-27 10:30 528,619 libeay32.exp 2011-09-27 10:31 1,028,852 libeay32.ilk 2011-09-27 10:30 777,138 libeay32.lib 2011-09-27 10:31 3,802,112 libeay32.pdb 2011-09-27 11:05 28,763 md2test.exe 2011-09-27 11:05 46,176 md2test.ilk 2011-09-27 11:05 115,712 md2test.pdb 2011-09-27 11:05 28,763 Md4test.exe 2011-09-27 11:05 46,176 Md4test.ilk 2011-09-27 11:05 115,712 Md4test.pdb 2011-09-27 11:05 28,763 md5test.exe 2011-09-27 11:05 46,176 md5test.ilk 2011-09-27 11:05 115,712 md5test.pdb 2011-09-27 11:05 28,764 mdc2test.exe 2011-09-27 11:05 46,976 mdc2test.ilk 2011-09-27 11:05 115,712 mdc2test.pdb 2011-09-27 11:05 57,432 nseq.exe 2011-09-27 11:05 271,876 nseq.ilk 2011-09-27 11:05 222,208 nseq.pdb 2011-09-27 11:05 28,761 nuron.dll 2011-09-27 11:05 660 nuron.exp 2011-09-27 11:05 70,028 nuron.ilk 2011-09-27 11:05 2,082 nuron.lib 2011-09-27 11:05 115,712 nuron.pdb 2011-09-27 11:16 25,600 ocsp.pdb 2011-09-27 11:06 528,475 openssl.exe 2011-09-27 11:06 1,795,040 openssl.ilk 2011-09-27 11:06 1,246,208 openssl.pdb 2011-09-27 11:06 32,859 padlock.dll 2011-09-27 11:06 668 padlock.exp 2011-09-27 11:06 55,348 padlock.ilk 2011-09-27 11:06 2,108 padlock.lib 2011-09-27 11:06 115,712 padlock.pdb 2011-09-27 11:20 61,530 passwd.exe 2011-09-27 11:20 295,176 passwd.ilk 2011-09-27 11:20 238,592 passwd.pdb 2011-09-27 11:08 73,818 pkcs12.exe 2011-09-27 11:08 359,452 pkcs12.ilk 2011-09-27 11:08 271,360 pkcs12.pdb 2011-09-27 11:09 57,433 pkcs7.exe 2011-09-27 11:09 289,812 pkcs7.ilk 2011-09-27 11:09 230,400 pkcs7.pdb 2011-09-27 11:09 61,529 pkcs8.exe 2011-09-27 11:09 300,504 pkcs8.ilk 2011-09-27 11:09 246,784 pkcs8.pdb 2011-09-27 11:10 61,528 rand.exe 2011-09-27 11:10 292,972 rand.ilk 2011-09-27 11:10 238,592 rand.pdb 2011-09-27 11:10 28,764 randtest.exe 2011-09-27 11:10 40,288 randtest.ilk 2011-09-27 11:10 115,712 randtest.pdb 2011-09-27 11:10 28,763 rc2test.exe 2011-09-27 11:10 41,996 rc2test.ilk 2011-09-27 11:10 115,712 rc2test.pdb 2011-09-27 11:10 28,763 rc4test.exe 2011-09-27 11:10 49,336 rc4test.ilk 2011-09-27 11:10 115,712 rc4test.pdb 2011-09-27 11:10 28,763 rc5test.exe 2011-09-27 11:10 44,644 rc5test.ilk 2011-09-27 11:10 115,712 rc5test.pdb 2011-09-27 11:11 77,911 req.exe 2011-09-27 11:11 383,556 req.ilk 2011-09-27 11:11 287,744 req.pdb 2011-09-27 11:11 28,763 rmdtest.exe 2011-09-27 11:11 46,536 rmdtest.ilk 2011-09-27 11:11 115,712 rmdtest.pdb 2011-09-27 11:11 57,431 rsa.exe 2011-09-27 11:11 302,520 rsa.ilk 2011-09-27 11:11 238,592 rsa.pdb 2011-09-27 11:11 28,763 rsatest.exe 2011-09-27 11:11 61,252 rsatest.ilk 2011-09-27 11:11 123,904 rsatest.pdb 2011-09-27 11:12 57,434 Rsautl.exe 2011-09-27 11:12 291,084 Rsautl.ilk 2011-09-27 11:12 238,592 Rsautl.pdb 2011-09-27 11:12 57,435 sess_id.exe 2011-09-27 11:12 293,596 sess_id.ilk 2011-09-27 11:12 238,592 sess_id.pdb 2011-09-27 11:12 28,764 sha1test.exe 2011-09-27 11:12 50,176 sha1test.ilk 2011-09-27 11:12 115,712 sha1test.pdb 2011-09-27 11:12 28,763 sha256t.exe 2011-09-27 11:12 50,956 sha256t.ilk 2011-09-27 11:12 115,712 sha256t.pdb 2011-09-27 11:13 28,763 sha512t.exe 2011-09-27 11:13 50,924 sha512t.ilk 2011-09-27 11:13 115,712 sha512t.pdb 2011-09-27 11:13 28,763 shatest.exe 2011-09-27 11:13 50,980 shatest.ilk 2011-09-27 11:13 115,712 shatest.pdb 2011-09-27 11:13 69,721 smime.exe 2011-09-27 11:13 332,916 smime.ilk 2011-09-27 11:13 263,168 smime.pdb 2011-09-27 11:13 102,489 speed.exe 2011-09-27 11:13 405,052 speed.ilk 2011-09-27 11:13 287,744 speed.pdb 2011-09-27 11:14 57,433 spkac.exe 2011-09-27 11:14 302,948 spkac.ilk 2011-09-27 11:14 246,784 spkac.pdb 2011-09-27 10:35 450,652 SSLeay32.dll 2011-09-27 10:35 38,352 SSLeay32.exp 2011-09-27 10:35 445,032 SSLeay32.ilk 2011-09-27 10:35 56,742 SSLeay32.lib 2011-09-27 10:35 656,384 SSLeay32.pdb 2011-09-27 11:14 57,435 ssltest.exe 2011-09-27 11:14 200,740 ssltest.ilk 2011-09-27 11:14 189,440 ssltest.pdb 2011-09-27 11:14 36,956 sureware.dll 2011-09-27 11:14 673 sureware.exp 2011-09-27 11:14 106,624 sureware.ilk 2011-09-27 11:14 2,120 sureware.lib 2011-09-27 11:14 140,288 sureware.pdb 2011-09-27 11:12 94,300 s_client.exe 2011-09-27 11:12 470,172 s_client.ilk 2011-09-27 11:12 336,896 s_client.pdb 2011-09-27 11:12 102,492 s_server.exe 2011-09-27 11:12 492,008 s_server.ilk 2011-09-27 11:12 353,280 s_server.pdb 2011-09-27 11:12 73,818 s_time.exe 2011-09-27 11:12 361,548 s_time.ilk 2011-09-27 11:12 279,552 s_time.pdb 2011-09-27 11:14 36,953 ubsec.dll 2011-09-27 11:14 660 ubsec.exp 2011-09-27 11:14 81,900 ubsec.ilk 2011-09-27 11:14 2,082 ubsec.lib 2011-09-27 11:14 132,096 ubsec.pdb 2011-09-27 11:14 57,434 verify.exe 2011-09-27 11:14 299,372 verify.ilk 2011-09-27 11:14 238,592 verify.pdb 2011-09-27 11:15 57,435 version.exe 2011-09-27 11:15 285,588 version.ilk 2011-09-27 11:15 230,400 version.pdb 2011-09-27 11:15 28,763 wp_test.exe 2011-09-27 11:15 48,836 wp_test.ilk 2011-09-27 11:15 115,712 wp_test.pdb 2011-09-27 11:15 82,008 x509.exe 2011-09-27 11:15 392,568 x509.ilk 2011-09-27 11:15 287,744 x509.pdb
【版权声明】
openssl的VC软件包由王志海(DragonKing)根据openssl整理提供,Eric Young's拥有对所有源代码的最终版权,一切应用应该遵照openssl的声明。该版本为openssl-0.9.6h
欢迎联系本人或提意见:
Email:wzhah@263.net
HomePage: http://gdwzh.126.com[openssl中文专业论坛,提供大量中文资料]
【功能说明】
本软件包将每个openssl的apps程序做成一个可直接运行调试的VC Console 类型应用程序,方便研究和运用openssl的朋友,避免了openssl在windows下的编译问题,并且因为可以在VC环境下进行调试,使得对openssl的各个应用程序的流程更容易理解,这对openssl初学者尤其方便。希望大家多提意见。
【使用说明】
要正确使用该工程文件,呢应该从http://gdwzh.126.com获取如下目录和文件
1.Windows平台下openssl动态库,包含两个dll文件,将他们拷贝到Windows/system32目录下;
2.Windows平台下openssl静态库,下载解压后得到一个名为lib的文件夹,包含两个lib文件
3.openssl的头文件,下载解压后得到一个名为include的录。
4.Windows平台rsa项目文件,下载解压后得到一个名为rsa的目录,里面包含了项目主文件
5.将目录lib、include、和rsa拷贝到同一个目录下;
6.完成上述步骤,就可以像普通的VC项目一样进行调试编译了,有任何问题,请到http://openssl.126.com提问。
【注意】
1.获取最新信息请到http://gdwzh.126.com的openssl专业论坛.
2.编译好的运用程序有可能需要其它的openssl文件支持,如openssl.cnf等,请参照openssl相关文档或本站信息公布。

18,356

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧