Ignore:
Timestamp:
Feb 24, 2010 5:43:34 AM (12 years ago)
Author:
nanang
Message:

Ticket #1032:

  • Initial version of server domain name verification:
    • Updated SSL certificate info, especially identities info
    • Updated verification mechanism as in the specifications in ticket desc.
    • Added server domain name info in pjsip_tx_data.
    • Added alternative API for acquiring transport and creating transport of transport factory to include pjsip_tx_data param.
    • Server identity match criteria:
      • full host name match
      • wild card not accepted
      • if identity is URI, it must be SIP/SIPS URI
  • Initial version of transport state notifications:
    • Added new API to set transport state callback in PJSIP and PJSUA.
    • Defined states: connected/disconnected, accepted/rejected, verification errors.
  • Minors:
    • Updated SSL socket test: dump verification result, test of requiring client cert, and few minors.
    • Updated test cert to include subjectAltName extensions.
    • Added SSL certificate dump function.
    • Updated max number of socket async operations in Symbian sample apps (RSocketServ::Connect()) to 32 (was default 8).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_util.c

    r3069 r3106  
    779779            pjsip_hdr_clone(cancel_tdata->pool, req_tdata->saved_strict_route); 
    780780    } 
     781 
     782    /* Copy the destination host name from the original request */ 
     783    pj_strdup(cancel_tdata->pool, &cancel_tdata->dest_info.name, 
     784              &req_tdata->dest_info.name); 
    781785 
    782786    /* Finally copy the destination info from the original request */ 
     
    11351139 
    11361140        /* Acquire transport. */ 
    1137         status = pjsip_endpt_acquire_transport( stateless_data->endpt, 
     1141        status = pjsip_endpt_acquire_transport2(stateless_data->endpt, 
    11381142                                                cur_addr_type, 
    11391143                                                cur_addr, 
    11401144                                                cur_addr_len, 
    11411145                                                &tdata->tp_sel, 
     1146                                                tdata, 
    11421147                                                &stateless_data->cur_transport); 
    11431148        if (status != PJ_SUCCESS) { 
     
    13201325     */ 
    13211326    if (tdata->dest_info.addr.count == 0) { 
     1327        /* Copy the destination host name to TX data */ 
     1328        pj_strdup(tdata->pool, &tdata->dest_info.name, &dest_info.addr.host); 
     1329 
    13221330        pjsip_endpt_resolve( endpt, tdata->pool, &dest_info, stateless_data, 
    13231331                             &stateless_send_resolver_callback); 
     
    14661474        pjsip_tpselector_add_ref(sraw_data->sel); 
    14671475    } 
     1476 
     1477    /* Copy the destination host name to TX data */ 
     1478    pj_strdup(tdata->pool, &tdata->dest_info.name, &dest_info.addr.host); 
    14681479 
    14691480    /* Resolve destination host. 
     
    16231634 
    16241635    /* Acquire transport. */ 
    1625     status = pjsip_endpt_acquire_transport( send_state->endpt,  
     1636    status = pjsip_endpt_acquire_transport2(send_state->endpt,  
    16261637                                            addr->entry[0].type, 
    16271638                                            &addr->entry[0].addr, 
    16281639                                            addr->entry[0].addr_len, 
    16291640                                            &send_state->tdata->tp_sel, 
     1641                                            send_state->tdata, 
    16301642                                            &send_state->cur_transport); 
    16311643    if (status != PJ_SUCCESS) { 
     
    17031715        } 
    17041716    } else { 
     1717        /* Copy the destination host name to TX data */ 
     1718        pj_strdup(tdata->pool, &tdata->dest_info.name,  
     1719                  &res_addr->dst_host.addr.host); 
     1720 
    17051721        pjsip_endpt_resolve(endpt, tdata->pool, &res_addr->dst_host,  
    17061722                            send_state, &send_response_resolver_cb); 
Note: See TracChangeset for help on using the changeset viewer.