X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/1921fa44cfae203ae40e853ee9ecedb206fa9413..33cfd5887ea8d05241b5b4749abbf7fdfadb51fe:/sixdegrees.c diff --git a/sixdegrees.c b/sixdegrees.c index e346cf1..e6a3594 100644 --- a/sixdegrees.c +++ b/sixdegrees.c @@ -1,9 +1,20 @@ /* * sixdegrees.c - List the size of the six degrees of trust away from a key. - * - * Jonathan McDowell * - * Copyright 2001-2002 Project Purple. + * Copyright 2001-2002 Jonathan McDowell + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., 51 + * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include @@ -86,12 +97,13 @@ void sixdegrees(uint64_t keyid) 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%016" PRIX64 ".\n", keyid); return; } uid = config.dbbackend->keyid2uid(keyinfo->keyid); - printf("Six degrees for 0x%" PRIx64 " (%s):\n", keyinfo->keyid, uid); + printf("Six degrees for 0x%016" PRIX64 " (%s):\n", keyinfo->keyid, + uid); free(uid); uid = NULL; @@ -120,7 +132,7 @@ void sixdegrees(uint64_t keyid) int main(int argc, char *argv[]) { - uint64_t keyid = 0x5B430367; + uint64_t keyid = 0x2DA8B985; if (argc == 2) { keyid = strtoll(argv[1], NULL, 16);