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:
parent
3c90faa761
commit
9f65d8673e
2 changed files with 8 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue