X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=apps%2Fpkcs12.c;h=e445c24b9bd667cc9c140f74374e312612912648;hb=08cb96bba2831a8fc3dbda697ab65d64bb05a371;hp=64b4b32be72fd5273e23d1e877b03090c173ec9d;hpb=54a656ef081f72a740c550ebd8099b40b8b5cde0;p=openssl.git diff --git a/apps/pkcs12.c b/apps/pkcs12.c index 64b4b32be7..e445c24b9b 100644 --- a/apps/pkcs12.c +++ b/apps/pkcs12.c @@ -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,