Changeset 368:a1f26147ec61 in freeDiameter for extensions/app_sip/multimediaauth.c
- Timestamp:
- Jul 3, 2010, 12:40:00 AM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/app_sip/multimediaauth.c
r364 r368 37 37 38 38 39 int diamsip_MAR_cb( struct msg ** msg, struct avp * avp, struct session * sess, enum disp_action * act)39 int diamsip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * sess, enum disp_action * act) 40 40 { 41 41 struct msg *ans, *qry; 42 struct avp *a 2, *authdataitem;42 struct avp *avp, *a2, *authdataitem; 43 43 struct msg_hdr * header = NULL; 44 44 struct avp_hdr * avphdr=NULL, *avpheader=NULL, *avpheader_auth=NULL,*digestheader=NULL; … … 48 48 char * result; 49 49 char password[51]; 50 int idx=0, idx2=0, number_of_auth_items=0,i=0; ;50 int idx=0, idx2=0, number_of_auth_items=0,i=0; 51 51 //Flags and variables for Database 52 52 int sipurinotstored=0, authenticationpending=0, querylen=0, usernamelen=0; … … 82 82 { 83 83 CHECK_FCT( fd_msg_avp_new ( sip_dict.Auth_Application_Id, 0, &avp ) ); 84 ASSERT(avp); 84 85 val.i32 = header->msg_appl; 85 86 CHECK_FCT( fd_msg_avp_setvalue ( avp, &val ) ); … … 670 671 DigestCalcResponseAuth(HA1, digest_nonce, digest_noncecount, digest_cnonce, digest_qop,digest_method, digest_uri, HA2, responseauth); 671 672 672 673 TRACE_DEBUG(FULL,"Response calculated by Diameter server:%s",response); 674 TRACE_DEBUG(FULL,"Response calculated by UA:%s",digest_response); 673 675 if(strcmp(digest_qop,"auth-int")==0) 674 676 {
Note: See TracChangeset
for help on using the changeset viewer.