Hi,

I have a trouble writing https client.
It has so kind of code for initialisation:

SSLeay_add_ssl_algorithms();
*ssl_ctx = SSL_CTX_new (SSLv23_client_method());
*s = SSL_new (*ssl_ctx);
init_client (sock, host, port);
SSL_set_fd (*s, *sock);
SSL_connect (*s);
return SSL_do_handshake(*s);

Then I start s_server:
./openssl s_server -key privkey.pem -accept 443 -ssl2 -msg

Then I start my program, and the first calling of SSL_write making such
message on s_server:
ERROR
4513:error:1406B0FD:SSL routines:GET_CLIENT_MASTER_KEY:unknown remote
error type:s2_pkt.c:675:
shutting down SSL
CONNECTION CLOSED

The last successfull message was:
>>> SSL 2.0 [length 02d7], SERVER-HELLO

But while I'm using s_client, all works fine.
I wonder, in what my problem can be (I link my programm with libssl and
libcrypto statically under solaris 5.7 and gcc 3.3.4).

Thanks in advance.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to