diff options
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r-- | sm/gpgsm.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c index 72e6d41ec..c7ee41980 100644 --- a/sm/gpgsm.c +++ b/sm/gpgsm.c @@ -884,6 +884,16 @@ main ( int argc, char **argv) #endif case aSign: /* sign the given file */ + /* FIXME: we can only do detached sigs for now and we don't + handle --output yet. We should also allow to concatenate + multiple files for signins because that is what gpg does.*/ + if (!argc) + gpgsm_sign (&ctrl, 0, 1, stdout); /* create from stdin */ + else if (argc == 1) + gpgsm_sign (&ctrl, open_read (*argv), 1, stdout); /* from file */ + else + wrong_args (_("--sign [datafile]")); + break; #if 0 sl = NULL; if (detached_sig) |