Ignore:
Timestamp:
Sep 24, 2007 7:46:41 PM (15 years ago)
Author:
bennylp
Message:

Ticket #382: Updated ICE from draft-ietf-mmusic-ice-14 to ice-18 specification, and also done some other tweaks as well

File:
1 edited

Legend:

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

    r1439 r1450  
    215215    /* Create STUN session for this candidate */ 
    216216    status = pj_stun_session_create(&ice->stun_cfg, NULL,  
    217                                     &sess_cb, PJ_FALSE, 
     217                                    &sess_cb, PJ_TRUE, 
    218218                                    &comp->stun_sess); 
    219219    if (status != PJ_SUCCESS) 
     
    297297 
    298298    if (local_ufrag == NULL) { 
    299         ice->rx_ufrag.ptr = (char*) pj_pool_alloc(ice->pool, 16); 
    300         pj_create_random_string(ice->rx_ufrag.ptr, 16); 
    301         ice->rx_ufrag.slen = 16; 
     299        ice->rx_ufrag.ptr = (char*) pj_pool_alloc(ice->pool, PJ_ICE_UFRAG_LEN); 
     300        pj_create_random_string(ice->rx_ufrag.ptr, PJ_ICE_UFRAG_LEN); 
     301        ice->rx_ufrag.slen = PJ_ICE_UFRAG_LEN; 
    302302    } else { 
    303303        pj_strdup(ice->pool, &ice->rx_ufrag, local_ufrag); 
     
    305305 
    306306    if (local_passwd == NULL) { 
    307         ice->rx_pass.ptr = (char*) pj_pool_alloc(ice->pool, 16); 
    308         pj_create_random_string(ice->rx_pass.ptr, 16); 
    309         ice->rx_pass.slen = 16; 
     307        ice->rx_pass.ptr = (char*) pj_pool_alloc(ice->pool, PJ_ICE_UFRAG_LEN); 
     308        pj_create_random_string(ice->rx_pass.ptr, PJ_ICE_UFRAG_LEN); 
     309        ice->rx_pass.slen = PJ_ICE_UFRAG_LEN; 
    310310    } else { 
    311311        pj_strdup(ice->pool, &ice->rx_pass, local_passwd); 
Note: See TracChangeset for help on using the changeset viewer.