summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1921fa4)
We do, of course, want capital IDs to match previous behaviour.
- printf("<P>Looking for path from 0x%" PRIx64" to 0x%" PRIx64
+ printf("<P>Looking for path from 0x%" PRIX64" to 0x%" PRIX64
- printf("<A HREF=\"gpgwww?from=0x%08" PRIx64 "&to=0x%08" PRIx64
+ printf("<A HREF=\"gpgwww?from=0x%08" PRIX64 "&to=0x%08" PRIX64
"\">Find reverse path</A>\n",
to,
from);
"\">Find reverse path</A>\n",
to,
from);
- printf("<A HREF=\"gpgwww?from=0x%08" PRIx64 "&to=0x%08" PRIx64
+ printf("<A HREF=\"gpgwww?from=0x%08" PRIX64 "&to=0x%08" PRIX64
"&op=get\">"
"Get all keys listed</A></P>\n",
from,
"&op=get\">"
"Get all keys listed</A></P>\n",
from,
catchsignals();
config.dbbackend->initdb(true);
inithash();
catchsignals();
config.dbbackend->initdb(true);
inithash();
- logthing(LOGTHING_NOTICE, "Looking for path from 0x%" PRIx64 " to 0x%"
- PRIx64,
+ logthing(LOGTHING_NOTICE, "Looking for path from 0x%" PRIX64 " to 0x%"
+ PRIX64,
from,
to);
if (op == OP_GET) {
from,
to);
if (op == OP_GET) {
}
if (html && uid != NULL) {
printf("%s <a href=\"lookup?op=get&"
}
if (html && uid != NULL) {
printf("%s <a href=\"lookup?op=get&"
- "search=%016" PRIx64 "\">%08" PRIx64
+ "search=%016" PRIX64 "\">%08" PRIX64
"</a> "
"<a href=\"lookup?op=vindex&search=0x%016"
"</a> "
"<a href=\"lookup?op=vindex&search=0x%016"
sig,
sigid,
sigid & 0xFFFFFFFF,
sigid,
txt2html(uid));
} else if (html && uid == NULL) {
sig,
sigid,
sigid & 0xFFFFFFFF,
sigid,
txt2html(uid));
} else if (html && uid == NULL) {
- printf("%s %08" PRIx64 " "
+ printf("%s %08" PRIX64 " "
"[User id not found]\n",
sig,
sigid & 0xFFFFFFFF);
} else {
"[User id not found]\n",
sig,
sigid & 0xFFFFFFFF);
} else {
" %s\n",
sig,
sigid & 0xFFFFFFFF,
" %s\n",
sig,
sigid & 0xFFFFFFFF,
printf(" ");
if (html) {
printf("<img src=\"lookup?op=photo&search=0x%"
printf(" ");
if (html) {
printf("<img src=\"lookup?op=photo&search=0x%"
- PRIx64 "&idx=%d\" alt=\"[photo id]\">"
+ PRIX64 "&idx=%d\" alt=\"[photo id]\">"
if (html) {
printf("pub %5d%c/<a href=\"lookup?op=get&"
if (html) {
printf("pub %5d%c/<a href=\"lookup?op=get&"
- "search=%016" PRIx64 "\">%08" PRIx64
+ "search=%016" PRIX64 "\">%08" PRIX64
"</a> %04d/%02d/%02d ",
length,
(type == 1) ? 'R' : ((type == 16) ? 'g' :
"</a> %04d/%02d/%02d ",
length,
(type == 1) ? 'R' : ((type == 16) ? 'g' :
created->tm_mon + 1,
created->tm_mday);
} else {
created->tm_mon + 1,
created->tm_mday);
} else {
- printf("pub %5d%c/%08" PRIx64 " %04d/%02d/%02d ",
+ printf("pub %5d%c/%08" PRIX64 " %04d/%02d/%02d ",
length,
(type == 1) ? 'R' : ((type == 16) ? 'g' :
((type == 17) ? 'D' : '?')),
length,
(type == 1) ? 'R' : ((type == 16) ? 'g' :
((type == 17) ? 'D' : '?')),
curuid->packet->data);
if (html) {
printf("<a href=\"lookup?op=vindex&"
curuid->packet->data);
if (html) {
printf("<a href=\"lookup?op=vindex&"
- "search=0x%016" PRIx64 "\">",
+ "search=0x%016" PRIX64 "\">",
keyid);
}
printf("%s%s%s\n",
keyid);
}
printf("%s%s%s\n",
switch (keys->publickey->data[0]) {
case 2:
case 3:
switch (keys->publickey->data[0]) {
case 2:
case 3:
- printf("%016" PRIx64, get_keyid(keys));
+ printf("%016" PRIX64, get_keyid(keys));
type = keys->publickey->data[7];
length = (keys->publickey->data[8] << 8) +
keys->publickey->data[9];
type = keys->publickey->data[7];
length = (keys->publickey->data[8] << 8) +
keys->publickey->data[9];
to = tmp;
distance = to->colour;
printf("Current max path (#%ld) is from %"
to = tmp;
distance = to->colour;
printf("Current max path (#%ld) is from %"
" (%ld steps)\n",
loop,
from->keyid,
" (%ld steps)\n",
loop,
from->keyid,
- printf("Max path is from %" PRIx64 " to %" PRIx64 " (%ld steps)\n",
+ printf("Max path is from %" PRIX64 " to %" PRIX64 " (%ld steps)\n",
from->keyid,
to->keyid,
distance);
from->keyid,
to->keyid,
distance);
config.dbbackend->cached_getkeysigs(keyid);
if ((keyinfo = findinhash(keyid)) == NULL) {
config.dbbackend->cached_getkeysigs(keyid);
if ((keyinfo = findinhash(keyid)) == NULL) {
- printf("Couldn't find key 0x%" PRIx64 ".\n", keyid);
+ printf("Couldn't find key 0x%" PRIX64 ".\n", keyid);
return;
}
uid = config.dbbackend->keyid2uid(keyinfo->keyid);
return;
}
uid = config.dbbackend->keyid2uid(keyinfo->keyid);
- printf("Six degrees for 0x%" PRIx64 " (%s):\n", keyinfo->keyid, uid);
+ printf("Six degrees for 0x%" PRIX64 " (%s):\n", keyinfo->keyid, uid);
(void) config.dbbackend->cached_getkeysigs(fullwant);
if ((keyinfoa = findinhash(fullhave)) == NULL) {
(void) config.dbbackend->cached_getkeysigs(fullwant);
if ((keyinfoa = findinhash(fullhave)) == NULL) {
- printf("Couldn't find key 0x%" PRIx64 ".\n", have);
+ printf("Couldn't find key 0x%" PRIX64 ".\n", have);
return;
}
if ((keyinfob = findinhash(fullwant)) == NULL) {
return;
}
if ((keyinfob = findinhash(fullwant)) == NULL) {
- printf("Couldn't find key 0x%" PRIx64 ".\n", want);
+ printf("Couldn't find key 0x%" PRIX64 ".\n", want);
html ? "<BR>" : "");
if (keyinfoa->colour == 0) {
if (pathnum == 0) {
html ? "<BR>" : "");
if (keyinfoa->colour == 0) {
if (pathnum == 0) {
- printf("Can't find a link from 0x%08" PRIx64
- " to 0x%08" PRIx64 "%s\n",
+ printf("Can't find a link from 0x%08" PRIX64
+ " to 0x%08" PRIX64 "%s\n",
have,
want,
html ? "<BR>" : "");
have,
want,
html ? "<BR>" : "");
}
pathnum = count;
} else {
}
pathnum = count;
} else {
- printf("%d steps from 0x%08" PRIx64 " to 0x%08" PRIx64
+ printf("%d steps from 0x%08" PRIX64 " to 0x%08" PRIX64
"%s\n",
keyinfoa->colour, have & 0xFFFFFFFF,
want & 0xFFFFFFFF,
"%s\n",
keyinfoa->colour, have & 0xFFFFFFFF,
want & 0xFFFFFFFF,
curkey->keyid);
if (html && uid == NULL) {
printf("<a href=\"lookup?op=get&search="
curkey->keyid);
if (html && uid == NULL) {
printf("<a href=\"lookup?op=get&search="
- "0x%08" PRIx64 "\">0x%08" PRIx64
+ "0x%08" PRIX64 "\">0x%08" PRIX64
"</a> (["
"User id not found])%s<BR>\n",
curkey->keyid & 0xFFFFFFFF,
"</a> (["
"User id not found])%s<BR>\n",
curkey->keyid & 0xFFFFFFFF,
"" : " signs");
} else if (html && uid != NULL) {
printf("<a href=\"lookup?op=get&search="
"" : " signs");
} else if (html && uid != NULL) {
printf("<a href=\"lookup?op=get&search="
- "0x%08" PRIx64 "\">0x%08"
- PRIx64 "</a>"
+ "0x%08" PRIX64 "\">0x%08"
+ PRIX64 "</a>"
" (<a href=\"lookup?op=vindex&"
" (<a href=\"lookup?op=vindex&"
"\">%s</a>)%s"
"<BR>\n",
curkey->keyid & 0xFFFFFFFF,
"\">%s</a>)%s"
"<BR>\n",
curkey->keyid & 0xFFFFFFFF,
(curkey->keyid == fullwant) ?
"" : " signs");
} else {
(curkey->keyid == fullwant) ?
"" : " signs");
} else {
- printf("0x%08" PRIx64 " (%s)%s\n",
+ printf("0x%08" PRIX64 " (%s)%s\n",
curkey->keyid & 0xFFFFFFFF,
(uid == NULL) ?
"[User id not found]" :
curkey->keyid & 0xFFFFFFFF,
(uid == NULL) ?
"[User id not found]" :
}
curkey = keyinfoa;
while (curkey != NULL && curkey->keyid != 0) {
}
curkey = keyinfoa;
while (curkey != NULL && curkey->keyid != 0) {
- printf("0x%08" PRIx64 " ",
+ printf("0x%08" PRIX64 " ",
curkey->keyid & 0xFFFFFFFF);
curkey = findinhash(curkey->parent);
}
curkey->keyid & 0xFFFFFFFF);
curkey = findinhash(curkey->parent);
}