Ignore:
Timestamp:
Jan 17, 2012 7:02:14 AM (13 years ago)
Author:
nanang
Message:

Close #1448: removed server name setting from TLS transport config.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip-apps/src/pjsua/pjsua_app.c

    r3942 r3943  
    535535           OPT_USE_TLS, OPT_TLS_CA_FILE, OPT_TLS_CERT_FILE, OPT_TLS_PRIV_FILE, 
    536536           OPT_TLS_PASSWORD, OPT_TLS_VERIFY_SERVER, OPT_TLS_VERIFY_CLIENT, 
    537            OPT_TLS_NEG_TIMEOUT, OPT_TLS_SRV_NAME, OPT_TLS_CIPHER, 
     537           OPT_TLS_NEG_TIMEOUT, OPT_TLS_CIPHER, 
    538538           OPT_CAPTURE_DEV, OPT_PLAYBACK_DEV, 
    539539           OPT_CAPTURE_LAT, OPT_PLAYBACK_LAT, OPT_NO_TONES, OPT_JB_MAX_SIZE, 
     
    643643        { "tls-verify-client", 0, 0, OPT_TLS_VERIFY_CLIENT}, 
    644644        { "tls-neg-timeout", 1, 0, OPT_TLS_NEG_TIMEOUT}, 
    645         { "tls-srv-name", 1, 0, OPT_TLS_SRV_NAME}, 
    646645        { "tls-cipher", 1, 0, OPT_TLS_CIPHER}, 
    647646#endif 
     
    13461345            break; 
    13471346 
    1348         case OPT_TLS_SRV_NAME: 
    1349             cfg->udp_cfg.tls_setting.server_name = pj_str(pj_optarg); 
    1350             break; 
    13511347        case OPT_TLS_CIPHER: 
    13521348            { 
     
    18271823                        (int)config->udp_cfg.tls_setting.password.slen,  
    18281824                        config->udp_cfg.tls_setting.password.ptr); 
    1829         pj_strcat2(&cfg, line); 
    1830     } 
    1831  
    1832     if (config->udp_cfg.tls_setting.server_name.slen) { 
    1833         pj_ansi_sprintf(line, "--tls-srv-name %.*s\n", 
    1834                         (int)config->udp_cfg.tls_setting.server_name.slen,  
    1835                         config->udp_cfg.tls_setting.server_name.ptr); 
    18361825        pj_strcat2(&cfg, line); 
    18371826    } 
Note: See TracChangeset for help on using the changeset viewer.