Lines Matching refs:opt
104 } opt; variable
117 if( opt.output_format == OUTPUT_FORMAT_PEM ) in write_public_key()
159 if( opt.output_format == OUTPUT_FORMAT_PEM ) in write_private_key()
212 opt.mode = DFL_MODE; in main()
213 opt.filename = DFL_FILENAME; in main()
214 opt.output_mode = DFL_OUTPUT_MODE; in main()
215 opt.output_file = DFL_OUTPUT_FILENAME; in main()
216 opt.output_format = DFL_OUTPUT_FORMAT; in main()
228 opt.mode = MODE_PRIVATE; in main()
230 opt.mode = MODE_PUBLIC; in main()
237 opt.output_mode = OUTPUT_MODE_PRIVATE; in main()
239 opt.output_mode = OUTPUT_MODE_PUBLIC; in main()
247 opt.output_format = OUTPUT_FORMAT_PEM; in main()
251 opt.output_format = OUTPUT_FORMAT_DER; in main()
256 opt.filename = q; in main()
258 opt.output_file = q; in main()
263 if( opt.mode == MODE_NONE && opt.output_mode != OUTPUT_MODE_NONE ) in main()
269 if( opt.mode == MODE_PUBLIC && opt.output_mode == OUTPUT_MODE_PRIVATE ) in main()
275 if( opt.mode == MODE_PRIVATE ) in main()
283 ret = mbedtls_pk_parse_keyfile( &key, opt.filename, NULL ); in main()
328 else if( opt.mode == MODE_PUBLIC ) in main()
336 ret = mbedtls_pk_parse_public_keyfile( &key, opt.filename ); in main()
376 if( opt.output_mode == OUTPUT_MODE_PUBLIC ) in main()
378 write_public_key( &key, opt.output_file ); in main()
380 if( opt.output_mode == OUTPUT_MODE_PRIVATE ) in main()
382 write_private_key( &key, opt.output_file ); in main()