Changeset 2094 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Jul 1, 2008 3:31:59 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r2074 r2094 207 207 puts (" --tls-verify-client Verify client's certificate (default=no)"); 208 208 puts (" --tls-neg-timeout Specify TLS negotiation timeout (default=no)"); 209 puts (" --tls-srv-name Specify TLS server name for multi-hosting server (optional)"); 209 210 210 211 puts (""); … … 461 462 OPT_USE_TLS, OPT_TLS_CA_FILE, OPT_TLS_CERT_FILE, OPT_TLS_PRIV_FILE, 462 463 OPT_TLS_PASSWORD, OPT_TLS_VERIFY_SERVER, OPT_TLS_VERIFY_CLIENT, 463 OPT_TLS_NEG_TIMEOUT, 464 OPT_TLS_NEG_TIMEOUT, OPT_TLS_SRV_NAME, 464 465 OPT_CAPTURE_DEV, OPT_PLAYBACK_DEV, 465 466 OPT_CAPTURE_LAT, OPT_PLAYBACK_LAT, OPT_NO_TONES, … … 552 553 { "tls-verify-client", 0, 0, OPT_TLS_VERIFY_CLIENT}, 553 554 { "tls-neg-timeout", 1, 0, OPT_TLS_NEG_TIMEOUT}, 555 { "tls-srv-name", 1, 0, OPT_TLS_SRV_NAME}, 554 556 { "capture-dev", 1, 0, OPT_CAPTURE_DEV}, 555 557 { "playback-dev", 1, 0, OPT_PLAYBACK_DEV}, … … 1137 1139 break; 1138 1140 1141 case OPT_TLS_SRV_NAME: 1142 cfg->udp_cfg.tls_setting.server_name = pj_str(pj_optarg); 1143 break; 1144 1139 1145 case OPT_CAPTURE_DEV: 1140 1146 cfg->capture_dev = atoi(pj_optarg); … … 1469 1475 (int)config->udp_cfg.tls_setting.password.slen, 1470 1476 config->udp_cfg.tls_setting.password.ptr); 1477 pj_strcat2(&cfg, line); 1478 } 1479 1480 if (config->udp_cfg.tls_setting.server_name.slen) { 1481 pj_ansi_sprintf(line, "--tls-srv-name %.*s\n", 1482 (int)config->udp_cfg.tls_setting.server_name.slen, 1483 config->udp_cfg.tls_setting.server_name.ptr); 1471 1484 pj_strcat2(&cfg, line); 1472 1485 }
Note: See TracChangeset
for help on using the changeset viewer.