Changeset 271:411314907b43 in freeDiameter for extensions/app_radgw/rgwx_auth.c
- Timestamp:
- Apr 20, 2010, 7:34:59 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_radgw/rgwx_auth.c
r264 r271 47 47 #define CC_AA 265 /* AAR */ 48 48 #define CC_DIAMETER_EAP 268 /* DER */ 49 #define CC_DIAMETER_EAP 268 /* DER */50 49 #define ACV_ART_AUTHORIZE_AUTHENTICATE 3 /* AUTHORIZE_AUTHENTICATE */ 51 50 #define ACV_OAP_RADIUS 1 /* RADIUS */ … … 56 55 /* The state we keep for this plugin */ 57 56 struct rgwp_config { 58 struct session_handler * sess_hdl; /* We store RADIUS request authenticator information in the session */59 57 struct { 60 58 struct dict_object * ARAP_Password; /* ARAP-Password */ … … 120 118 121 119 } dict; /* cache of the dictionary objects we use */ 120 struct session_handler * sess_hdl; /* We store RADIUS request authenticator information in the session */ 122 121 char * confstr; 123 122 }; … … 768 767 if (tag > 0x1F) tag = 0; \ 769 768 if (avp_tun[tag] == NULL) { \ 770 CHECK_FCT( fd_msg_avp_new ( cs->dict.Tunneling, 0, &avp_tun[tag] ) ); 769 CHECK_FCT( fd_msg_avp_new ( cs->dict.Tunneling, 0, &avp_tun[tag] ) ); \ 771 770 CHECK_FCT( fd_msg_avp_add (*diam_fw, MSG_BRW_LAST_CHILD, avp_tun[tag]));\ 772 771 } \ … … 774 773 775 774 /* Convert an attribute to an OctetString AVP and add inside the Tunneling AVP corresponding to the tag */ 776 #define CONV2DIAM_TUN_STR( _dictobj_ ) { 775 #define CONV2DIAM_TUN_STR( _dictobj_ ) { \ 777 776 uint8_t tag; \ 778 777 CHECK_PARAMS( attr->length >= 3); \ … … 786 785 787 786 /* Convert an attribute to a scalar AVP and add inside the Tunneling AVP corresponding to the tag */ 788 #define CONV2DIAM_TUN_24B( _dictobj_ ) { 787 #define CONV2DIAM_TUN_24B( _dictobj_ ) { \ 789 788 uint8_t tag; \ 790 789 CHECK_PARAMS( attr->length == 6); \ … … 916 915 static int auth_diam_ans( struct rgwp_config * cs, struct session * session, struct msg ** diam_ans, struct radius_msg ** rad_fw, struct rgw_client * cli ) 917 916 { 918 struct msg_hdr *mhdr;919 917 struct avp *avp, *next, *avp_x, *avp_y, *asid, *aoh; 920 918 struct avp_hdr *ahdr, *sid, *oh; … … 931 929 CHECK_FCT( fd_sess_state_retrieve( cs->sess_hdl, session, &req_auth ) ); 932 930 } 933 934 CHECK_FCT( fd_msg_hdr( *diam_ans, &mhdr ) );935 931 936 932 /* … … 1466 1462 break; 1467 1463 1468 case DIAM_ATTR_TUNNEL_ASSIGN EMENT_ID:1469 CONV2RAD_TUN_STR(RADIUS_ATTR_TUNNEL_ASSIGN EMENT_ID, ahdr->avp_value->os.data, ahdr->avp_value->os.len, 1);1464 case DIAM_ATTR_TUNNEL_ASSIGNMENT_ID: 1465 CONV2RAD_TUN_STR(RADIUS_ATTR_TUNNEL_ASSIGNMENT_ID, ahdr->avp_value->os.data, ahdr->avp_value->os.len, 1); 1470 1466 break; 1471 1467
Note: See TracChangeset
for help on using the changeset viewer.