| # for OS/2

## OpenSSL v0.9.6

If you need to build the OpenSSL library for yourself, EG you're porting an application that requires SSL or other cryptography functions provided by it, all you need to do is the following.

- Download the official OpenSSL source code from the OpenSSL web site
- Extract the source using `tar xzf openssl-0.9.6.tar.gz`
- Delete all the 0 length files in openssl-0.9.6\include\openssl that `tar` makes in place of symlinks
- Apply the patch openssl-emx.patch in the openssl-0.9.6 directory using a unix style patch program like gnupatch.zip and a command line like `patch -p0 < openssl-emx.patch`
- While still in the openssl-0.9.6 directory, run `os2\emx.cmd` to generate the makefiles. Note that this requires that you have a PERL interpreter installed.
- Run `make -f emx.mak`
- Once finished, you'll find the libraries, test programs & the openssl.exe command line application in the out2 directory. You may need to move the .a files up into the openssl-0.9.6 directory for other applications to find them for linking.

## OpenSSL v0.9.7

The OpenSSL developers have commited my patches to the 0.9.7 source which allows it to build "out of the box" on OS/2. The source includes the file "INSTALL.OS2" which provides build instructions. However, this only supports EMX GCC.

- openssl-0.9.7-watcom.patch adds support for compiling using Watcom C++ v11.