OPT_DIGEST
} OPTION_CHOICE;
-OPTIONS dgst_options[] = {
+const OPTIONS dgst_options[] = {
{OPT_HELP_STR, 1, '-', "Usage: %s [options] [file...]\n"},
{OPT_HELP_STR, 1, '-',
" file... files to digest (default is stdin)\n"},
}
argc = opt_num_rest();
argv = opt_rest();
+ if (keyfile != NULL && argc > 1) {
+ BIO_printf(bio_err, "%s: Can only sign or verify one file.\n", prog);
+ goto end;
+ }
if (do_verify && !sigfile) {
BIO_printf(bio_err,
sk_OPENSSL_STRING_free(macopts);
OPENSSL_free(sigbuf);
BIO_free(bmd);
+ release_engine(e);
return (ret);
}