X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/8e58a1769ce5e492dd68904dfc81b6e077fc2a3a..100da9a5b6e8cc0a384996674a4e56ec6938f717:/gpgwww.c?ds=sidebyside diff --git a/gpgwww.c b/gpgwww.c index 5f7da46..dc79135 100644 --- a/gpgwww.c +++ b/gpgwww.c @@ -14,7 +14,7 @@ #include "getcgi.h" #include "hash.h" #include "keydb.h" -#include "onak_conf.h" +#include "onak-conf.h" #include "stats.h" void dofindpath(uint64_t have, uint64_t want, bool html) @@ -23,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. */ @@ -53,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) ? "" :