Changeset 1312 for pjproject


Ignore:
Timestamp:
May 29, 2007 12:42:13 AM (18 years ago)
Author:
bennylp
Message:

Ticket #308: Selective STUN authentication for STUN failure responses

File:
1 edited

Legend:

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

    r1290 r1312  
    380380 
    381381    switch (err_attr->err_code) { 
    382     case PJ_STUN_SC_UNAUTHORIZED: 
    383     case PJ_STUN_SC_MISSING_USERNAME: 
    384     case PJ_STUN_SC_MISSING_REALM: 
    385     case PJ_STUN_SC_UNKNOWN_USERNAME: 
    386     case PJ_STUN_SC_INTEGRITY_CHECK_FAILURE: 
     382    case PJ_STUN_SC_BAD_REQUEST:            /* 400 (Bad Request)            */ 
     383    case PJ_STUN_SC_UNAUTHORIZED:           /* 401 (Unauthorized)           */ 
     384    case PJ_STUN_SC_STALE_CREDENTIALS:      /* 430 (Stale Credential)       */ 
     385    case PJ_STUN_SC_MISSING_USERNAME:       /* 432 (Missing Username)       */ 
     386    case PJ_STUN_SC_MISSING_REALM:          /* 434 (Missing Realm)          */ 
     387    case PJ_STUN_SC_UNKNOWN_USERNAME:       /* 436 (Unknown Username)       */ 
     388    case PJ_STUN_SC_INTEGRITY_CHECK_FAILURE:/* 431 (Integrity Check Fail)   */ 
    387389        return PJ_FALSE; 
    388390    default: 
Note: See TracChangeset for help on using the changeset viewer.