1
0
Fork 0
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:
Werner Koch 2001-11-23 17:12:37 +00:00
parent aa4f78a45a
commit 757c13a171
5 changed files with 372 additions and 1 deletions

View file

@ -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)