diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-12-24 23:53:57 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-12-24 23:53:57 +0000 |
commit | 36217a942488852b616974e168a6ff0fecfb02fa (patch) | |
tree | 416a573e7d641b0209f7479c93070cc5365de039 /apps/ca.c | |
parent | 12aefe78f0aec57159e396b5fd8f71644a76b631 (diff) | |
download | openssl-36217a942488852b616974e168a6ff0fecfb02fa.tar.gz |
Allow passwords to be included on command line for a few
more utilities.
Diffstat (limited to 'apps/ca.c')
-rw-r--r-- | apps/ca.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -528,13 +528,8 @@ bad: BIO_printf(bio_err,"trying to load CA private key\n"); goto err; } - if (key == NULL) - pkey=PEM_read_bio_PrivateKey(in,NULL,NULL,NULL); - else - { - pkey=PEM_read_bio_PrivateKey(in,NULL,key_cb,key); - memset(key,0,strlen(key)); - } + pkey=PEM_read_bio_PrivateKey(in,NULL,PEM_cb,key); + if(key) memset(key,0,strlen(key)); if (pkey == NULL) { BIO_printf(bio_err,"unable to load CA private key\n"); |