[[EMAIL PROTECTED] - Sat Aug 10 12:24:43 2002]:
> The 'openssl <some_digest>' command produces incorrect results when > linked dynamically against the (newly created) libssl.so.0.9.6, > libcrypto.so.0.9.6. It seems to ignore the selected hash algorithm > and displays the md5 hash instead. > > $ ./openssl version > OpenSSL 0.9.6g [engine] 9 Aug 2002 > $ ldd ./openssl > libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x40017000) > libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x400ce000) > libc.so.6 => /lib/libc.so.6 (0x40191000) > libdl.so.2 => /lib/libdl.so.2 (0x40274000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) > $ echo abc|./openssl md5 > 0bee89b07a248e27c83fc3d5951213c1 > $ echo abc|./openssl sha1 > 0bee89b07a248e27c83fc3d5951213c1 > $ echo abc|./openssl md2 > 0bee89b07a248e27c83fc3d5951213c1 Hmm, one question: did you install your newly compiled version of OpenSSL, or is /usr/lib/libssl.so.0.9.6 from somewhere else? If this was a general problem with shared libraries vs. static ones, I can tell you that we would have been in trouble for a long time (when building 0.9.7 (in beta) with shared library support, you get openssl linked with the shared library, and if there was any problem like what you show us, we would already have discovered it). I assume there is a /usr/bin/openssl, so if you run the following command, what version number do you get? > /usr/bin/openssl version -- Richard Levitte [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]