charon-nm: Set local address to %any so IPv6 may be used as outer address
[strongswan.git] / src / libtls / tls_fragmentation.h
index 6992445..a49f27b 100644 (file)
 
 #include <library.h>
 
+typedef struct tls_fragmentation_t tls_fragmentation_t;
+
 #include "tls.h"
 #include "tls_alert.h"
 #include "tls_handshake.h"
 
-typedef struct tls_fragmentation_t tls_fragmentation_t;
-
 /**
  * TLS record protocol fragmentation layer.
  */
@@ -62,6 +62,13 @@ struct tls_fragmentation_t {
                                          tls_content_type_t *type, chunk_t *data);
 
        /**
+        * Has the application layer finished (returned SUCCESS)?.
+        *
+        * @return                      TRUE if application layer finished
+        */
+       bool (*application_finished)(tls_fragmentation_t *this);
+
+       /**
         * Destroy a tls_fragmentation_t.
         */
        void (*destroy)(tls_fragmentation_t *this);
@@ -73,9 +80,11 @@ struct tls_fragmentation_t {
  * @param handshake                    upper layer handshake protocol
  * @param alert                                TLS alert handler
  * @param application          upper layer application data or NULL
+ * @param purpose                      type of context this TLS stack is running in
  * @return                                     TLS fragmentation layer
  */
 tls_fragmentation_t *tls_fragmentation_create(tls_handshake_t *handshake,
-                                                       tls_alert_t *alert, tls_application_t *application);
+                                                       tls_alert_t *alert, tls_application_t *application,
+                                                       tls_purpose_t purpose);
 
 #endif /** TLS_FRAGMENTATION_H_ @}*/