commit | a9e3c65d22ad68b994ad7046b243ae459b242ffa | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Thu Sep 01 13:49:36 2011 +0000 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Thu Sep 01 13:49:36 2011 +0000 |
tree | 2f85abde47a6c502afa67a0e8dfe96fc59dbf8f7 | |
parent | 09be2f18c55ac403cbc9103f47ea5e5c9e8604fa [diff] |
Proper SSL shutdown handling. If connection has unsent alerts, SSL_shutdown() tries to send them even if SSL_set_shutdown(SSL_RECEIVED_SHUTDOWN|SSL_SENT_SHUTDOWN) was used. This can be prevented by SSL_set_quiet_shutdown(). SSL_set_shutdown() is required nevertheless to preserve session.