projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Obey binary flag for "onak get"
[onak.git]
/
onak.c
diff --git
a/onak.c
b/onak.c
index 3a6f62fad122af9e8103ce87eaab04d60c4610b1..30f771084931b3ee249f8d2e497d2d0edff89b55 100644
(file)
--- a/
onak.c
+++ b/
onak.c
@@
-322,9
+322,15
@@
int main(int argc, char *argv[])
&packets,
&list_end);
free_publickey(keys);
&packets,
&list_end);
free_publickey(keys);
- armor_openpgp_stream(stdout_putchar,
+ if (binary) {
+ write_openpgp_stream(stdout_putchar,
NULL,
packets);
NULL,
packets);
+ } else {
+ armor_openpgp_stream(stdout_putchar,
+ NULL,
+ packets);
+ }
free_packet_list(packets);
packets = NULL;
} else {
free_packet_list(packets);
packets = NULL;
} else {