Better type for x509 -checkend argument
[openssl.git] / apps / pkcs7.c
index 7c62a8658e6939b3e8d964823dc3aa09817c5eed..1ed0b013395b95f33c8ca0ba150cee6057177f65 100644 (file)
@@ -193,7 +193,7 @@ int pkcs7_main(int argc, char **argv)
     argc = opt_num_rest();
     argv = opt_rest();
 
-    in = bio_open_default(infile, RB(informat));
+    in = bio_open_default(infile, 'r', informat);
     if (in == NULL)
         goto end;
 
@@ -207,7 +207,7 @@ int pkcs7_main(int argc, char **argv)
         goto end;
     }
 
-    out = bio_open_default(outfile, WB(outformat));
+    out = bio_open_default(outfile, 'w', outformat);
     if (out == NULL)
         goto end;