From 757c13a17135152fc73fce12970439a2e7432ea7 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 23 Nov 2001 17:12:37 +0000 Subject: Just a Backup. We can now write out a basic signature which in turn exhibits a bug in --verify. --- sm/gpgsm.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sm/gpgsm.c') 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) -- cgit v1.2.3