- puts("List of key ids in path:");
- }
- curkey = keyinfoa;
- while (curkey != NULL && curkey->keyid != 0) {
- printf("0x%08llX ", curkey->keyid & 0xFFFFFFFF);
- curkey = findinhash(curkey->parent);
+ printf("%d steps from 0x%016" PRIX64 " to 0x%016"
+ PRIX64 "%s\n",
+ keyinfoa->colour, have,
+ want,
+ html ? "<BR>" : "");
+ curkey = keyinfoa;
+ while (curkey != NULL && curkey->keyid != 0) {
+ uid = dbctx->keyid2uid(dbctx,
+ curkey->keyid);
+ if (html && uid == NULL) {
+ printf("<a href=\"lookup?op=get&search="
+ "0x%016" PRIX64 "\">0x%016"
+ PRIX64 "</a> (["
+ "User id not found])%s<BR>\n",
+ curkey->keyid,
+ curkey->keyid,
+ (curkey->keyid == want) ?
+ "" : " signs");
+ } else if (html && uid != NULL) {
+ printf("<a href=\"lookup?op=get&search="
+ "0x%016" PRIX64 "\">0x%016"
+ PRIX64 "</a>"
+ " (<a href=\"lookup?op=vindex&"
+ "search=0x%016" PRIX64
+ "\">%s</a>)%s"
+ "<BR>\n",
+ curkey->keyid,
+ curkey->keyid,
+ curkey->keyid,
+ txt2html(uid),
+ (curkey->keyid == want) ?
+ "" : " signs");
+ } else {
+ printf("0x%016" PRIX64 " (%s)%s\n",
+ curkey->keyid,
+ (uid == NULL) ?
+ "[User id not found]" :
+ uid,
+ (curkey->keyid == want) ?
+ "" : " signs");
+ }
+ if (uid != NULL) {
+ free(uid);
+ uid = NULL;
+ }
+ if (curkey != keyinfoa && curkey != keyinfob) {
+ curkey->disabled = true;
+ }
+ curkey = findinhash(curkey->parent);
+ }
+ if (html) {
+ puts("<P>List of key ids in path:</P>");
+ } else {
+ puts("List of key ids in path:");
+ }
+ curkey = keyinfoa;
+ while (curkey != NULL && curkey->keyid != 0) {
+ printf("0x%016" PRIX64 " ",
+ curkey->keyid);
+ curkey = findinhash(curkey->parent);
+ }
+ putchar('\n');