Hello,
I am newbie on SSL and I have a problem with a SSL client. My client
use the SSL following function and I have built it with ssleay 0.9.0
and I have tried on the www.radisson.com site It works but When I have
built my client
with openssl 0.9.5, I get:
SSL_connect:SSLv3 write client hello A
SSL_connect:SSLv3 read server hello A
SSL_connect:SSLv3 read server certificate A
SSL_connect:SSLv3 read server done A
SSL_connect:error in SSLv3 write client key exchange A
Connect error
I think I forgot write a option but I don't know whiches.
Anybody can help me or have any suggestion ?
Nicolas Delahaye
Software Engineer
www.imediation.com
[EMAIL PROTECTED]
My aproximately code:
meth = SSLv2_client_method();
SSL_load_error_strings();
SSLeay_add_ssl_algorithms();
ctx = SSL_CTX_new(meth);
SSL_CTX_set_options( ctx, SSL_OP_ALL);
SSL_CTX_set_info_callback(ctx,ssl_info_callback);
ssl = SSL_new(ctx);
if( SSL_set_fd(ssl, s) != 1)
{
/* error */
ERR_print_errors_fp( stderr );
if(ssl)
{
SSL_free( ssl );
}
if(ctx)
{
SSL_CTX_free(ctx);
env = NULL;
}
}
if (SSL_connect(ssl)<= 0 )
return -1;
server_cert = SSL_get_peer_certificate( (SSL *) ssl );
if ( server_cert == NULL )
{
return -1 ;
}
if(!SSL_in_init(ssl))
{
status = SSL_write(ssl, toSend, len);
}
if(status == OK)
{
/* Read the answer */
status = SSL_read(ssl, toSend, len);
}
else return -1;
return status;
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]