struct openpgp_signedpacket_list *uid = NULL;
struct openpgp_packet_list *sig = NULL;
struct openpgp_packet_list *prevsig = NULL;
- int result = 0;
uint64_t my_key = 0;
if( argc > 1 )
/* strip each key of everything but its pubkey component, uids and
* selfsigs and revsigs on those selfsigs */
- result = read_openpgp_stream( stdin_getchar, NULL, &packets, 0 );
- result = parse_keys( packets, &keys );
+ read_openpgp_stream( stdin_getchar, NULL, &packets, 0 );
+ parse_keys( packets, &keys );
free_packet_list(packets);
packets = NULL;
- result = cleankeys( keys );
+ 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;
}
}
}
- flatten_publickey( key, &packets, &list_end );
}
+ flatten_publickey( keys, &packets, &list_end );
write_openpgp_stream( stdout_putchar, NULL, packets );
return 0;
}