Fixed IV processing for CBC decryption with AES (x86ni implementation) when data...
[BearSSL] / inc / bearssl_ssl.h
index fee7b3c..2ac9e25 100644 (file)
 #include "bearssl_rand.h"
 #include "bearssl_x509.h"
 
 #include "bearssl_rand.h"
 #include "bearssl_x509.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /** \file bearssl_ssl.h
  *
  * # SSL
 /** \file bearssl_ssl.h
  *
  * # SSL
@@ -819,8 +823,11 @@ typedef struct {
        } out;
 
        /*
        } 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;
 
         */
        unsigned char application_data;
 
@@ -4065,4 +4072,8 @@ int br_sslio_close(br_sslio_context *cc);
 #define BR_ALERT_UNSUPPORTED_EXTENSION     110
 #define BR_ALERT_NO_APPLICATION_PROTOCOL   120
 
 #define BR_ALERT_UNSUPPORTED_EXTENSION     110
 #define BR_ALERT_NO_APPLICATION_PROTOCOL   120
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
 #endif