Ignore:
Timestamp:
Jun 19, 2013 6:47:43 AM (9 years ago)
Author:
riza
Message:

Re #1680: Add initial support for Win64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/stun_auth.c

    r3553 r4537  
    9999    s = *username; 
    100100    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); 
    102102 
    103103    /* Add single colon */ 
     
    107107    s = *realm; 
    108108    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); 
    110110 
    111111#undef REMOVE_QUOTE 
     
    115115 
    116116    /* 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); 
    118118 
    119119    /* Done */ 
     
    444444    /* Now calculate HMAC of the message. */ 
    445445    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); 
    447447 
    448448#if PJ_STUN_OLD_STYLE_MI_FINGERPRINT 
     
    588588 
    589589    /* 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); 
    591591 
    592592#if PJ_STUN_OLD_STYLE_MI_FINGERPRINT 
Note: See TracChangeset for help on using the changeset viewer.