Changeset 4910
- Timestamp:
- Sep 1, 2014 6:32:50 AM (10 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjlib-util-test/encryption.c
r4537 r4910 54 54 for (i = 0; i < PJ_SHA1_DIGEST_SIZE/4; i++) { 55 55 for (j = 0; j < 4; j++) { 56 sprintf(c,"%02X", digest[i*4+j] );56 sprintf(c,"%02X", digest[i*4+j] & 0xFF); 57 57 c += 2; 58 58 } -
pjproject/trunk/pjlib/src/pj/ssl_sock_dump.c
r3553 r4910 64 64 for (i = 0; i < sizeof(ci->serial_no) && !ci->serial_no[i]; ++i); 65 65 for (; i < sizeof(ci->serial_no); ++i) { 66 len = pj_ansi_snprintf(p, end-p, "%02X ", ci->serial_no[i] );66 len = pj_ansi_snprintf(p, end-p, "%02X ", ci->serial_no[i] & 0xFF); 67 67 CHECK_BUF_LEN(); 68 68 } -
pjproject/trunk/pjnath/src/pjnath-test/stun.c
r4537 r4910 926 926 puts(""); 927 927 printf("{ "); 928 for (i=0; i<len; ++i) printf("0x%02x, ", packet[i] );928 for (i=0; i<len; ++i) printf("0x%02x, ", packet[i] & 0xFF); 929 929 puts(" }"); 930 930 }
Note: See TracChangeset
for help on using the changeset viewer.