Ignore:
Timestamp:
Dec 8, 2006 9:58:31 PM (17 years ago)
Author:
bennylp
Message:

Initial implementation of TLS transport for ticket #3 (still not working at all)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r839 r849  
    10451045        pjsua_var.tpdata[id].data.factory = tcp; 
    10461046 
     1047#if defined(PJSIP_HAS_TLS_TRANSPORT) && PJSIP_HAS_TLS_TRANSPORT!=0 
     1048    } else if (type == PJSIP_TRANSPORT_TLS) { 
     1049        /* 
     1050         * Create TLS transport. 
     1051         */ 
     1052        pjsip_tpfactory *tls; 
     1053 
     1054        status = pjsip_tls_transport_start(pjsua_var.endpt,  
     1055                                           &cfg->tls_key_file, 
     1056                                           &cfg->tls_password,  
     1057                                           &cfg->tls_ca_file, 
     1058                                           NULL, NULL, 1, &tls); 
     1059        if (status != PJ_SUCCESS) { 
     1060            pjsua_perror(THIS_FILE, "Error creating SIP TLS listener",  
     1061                         status); 
     1062            goto on_return; 
     1063        } 
     1064 
     1065        /* Save the transport */ 
     1066        pjsua_var.tpdata[id].type = type; 
     1067        pjsua_var.tpdata[id].local_name = tls->addr_name; 
     1068        pjsua_var.tpdata[id].data.factory = tls; 
     1069#endif 
     1070 
    10471071    } else { 
    10481072        status = PJSIP_EUNSUPTRANSPORT; 
Note: See TracChangeset for help on using the changeset viewer.