Signal an error if the entered output password didn't match itself.

PR: 314
This commit is contained in:
Richard Levitte 2002-10-23 15:07:09 +00:00
parent 907a8f1e6e
commit 96b35c9e26

View File

@ -244,7 +244,8 @@ int MAIN(int argc, char **argv)
if(passout) p8pass = passout; if(passout) p8pass = passout;
else { else {
p8pass = pass; p8pass = pass;
EVP_read_pw_string(pass, 50, "Enter Encryption Password:", 1); if (EVP_read_pw_string(pass, 50, "Enter Encryption Password:", 1))
return (1);
} }
app_RAND_load_file(NULL, bio_err, 0); app_RAND_load_file(NULL, bio_err, 0);
if (!(p8 = PKCS8_encrypt(pbe_nid, cipher, if (!(p8 = PKCS8_encrypt(pbe_nid, cipher,