aboutsummaryrefslogtreecommitdiffstats
path: root/apps/pkcs8.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-10-23 15:07:09 +0000
committerRichard Levitte <levitte@openssl.org>2002-10-23 15:07:09 +0000
commit96b35c9e26c847b5f12cf243975de3ed92b50295 (patch)
treefa5fc63fc59a20d8710fe89a7052935bd49d69b1 /apps/pkcs8.c
parent907a8f1e6ef1166c9089841e130b6312b2956c8b (diff)
downloadopenssl-96b35c9e26c847b5f12cf243975de3ed92b50295.tar.gz
Signal an error if the entered output password didn't match itself.
PR: 314
Diffstat (limited to 'apps/pkcs8.c')
-rw-r--r--apps/pkcs8.c3
1 files changed, 2 insertions, 1 deletions
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,