X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/33cfd5887ea8d05241b5b4749abbf7fdfadb51fe..HEAD:/stripkey.c diff --git a/stripkey.c b/stripkey.c index 414c163..e0fb5e3 100644 --- a/stripkey.c +++ b/stripkey.c @@ -63,7 +63,8 @@ int main(int argc, char** argv) { cleankeys( keys ); /* Iterate over the keys... */ for( key = keys; key; key = key->next ) { - uint64_t keyid = get_keyid( key ); + uint64_t keyid; + get_keyid( key, &keyid ); for( uid = key->uids; uid; uid = uid->next ) { REPEATTHISUID: for( sig = uid->sigs, prevsig = NULL; @@ -83,8 +84,8 @@ int main(int argc, char** argv) { } } } - flatten_publickey( key, &packets, &list_end ); } + flatten_publickey( keys, &packets, &list_end ); write_openpgp_stream( stdout_putchar, NULL, packets ); return 0; }