diff options
Diffstat (limited to 'apps/cms.c')
-rw-r--r-- | apps/cms.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/cms.c b/apps/cms.c index e40686b5d4..599f21774e 100644 --- a/apps/cms.c +++ b/apps/cms.c @@ -690,16 +690,14 @@ int cms_main(int argc, char **argv) flags &= ~CMS_DETACHED; if (operation & SMIME_OP) { - if (outformat == FORMAT_ASN1) - outmode = "wb"; + outmode = WB(outformat); } else { if (flags & CMS_BINARY) outmode = "wb"; } if (operation & SMIME_IP) { - if (informat == FORMAT_ASN1) - inmode = "rb"; + inmode = RB(informat); } else { if (flags & CMS_BINARY) inmode = "rb"; |