Hi, I installed openssl-0.9.6c on a Unixware 7.1 box and I was playing with the demo programs saccept.c and sclient.c in openssl-0.9.6c/demos/bio directory. I compiled and started sclient on a Solaris 2.6 machine and saccept on the unixware one. Both programs worked fine.
However, I was playing with saccept.c and moved the following lines into another function: OpenSSL_add_ssl_algorithms(); SSL_load_error_strings(); SL_CTX_new( SSLv23_client_method() ); and I called that function in main(), I got the follwoing error message: ------------------------------------------------- 24152:error:140C5022:SSL routines:SSL_UNDEFINED_FUNCTION:called a function you s hould not call:ssl_lib.c:1654: 24152:error:140780E5:SSL routines:SSL23_READ:ssl handshake failure:s23_lib.c:180 -------------------------------------------------- If I move 'SL_CTX_new( SSLv23_client_method() );' back to main(), it works fine. Does anyone know what the problem is? Many thanks! Lance __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]