X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=stripkey.c;h=8aed81005bee3b8e37f16dc72830380752b8177d;hb=0c120d1895d25b59abe338862189be1b87447569;hp=414c1633c939be58677370755098faa7d7d5110b;hpb=33cfd5887ea8d05241b5b4749abbf7fdfadb51fe;p=onak.git diff --git a/stripkey.c b/stripkey.c index 414c163..8aed810 100644 --- a/stripkey.c +++ b/stripkey.c @@ -17,26 +17,16 @@ * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include +#include #include #include -#include -#include -#include -#include "armor.h" #include "charfuncs.h" #include "cleankey.h" -#include "keydb.h" #include "keyid.h" -#include "keyindex.h" #include "keystructs.h" -#include "log.h" #include "mem.h" -#include "merge.h" -#include "onak-conf.h" #include "parsekey.h" -#include "photoid.h" #include "decodekey.h" int main(int argc, char** argv) { @@ -63,7 +53,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 +74,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; }