Added SoH functionality to the PEAP module
[freeradius.git] / src / modules / rlm_eap / types / rlm_eap_peap / eap_peap.h
index 33bf78b..3ad3a33 100644 (file)
@@ -27,6 +27,7 @@
 RCSIDH(eap_peap_h, "$Id$")
 
 #include "eap_tls.h"
+#include <freeradius-devel/soh.h>
 
 typedef struct peap_tunnel_t {
        VALUE_PAIR      *username;
@@ -39,11 +40,24 @@ typedef struct peap_tunnel_t {
        int             use_tunneled_reply;
        int             proxy_tunneled_request_as_eap;
        const char      *virtual_server;
+       int             soh;
+       const char      *soh_virtual_server;
+       VALUE_PAIR      *soh_reply_vps;
+       int             session_resumption_state;
 } peap_tunnel_t;
 
-#define PEAP_STATUS_START_PART2 0
+#define PEAP_STATUS_INVALID 0
 #define PEAP_STATUS_SENT_TLV_SUCCESS 1
 #define PEAP_STATUS_SENT_TLV_FAILURE 2
+#define PEAP_STATUS_TUNNEL_ESTABLISHED 3
+#define PEAP_STATUS_INNER_IDENTITY_REQ_SENT 4
+#define PEAP_STATUS_PHASE2_INIT 5
+#define PEAP_STATUS_PHASE2 6
+#define PEAP_STATUS_WAIT_FOR_SOH_RESPONSE 7
+
+#define PEAP_RESUMPTION_NO     (0)
+#define PEAP_RESUMPTION_YES    (1)
+#define PEAP_RESUMPTION_MAYBE  (2)
 
 #define EAP_TLV_SUCCESS (1)
 #define EAP_TLV_FAILURE (2)