Implemented TLS Alert handling
[strongswan.git] / src / libtls / tls_fragmentation.h
index 6adbc36..6992445 100644 (file)
 #ifndef TLS_FRAGMENTATION_H_
 #define TLS_FRAGMENTATION_H_
 
-typedef struct tls_fragmentation_t tls_fragmentation_t;
-
 #include <library.h>
 
 #include "tls.h"
+#include "tls_alert.h"
 #include "tls_handshake.h"
-#include "tls_handshake.h"
+
+typedef struct tls_fragmentation_t tls_fragmentation_t;
 
 /**
  * TLS record protocol fragmentation layer.
@@ -71,10 +71,11 @@ struct tls_fragmentation_t {
  * Create a tls_fragmentation instance.
  *
  * @param handshake                    upper layer handshake protocol
+ * @param alert                                TLS alert handler
  * @param application          upper layer application data or NULL
- * @return                                     TLS fragmentation layer.
+ * @return                                     TLS fragmentation layer
  */
 tls_fragmentation_t *tls_fragmentation_create(tls_handshake_t *handshake,
-                                                                                         tls_application_t *application);
+                                                       tls_alert_t *alert, tls_application_t *application);
 
 #endif /** TLS_FRAGMENTATION_H_ @}*/