mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
armor rewritten, but still buggy
This commit is contained in:
parent
899b8378ec
commit
9886ad8098
16 changed files with 518 additions and 135 deletions
|
@ -274,6 +274,7 @@ proc_plaintext( CTX c, PACKET *pkt )
|
|||
* textmode filter (sigclass 0x01)
|
||||
*/
|
||||
c->mfx.md = md_open( DIGEST_ALGO_RMD160, 0);
|
||||
md_enable( c->mfx.md, DIGEST_ALGO_MD5 );
|
||||
rc = handle_plaintext( pt, &c->mfx );
|
||||
if( rc )
|
||||
log_error( "handle plaintext failed: %s\n", g10_errstr(rc));
|
||||
|
@ -325,6 +326,11 @@ do_check_sig( CTX c, KBNODE node )
|
|||
if( sig->sig_class == 0x00 ) {
|
||||
md = md_copy( c->mfx.md );
|
||||
}
|
||||
else if( sig->sig_class == 0x01 ) {
|
||||
/* how do we know that we have to hash the (already hashed) text
|
||||
* in canonical mode ??? (calculating both modes???) */
|
||||
md = md_copy( c->mfx.md );
|
||||
}
|
||||
else if( (sig->sig_class&~3) == 0x10 ) { /* classes 0x10 .. 0x13 */
|
||||
if( c->cert->pkt->pkttype == PKT_PUBLIC_CERT ) {
|
||||
KBNODE n1 = find_kbparent( c->cert, node );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue