summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e9e09c3)
We accepted -b for "onak add" to read in a binary key, but always
output keys ASCII armoured; obey -b for get as well and return the
raw key data.
&packets,
&list_end);
free_publickey(keys);
&packets,
&list_end);
free_publickey(keys);
- armor_openpgp_stream(stdout_putchar,
+ if (binary) {
+ write_openpgp_stream(stdout_putchar,
+ } else {
+ armor_openpgp_stream(stdout_putchar,
+ NULL,
+ packets);
+ }
free_packet_list(packets);
packets = NULL;
} else {
free_packet_list(packets);
packets = NULL;
} else {