Changeset 4537 for pjproject/trunk/pjnath/src/pjnath/stun_auth.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/stun_auth.c
r3553 r4537 99 99 s = *username; 100 100 REMOVE_QUOTE(s); 101 pj_md5_update(&ctx, (pj_uint8_t*)s.ptr, s.slen);101 pj_md5_update(&ctx, (pj_uint8_t*)s.ptr, (unsigned)s.slen); 102 102 103 103 /* Add single colon */ … … 107 107 s = *realm; 108 108 REMOVE_QUOTE(s); 109 pj_md5_update(&ctx, (pj_uint8_t*)s.ptr, s.slen);109 pj_md5_update(&ctx, (pj_uint8_t*)s.ptr, (unsigned)s.slen); 110 110 111 111 #undef REMOVE_QUOTE … … 115 115 116 116 /* Add password */ 117 pj_md5_update(&ctx, (pj_uint8_t*)passwd->ptr, passwd->slen);117 pj_md5_update(&ctx, (pj_uint8_t*)passwd->ptr, (unsigned)passwd->slen); 118 118 119 119 /* Done */ … … 444 444 /* Now calculate HMAC of the message. */ 445 445 pj_hmac_sha1_init(&ctx, (pj_uint8_t*)p_info->auth_key.ptr, 446 p_info->auth_key.slen);446 (unsigned)p_info->auth_key.slen); 447 447 448 448 #if PJ_STUN_OLD_STYLE_MI_FINGERPRINT … … 588 588 589 589 /* Now calculate HMAC of the message. */ 590 pj_hmac_sha1_init(&ctx, (pj_uint8_t*)key->ptr, key->slen);590 pj_hmac_sha1_init(&ctx, (pj_uint8_t*)key->ptr, (unsigned)key->slen); 591 591 592 592 #if PJ_STUN_OLD_STYLE_MI_FINGERPRINT
Note: See TracChangeset
for help on using the changeset viewer.