On Wed, Apr 18, 2001 at 11:52:11AM +0200, Jacob Tj?rnholm wrote:
> > On Wed, Apr 18, 2001 at 10:52:04AM +0200, Jacob Tj?rnholm wrote:
> > > I keep receiving this error string:
> > >
> > > error:00000001:lib(0):func(0):reason(1)
> > >
> > > The relevant lines are:
> > >
> > > int err = SSL_accept(ssl);
> > > int errcode = SSL_get_error(ssl, err);
> > > printf("%s\n", ERR_error_string(errcode, NULL));
> > >
> > > What could be wrong?? This happens both when I try to connect with a
> browser
> > > and with a Java-client, but NOT with an OpenSSL (C++) client. That still
> > > works fine.
> >
> > Did you call SSL_load_error_strings()?
> > Lutz
> > --
>
> Yes, I did. And that is what puzzles me, I had expected a more elaborate
> error message....
Arrgh, I should read emails more careful: You misused ERR_error_string().
SSL_get_error() will only tell you, whether an error occured or only a
temporary failure (like WANT_READ/WRITE) (see manual page).
The "errcode" must then be queried with ERR_get_error().
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]