build ACE-5.4\ACE_wrappers\tests\SSL sample with VC++2003
download and build openssl-0.9.7g
download and unzip ACE-5.4
rename D:\3rd\ACE-5.4\ACE_wrappers\ace\config-win32.h to config.h
build D:\3rd\ACE-5.4\ACE_wrappers\ace\ace.sln
build D:\3rd\ACE-5.4\ACE_wrappers\ace\SSL\ACE_SSL.sln(convert from ACE_SSL.dsw)
build D:\3rd\ACE-5.4\ACE_wrappers\tests\Test_Output.vcproj
create an empty windows 32 project D:\3rd\ACE-5.4\ACE_wrappers\tests\SSL\ace_ssl_test.vcproj
add Thread_Pool_Reactor_SSL_Test.cpp and Main.cpp to above project
add the following lines to Main.cpp (before the line int run_main (int argc, ACE_TCHAR *argv[]);)
#pragma comment(lib,"libeay32.lib")
//ssleay32.dll
//libeay32.dll
#ifdef _DEBUG
#pragma comment(lib,"aced.lib")
#pragma comment(lib,"ACE_SSLd.lib")
#pragma comment(lib,"Test_Outputd.lib")
//ACEd.dll
//Test_Outputd.dll
//ACE_SSLd.dll
#endif
copy ACE_SSLd.dll,ACEd.dll,libeay32.dll,ssleay32.dll,Test_Outputd.dll,key.pem, dummy.pem to D:\3rd\ACE-5.4\ACE_wrappers\tests\SSL\Debug
run D:\3rd\ACE-5.4\ACE_wrappers\tests\SSL\Debug\ace_ssl_test.exe
then log file is available at D:\3rd\ACE-5.4\ACE_wrappers\tests\SSL\Debug\log\Thread_Pool_Reactor_SSL_Test.log
download and unzip ACE-5.4
rename D:\3rd\ACE-5.4\ACE_wrappers\ace\config-win32.h to config.h
build D:\3rd\ACE-5.4\ACE_wrappers\ace\ace.sln
build D:\3rd\ACE-5.4\ACE_wrappers\ace\SSL\ACE_SSL.sln(convert from ACE_SSL.dsw)
build D:\3rd\ACE-5.4\ACE_wrappers\tests\Test_Output.vcproj
create an empty windows 32 project D:\3rd\ACE-5.4\ACE_wrappers\tests\SSL\ace_ssl_test.vcproj
add Thread_Pool_Reactor_SSL_Test.cpp and Main.cpp to above project
add the following lines to Main.cpp (before the line int run_main (int argc, ACE_TCHAR *argv[]);)
#pragma comment(lib,"libeay32.lib")
//ssleay32.dll
//libeay32.dll
#ifdef _DEBUG
#pragma comment(lib,"aced.lib")
#pragma comment(lib,"ACE_SSLd.lib")
#pragma comment(lib,"Test_Outputd.lib")
//ACEd.dll
//Test_Outputd.dll
//ACE_SSLd.dll
#endif
copy ACE_SSLd.dll,ACEd.dll,libeay32.dll,ssleay32.dll,Test_Outputd.dll,key.pem, dummy.pem to D:\3rd\ACE-5.4\ACE_wrappers\tests\SSL\Debug
run D:\3rd\ACE-5.4\ACE_wrappers\tests\SSL\Debug\ace_ssl_test.exe
then log file is available at D:\3rd\ACE-5.4\ACE_wrappers\tests\SSL\Debug\log\Thread_Pool_Reactor_SSL_Test.log
0 Comments:
Post a Comment
<< Home