Well - this was really a stupid mistake.
However, after some hours of furter debugging i am stuck now with a problem
again.
Basically, it looks like the client and the server do not find a shared
cipher to use.
I tried the code without specifiying the ciper (according to the
documentation, standard ones will be used then). The i added the code below -
the result is the same.

Here is the output:

Server:
bin/Linux_2.6.4# ./testProvider
setting cipher went okay <<-- generated by code below
SSL PrivateKey opened successfully
LOG; Now accepting connections on fd...connection accepted.
LOG; Now accepting (ssl)...SSL Handshake (SSL_accept) failed - error code -1
SSH Handshake error 1= SSL_ERROR_SSLErr during Handshake from SSL error
queue: error:1408A0C1:SSL routines:SSL3_GET_CLIENT_HELLO:no shared cipher
bin/Linux_2.6.4#c

Client:
bin/Linux_2.6.4# ./testConsumer
setting cipher went okay <<-- generated by code below
SSL certificate opened successfully
LOG; Trying to connect (fd)...connected.
LOG; Trying to connect (ssl)...connecting SSL socket failed

Added code:

     if(SSL_set_cipher_list(m_ssl,"EXP-RC4-MD5")==1)
{
cout << "setting cipher went okay" << endl;
}
else
{
cout << "cipher not set" << endl;
}


Many thanks !!

Florian

Lutz Jaenicke wrote:

> On Thu, Aug 17, 2006 at 03:43:47PM +0200, Florian G otter wrote:
> > Hello once again,
> >
> > here is my cut-down code as well as output.
> > Basically, the server fails after the line "// FAILS!!!" without the
> > client even connecting to it.
> >
> > Does anybody have an idea ?
>
> That seems to be a simple one:
>
> > server.c
> > ----------------------------------------------------
> ...
> >   m_ctx=SSL_CTX_new(SSLv3_client_method());
> ...
>
> Though shall not use a client method in server context.
>
> Best regards,
>         Lutz
> --
> Lutz Jaenicke                             [EMAIL PROTECTED]
> http://www.aet.TU-Cottbus.DE/personen/jaenicke/
> BTU Cottbus, Allgemeine Elektrotechnik
> Universitaetsplatz 3-4, D-03044 Cottbus
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to