mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* 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.
This commit is contained in:
parent
c6416080a2
commit
0dec11fbe7
7 changed files with 212 additions and 34 deletions
11
sm/gpgsm.c
11
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue