Changeset 5780 for pjproject


Ignore:
Timestamp:
Apr 12, 2018 12:48:20 AM (7 years ago)
Author:
riza
Message:

Re #2096: When checking hash algo, don't use case sensitive comparision.
Thanks to Christian Scheid for the report.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/transport_srtp_dtls.c

    r5755 r5780  
    555555 
    556556    /* Check hash algo, currently we only support SHA-256 & SHA-1 */ 
    557     if (!pj_strncmp2(&ds->rem_fingerprint, "SHA-256 ", 8)) 
     557    if (!pj_strnicmp2(&ds->rem_fingerprint, "SHA-256 ", 8)) 
    558558        is_sha256 = PJ_TRUE; 
    559     else if (!pj_strncmp2(&ds->rem_fingerprint, "SHA-1 ", 6)) 
     559    else if (!pj_strnicmp2(&ds->rem_fingerprint, "SHA-1 ", 6)) 
    560560        is_sha256 = PJ_FALSE; 
    561561    else { 
Note: See TracChangeset for help on using the changeset viewer.