Changeset 430:f77fc3a97287 in freeDiameter for extensions/test_sip/userauthorization.c
- Timestamp:
- Jul 27, 2010, 2:56:21 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/test_sip/userauthorization.c
r427 r430 46 46 47 47 //Fake values START 48 unsignedchar *sip_aor="sip:aw-lappy@tera.ics.keio.ac.jp";48 char *sip_aor="sip:aw-lappy@tera.ics.keio.ac.jp"; 49 49 size_t aor_len=strlen(sip_aor); 50 unsignedchar *destination_realm="tera.ics.keio.ac.jp";50 char *destination_realm="tera.ics.keio.ac.jp"; 51 51 size_t destination_realmlen=strlen(destination_realm); 52 unsignedchar *destination_host="suika.tera.ics.keio.ac.jp";52 char *destination_host="suika.tera.ics.keio.ac.jp"; 53 53 size_t destination_hostlen=strlen(destination_host); 54 unsignedchar *username="aw-lappy";54 char *username="aw-lappy"; 55 55 size_t usernamelen=strlen(username); 56 unsignedchar *visitednetwork="Pink";56 char *visitednetwork="Pink"; 57 57 size_t visitednetworklen=strlen(visitednetwork); 58 58 int registrationtype = 2; … … 99 99 { 100 100 CHECK_FCT( fd_msg_avp_new ( sip_dict.Destination_Host, 0, &avp ) ); 101 value.os.data= destination_host;101 value.os.data=(unsigned char *)destination_host; 102 102 value.os.len=destination_hostlen; 103 103 CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) ); … … 107 107 { 108 108 CHECK_FCT( fd_msg_avp_new ( sip_dict.Destination_Realm, 0, &avp ) ); 109 value.os.data= destination_realm;109 value.os.data=(unsigned char *)destination_realm; 110 110 value.os.len=destination_realmlen; 111 111 CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) ); … … 117 117 118 118 CHECK_FCT( fd_msg_avp_new ( sip_dict.SIP_AOR, 0, &avp ) ); 119 value.os.data= sip_aor;119 value.os.data=(unsigned char *)sip_aor; 120 120 value.os.len=aor_len; 121 121 CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) ); … … 127 127 128 128 CHECK_FCT( fd_msg_avp_new ( sip_dict.User_Name, 0, &avp ) ); 129 value.os.data= username;129 value.os.data=(unsigned char *)username; 130 130 value.os.len=usernamelen; 131 131 CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) ); … … 137 137 138 138 CHECK_FCT( fd_msg_avp_new ( sip_dict.SIP_Visited_Network_Id, 0, &avp ) ); 139 value.os.data= visitednetwork;139 value.os.data=(unsigned char *)visitednetwork; 140 140 value.os.len=visitednetworklen; 141 141 CHECK_FCT( fd_msg_avp_setvalue( avp, &value ) );
Note: See TracChangeset
for help on using the changeset viewer.