Ignore:
Timestamp:
Mar 9, 2007 11:25:11 PM (14 years ago)
Author:
bennylp
Message:

Today's work on TURN server. All looks to be implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/stun_auth.c

    r1037 r1052  
    157157    if (amsgi == NULL) { 
    158158        if (p_response) { 
    159             create_challenge(pool, msg, PJ_STUN_STATUS_UNAUTHORIZED, NULL, 
     159            create_challenge(pool, msg, PJ_STUN_SC_UNAUTHORIZED, NULL, 
    160160                             &realm, &nonce, p_response); 
    161161        } 
     
    168168    if (auser == NULL) { 
    169169        if (p_response) { 
    170             create_challenge(pool, msg, PJ_STUN_STATUS_MISSING_USERNAME, NULL, 
     170            create_challenge(pool, msg, PJ_STUN_SC_MISSING_USERNAME, NULL, 
    171171                             &realm, &nonce, p_response); 
    172172        } 
     
    199199        /* Username mismatch */ 
    200200        if (p_response) { 
    201             create_challenge(pool, msg, PJ_STUN_STATUS_UNKNOWN_USERNAME, NULL, 
     201            create_challenge(pool, msg, PJ_STUN_SC_UNKNOWN_USERNAME, NULL, 
    202202                             &realm, &nonce, p_response); 
    203203        } 
     
    214214        /* Long term credential is required and REALM is not present */ 
    215215        if (p_response) { 
    216             create_challenge(pool, msg, PJ_STUN_STATUS_MISSING_REALM, NULL, 
     216            create_challenge(pool, msg, PJ_STUN_SC_MISSING_REALM, NULL, 
    217217                             &realm, &nonce, p_response); 
    218218        } 
     
    225225        if (anonce == NULL) { 
    226226            if (p_response) { 
    227                 create_challenge(pool, msg, PJ_STUN_STATUS_MISSING_NONCE,  
     227                create_challenge(pool, msg, PJ_STUN_SC_MISSING_NONCE,  
    228228                                 NULL, &realm, &nonce, p_response); 
    229229            } 
     
    235235            /* REALM doesn't match */ 
    236236            if (p_response) { 
    237                 create_challenge(pool, msg, PJ_STUN_STATUS_MISSING_REALM,  
     237                create_challenge(pool, msg, PJ_STUN_SC_MISSING_REALM,  
    238238                                 NULL, &realm, &nonce, p_response); 
    239239            } 
     
    258258        if (nonce.slen != 0) { 
    259259            if (p_response) { 
    260                 create_challenge(pool, msg, PJ_STUN_STATUS_MISSING_NONCE,  
     260                create_challenge(pool, msg, PJ_STUN_SC_MISSING_NONCE,  
    261261                                 NULL, &realm, &nonce, p_response); 
    262262            } 
     
    284284        if (!ok) { 
    285285            if (p_response) { 
    286                 create_challenge(pool, msg, PJ_STUN_STATUS_STALE_NONCE,  
     286                create_challenge(pool, msg, PJ_STUN_SC_STALE_NONCE,  
    287287                                 NULL, &realm, &nonce, p_response); 
    288288            } 
     
    329329        /* HMAC value mismatch */ 
    330330        if (p_response) { 
    331             create_challenge(pool, msg, PJ_STUN_STATUS_INTEGRITY_CHECK_FAILURE, 
     331            create_challenge(pool, msg, PJ_STUN_SC_INTEGRITY_CHECK_FAILURE, 
    332332                             NULL, &realm, &nonce, p_response); 
    333333        } 
Note: See TracChangeset for help on using the changeset viewer.