Lines Matching refs:opt
129 } opt; variable
202 opt.mode = DFL_MODE; in main()
203 opt.filename = DFL_FILENAME; in main()
204 opt.ca_file = DFL_CA_FILE; in main()
205 opt.crl_file = DFL_CRL_FILE; in main()
206 opt.ca_path = DFL_CA_PATH; in main()
207 opt.server_name = DFL_SERVER_NAME; in main()
208 opt.server_port = DFL_SERVER_PORT; in main()
209 opt.debug_level = DFL_DEBUG_LEVEL; in main()
210 opt.permissive = DFL_PERMISSIVE; in main()
228 opt.mode = MODE_FILE; in main()
230 opt.mode = MODE_SSL; in main()
235 opt.filename = q; in main()
237 opt.ca_file = q; in main()
239 opt.crl_file = q; in main()
241 opt.ca_path = q; in main()
243 opt.server_name = q; in main()
245 opt.server_port = q; in main()
248 opt.debug_level = atoi( q ); in main()
249 if( opt.debug_level < 0 || opt.debug_level > 65535 ) in main()
254 opt.permissive = atoi( q ); in main()
255 if( opt.permissive < 0 || opt.permissive > 1 ) in main()
268 if( strlen( opt.ca_path ) ) in main()
270 if( ( ret = mbedtls_x509_crt_parse_path( &cacert, opt.ca_path ) ) < 0 ) in main()
278 else if( strlen( opt.ca_file ) ) in main()
280 if( ( ret = mbedtls_x509_crt_parse_file( &cacert, opt.ca_file ) ) < 0 ) in main()
292 if( strlen( opt.crl_file ) ) in main()
294 if( ( ret = mbedtls_x509_crl_parse_file( &cacrl, opt.crl_file ) ) != 0 ) in main()
304 if( opt.mode == MODE_FILE ) in main()
316 ret = mbedtls_x509_crt_parse_file( &crt, opt.filename ); in main()
325 if( opt.permissive == 0 && ret > 0 ) in main()
378 else if( opt.mode == MODE_SSL ) in main()
398 mbedtls_debug_set_threshold( opt.debug_level ); in main()
404 mbedtls_printf( " . SSL connection to tcp/%s/%s...", opt.server_name, in main()
405 opt.server_port ); in main()
408 if( ( ret = mbedtls_net_connect( &server_fd, opt.server_name, in main()
409 opt.server_port, MBEDTLS_NET_PROTO_TCP ) ) != 0 ) in main()
445 if( ( ret = mbedtls_ssl_set_hostname( &ssl, opt.server_name ) ) != 0 ) in main()