Navigation



Ignore:
Timestamp:
Jul 28, 2010, 3:59:39 PM (14 years ago)
Author:
Souheil Ben Ayed <souheil@tera.ics.keio.ac.jp>
Branch:
default
Phase:
public
Message:

Corrected compilation warnings on app_diameap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_diameap/diameap_server.h

    r425 r438  
    4040#define DIAMEAP_SERVER_H_
    4141
    42 /* handler for DiamEAP server callback */
    43 static struct disp_hdl * handle;
    44 
    45 /* session handler for DiamEAP sessions state machine */
    46 static struct session_handler * diameap_server_reg = NULL;
    4742
    4843/* session data structure to store */
     
    120115int diameap_stop_server(void);
    121116
    122 /* Initialize DiamEAP state machine variables */
     117/* Initialize DiamEAP state machine variables
    123118static int diameap_initialize_diameap_sm(
    124119                struct diameap_state_machine * diameap_sm,
    125120                struct diameap_sess_data_sm * diameap_sess_data);
    126121
    127 /* Initialize interface between the diameap and the eap states machines */
     122 Initialize interface between the diameap and the eap states machines
    128123static int diameap_initialize_diameap_eap_interface(
    129124                struct diameap_eap_interface * eap_i);
    130125
    131 /* Parse received message */
     126 Parse received message
    132127static int diameap_parse_avps(struct diameap_state_machine * diameap_sm,
    133128                struct msg * req, struct diameap_eap_interface * eap_i);
    134129
    135 /* Add an avp to Failed_AVP AVP for answer message */
     130 Add an avp to Failed_AVP AVP for answer message
    136131static int diameap_failed_avp(struct diameap_state_machine * diameap_sm,
    137132                struct avp * invalidavp);
    138133
    139 /* Parse EAP Response */
     134 Parse EAP Response
    140135static int diameap_parse_eap_resp(struct eap_state_machine * eap_sm,
    141136                struct eap_packet eappacket);
    142137
    143 /* */
     138
    144139static int diameap_eappacket_new(struct eap_packet * eapPacket,
    145140                struct avp_hdr * avpdata);
    146141
    147 /* */
     142
    148143static int diameap_sess_data_new(
    149144                struct diameap_sess_data_sm *diameap_sess_data,
    150145                struct diameap_state_machine *diameap_sm);
    151146
    152 /* */
     147
    153148static int diameap_unlink_attributes_lists(
    154149                struct diameap_state_machine * diameap_sm);
    155150
    156 /**/
     151
    157152static int diameap_answer_avp_attributes(
    158153                struct diameap_state_machine * diameap_sm);
    159154
    160 /**/
     155
    161156static int diameap_answer_authorization_attributes(
    162157                struct diameap_state_machine * diameap_sm);
     
    166161static void free_ans_attrib(struct avp_attribute * ans_attrib);
    167162
    168 /* */
     163
    169164static int diameap_get_avp_attribute(struct fd_list * avp_attributes,
    170165                char * attribute, struct avp_attribute ** avp_attrib, int unlink,
    171166                int *ret);
    172167
    173 /* */
     168
    174169static int diameap_get_auth_attribute(struct fd_list * auth_attributes,
    175170                char * attribute, struct auth_attribute ** auth_attrib, int unlink,
    176171                int *ret);
    177172
    178 /**/
     173
    179174static int diameap_get_ans_attribute(struct fd_list * ans_attributes,
    180175                char * attribute, struct avp_attribute ** ans_attrib, int unlink,
    181176                int *ret);
    182177
    183 /* */
     178
    184179static int diameap_policy_decision(struct diameap_state_machine * diameap_sm,
    185180                struct diameap_eap_interface eap_i);
    186181
    187 /* */
     182
    188183static int diameap_add_avps(struct diameap_state_machine * diameap_sm,
    189184                struct msg * ans, struct msg * req);
    190185
    191 /* */
     186
    192187static int diameap_add_user_sessions_avps(
    193188                struct diameap_state_machine * diameap_sm, struct msg * ans);
    194189
    195 /* */
     190
    196191static int diameap_add_result_code(struct diameap_state_machine * diameap_sm,
    197192                struct msg * ans, struct session * sess);
    198193
    199 /* */
     194
    200195static int diameap_add_eap_payload(struct diameap_state_machine * diameap_sm,
    201196                struct msg * ans, struct diameap_eap_interface eap_i);
    202197
    203 /* */
     198
    204199static int diameap_add_authorization_avps(struct diameap_state_machine * diameap_sm,
    205200                struct msg * ans);
    206201
    207 /* */
     202
    208203static int diameap_send(struct msg ** rmsg);
    209204
    210 /* */
     205
    211206static int diameap_add_eap_success_avps(
    212207                struct diameap_state_machine * diameap_sm, struct msg * ans,
    213208                struct diameap_eap_interface eap_i);
    214209
    215 /* */
     210
    216211void diameap_cli_sess_cleanup(void * arg, char * sid);
    217212
    218 /* */
     213
    219214static void diameap_free(struct diameap_state_machine * diameap_sm);
    220215
    221 /* */
     216
    222217static void diameap_sess_data_free(
    223218                struct diameap_sess_data_sm * diameap_sess_data);
    224219
    225 /* */
     220
    226221static int diameap_add_accounting_eap_auth_method(
    227222                struct diameap_state_machine * diameap_sm, struct msg * ans);
    228223
    229 /* */
    230 static int diameap_add_eap_reissued_payload(struct msg * ans,struct msg * req);
     224
     225static int diameap_add_eap_reissued_payload(struct msg * ans,struct msg * req);*/
    231226#endif /* DIAMEAP_SERVER_H_ */
Note: See TracChangeset for help on using the changeset viewer.