1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02: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

@ -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 */