SSL connect to Gmail: SMTP auth Problem!

2006-12-03 Thread Cruise Zou
Hi all, I have writen a Email client, and have added SSL on it. Now I can download email from Gmail through POP3 over SSL successfully, but there are some problems when sending email through SMTP on SSL: GMAIL smtp server's response indicated email had been sent successfully but in fact, it coul

Porting problem: how to cross compile Openssl to be used on ARM platform?

2006-11-29 Thread Cruise Zou
Hi Marcola, Thanks for you example.c. I have improved my source code, it can work correctly on linux platform now. Now I need port my application to ARM platform. So I should use arm-linux-gcc cross compile OpenSSL to generate new .a lib, which can be used in ARM platform. I have searched in t

Re: Sporadic SSL_accept error: decryption failed

2006-11-27 Thread Cruise Zou
Hi Pillonel, Can you give me a copy of your source code for reference? Thanks a lot! On 11/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I found the problem! My error was that another thread was already trying to read on the SSL connection with SSL_read() before the SSL handshake coul

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

2006-11-27 Thread Cruise Zou
Thanks a lot! Best Regards, Cruise Zou ---source code begin-- czInt SSLOpen(RecvCtrl *ctrl) { SSL *ssl; czInt result; SSLOption *pOpt = &(ctrl->sslOpt); pOpt->sslCert = NULL; pOpt->sslCertCheck = 0; pOpt->sslCertPath =NU

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 initializatio

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 Regard

Re: Loading of Certificates

2006-11-26 Thread Cruise Zou
Hi, sorry, I can not help you, instead I need ask for your help. :( I have wrote a SSL enable client application, but it does not work correctly. I initialize SSL like this: //SSL Global Initialization SSL_load_error_strings(); ERR_load_BIO_strings(); OpenSSL_add_all_algorithms(); Problem is,

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 std

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 can