From: Richard Levitte Date: Wed, 23 Oct 2002 15:07:18 +0000 (+0000) Subject: Signal an error if the entered output password didn't match itself. X-Git-Tag: OpenSSL_0_9_7-beta4~104 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4407fbc2d45b0b2d248fbbf7bc620a1f00b8190e;p=oweals%2Fopenssl.git Signal an error if the entered output password didn't match itself. PR: 314 --- diff --git a/apps/pkcs8.c b/apps/pkcs8.c index f86474dd25..8464c43996 100644 --- a/apps/pkcs8.c +++ b/apps/pkcs8.c @@ -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,