mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
sm: Emit STATUS_FAILURE for non-implemented commands.
* sm/gpgsm.c (main): Do it here.
This commit is contained in:
parent
097701e698
commit
7e681da1b2
12
sm/gpgsm.c
12
sm/gpgsm.c
@ -1951,11 +1951,17 @@ main ( int argc, char **argv)
|
||||
break;
|
||||
|
||||
case aSignEncr: /* sign and encrypt the given file */
|
||||
log_error ("this command has not yet been implemented\n");
|
||||
log_error ("the command '%s' has not yet been implemented\n",
|
||||
"--sign --encrypt");
|
||||
gpgsm_status_with_error (&ctrl, STATUS_FAILURE, "option-parser",
|
||||
gpg_error (GPG_ERR_NOT_IMPLEMENTED));
|
||||
break;
|
||||
|
||||
case aClearsign: /* make a clearsig */
|
||||
log_error ("this command has not yet been implemented\n");
|
||||
log_error ("the command '%s' has not yet been implemented\n",
|
||||
"--clearsign");
|
||||
gpgsm_status_with_error (&ctrl, STATUS_FAILURE, "option-parser",
|
||||
gpg_error (GPG_ERR_NOT_IMPLEMENTED));
|
||||
break;
|
||||
|
||||
case aVerify:
|
||||
@ -2189,6 +2195,8 @@ main ( int argc, char **argv)
|
||||
|
||||
default:
|
||||
log_error (_("invalid command (there is no implicit command)\n"));
|
||||
gpgsm_status_with_error (&ctrl, STATUS_FAILURE, "option-parser",
|
||||
gpg_error (GPG_ERR_MISSING_ACTION));
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user