summaryrefslogtreecommitdiff
path: root/extensions/app_sip/multimediaauth.c
diff options
context:
space:
mode:
authorSukchan Lee <acetcom@gmail.com>2021-03-21 13:14:26 +0900
committerSukchan Lee <acetcom@gmail.com>2021-03-21 13:14:26 +0900
commit32d46d3f43485e171b1e28117d0db049dfc829b0 (patch)
treeb3506d614932f50730e023391600287676ac0c08 /extensions/app_sip/multimediaauth.c
parente07f3955e6d0f59f272fd21d3b21a5e2eac17426 (diff)
Release freeDiameter v1.5.0main
Diffstat (limited to 'extensions/app_sip/multimediaauth.c')
-rw-r--r--extensions/app_sip/multimediaauth.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/extensions/app_sip/multimediaauth.c b/extensions/app_sip/multimediaauth.c
index 12c1bcb..cb368da 100644
--- a/extensions/app_sip/multimediaauth.c
+++ b/extensions/app_sip/multimediaauth.c
@@ -50,7 +50,7 @@ int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * s
union avp_value val;
int found_cnonce=0;
struct avp * tempavp=NULL,*sipAuthentication=NULL,*sipAuthenticate=NULL;
- char * result;
+ char * result = NULL;
char password[51];
int idx=0, number_of_auth_items=0,i=0, ret=0;
//Flags and variables for Database
@@ -148,7 +148,7 @@ int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * s
if(not_found)
{
- TRACE_DEBUG(FULL,"The user %s doesn't exist!",username);
+ TRACE_DEBUG(FULL,"The user %s doesn't exist!", avphdr->avp_value->os.data);
result="DIAMETER_ERROR_USER_UNKNOWN";
free(username);
goto out;
@@ -320,7 +320,7 @@ int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * s
//CHECK_FCT(fd_msg_browse ( avp, MSG_BRW_WALK, &avp, NULL) );
- CHECK_FCT(fd_avp_search_avp (avp, sip_dict.Digest_CNonce, &a2 ));
+ CHECK_FCT(fd_msg_search_avp (avp, sip_dict.Digest_CNonce, &a2 ));
if(a2!=NULL)
found_cnonce=1;
@@ -457,7 +457,7 @@ int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * s
char * digest_username=NULL, *digest_uri=NULL, *digest_response=NULL, *digest_realm=NULL, *digest_nonce=NULL, *digest_method=NULL, *digest_qop=NULL, *digest_algorithm=NULL, *digest_cnonce=NULL, *digest_noncecount=NULL;
- CHECK_FCT(fd_avp_search_avp (avp, sip_dict.Digest_Nonce, &a2 ));
+ CHECK_FCT(fd_msg_search_avp (avp, sip_dict.Digest_Nonce, &a2 ));
if(a2!=NULL)
{
CHECK_FCT( fd_msg_avp_hdr( a2, &digestheader ) );
@@ -486,7 +486,7 @@ int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * s
}
}
- CHECK_FCT(fd_avp_search_avp (avp, sip_dict.Digest_Response, &a2 ));
+ CHECK_FCT(fd_msg_search_avp (avp, sip_dict.Digest_Response, &a2 ));
if(a2!=NULL)
{
CHECK_FCT( fd_msg_avp_hdr( a2, &digestheader ) );
@@ -500,7 +500,7 @@ int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * s
}
}
- CHECK_FCT(fd_avp_search_avp (avp, sip_dict.Digest_Realm, &a2 ));
+ CHECK_FCT(fd_msg_search_avp (avp, sip_dict.Digest_Realm, &a2 ));
if(a2!=NULL)
{
CHECK_FCT( fd_msg_avp_hdr( a2, &digestheader ) );
@@ -514,7 +514,7 @@ int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * s
}
}
- CHECK_FCT(fd_avp_search_avp (avp, sip_dict.Digest_Method, &a2 ));
+ CHECK_FCT(fd_msg_search_avp (avp, sip_dict.Digest_Method, &a2 ));
if(a2!=NULL)
{
CHECK_FCT( fd_msg_avp_hdr( a2, &digestheader ) );
@@ -530,7 +530,7 @@ int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * s
else
digest_method="";
- CHECK_FCT(fd_avp_search_avp (avp, sip_dict.Digest_URI, &a2 ));
+ CHECK_FCT(fd_msg_search_avp (avp, sip_dict.Digest_URI, &a2 ));
if(a2!=NULL)
{
CHECK_FCT( fd_msg_avp_hdr( a2, &digestheader ) );
@@ -544,7 +544,7 @@ int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * s
}
}
- CHECK_FCT(fd_avp_search_avp (avp, sip_dict.Digest_QOP, &a2 ));
+ CHECK_FCT(fd_msg_search_avp (avp, sip_dict.Digest_QOP, &a2 ));
if(a2!=NULL)
{
CHECK_FCT( fd_msg_avp_hdr( a2, &digestheader ) );
@@ -559,7 +559,7 @@ int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * s
}
else
digest_qop=NULL;
- CHECK_FCT(fd_avp_search_avp (avp, sip_dict.Digest_Algorithm, &a2 ));
+ CHECK_FCT(fd_msg_search_avp (avp, sip_dict.Digest_Algorithm, &a2 ));
if(a2!=NULL)
{
CHECK_FCT( fd_msg_avp_hdr( a2, &digestheader ) );
@@ -574,7 +574,7 @@ int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * s
}
else
digest_algorithm=NULL;
- CHECK_FCT(fd_avp_search_avp (avp, sip_dict.Digest_CNonce, &a2 ));
+ CHECK_FCT(fd_msg_search_avp (avp, sip_dict.Digest_CNonce, &a2 ));
if(a2!=NULL)
{
CHECK_FCT( fd_msg_avp_hdr( a2, &digestheader ) );
@@ -589,7 +589,7 @@ int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * s
}
else
digest_cnonce="";
- CHECK_FCT(fd_avp_search_avp (avp, sip_dict.Digest_Nonce_Count, &a2 ));
+ CHECK_FCT(fd_msg_search_avp (avp, sip_dict.Digest_Nonce_Count, &a2 ));
if(a2!=NULL)
{
CHECK_FCT( fd_msg_avp_hdr( a2, &digestheader ) );
@@ -604,7 +604,7 @@ int app_sip_MAR_cb( struct msg ** msg, struct avp * paramavp, struct session * s
}
else
digest_noncecount="";
- CHECK_FCT(fd_avp_search_avp (avp, sip_dict.Digest_Username, &a2 ));
+ CHECK_FCT(fd_msg_search_avp (avp, sip_dict.Digest_Username, &a2 ));
if(a2!=NULL)
{
CHECK_FCT( fd_msg_avp_hdr( a2, &digestheader ) );