1. Install VC ++ 6.0.
2, download the ActivePerl-5.8.0.806-MSWin32-x86 and install:
Http://www.sogoz.info/down.asp? Id = 3683 & NO = 1
3. Download openssl0.98 and decompress it.
Http://www.openssl.org/source/openssl-0.9.8.tar.gz
Installation Steps: see install. Win32 in the OpenSSL directory.
1. Perl configure VC-WIN32
If it fails, an obvious prompt will be displayed.
2. Ms \ do_ms
This method is recommended.
If you use the other two methods, you must ensure that the local machine has a compiler.
: Ms \ do_masm (default VC compiler; also download and install it by yourself)
: Ms \ do_nasm (you need to download it yourself)
3. Go to the Microsoft Visual Studio \ vc98 \ bin directory in the DOS window and run vcvars32.bat to configure environment variables.
4. Jump to the OpenSSL directory and execute:
Nmake-F Ms \ NTDLL. Mak
If the compilation is successful, the final output is under the out32dll directory, including the executable file, two DLL files, and two lib files: libeay32.dll, libeay32.lib, ssleay32.dll, and ssleay32.lib.
Preliminary programming:
1. Open VC-tools-options-Directores,Add the openssl-0.9.8 \ inc32 directory in include files; add openssl-0.9.8 \ out32dll to libray files
2. SourceProgramContains the following three header files and adds them to Lib:
# Include <OpenSSL/SSL. h>
# Include <OpenSSL/err. h>
# Include <OpenSSL/Bio. h>
# Pragma comment (Lib, "libeay32.lib ")
# Pragma comment (Lib, "ssleay32.lib ")
3, reference source code programming: http://www.kennethballard.com/Download/intro-openssl.zip
Refer:
Use OpenSSL APIs for security programming
Http://www-128.ibm.com/developerworks/cn/linux/l-openssl.html
OpenSSL official site: http://www.openssl.org/
ArticleSource: http://www.diybl.com/course/4_webprogram/asp.net/netjs/2008223/100573.html