Hello, > > I can initialise SSL correctly now. > But when SSL_connect(), my application will crash, without any error > description on stderr. > what has happened? I think that you there may be incompatibility between headers and library.
1) Check "how may" versions you have installed, for example on FC5: $ rpm -qa | grep openssl openssl-0.9.8a-5.4 openssl-devel-0.9.8a-5.4 openssl097a-0.9.7a-4.2.2 $ rpm -ql openssl-0.9.8a-5.4 | grep lib /lib/libcrypto.so.0.9.8a /lib/libcrypto.so.6 /lib/libssl.so.0.9.8a /lib/libssl.so.6 $ rpm -ql openssl097a-0.9.7a-4.2.2 | grep lib /lib/libcrypto.so.0.9.7a /lib/libssl.so.0.9.7a $ ll /lib | egrep 'ssl|crypto' -rwxr-xr-x 1 root root 1150688 Sep 5 18:22 libcrypto.so.0.9.7a -rwxr-xr-x 1 root root 1249612 Sep 28 22:37 libcrypto.so.0.9.8a lrwxrwxrwx 1 root root 19 Oct 21 22:45 libcrypto.so.4 -> libcrypto.so.0.9.7a lrwxrwxrwx 1 root root 19 Oct 23 20:02 libcrypto.so.6 -> libcrypto.so.0.9.8a -rwxr-xr-x 1 root root 232696 Sep 5 18:22 libssl.so.0.9.7a -rwxr-xr-x 1 root root 281244 Sep 28 22:37 libssl.so.0.9.8a lrwxrwxrwx 1 root root 16 Oct 21 22:45 libssl.so.4 -> libssl.so.0.9.7a lrwxrwxrwx 1 root root 16 Oct 23 20:02 libssl.so.6 -> libssl.so.0.9.8 2) Check version of your "system" OpenSSL header: $ grep OPENSSL_VERSION_TEXT /usr/include/openssl/* opensslv.h:#define OPENSSL_VERSION_TEXT "OpenSSL 0.9.8a-fips 11 Oct 2005" opensslv.h:#define OPENSSL_VERSION_TEXT "OpenSSL 0.9.8a 11 Oct 2005" 3) Check that your program is linked with OpenSSL library version compatible with your C headers (ssl3 - binary program): $ ldd ssl3 | egrep 'ssl|crypto' libssl.so.6 => /lib/libssl.so.6 (0x4c4e3000) libcrypto.so.6 => /lib/libcrypto.so.6 (0x4c2d3000) Best regards, -- Marek Marcola <[EMAIL PROTECTED]> ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]