X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;ds=inline;f=onak.c;h=30f771084931b3ee249f8d2e497d2d0edff89b55;hb=d3e43ff563940e161075fe6cad02dd558e85ed8d;hp=3a6f62fad122af9e8103ce87eaab04d60c4610b1;hpb=5b3f77c7fbafb036d20a1577ed74f475e94ed821;p=onak.git diff --git a/onak.c b/onak.c index 3a6f62f..30f7710 100644 --- a/onak.c +++ b/onak.c @@ -322,9 +322,15 @@ int main(int argc, char *argv[]) &packets, &list_end); free_publickey(keys); - armor_openpgp_stream(stdout_putchar, + if (binary) { + write_openpgp_stream(stdout_putchar, NULL, packets); + } else { + armor_openpgp_stream(stdout_putchar, + NULL, + packets); + } free_packet_list(packets); packets = NULL; } else {