I'm writing a server with OpenSSL 0.9.8a. When calling SSL_shutdown() to
send a close_notify responding to a previous one from the client, a 0
was returned.

After some investigation, the reason was found to be the underlying
nonblocking BIO was not able to satisfy ssl3_write_pending(). According
to the manual page, I expected to get -1. But the code shows that -1 is
returned iff the ssl object is not initialized; all other cases except a
complete handshake are indicated by 0.

Is this intentional? Should I repeat whenever a previous SSL_shutdown()
returned 0? How can I know a close_notify has been successfully sent, if
I close first, please?

Thanks.

-- 
http://www.fastmail.fm - A no graphics, no pop-ups email service

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

Reply via email to