I think that I've successfully ported OpenSSL 0.9.6 to Mac OS X. The
libraries for version 0.9 of OpenSSL are installed in Mac OS X by
default, but they do not include header files or source code. This patch
will allow you to perform a complete install of OpenSSL that you can use
to build other applications.
Note that Apple's version of OpenSSL is built as a pair of dynamic
shared libraries, and because Apple's linker prefers dynamic libraries
to static ones, this means that you basically have to build the new
version of OpenSSL as a dynamic shared library. It also means that you
must install the new dynamic shared libraries before you can test your
installation.
My recommendation is to install OpenSSL into /usr/local/lib, which falls
earlier in the default Mac OS X search path than the /usr/lib that Apple
uses. This allows you to use your own build of OpenSSL without removing
Apple's version. I haven't automated the installation of the dynamic
shared libraries yet, so the installation sequence looks like this:
./config --prefix=/usr/local --openssldir=/usr/local/ssl shared
threads
make
sudo make install
sudo cp -R *.dylib /usr/local/lib
make test
With a little more work, I'm sure that the installation process could be
better automated, but I haven't had time to figure out the Makefile
enough to do this without breaking other platforms.
Please send any comments or questions on this patch to
<[EMAIL PROTECTED]>.
--Stuart A. Malone
[EMAIL PROTECTED]
Llamagraphics, Inc.
Creators of Life Balance software for Palm OS
http://www.llamagraphics.com/
macosx.patch