On Mon, Nov 27, 2000 at 04:21:05PM +0100, Wolfgang Marczy wrote:
> Hi everybody,
> 
> I get the strange error    140DF114:SSL routines:SSL_read:uninitialized  , though I 
>have
> initialized the connection as seen below.

The error message indicates that s->handshake_func is not set. This does not
make much sense. On a closer look to your problem I however note the
following:

> On Thu, Nov 23, 2000 at 03:38:33PM +0100, Wolfgang Marczy wrote:
> >         SSL_load_error_strings()
> >         SSL_library_init()
> >         RAND_seed(...)
> >         ssl_ctx_serv=SL_CTX_new(SSLv23_client_method())

This prepares an SSL-client!!

> >         ssl_con_serv=SSL_new(ssl_ctx_serv)
> >         err_flag=SSL_set_fd(ssl_con_serv,rec_socket)
> >         err_flag=SSL_accept(ssl_con_serv)
This is the function for an SSL-server!!
I am somewhat surprised that you did not see any error message on calling
SSL_accept(), is err_flag really "1"=success on return?
(It would be something to correct if SSL_accept() would silently fail and
give back "1"=success).

> >         ret=SSL_read(ssl_co_servn,line,LINELENGTH)

Best regards,
        Lutz
-- 
Lutz Jaenicke                             [EMAIL PROTECTED]
BTU Cottbus               http://www.aet.TU-Cottbus.DE/personen/jaenicke/
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-4129
Universitaetsplatz 3-4, D-03044 Cottbus              Fax. +49 355 69-4153
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to