aboutsummaryrefslogtreecommitdiffstats
path: root/g10/verify.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2004-05-23 16:24:15 +0000
committerDavid Shaw <[email protected]>2004-05-23 16:24:15 +0000
commit79bb56aa56825092e3e58c03dc379c3f48ee46ef (patch)
tree86d975586a7d95c015865d8a5db1bed9f4827358 /g10/verify.c
parentsome late minor fixes. (diff)
downloadgnupg-79bb56aa56825092e3e58c03dc379c3f48ee46ef.tar.gz
gnupg-79bb56aa56825092e3e58c03dc379c3f48ee46ef.zip
* verify.c (verify_signatures): Verify multiple files in the same order in
which we hashed them when issuing the signature. Noted by Nicholas Cole. * pkclist.c (do_edit_ownertrust): Fix a kbnode leak and do another keyid-format conversion.
Diffstat (limited to '')
-rw-r--r--g10/verify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/verify.c b/g10/verify.c
index 705a45746..24e140b26 100644
--- a/g10/verify.c
+++ b/g10/verify.c
@@ -1,5 +1,5 @@
/* verify.c - verify signed data
- * Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+ * Copyright (C) 1998, 1999, 2000, 2001, 2004 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -101,7 +101,7 @@ verify_signatures( int nfiles, char **files )
iobuf_push_filter( fp, armor_filter, &afx );
sl = NULL;
- for(i=1 ; i < nfiles; i++ )
+ for(i=nfiles-1 ; i > 0 ; i-- )
add_to_strlist( &sl, files[i] );
rc = proc_signature_packets( NULL, fp, sl, sigfile );
free_strlist(sl);