]> the.earth.li Git - onak.git/commitdiff
Fixup for 64bit key ids in gpgwww.
authorJonathan McDowell <noodles@earth.li>
Mon, 7 Jun 2004 20:59:05 +0000 (20:59 +0000)
committerJonathan McDowell <noodles@earth.li>
Mon, 7 Jun 2004 20:59:05 +0000 (20:59 +0000)
Fix gpgwww to not truncate keyids to 32bits; if the backends don't support
this then they should do it themselves.

gpgwww.c

index 570f1a8bc25bdfaef71a56a8d7a950169cf94a1a..f2551ed7e87794c517e2729ab1792283d7767c58 100644 (file)
--- a/gpgwww.c
+++ b/gpgwww.c
@@ -94,7 +94,7 @@ int getkeyspath(uint64_t have, uint64_t want, int count)
                        curkey = findinhash(keyinfoa->parent);
                        while (curkey != NULL && curkey->keyid != 0) {
                                if (curkey->keyid != fullwant && fetch_key(
-                                               curkey->keyid & 0xFFFFFFFF,
+                                               curkey->keyid,
                                                        &publickey, false)) {
                                        flatten_publickey(publickey,
                                                        &packets,
@@ -114,7 +114,7 @@ int getkeyspath(uint64_t have, uint64_t want, int count)
        /*
         * Add the destination key to the list of returned keys.
         */
-       if (fetch_key(fullwant & 0xFFFFFFFF, &publickey, false)) {
+       if (fetch_key(fullwant, &publickey, false)) {
                flatten_publickey(publickey,
                                &packets,
                                &list_end);