Lines Matching refs:opt
112 } opt; variable
185 opt.mode = DFL_MODE; in main()
186 opt.filename = DFL_FILENAME; in main()
187 opt.ca_file = DFL_CA_FILE; in main()
188 opt.crl_file = DFL_CRL_FILE; in main()
189 opt.ca_path = DFL_CA_PATH; in main()
190 opt.server_name = DFL_SERVER_NAME; in main()
191 opt.server_port = DFL_SERVER_PORT; in main()
192 opt.debug_level = DFL_DEBUG_LEVEL; in main()
193 opt.permissive = DFL_PERMISSIVE; in main()
211 opt.mode = MODE_FILE; in main()
213 opt.mode = MODE_SSL; in main()
218 opt.filename = q; in main()
220 opt.ca_file = q; in main()
222 opt.crl_file = q; in main()
224 opt.ca_path = q; in main()
226 opt.server_name = q; in main()
228 opt.server_port = q; in main()
231 opt.debug_level = atoi( q ); in main()
232 if( opt.debug_level < 0 || opt.debug_level > 65535 ) in main()
237 opt.permissive = atoi( q ); in main()
238 if( opt.permissive < 0 || opt.permissive > 1 ) in main()
251 if( strlen( opt.ca_path ) ) in main()
253 if( ( ret = mbedtls_x509_crt_parse_path( &cacert, opt.ca_path ) ) < 0 ) in main()
261 else if( strlen( opt.ca_file ) ) in main()
263 if( ( ret = mbedtls_x509_crt_parse_file( &cacert, opt.ca_file ) ) < 0 ) in main()
275 if( strlen( opt.crl_file ) ) in main()
277 if( ( ret = mbedtls_x509_crl_parse_file( &cacrl, opt.crl_file ) ) != 0 ) in main()
287 if( opt.mode == MODE_FILE ) in main()
299 ret = mbedtls_x509_crt_parse_file( &crt, opt.filename ); in main()
308 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()