On 3/1/06, Brian Candler <[EMAIL PROTECTED]> wrote:
On Wed, Mar 01, 2006 at 12:01:52PM -0800, Carl Youngblood wrote:
> Can somebody please explain to me how to compile openssl with sha-256
> support? I have built the latest version from source but still can't
> seem to find a way to get it working.
How *exactly* did you compile from source, under what OS, and what *exact*
test did you do that shows it's not working?
Here,
$ echo -n "abc" | /usr/linnet/0.HEAD/bin/openssl dgst -sha256
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
$ /usr/linnet/0.HEAD/bin/openssl version
OpenSSL 0.9.8a 11 Oct 2005
$
This is under FreeBSD 5.4. openssl was compiled from source using more or
less default settings. More precisely,
LD_RUN_PATH=/usr/linnet/0.HEAD/lib; export LD_RUN_PATH
./config --prefix=/usr/linnet/0.HEAD --openssldir=/etc/linnet/0.HEAD/openssl no-idea shared
make
make test
sudo make install
Note the LD_RUN_PATH. This ensures that the 'openssl' binary knows where to
find the correct openssl libraries, and doesn't end up picking up some
random libssl.so.* found elsewhere on the system.
Regards,
Brian.