From 3dae1904a06abda8a758241365aa53651e10f272 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 23 Oct 2002 15:07:13 +0000 Subject: [PATCH] Signal an error if the entered output password didn't match itself. PR: 314 --- apps/pkcs8.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/pkcs8.c b/apps/pkcs8.c index 7b588e4337..926af8675f 100644 --- a/apps/pkcs8.c +++ b/apps/pkcs8.c @@ -236,7 +236,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, -- 2.25.1