Better type for x509 -checkend argument
[openssl.git] / apps / pkcs7.c
index 248e0d6db26cd477cc04624517a44dcc4313f7ea..1ed0b013395b95f33c8ca0ba150cee6057177f65 100644 (file)
@@ -193,10 +193,7 @@ int pkcs7_main(int argc, char **argv)
     argc = opt_num_rest();
     argv = opt_rest();
 
-    if (!app_load_modules(NULL))
-        goto end;
-
-    in = bio_open_default(infile, RB(informat));
+    in = bio_open_default(infile, 'r', informat);
     if (in == NULL)
         goto end;
 
@@ -210,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;