/* No extra arguments. */
argc = opt_num_rest();
- if (argc != 0)
+ if (argc != 0 || (verify && in_fname == NULL))
goto opthelp;
if (parent_config != NULL) {
}
goto end;
}
- if (module_fname == NULL
- || (verify && in_fname == NULL)
- || (!verify && out_fname == NULL))
+ if (module_fname == NULL)
goto opthelp;
tail = opt_path_end(module_fname);
if (!load_fips_prov_and_run_self_test(prov_name))
goto end;
- fout = bio_open_default(out_fname, 'w', FORMAT_TEXT);
+ fout =
+ out_fname == NULL ? dup_bio_out(FORMAT_TEXT)
+ : bio_open_default(out_fname, 'w', FORMAT_TEXT);
if (fout == NULL) {
BIO_printf(bio_err, "Failed to open file\n");
goto end;
=item B<-in> I<configfilename>
-Input filename to load configuration data from. Used with the B<-verify> option.
-Standard input is used if the filename is C<->.
+Input filename to load configuration data from.
+Must be used if the B<-verify> option is specified.
=item B<-verify>
DEPEND[|tests|]=fipsmodule.cnf
GENERATE[fipsmodule.cnf]=../apps/openssl fipsinstall \
-module providers/$(FIPSMODULENAME) -provider_name fips \
- -mac_name HMAC -section_name fips_sect -out -
+ -mac_name HMAC -section_name fips_sect
DEPEND[fipsmodule.cnf]=$FIPSGOAL
ENDIF