Course Info
Policies
Schedule
Homework
Labs
Exams
Lectures

TA Office hours

Gallery

 

Instructions for using openssl in Microsoft Visual C++.

I have saved everyone the effort of installing perl, and
configuring/compiling make files in order to get the necessary .dll and .lib
files.

All you need to do is:

1) Unzip the openssl.zip file. It should include 2 .lib files, 2
.dll files, and an openssl folder containing .c .cpp and .h files.

2) Copy libeay32.lib and ssleay32.lib into the directory "C:\Program
Files\Microsoft Visual Studio\VC98\Lib"

3) Copy the folder openssl into the directory "C:\Program Files\Microsoft
Visual Studio\VC98\Include"

4) Create a new project, for this lab, I suggest you include support for
Windows Sockets.

5) Select Project=>Settings, Select the link tab, and copy "ssleay32.lib
libeay32.lib" (Don't copy the quotes) into the Object/library modules field.

6) Copy libeay32.dll and ssleay32.dll need to be into same directory as the
.exe for your current project.

To use the openssl library just type #include "openssl/FILENAME.h" at the
top of your Dlg.cpp file. For this lab, you only need #include
"openssl/dh.h" and #include "openssl/bn.h"

Have fun with the big numbers!