Lines Matching refs:opt

114 } opt;  variable
187 opt.mode = DFL_MODE; in main()
188 opt.filename = DFL_FILENAME; in main()
189 opt.ca_file = DFL_CA_FILE; in main()
190 opt.crl_file = DFL_CRL_FILE; in main()
191 opt.ca_path = DFL_CA_PATH; in main()
192 opt.server_name = DFL_SERVER_NAME; in main()
193 opt.server_port = DFL_SERVER_PORT; in main()
194 opt.debug_level = DFL_DEBUG_LEVEL; in main()
195 opt.permissive = DFL_PERMISSIVE; in main()
213 opt.mode = MODE_FILE; in main()
215 opt.mode = MODE_SSL; in main()
220 opt.filename = q; in main()
222 opt.ca_file = q; in main()
224 opt.crl_file = q; in main()
226 opt.ca_path = q; in main()
228 opt.server_name = q; in main()
230 opt.server_port = q; in main()
233 opt.debug_level = atoi( q ); in main()
234 if( opt.debug_level < 0 || opt.debug_level > 65535 ) in main()
239 opt.permissive = atoi( q ); in main()
240 if( opt.permissive < 0 || opt.permissive > 1 ) in main()
253 if( strlen( opt.ca_path ) ) in main()
255 ret = mbedtls_x509_crt_parse_path( &cacert, opt.ca_path ); in main()
258 else if( strlen( opt.ca_file ) ) in main()
260 ret = mbedtls_x509_crt_parse_file( &cacert, opt.ca_file ); in main()
273 if( strlen( opt.crl_file ) ) in main()
275 if( ( ret = mbedtls_x509_crl_parse_file( &cacrl, opt.crl_file ) ) != 0 ) in main()
285 if( opt.mode == MODE_FILE ) in main()
297 ret = mbedtls_x509_crt_parse_file( &crt, opt.filename ); in main()
306 if( opt.permissive == 0 && ret > 0 ) in main()
361 else if( opt.mode == MODE_SSL ) in main()
381 mbedtls_debug_set_threshold( opt.debug_level ); in main()
387 mbedtls_printf( " . SSL connection to tcp/%s/%s...", opt.server_name, in main()
388 opt.server_port ); in main()
391 if( ( ret = mbedtls_net_connect( &server_fd, opt.server_name, in main()
392 opt.server_port, MBEDTLS_NET_PROTO_TCP ) ) != 0 ) in main()
428 if( ( ret = mbedtls_ssl_set_hostname( &ssl, opt.server_name ) ) != 0 ) in main()