Ignore:
Timestamp:
Sep 18, 2007 7:33:33 PM (12 years ago)
Author:
bennylp
Message:

Ticket #374: Update STUN specification from rfc3489bis-06 to rfc3489bis-10

File:
1 edited

Legend:

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

    r1435 r1439  
    490490        /* Verify username */ 
    491491        if (pj_strcmp(username, &ice->tx_uname) != 0) 
    492             return PJ_STATUS_FROM_STUN_CODE(PJ_STUN_SC_UNKNOWN_USERNAME); 
     492            return PJ_STATUS_FROM_STUN_CODE(PJ_STUN_SC_UNAUTHORIZED); 
    493493        *data_type = 0; 
    494494        *data = ice->tx_pass; 
     
    508508        pos = (const char*)pj_memchr(username->ptr, ':', username->slen); 
    509509        if (pos == NULL) 
    510             return PJ_STATUS_FROM_STUN_CODE(PJ_STUN_SC_UNKNOWN_USERNAME); 
     510            return PJ_STATUS_FROM_STUN_CODE(PJ_STUN_SC_UNAUTHORIZED); 
    511511 
    512512        ufrag.ptr = (char*)username->ptr; 
     
    514514 
    515515        if (pj_strcmp(&ufrag, &ice->rx_ufrag) != 0) 
    516             return PJ_STATUS_FROM_STUN_CODE(PJ_STUN_SC_UNKNOWN_USERNAME); 
     516            return PJ_STATUS_FROM_STUN_CODE(PJ_STUN_SC_UNAUTHORIZED); 
    517517 
    518518        *data_type = 0; 
Note: See TracChangeset for help on using the changeset viewer.