1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

* sign.c (clearsign_file): Only use pgp2mode with v3 keys and MD5. This

matches what we do when decoding such messages and prevents creating a
message (v3+RIPEMD/160) that we can't verify.
This commit is contained in:
David Shaw 2003-01-15 20:07:23 +00:00
parent 3c90faa761
commit 9f65d8673e
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-01-15 David Shaw <dshaw@jabberwocky.com>
* sign.c (clearsign_file): Only use pgp2mode with v3 keys and MD5.
This matches what we do when decoding such messages and prevents
creating a message (v3+RIPEMD/160) that we can't verify.
2003-01-14 David Shaw <dshaw@jabberwocky.com>
* sig-check.c (signature_check2): Use G10ERR_GENERAL as the error

View File

@ -949,8 +949,8 @@ clearsign_file( const char *fname, STRLIST locusr, const char *outfile )
}
if ( DBG_HASHING )
md_start_debug( textmd, "clearsign" );
copy_clearsig_text( out, inp, textmd,
!opt.not_dash_escaped, opt.escape_from, old_style );
copy_clearsig_text( out, inp, textmd, !opt.not_dash_escaped,
opt.escape_from, (old_style && only_md5) );
/* fixme: check for read errors */
/* now write the armor */