Re: Develop base on OpenSSL-0.9.8b: SSL_CTX_new(SSLv23_client_method()) ERROR!

2006-11-27 Thread Cruise Zou
Hi, I can initialise SSL correctly now. But when SSL_connect(), my application will crash, without any error description on stderr. what has happened? Best regards, Cruise Zou On 11/27/06, Cruise Zou [EMAIL PROTECTED] wrote: Hi Marcola, Try to add to initialization section:

Re: Develop base on OpenSSL-0.9.8b: SSL_CTX_new(SSLv23_client_method()) ERROR!

2006-11-27 Thread Marek Marcola
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

Re: Develop base on OpenSSL-0.9.8b: SSL_CTX_new(SSLv23_client_method()) ERROR!

2006-11-27 Thread Marek Marcola
You may also get some version information from library: $ strings -a /lib/libssl.so.6 | grep OpenSSL OpenSSLDie SSLv2 part of OpenSSL 0.9.8a 11 Oct 2005 SSLv3 part of OpenSSL 0.9.8a 11 Oct 2005 TLSv1 part of OpenSSL 0.9.8a 11 Oct 2005 DTLSv1 part of OpenSSL 0.9.8a 11 Oct 2005 OpenSSL 0.9.8a 11

Re: Develop base on OpenSSL-0.9.8b: SSL_CTX_new(SSLv23_client_method()) ERROR!

2006-11-27 Thread Cruise Zou
Hi, About SSL_connect() quit with exception, actually I don't think it's a compatibility problem. Because I have done make install OpenSSL only once, and never done update or re-install. By the way, the version being used is 0.9.8b. I have attached SSLOpen() source code at the end of this

Re: Develop base on OpenSSL-0.9.8b: SSL_CTX_new(SSLv23_client_method()) ERROR!

2006-11-27 Thread Marek Marcola
Hello, About SSL_connect() quit with exception, actually I don't think it's a compatibility problem. Because I have done make install OpenSSL only once, and never done update or re-install. By the way, the version being used is 0.9.8b. I have attached SSLOpen() source code at the end

Re: Develop base on OpenSSL-0.9.8b: SSL_CTX_new(SSLv23_client_method()) ERROR!

2006-11-26 Thread Cruise Zou
Hi all, Part of my source code is following: _ctx = SSL_CTX_new(SSLv23_client_method()); if(_ctx == NULL) { result = SSL_ERROR_CREATE_NEW_CTX; ERR_print_errors_fp(stderr); czEmail_Report(SSL create new contex ERROR!, result); return result; } _ctx is NULL, and it reports error on the

Re: Develop base on OpenSSL-0.9.8b: SSL_CTX_new(SSLv23_client_method()) ERROR!

2006-11-26 Thread Marek Marcola
Hello, Part of my source code is following: _ctx = SSL_CTX_new(SSLv23_client_method()); if(_ctx == NULL) { result = SSL_ERROR_CREATE_NEW_CTX; ERR_print_errors_fp(stderr); czEmail_Report(SSL create new contex ERROR!, result); return result; } _ctx is NULL,

Re: Develop base on OpenSSL-0.9.8b: SSL_CTX_new(SSLv23_client_method()) ERROR!

2006-11-26 Thread Cruise Zou
Hi Marcola, Try to add to initialization section: ENGINE_load_builtin_engines(); Thank you very much! I will have a try later. Can you give me a detail explaination about the problem? And what can ENGINE_load_builtin_engines() do with this problem? Thanks a lot! Best Regards, Cruise

Develop base on OpenSSL-0.9.8b: SSL_CTX_new(SSLv23_client_method()) ERROR!

2006-11-25 Thread Cruise Zou
Hi all, I am developing a network application base on OpenSSL-0.9.8.b, on Redhat Linux. I have added OpenSSL API in my source code, but there is something wrong when connecting to server. I have traced the source code, find that: SSL_CTX_new(SSLv23_client_method()); return NULL.; I really

Re: Develop base on OpenSSL-0.9.8b: SSL_CTX_new(SSLv23_client_method()) ERROR!

2006-11-25 Thread Marek Marcola
Hello, I am developing a network application base on OpenSSL-0.9.8.b, on Redhat Linux. I have added OpenSSL API in my source code, but there is something wrong when connecting to server. I have traced the source code, find that: SSL_CTX_new(SSLv23_client_method()); return NULL.; I