Lines Matching refs:opt

569 } opt;  variable
599 if( opt.debug_level > 2 ) in eap_tls_key_derivation()
658 if( opt.nss_keylog_file != NULL ) in nss_keylog_export()
662 if( ( f = fopen( opt.nss_keylog_file, "a" ) ) == NULL ) in nss_keylog_export()
716 if( opt.debug_level > 2 ) in dtls_srtp_key_derivation()
899 if( opt.debug_level > 1 ) in ssl_check_record()
904 if( opt.debug_level > 1 ) in ssl_check_record()
909 if( opt.debug_level > 1 ) in ssl_check_record()
933 if( opt.nbio == 2 ) in recv_cb()
941 if( opt.transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM ) in recv_cb()
967 if( opt.transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM ) in recv_timeout_cb()
985 if( opt.nbio == 2 ) in send_cb()
1007 if( opt.debug_level == 0 ) in my_verify()
1101 if( opt.transport != MBEDTLS_SSL_TRANSPORT_DATAGRAM ) in report_cid_usage()
1125 if( opt.cid_enabled == MBEDTLS_SSL_CID_ENABLED ) in report_cid_usage()
1323 opt.server_name = DFL_SERVER_NAME; in main()
1324 opt.server_addr = DFL_SERVER_ADDR; in main()
1325 opt.server_port = DFL_SERVER_PORT; in main()
1326 opt.debug_level = DFL_DEBUG_LEVEL; in main()
1327 opt.cid_enabled = DFL_CID_ENABLED; in main()
1328 opt.cid_val = DFL_CID_VALUE; in main()
1329 opt.cid_enabled_renego = DFL_CID_ENABLED_RENEGO; in main()
1330 opt.cid_val_renego = DFL_CID_VALUE_RENEGO; in main()
1331 opt.nbio = DFL_NBIO; in main()
1332 opt.event = DFL_EVENT; in main()
1333 opt.context_crt_cb = DFL_CONTEXT_CRT_CB; in main()
1334 opt.read_timeout = DFL_READ_TIMEOUT; in main()
1335 opt.max_resend = DFL_MAX_RESEND; in main()
1336 opt.request_page = DFL_REQUEST_PAGE; in main()
1337 opt.request_size = DFL_REQUEST_SIZE; in main()
1338 opt.ca_file = DFL_CA_FILE; in main()
1339 opt.ca_path = DFL_CA_PATH; in main()
1340 opt.crt_file = DFL_CRT_FILE; in main()
1341 opt.key_file = DFL_KEY_FILE; in main()
1342 opt.key_opaque = DFL_KEY_OPAQUE; in main()
1343 opt.key_pwd = DFL_KEY_PWD; in main()
1344 opt.psk = DFL_PSK; in main()
1346 opt.psk_opaque = DFL_PSK_OPAQUE; in main()
1349 opt.ca_callback = DFL_CA_CALLBACK; in main()
1351 opt.psk_identity = DFL_PSK_IDENTITY; in main()
1352 opt.ecjpake_pw = DFL_ECJPAKE_PW; in main()
1353 opt.ec_max_ops = DFL_EC_MAX_OPS; in main()
1354 opt.force_ciphersuite[0]= DFL_FORCE_CIPHER; in main()
1355 opt.renegotiation = DFL_RENEGOTIATION; in main()
1356 opt.allow_legacy = DFL_ALLOW_LEGACY; in main()
1357 opt.renegotiate = DFL_RENEGOTIATE; in main()
1358 opt.exchanges = DFL_EXCHANGES; in main()
1359 opt.min_version = DFL_MIN_VERSION; in main()
1360 opt.max_version = DFL_MAX_VERSION; in main()
1361 opt.arc4 = DFL_ARC4; in main()
1362 opt.allow_sha1 = DFL_SHA1; in main()
1363 opt.auth_mode = DFL_AUTH_MODE; in main()
1364 opt.mfl_code = DFL_MFL_CODE; in main()
1365 opt.trunc_hmac = DFL_TRUNC_HMAC; in main()
1366 opt.recsplit = DFL_RECSPLIT; in main()
1367 opt.dhmlen = DFL_DHMLEN; in main()
1368 opt.reconnect = DFL_RECONNECT; in main()
1369 opt.reco_delay = DFL_RECO_DELAY; in main()
1370 opt.reco_mode = DFL_RECO_MODE; in main()
1371 opt.reconnect_hard = DFL_RECONNECT_HARD; in main()
1372 opt.tickets = DFL_TICKETS; in main()
1373 opt.alpn_string = DFL_ALPN_STRING; in main()
1374 opt.curves = DFL_CURVES; in main()
1375 opt.transport = DFL_TRANSPORT; in main()
1376 opt.hs_to_min = DFL_HS_TO_MIN; in main()
1377 opt.hs_to_max = DFL_HS_TO_MAX; in main()
1378 opt.dtls_mtu = DFL_DTLS_MTU; in main()
1379 opt.fallback = DFL_FALLBACK; in main()
1380 opt.extended_ms = DFL_EXTENDED_MS; in main()
1381 opt.etm = DFL_ETM; in main()
1382 opt.dgram_packing = DFL_DGRAM_PACKING; in main()
1383 opt.serialize = DFL_SERIALIZE; in main()
1384 opt.context_file = DFL_CONTEXT_FILE; in main()
1385 opt.eap_tls = DFL_EAP_TLS; in main()
1386 opt.reproducible = DFL_REPRODUCIBLE; in main()
1387 opt.nss_keylog = DFL_NSS_KEYLOG; in main()
1388 opt.nss_keylog_file = DFL_NSS_KEYLOG_FILE; in main()
1389 opt.skip_close_notify = DFL_SKIP_CLOSE_NOTIFY; in main()
1390 opt.query_config_mode = DFL_QUERY_CONFIG_MODE; in main()
1391 opt.use_srtp = DFL_USE_SRTP; in main()
1392 opt.force_srtp_profile = DFL_SRTP_FORCE_PROFILE; in main()
1393 opt.mki = DFL_SRTP_MKI; in main()
1403 opt.server_name = q; in main()
1405 opt.server_addr = q; in main()
1407 opt.server_port = q; in main()
1412 opt.transport = MBEDTLS_SSL_TRANSPORT_STREAM; in main()
1414 opt.transport = MBEDTLS_SSL_TRANSPORT_DATAGRAM; in main()
1420 opt.debug_level = atoi( q ); in main()
1421 if( opt.debug_level < 0 || opt.debug_level > 65535 ) in main()
1426 opt.context_crt_cb = atoi( q ); in main()
1427 if( opt.context_crt_cb != 0 && opt.context_crt_cb != 1 ) in main()
1432 opt.nbio = atoi( q ); in main()
1433 if( opt.nbio < 0 || opt.nbio > 2 ) in main()
1438 opt.event = atoi( q ); in main()
1439 if( opt.event < 0 || opt.event > 2 ) in main()
1443 opt.read_timeout = atoi( q ); in main()
1446 opt.max_resend = atoi( q ); in main()
1447 if( opt.max_resend < 0 ) in main()
1451 opt.request_page = q; in main()
1454 opt.request_size = atoi( q ); in main()
1455 if( opt.request_size < 0 || in main()
1456 opt.request_size > MAX_REQUEST_SIZE ) in main()
1460 opt.ca_file = q; in main()
1462 opt.ca_path = q; in main()
1464 opt.crt_file = q; in main()
1466 opt.key_file = q; in main()
1468 opt.key_pwd = q; in main()
1471 opt.key_opaque = atoi( q ); in main()
1476 opt.cid_enabled = atoi( q ); in main()
1477 if( opt.cid_enabled != 0 && opt.cid_enabled != 1 ) in main()
1482 opt.cid_enabled_renego = atoi( q ); in main()
1483 if( opt.cid_enabled_renego != 0 && opt.cid_enabled_renego != 1 ) in main()
1488 opt.cid_val = q; in main()
1492 opt.cid_val_renego = q; in main()
1496 opt.psk = q; in main()
1499 opt.psk_opaque = atoi( q ); in main()
1503 opt.ca_callback = atoi( q ); in main()
1506 opt.psk_identity = q; in main()
1508 opt.ecjpake_pw = q; in main()
1510 opt.ec_max_ops = atoi( q ); in main()
1513 opt.force_ciphersuite[0] = mbedtls_ssl_get_ciphersuite_id( q ); in main()
1515 if( opt.force_ciphersuite[0] == 0 ) in main()
1520 opt.force_ciphersuite[1] = 0; in main()
1524 opt.renegotiation = (atoi( q )) ? in main()
1533 opt.allow_legacy = MBEDTLS_SSL_LEGACY_BREAK_HANDSHAKE; in main()
1536 opt.allow_legacy = MBEDTLS_SSL_LEGACY_NO_RENEGOTIATION; in main()
1539 opt.allow_legacy = MBEDTLS_SSL_LEGACY_ALLOW_RENEGOTIATION; in main()
1546 opt.renegotiate = atoi( q ); in main()
1547 if( opt.renegotiate < 0 || opt.renegotiate > 1 ) in main()
1552 opt.exchanges = atoi( q ); in main()
1553 if( opt.exchanges < 1 ) in main()
1558 opt.reconnect = atoi( q ); in main()
1559 if( opt.reconnect < 0 || opt.reconnect > 2 ) in main()
1564 opt.reco_delay = atoi( q ); in main()
1565 if( opt.reco_delay < 0 ) in main()
1570 opt.reco_mode = atoi( q ); in main()
1571 if( opt.reco_mode < 0 ) in main()
1576 opt.reconnect_hard = atoi( q ); in main()
1577 if( opt.reconnect_hard < 0 || opt.reconnect_hard > 1 ) in main()
1582 opt.tickets = atoi( q ); in main()
1583 if( opt.tickets < 0 || opt.tickets > 2 ) in main()
1588 opt.alpn_string = q; in main()
1594 case 0: opt.fallback = MBEDTLS_SSL_IS_NOT_FALLBACK; break; in main()
1595 case 1: opt.fallback = MBEDTLS_SSL_IS_FALLBACK; break; in main()
1604 opt.extended_ms = MBEDTLS_SSL_EXTENDED_MS_DISABLED; in main()
1607 opt.extended_ms = MBEDTLS_SSL_EXTENDED_MS_ENABLED; in main()
1613 opt.curves = q; in main()
1618 case 0: opt.etm = MBEDTLS_SSL_ETM_DISABLED; break; in main()
1619 case 1: opt.etm = MBEDTLS_SSL_ETM_ENABLED; break; in main()
1626 opt.min_version = MBEDTLS_SSL_MINOR_VERSION_0; in main()
1628 opt.min_version = MBEDTLS_SSL_MINOR_VERSION_1; in main()
1631 opt.min_version = MBEDTLS_SSL_MINOR_VERSION_2; in main()
1634 opt.min_version = MBEDTLS_SSL_MINOR_VERSION_3; in main()
1641 opt.max_version = MBEDTLS_SSL_MINOR_VERSION_0; in main()
1643 opt.max_version = MBEDTLS_SSL_MINOR_VERSION_1; in main()
1646 opt.max_version = MBEDTLS_SSL_MINOR_VERSION_2; in main()
1649 opt.max_version = MBEDTLS_SSL_MINOR_VERSION_3; in main()
1657 case 0: opt.arc4 = MBEDTLS_SSL_ARC4_DISABLED; break; in main()
1658 case 1: opt.arc4 = MBEDTLS_SSL_ARC4_ENABLED; break; in main()
1666 case 0: opt.allow_sha1 = 0; break; in main()
1667 case 1: opt.allow_sha1 = 1; break; in main()
1675 opt.min_version = MBEDTLS_SSL_MINOR_VERSION_0; in main()
1676 opt.max_version = MBEDTLS_SSL_MINOR_VERSION_0; in main()
1680 opt.min_version = MBEDTLS_SSL_MINOR_VERSION_1; in main()
1681 opt.max_version = MBEDTLS_SSL_MINOR_VERSION_1; in main()
1685 opt.min_version = MBEDTLS_SSL_MINOR_VERSION_2; in main()
1686 opt.max_version = MBEDTLS_SSL_MINOR_VERSION_2; in main()
1690 opt.min_version = MBEDTLS_SSL_MINOR_VERSION_3; in main()
1691 opt.max_version = MBEDTLS_SSL_MINOR_VERSION_3; in main()
1695 opt.min_version = MBEDTLS_SSL_MINOR_VERSION_2; in main()
1696 opt.max_version = MBEDTLS_SSL_MINOR_VERSION_2; in main()
1697 opt.transport = MBEDTLS_SSL_TRANSPORT_DATAGRAM; in main()
1701 opt.min_version = MBEDTLS_SSL_MINOR_VERSION_3; in main()
1702 opt.max_version = MBEDTLS_SSL_MINOR_VERSION_3; in main()
1703 opt.transport = MBEDTLS_SSL_TRANSPORT_DATAGRAM; in main()
1711 opt.auth_mode = MBEDTLS_SSL_VERIFY_NONE; in main()
1713 opt.auth_mode = MBEDTLS_SSL_VERIFY_OPTIONAL; in main()
1715 opt.auth_mode = MBEDTLS_SSL_VERIFY_REQUIRED; in main()
1722 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_512; in main()
1724 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_1024; in main()
1726 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_2048; in main()
1728 opt.mfl_code = MBEDTLS_SSL_MAX_FRAG_LEN_4096; in main()
1736 case 0: opt.trunc_hmac = MBEDTLS_SSL_TRUNC_HMAC_DISABLED; break; in main()
1737 case 1: opt.trunc_hmac = MBEDTLS_SSL_TRUNC_HMAC_ENABLED; break; in main()
1746 opt.hs_to_min = atoi( q ); in main()
1747 opt.hs_to_max = atoi( p ); in main()
1748 if( opt.hs_to_min == 0 || opt.hs_to_max < opt.hs_to_min ) in main()
1753 opt.dtls_mtu = atoi( q ); in main()
1754 if( opt.dtls_mtu < 0 ) in main()
1759 opt.dgram_packing = atoi( q ); in main()
1760 if( opt.dgram_packing != 0 && in main()
1761 opt.dgram_packing != 1 ) in main()
1768 opt.recsplit = atoi( q ); in main()
1769 if( opt.recsplit < 0 || opt.recsplit > 1 ) in main()
1774 opt.dhmlen = atoi( q ); in main()
1775 if( opt.dhmlen < 0 ) in main()
1780 opt.query_config_mode = 1; in main()
1786 opt.serialize = atoi( q ); in main()
1787 if( opt.serialize < 0 || opt.serialize > 2) in main()
1792 opt.context_file = q; in main()
1796 opt.eap_tls = atoi( q ); in main()
1797 if( opt.eap_tls < 0 || opt.eap_tls > 1 ) in main()
1802 opt.reproducible = 1; in main()
1806 opt.nss_keylog = atoi( q ); in main()
1807 if( opt.nss_keylog < 0 || opt.nss_keylog > 1 ) in main()
1812 opt.nss_keylog_file = q; in main()
1816 opt.skip_close_notify = atoi( q ); in main()
1817 if( opt.skip_close_notify < 0 || opt.skip_close_notify > 1 ) in main()
1822 opt.use_srtp = atoi ( q ); in main()
1826 opt.force_srtp_profile = atoi( q ); in main()
1830 opt.mki = q; in main()
1836 if( opt.nss_keylog != 0 && opt.eap_tls != 0 ) in main()
1845 if( opt.event == 1 && opt.nbio != 1 ) in main()
1848 opt.nbio = 1; in main()
1852 mbedtls_debug_set_threshold( opt.debug_level ); in main()
1859 if( strlen( opt.psk ) ) in main()
1862 opt.psk, &psk_len ) != 0 ) in main()
1871 if( opt.psk_opaque != 0 ) in main()
1873 if( opt.psk == NULL ) in main()
1880 if( opt.force_ciphersuite[0] <= 0 ) in main()
1889 if( opt.force_ciphersuite[0] > 0 ) in main()
1893 mbedtls_ssl_ciphersuite_from_id( opt.force_ciphersuite[0] ); in main()
1895 if( opt.max_version != -1 && in main()
1896 ciphersuite_info->min_minor_ver > opt.max_version ) in main()
1902 if( opt.min_version != -1 && in main()
1903 ciphersuite_info->max_minor_ver < opt.min_version ) in main()
1912 if( opt.max_version == -1 || in main()
1913 opt.max_version > ciphersuite_info->max_minor_ver ) in main()
1915 opt.max_version = ciphersuite_info->max_minor_ver; in main()
1917 if( opt.min_version < ciphersuite_info->min_minor_ver ) in main()
1919 opt.min_version = ciphersuite_info->min_minor_ver; in main()
1921 if( opt.transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM && in main()
1922 opt.min_version < MBEDTLS_SSL_MINOR_VERSION_2 ) in main()
1923 opt.min_version = MBEDTLS_SSL_MINOR_VERSION_2; in main()
1929 if( opt.arc4 == MBEDTLS_SSL_ARC4_DISABLED ) in main()
1936 opt.arc4 = MBEDTLS_SSL_ARC4_ENABLED; in main()
1940 if( opt.psk_opaque != 0 ) in main()
1946 opt.min_version != MBEDTLS_SSL_MINOR_VERSION_3 ) in main()
1966 opt.cid_val, &cid_len ) != 0 ) in main()
1974 if( opt.cid_enabled_renego == DFL_CID_ENABLED_RENEGO ) in main()
1975 opt.cid_enabled_renego = opt.cid_enabled; in main()
1976 if( opt.cid_val_renego == DFL_CID_VALUE_RENEGO ) in main()
1977 opt.cid_val_renego = opt.cid_val; in main()
1980 opt.cid_val_renego, &cid_renego_len ) != 0 ) in main()
1988 if( opt.curves != NULL ) in main()
1990 p = (char *) opt.curves; in main()
2044 if( opt.alpn_string != NULL ) in main()
2046 p = (char *) opt.alpn_string; in main()
2070 if (opt.reproducible) in main()
2103 if( strcmp( opt.ca_path, "none" ) == 0 || in main()
2104 strcmp( opt.ca_file, "none" ) == 0 ) in main()
2110 if( strlen( opt.ca_path ) ) in main()
2111 ret = mbedtls_x509_crt_parse_path( &cacert, opt.ca_path ); in main()
2112 else if( strlen( opt.ca_file ) ) in main()
2113 ret = mbedtls_x509_crt_parse_file( &cacert, opt.ca_file ); in main()
2161 if( strcmp( opt.crt_file, "none" ) == 0 ) in main()
2165 if( strlen( opt.crt_file ) ) in main()
2166 ret = mbedtls_x509_crt_parse_file( &clicert, opt.crt_file ); in main()
2186 if( strcmp( opt.key_file, "none" ) == 0 ) in main()
2190 if( strlen( opt.key_file ) ) in main()
2191 ret = mbedtls_pk_parse_keyfile( &pkey, opt.key_file, opt.key_pwd ); in main()
2212 if( opt.key_opaque != 0 ) in main()
2230 if( opt.server_addr == NULL) in main()
2231 opt.server_addr = opt.server_name; in main()
2234 opt.transport == MBEDTLS_SSL_TRANSPORT_STREAM ? "tcp" : "udp", in main()
2235 opt.server_addr, opt.server_port ); in main()
2239 opt.server_addr, opt.server_port, in main()
2240 opt.transport == MBEDTLS_SSL_TRANSPORT_STREAM ? in main()
2248 if( opt.nbio > 0 ) in main()
2269 opt.transport, in main()
2280 if( opt.allow_sha1 > 0 ) in main()
2287 if( opt.context_crt_cb == 0 ) in main()
2294 if( opt.cid_enabled == 1 || opt.cid_enabled_renego == 1 ) in main()
2296 if( opt.cid_enabled == 1 && in main()
2297 opt.cid_enabled_renego == 1 && in main()
2304 if( opt.cid_enabled == 1 ) in main()
2320 if( opt.auth_mode != DFL_AUTH_MODE ) in main()
2321 mbedtls_ssl_conf_authmode( &conf, opt.auth_mode ); in main()
2324 if( opt.hs_to_min != DFL_HS_TO_MIN || opt.hs_to_max != DFL_HS_TO_MAX ) in main()
2325 mbedtls_ssl_conf_handshake_timeout( &conf, opt.hs_to_min, in main()
2326 opt.hs_to_max ); in main()
2328 if( opt.dgram_packing != DFL_DGRAM_PACKING ) in main()
2329 mbedtls_ssl_set_datagram_packing( &ssl, opt.dgram_packing ); in main()
2333 if( ( ret = mbedtls_ssl_conf_max_frag_len( &conf, opt.mfl_code ) ) != 0 ) in main()
2342 if( opt.use_srtp == 1 ) in main()
2344 if( opt.force_srtp_profile != 0 ) in main()
2347 { opt.force_srtp_profile, MBEDTLS_TLS_SRTP_UNSET }; in main()
2364 else if( opt.force_srtp_profile != 0 ) in main()
2372 if( opt.trunc_hmac != DFL_TRUNC_HMAC ) in main()
2373 mbedtls_ssl_conf_truncated_hmac( &conf, opt.trunc_hmac ); in main()
2377 if( opt.extended_ms != DFL_EXTENDED_MS ) in main()
2378 mbedtls_ssl_conf_extended_master_secret( &conf, opt.extended_ms ); in main()
2382 if( opt.etm != DFL_ETM ) in main()
2383 mbedtls_ssl_conf_encrypt_then_mac( &conf, opt.etm ); in main()
2387 if( opt.eap_tls != 0 ) in main()
2392 else if( opt.nss_keylog != 0 ) in main()
2399 else if( opt.use_srtp != 0 ) in main()
2408 if( opt.recsplit != DFL_RECSPLIT ) in main()
2409 mbedtls_ssl_conf_cbc_record_splitting( &conf, opt.recsplit in main()
2415 if( opt.dhmlen != DFL_DHMLEN ) in main()
2416 mbedtls_ssl_conf_dhm_min_bitlen( &conf, opt.dhmlen ); in main()
2420 if( opt.alpn_string != NULL ) in main()
2429 if (opt.reproducible) in main()
2442 mbedtls_ssl_conf_read_timeout( &conf, opt.read_timeout ); in main()
2445 mbedtls_ssl_conf_session_tickets( &conf, opt.tickets ); in main()
2448 if( opt.force_ciphersuite[0] != DFL_FORCE_CIPHER ) in main()
2449 mbedtls_ssl_conf_ciphersuites( &conf, opt.force_ciphersuite ); in main()
2452 if( opt.arc4 != DFL_ARC4 ) in main()
2453 mbedtls_ssl_conf_arc4_support( &conf, opt.arc4 ); in main()
2456 if( opt.allow_legacy != DFL_ALLOW_LEGACY ) in main()
2457 mbedtls_ssl_conf_legacy_renegotiation( &conf, opt.allow_legacy ); in main()
2459 mbedtls_ssl_conf_renegotiation( &conf, opt.renegotiation ); in main()
2463 if( strcmp( opt.ca_path, "none" ) != 0 && in main()
2464 strcmp( opt.ca_file, "none" ) != 0 ) in main()
2467 if( opt.ca_callback != 0 ) in main()
2473 if( strcmp( opt.crt_file, "none" ) != 0 && in main()
2474 strcmp( opt.key_file, "none" ) != 0 ) in main()
2486 if( opt.curves != NULL && in main()
2487 strcmp( opt.curves, "default" ) != 0 ) in main()
2495 if( opt.psk_opaque != 0 ) in main()
2510 (const unsigned char *) opt.psk_identity, in main()
2511 strlen( opt.psk_identity ) ) ) != 0 ) in main()
2523 (const unsigned char *) opt.psk_identity, in main()
2524 strlen( opt.psk_identity ) ); in main()
2533 if( opt.min_version != DFL_MIN_VERSION ) in main()
2535 opt.min_version ); in main()
2537 if( opt.max_version != DFL_MAX_VERSION ) in main()
2539 opt.max_version ); in main()
2542 if( opt.fallback != DFL_FALLBACK ) in main()
2543 mbedtls_ssl_conf_fallback( &conf, opt.fallback ); in main()
2554 if( ( ret = mbedtls_ssl_set_hostname( &ssl, opt.server_name ) ) != 0 ) in main()
2563 if( opt.ecjpake_pw != DFL_ECJPAKE_PW ) in main()
2566 (const unsigned char *) opt.ecjpake_pw, in main()
2567 strlen( opt.ecjpake_pw ) ) ) != 0 ) in main()
2577 if( opt.context_crt_cb == 1 ) in main()
2584 opt.nbio == 0 ? recv_timeout_cb : NULL ); in main()
2587 if( opt.transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM ) in main()
2589 if( ( ret = mbedtls_ssl_set_cid( &ssl, opt.cid_enabled, in main()
2600 if( opt.dtls_mtu != DFL_DTLS_MTU ) in main()
2601 mbedtls_ssl_set_mtu( &ssl, opt.dtls_mtu ); in main()
2610 if( opt.ec_max_ops != DFL_EC_MAX_OPS ) in main()
2611 mbedtls_ecp_set_max_ops( opt.ec_max_ops ); in main()
2615 if( opt.use_srtp != 0 && strlen( opt.mki ) != 0 ) in main()
2618 opt.mki,&mki_len ) != 0 ) in main()
2626 (uint16_t) strlen( opt.mki ) / 2 ) ) != 0 ) in main()
2668 if( opt.event == 1 /* level triggered IO */ ) in main()
2697 if( opt.alpn_string != NULL ) in main()
2706 if( opt.eap_tls != 0 ) in main()
2757 else if( opt.use_srtp != 0 ) in main()
2823 if( opt.reconnect != 0 ) in main()
2828 if( opt.reco_mode == 1 ) in main()
2872 if( opt.reco_mode == 1 ) in main()
2908 if( opt.transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM ) in main()
2910 if( ( ret = mbedtls_ssl_set_cid( &ssl, opt.cid_enabled_renego, in main()
2922 if( opt.renegotiate ) in main()
2947 if( opt.event == 1 /* level triggered IO */ ) in main()
2970 retry_left = opt.max_resend; in main()
2976 opt.request_page ); in main()
2980 if( opt.request_size != DFL_REQUEST_SIZE && in main()
2981 len + tail_len < opt.request_size ) in main()
2983 memset( buf + len, 'A', opt.request_size - len - tail_len ); in main()
2984 len += opt.request_size - len - tail_len; in main()
2991 if( opt.request_size != DFL_REQUEST_SIZE && in main()
2992 len > opt.request_size ) in main()
2994 len = opt.request_size; in main()
3001 if( opt.transport == MBEDTLS_SSL_TRANSPORT_STREAM ) in main()
3021 if( opt.event == 1 /* level triggered IO */ ) in main()
3052 if( opt.event == 1 /* level triggered IO */ ) in main()
3086 opt.request_size = DFL_REQUEST_SIZE; in main()
3099 if( opt.transport == MBEDTLS_SSL_TRANSPORT_STREAM ) in main()
3116 if( opt.event == 1 /* level triggered IO */ ) in main()
3182 if( opt.event == 1 /* level triggered IO */ ) in main()
3222 if( opt.reconnect_hard != 0 ) in main()
3224 opt.reconnect_hard = 0; in main()
3252 if( opt.event == 1 /* level triggered IO */ ) in main()
3271 if( opt.serialize != 0 ) in main()
3307 if( 0 < strlen( opt.context_file ) ) in main()
3333 if( ( b64_file = fopen( opt.context_file, "w" ) ) == NULL ) in main()
3336 opt.context_file ); in main()
3356 if( opt.serialize == 1 ) in main()
3362 if( opt.serialize == 2 ) in main()
3377 if( opt.nbio == 2 ) in main()
3383 opt.nbio == 0 ? mbedtls_net_recv_timeout : NULL ); in main()
3416 if( --opt.exchanges > 0 ) in main()
3438 if( opt.skip_close_notify == 0 ) in main()
3452 if( opt.reconnect != 0 ) in main()
3454 --opt.reconnect; in main()
3459 if( opt.reco_delay > 0 ) in main()
3460 mbedtls_net_usleep( 1000000 * opt.reco_delay ); in main()
3476 if( opt.reco_mode == 1 ) in main()
3496 opt.server_addr, opt.server_port, in main()
3497 opt.transport == MBEDTLS_SSL_TRANSPORT_STREAM ? in main()
3505 if( opt.nbio > 0 ) in main()
3572 if( opt.psk_opaque != 0 ) in main()
3580 ( opt.query_config_mode == DFL_QUERY_CONFIG_MODE ) ) in main()
3599 if( opt.query_config_mode == DFL_QUERY_CONFIG_MODE ) in main()
3610 if( opt.query_config_mode == DFL_QUERY_CONFIG_MODE ) in main()