I'm attempting to negotiate a tls session between a client and a server,
and am getting a strange error.

SSL_accept: error:00000000::lib(0) :func(0) :reason(0)

The server code snippet is as follows:

        p->tls = SSL_new(p->ctx);

        if (SSL_set_fd(p->tls, fileno(stdin)) <= 0)
        {
                tls_error("SSL_set_fd", p);
                SSL_CTX_free(p->ctx);
                SSL_free(p->tls);
                exit(1);
        }

        if (SSL_accept(p->tls) <= 0)
        {
                tls_error("SSL_accept", p);
                SSL_CTX_free(p->ctx);
                SSL_free(p->tls);
                exit(1);
        }

The info from the client is as follows:

Server Supports TLS. Attempting to Negotiate Session.
Negotiated TLS session with the cipher suite DES-CBC3-SHA.

Is it possible for the client to successfuly negotiate a session, yet the
server to complain about SSL_accept()?

Or can someone point out a typo which seems to elude me.

Cheers,
Nick

--
Email: [EMAIL PROTECTED] (or) [EMAIL PROTECTED]
Key fingerprint = 71C5 2EA8 903B 0BC4 8EEE  9122 7349 EADC 49C1 424E

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

Reply via email to