From 0dec11fbe7ae416d1573b3feccf9953ae939de68 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 12 Jun 2002 09:54:57 +0000 Subject: * sign.c (hash_and_copy_data): New. (gpgsm_sign): Implemented normal (non-detached) signatures. * gpgsm.c (main): Ditto. * certpath.c (gpgsm_validate_path): Special error handling for no policy match. * configure.ac (NEED_LIBKSBA_VERSION): We need 0.4.3 now. --- sm/gpgsm.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'sm/gpgsm.c') diff --git a/sm/gpgsm.c b/sm/gpgsm.c index 3aeddd845..f01ffc709 100644 --- a/sm/gpgsm.c +++ b/sm/gpgsm.c @@ -1080,13 +1080,14 @@ main ( int argc, char **argv) break; 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 signing because that is what gpg does.*/ + /* FIXME: W we don't handle --output yet. We should also allow + to concatenate multiple files for signing because that is + what gpg does.*/ if (!argc) - gpgsm_sign (&ctrl, 0, 1, stdout); /* create from stdin */ + gpgsm_sign (&ctrl, 0, detached_sig, stdout); /* create from stdin */ else if (argc == 1) - gpgsm_sign (&ctrl, open_read (*argv), 1, stdout); /* from file */ + gpgsm_sign (&ctrl, open_read (*argv), + detached_sig, stdout); /* from file */ else wrong_args (_("--sign [datafile]")); break; -- cgit v1.2.3