diff options
author | Werner Koch <[email protected]> | 2001-11-23 17:12:37 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2001-11-23 17:12:37 +0000 |
commit | 757c13a17135152fc73fce12970439a2e7432ea7 (patch) | |
tree | 0a1c3679f0ddcd2c02756e7936943b1794a99952 /sm/gpgsm.c | |
parent | Map Libksba's OIDs to Libgcrypt digest algo numbers. (diff) | |
download | gnupg-757c13a17135152fc73fce12970439a2e7432ea7.tar.gz gnupg-757c13a17135152fc73fce12970439a2e7432ea7.zip |
Just a Backup. We can now write out a basic signature which in turn
exhibits a bug in --verify.
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) |