flags &= ~PKCS7_DETACHED;
if (operation & SMIME_OP) {
- if (outformat == FORMAT_ASN1)
- outmode = "wb";
+ outmode = WB(outformat);
} else {
if (flags & PKCS7_BINARY)
outmode = "wb";
}
if (operation & SMIME_IP) {
- if (informat == FORMAT_ASN1)
- inmode = "rb";
+ inmode = RB(informat);
} else {
if (flags & PKCS7_BINARY)
inmode = "rb";