Make the RSA structure opaque
[openssl.git] / apps / pkcs7.c
index 7c62a8658e6939b3e8d964823dc3aa09817c5eed..ad8330d42ff76e0864be2ed01b3cf60b19517da8 100644 (file)
@@ -191,9 +191,10 @@ int pkcs7_main(int argc, char **argv)
         }
     }
     argc = opt_num_rest();
-    argv = opt_rest();
+    if (argc != 0)
+        goto opthelp;
 
-    in = bio_open_default(infile, RB(informat));
+    in = bio_open_default(infile, 'r', informat);
     if (in == NULL)
         goto end;
 
@@ -207,7 +208,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;