Commit 96b35c9e authored by Richard Levitte's avatar Richard Levitte
Browse files

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

PR: 314
parent 907a8f1e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -244,7 +244,8 @@ int MAIN(int argc, char **argv)
			if(passout) p8pass = passout;
			else {
				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);
			if (!(p8 = PKCS8_encrypt(pbe_nid, cipher,