Add documentation for new functions taking an OPENSSL_CTX parameter
[openssl.git] / doc / man3 / SSL_shutdown.pod
index f9b7212a33b051302b6f86a1defef5fe1b4eb15f..6e470a1ab0f79097dbe7d44b7ce234c9934e12b3 100644 (file)
@@ -22,6 +22,10 @@ Whether the operation succeeds or not, the SSL_SENT_SHUTDOWN flag is set and
 a currently open session is considered closed and good and will be kept in the
 session cache for further reuse.
 
+Note that SSL_shutdown() must not be called if a previous fatal error has
+occurred on a connection i.e. if SSL_get_error() has returned SSL_ERROR_SYSCALL
+or SSL_ERROR_SSL.
+
 The shutdown procedure consists of two steps: sending of the close_notify
 shutdown alert, and reception of the peer's close_notify shutdown alert.
 The order of those two steps depends on the application.