Defined a private status notify to transport arbitrary RADIUS attributes
authorMartin Willi <martin@revosec.ch>
Fri, 24 Feb 2012 12:37:00 +0000 (13:37 +0100)
committerMartin Willi <martin@revosec.ch>
Mon, 5 Mar 2012 17:06:14 +0000 (18:06 +0100)
src/libcharon/encoding/payloads/notify_payload.c
src/libcharon/encoding/payloads/notify_payload.h

index 5a47438..fef2949 100644 (file)
@@ -101,15 +101,16 @@ ENUM_NEXT(notify_type_names, INITIAL_CONTACT, IPSEC_REPLAY_COUNTER_SYNC, MS_NOTI
        "IPSEC_REPLAY_COUNTER_SYNC");
 ENUM_NEXT(notify_type_names, USE_BEET_MODE, USE_BEET_MODE, IPSEC_REPLAY_COUNTER_SYNC,
        "USE_BEET_MODE");
-ENUM_NEXT(notify_type_names, ME_MEDIATION, ME_RESPONSE, USE_BEET_MODE,
+ENUM_NEXT(notify_type_names, ME_MEDIATION, RADIUS_ATTRIBUTE, USE_BEET_MODE,
        "ME_MEDIATION",
        "ME_ENDPOINT",
        "ME_CALLBACK",
        "ME_CONNECTID",
        "ME_CONNECTKEY",
        "ME_CONNECTAUTH",
-       "ME_RESPONSE");
-ENUM_END(notify_type_names, ME_RESPONSE);
+       "ME_RESPONSE",
+       "RADIUS_ATTRIBUTE",);
+ENUM_END(notify_type_names, RADIUS_ATTRIBUTE);
 
 
 ENUM_BEGIN(notify_type_short_names, UNSUPPORTED_CRITICAL_PAYLOAD, UNSUPPORTED_CRITICAL_PAYLOAD,
@@ -188,15 +189,16 @@ ENUM_NEXT(notify_type_short_names, INITIAL_CONTACT, IPSEC_REPLAY_COUNTER_SYNC, M
        "RPL_CTR_SYN");
 ENUM_NEXT(notify_type_short_names, USE_BEET_MODE, USE_BEET_MODE, IPSEC_REPLAY_COUNTER_SYNC,
        "BEET_MODE");
-ENUM_NEXT(notify_type_short_names, ME_MEDIATION, ME_RESPONSE, USE_BEET_MODE,
+ENUM_NEXT(notify_type_short_names, ME_MEDIATION, RADIUS_ATTRIBUTE, USE_BEET_MODE,
        "ME_MED",
        "ME_EP",
        "ME_CB",
        "ME_CID",
        "ME_CKEY",
        "ME_CAUTH",
-       "ME_R");
-ENUM_END(notify_type_short_names, ME_RESPONSE);
+       "ME_R",
+       "RADIUS");
+ENUM_END(notify_type_short_names, RADIUS_ATTRIBUTE);
 
 
 typedef struct private_notify_payload_t private_notify_payload_t;
index 35feb48..cf091d1 100644 (file)
@@ -136,7 +136,9 @@ enum notify_type_t {
        ME_CONNECTID = 40965,
        ME_CONNECTKEY = 40966,
        ME_CONNECTAUTH = 40967,
-       ME_RESPONSE = 40968
+       ME_RESPONSE = 40968,
+       /* RADIUS attribute received/to send to a AAA backend */
+       RADIUS_ATTRIBUTE = 40969,
 };
 
 /**