X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/4b8483ae278577a3adc8d84da81d77019704466f..100da9a5b6e8cc0a384996674a4e56ec6938f717:/gpgwww.c?ds=inline diff --git a/gpgwww.c b/gpgwww.c index 265422f..dc79135 100644 --- a/gpgwww.c +++ b/gpgwww.c @@ -14,6 +14,7 @@ #include "getcgi.h" #include "hash.h" #include "keydb.h" +#include "onak-conf.h" #include "stats.h" void dofindpath(uint64_t have, uint64_t want, bool html) @@ -22,6 +23,9 @@ void dofindpath(uint64_t have, uint64_t want, bool html) int rec; char *uid; + have = getfullkeyid(have); + want = getfullkeyid(want); + /* * Make sure the keys we have and want are in the cache. */ @@ -52,30 +56,31 @@ void dofindpath(uint64_t have, uint64_t want, bool html) want); } else { printf("%d steps from 0x%llX to 0x%llX\n", - keyinfoa->colour, have, want); + keyinfoa->colour, have & 0xFFFFFFFF, + want & 0xFFFFFFFF); curkey = keyinfoa; while (curkey != NULL && curkey->keyid != 0) { uid = keyid2uid(curkey->keyid); if (html && uid == NULL) { printf("" "0x%llX ([User id not found])%s)%s\n", - curkey->keyid, - curkey->keyid, + curkey->keyid & 0xFFFFFFFF, + curkey->keyid & 0xFFFFFFFF, (curkey->keyid == want) ? "" : " signs"); } else if (html && uid != NULL) { printf("" "0x%llX (%s)%s\n", - curkey->keyid, - curkey->keyid, - curkey->keyid, + curkey->keyid & 0xFFFFFFFF, + curkey->keyid & 0xFFFFFFFF, + curkey->keyid & 0xFFFFFFFF, txt2html(keyid2uid(curkey->keyid)), (curkey->keyid == want) ? "" : " signs"); } else { printf("0x%llX (%s)%s\n", - curkey->keyid, + curkey->keyid & 0xFFFFFFFF, (uid == NULL) ? "[User id not found]" : uid, (curkey->keyid == want) ? "" : @@ -137,7 +142,7 @@ int main(int argc, char *argv[]) puts(""); puts("