Set EXPORT_VAR_AS_FN for BC-32 to work around a compiler bug,
[openssl.git] / apps / pkcs12.c
index 64b4b32be72fd5273e23d1e877b03090c173ec9d..e445c24b9bd667cc9c140f74374e312612912648 100644 (file)
@@ -538,7 +538,7 @@ int MAIN(int argc, char **argv)
 #endif
 
        if(!noprompt &&
-               EVP_read_pw_string(pass, 50, "Enter Export Password:", 1))
+               EVP_read_pw_string(pass, sizeof pass, "Enter Export Password:", 1))
                {
                BIO_printf (bio_err, "Can't read Password\n");
                goto export_end;
@@ -651,7 +651,7 @@ int MAIN(int argc, char **argv)
     if(passin) OPENSSL_free(passin);
     if(passout) OPENSSL_free(passout);
     apps_shutdown();
-    EXIT(ret);
+    OPENSSL_EXIT(ret);
 }
 
 int dump_certs_keys_p12 (BIO *out, PKCS12 *p12, char *pass,