Navigation


Changeset 1088:1d1a20a0779d in freeDiameter for extensions/app_radgw/rgwx_sip.c


Ignore:
Timestamp:
May 5, 2013, 4:25:27 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Second part of changeset 1083, now the code compiles again. Still missing some functions implementation, though

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_radgw/rgwx_sip.c

    r1027 r1088  
    134134               
    135135        } dict; /* cache of the dictionary objects we use */
    136         struct session_handler * sess_hdl; /* We store RADIUS request authenticator information in the session */
    137136        char * confstr;
    138137        //Chained list of nonce
     
    258257        memset(new, 0, sizeof(struct rgwp_config));
    259258       
    260         CHECK_FCT( fd_sess_handler_create( &new->sess_hdl, free, NULL ) );
    261259        new->confstr = conffile;
    262260       
     
    312310        CHECK_PARAMS_DO( state, return );
    313311       
    314         CHECK_FCT_DO( fd_sess_handler_destroy( &state->sess_hdl, NULL ),  );
    315        
    316312        nonce_deletelistnonce(state);
    317313        CHECK_POSIX_DO(pthread_mutex_destroy(&state->nonce_mutex), /*continue*/);
     
    320316        return;
    321317}
    322 
    323318
    324319/* Handle an incoming RADIUS request */
     
    717712        //fd_msg_dump_walk(1,*diam_fw);
    718713       
    719         /* Store the request identifier in the session */
    720         {
    721                 unsigned char * req_sip;
    722                 CHECK_MALLOC(req_sip = malloc(16));
    723                 memcpy(req_sip, &rad_req->hdr->authenticator[0], 16);
    724                
    725                 CHECK_FCT( fd_sess_state_store( cs->sess_hdl, sess, &req_sip ) );
    726         }
    727        
    728714       
    729715        return 0;
     
    857843        }
    858844       
    859         CHECK_FCT( fd_sess_state_retrieve( cs->sess_hdl, sess, &req_sip ) );
    860         free(req_sip);
    861        
    862845        return 0;
    863846}
Note: See TracChangeset for help on using the changeset viewer.