Hello,

Grebelsky, Konstantin wrote:
>Hi,
>I am just beginning with SSL and for now I am trying to get client and
>server talking only this is not happening.
>The client and server code is provided below. No certification needed at
>this time.
>Any ideas what I am doing wrong?

At first, I have no idea to solve this problem.

It's interesting to use SSL without any certificate.
In some book, "Server Certificate" is *optional*, so
certification-less talking could be possible (IMHO).

That server code works when add "use_certificate" and
"use_RSAPrivateKey" library calls. 
Difference should be SSL_accept's behavior.
----
(state transition without cert and privkey)
 SSL_ST_BEFORE|SSL_ST_ACCEPT
 SSL3_ST_SR_CLNT_HELLO_A        (*)

(state transition with cert and privkey)
 SSL_ST_BEFORE|SSL_ST_ACCEPT
 SSL3_ST_SR_CLNT_HELLO_A
 SSL3_ST_SW_SRVR_HELLO_A
 SSL3_ST_SW_CERT_A
        : (snip)
 SSL3_ST_SW_FLUSH
 SSL_ST_OK
-----
The reason, why failure returns in state of SSL3_ST_SR_CLNT_HELLO_A(*),
it is becaunse ssl3_choose_cipher(s3_lib.c) returns NULL.

# I tried to use "SSL_CTX_set_cipher_list" in client, but failed..
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[EMAIL PROTECTED]            from Fukuoka.Japan
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to