Fixed handling of incoming application data after sending a close_notify (data shall...
[BearSSL] / inc / bearssl_ssl.h
index 21d162b..2ac9e25 100644 (file)
@@ -823,8 +823,11 @@ typedef struct {
        } out;
 
        /*
-        * The "application data" flag. It is set when application data
-        * can be exchanged, cleared otherwise.
+        * The "application data" flag. Value:
+        *   0   handshake is in process, no application data acceptable
+        *   1   application data can be sent and received
+        *   2   closing, no application data can be sent, but some
+        *       can still be received (and discarded)
         */
        unsigned char application_data;