mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Just a Backup. We can now write out a basic signature which in turn
exhibits a bug in --verify.
This commit is contained in:
parent
aa4f78a45a
commit
757c13a171
5 changed files with 372 additions and 1 deletions
10
sm/gpgsm.c
10
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue