Hello, I'm using an SSL created with BIO_new_ssl_connect.

I set the connect BIO to non-blocking, and I've also set the
SSL_get_rbio() and SSL_get_wbio() BIO's to non-blocking.

(I don't think I actually need to do that - correct?)

At any rate, everything goes fine, until I call SSL_shutdown which
returns 0. I always get the following error from SSL_get_error():

error:0818FEB0:object identifier routines:func(399):reason(3760)

In all the example code which calls SSL_shutdown, it ignores the return
value. Should I just do the same?

By putting some printf's in ssl3_shutdown, I can see that it sets the
SSL_SENT_SHUTDOWN flag, and sends the alert. If I call SSL_shutdown again,
it hasn't yet received the response, and it does a ssl3_read_bytes(s, 0,
NULL, 0, 0). This still does not set the SSL_RECEIVED_SHUTDOWN flag.

Thanks,

Erik

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

Reply via email to