Fix some of the command line password stuff. New function
[openssl.git] / crypto / pkcs7 / enc.c
index 43bfd10a238048335f16720b8e9eac33748ac966..66a300aee7ccfcc6d64cab65ec9edb7640bb13b7 100644 (file)
@@ -56,6 +56,7 @@
  * [including the GNU Public Licence.]
  */
 #include <stdio.h>
+#include <string.h>
 #include <openssl/bio.h>
 #include <openssl/x509.h>
 #include <openssl/pem.h>
@@ -98,7 +99,8 @@ char *argv[];
                        argc-=2;
                        argv+=2;
                        if (!(in=BIO_new_file(keyfile,"r"))) goto err;
-                       if (!(x509=PEM_read_bio_X509(in,NULL,NULL))) goto err;
+                       if (!(x509=PEM_read_bio_X509(in,NULL,NULL,NULL)))
+                               goto err;
                        if(!recips) recips = sk_X509_new_null();
                        sk_X509_push(recips, x509);
                        BIO_free(in);