diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-09-03 23:13:48 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-09-03 23:13:48 +0000 |
commit | bd08a2bd0c1078e396c02a1ba11205a0d0a3a2a7 (patch) | |
tree | 66e5c988db7ad992f2697d1d545ed06c55b5e8a0 /apps/ca.c | |
parent | 55ac522068e616d8a4d1bd5590f3b2d08d4ba25c (diff) | |
download | openssl-bd08a2bd0c1078e396c02a1ba11205a0d0a3a2a7.tar.gz |
Add 'rsautl' low level RSA utility.
Add DER public key routines.
Add -passin argument to 'ca' utility.
Document sign and verify options to dgst.
Diffstat (limited to 'apps/ca.c')
-rw-r--r-- | apps/ca.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -216,7 +216,7 @@ int MAIN(int, char **); int MAIN(int argc, char **argv) { - char *key=NULL; + char *key=NULL,*passargin=NULL; int total=0; int total_done=0; int badops=0; @@ -333,6 +333,11 @@ EF_ALIGNMENT=0; if (--argc < 1) goto bad; keyfile= *(++argv); } + else if (strcmp(*argv,"-passin") == 0) + { + if (--argc < 1) goto bad; + passargin= *(++argv); + } else if (strcmp(*argv,"-key") == 0) { if (--argc < 1) goto bad; @@ -526,6 +531,11 @@ bad: lookup_fail(section,ENV_PRIVATE_KEY); goto err; } + if(!key && !app_passwd(bio_err, passargin, NULL, &key, NULL)) + { + BIO_printf(bio_err,"Error getting password\n"); + goto err; + } if (BIO_read_filename(in,keyfile) <= 0) { perror(keyfile); |