Changeset 4537 for pjproject/trunk/pjnath/src/pjnath-test/stun.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath-test/stun.c
r3553 r4537 669 669 /* Print our raw message */ 670 670 PJ_LOG(4,(THIS_FILE, "Message PDU:\n%s", 671 print_binary((pj_uint8_t*)buf, len)));671 print_binary((pj_uint8_t*)buf, (unsigned)len))); 672 672 673 673 /* Print our message */ … … 682 682 } 683 683 684 pos = cmp_buf(buf, (const pj_uint8_t*)v->pdu, len);684 pos = cmp_buf(buf, (const pj_uint8_t*)v->pdu, (unsigned)len); 685 685 if (pos != (unsigned)-1) { 686 686 PJ_LOG(1,(THIS_FILE, " Message mismatch at byte %d", pos)); … … 702 702 cred.data.static_cred.nonce = pj_str(v->nonce); 703 703 704 status = pj_stun_authenticate_request(buf, len, msg,704 status = pj_stun_authenticate_request(buf, (unsigned)len, msg, 705 705 &cred, pool, NULL, NULL); 706 706 if (status != PJ_SUCCESS) { … … 716 716 } else if (PJ_STUN_IS_RESPONSE(msg->hdr.type)) { 717 717 pj_status_t status; 718 status = pj_stun_authenticate_response(buf, len, msg, &key); 718 status = pj_stun_authenticate_response(buf, (unsigned)len, 719 msg, &key); 719 720 if (status != PJ_SUCCESS) { 720 721 char errmsg[PJ_ERR_MSG_SIZE]; … … 943 944 944 945 PJ_LOG(3,(THIS_FILE, " authenticating")); 945 rc += pj_stun_authenticate_request(packet, len, msg1, &cred, pool, NULL, NULL); 946 rc += pj_stun_authenticate_request(packet, (unsigned)len, msg1, &cred, pool, 947 NULL, NULL); 946 948 947 949 PJ_LOG(3,(THIS_FILE, " clone"));
Note: See TracChangeset
for help on using the changeset viewer.