summaryrefslogtreecommitdiffstats
path: root/apps/rsautl.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-01-25 16:51:46 +0000
committerRichard Levitte <levitte@openssl.org>2002-01-25 16:51:46 +0000
commit17bcb8d4659e2c800afc44f8b209808a6fea4239 (patch)
treed7cb8447dbfdba8613dd35850ad851222823ea9f /apps/rsautl.c
parent72165799a8b99b729c8ae7942ff3b61c92f62983 (diff)
Add -keyform. Document -engine.
Diffstat (limited to 'apps/rsautl.c')
-rw-r--r--apps/rsautl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/rsautl.c b/apps/rsautl.c
index c04a2fcb9b..e4bc219063 100644
--- a/apps/rsautl.c
+++ b/apps/rsautl.c
@@ -119,6 +119,9 @@ int MAIN(int argc, char **argv)
} else if(!strcmp(*argv, "-inkey")) {
if (--argc < 1) badarg = 1;
keyfile = *(++argv);
+ } else if (strcmp(*argv,"-keyform") == 0) {
+ if (--argc < 1) goto bad;
+ keyform=str2fmt(*(++argv));
} else if(!strcmp(*argv, "-engine")) {
if (--argc < 1) badarg = 1;
engine = *(++argv);
@@ -287,6 +290,7 @@ static void usage()
BIO_printf(bio_err, "-in file input file\n");
BIO_printf(bio_err, "-out file output file\n");
BIO_printf(bio_err, "-inkey file input key\n");
+ BIO_printf(bio_err, "-keyform arg private key format - default PEM\n");
BIO_printf(bio_err, "-pubin input is an RSA public\n");
BIO_printf(bio_err, "-certin input is a certificate carrying an RSA public key\n");
BIO_printf(bio_err, "-ssl use SSL v2 padding\n");
@@ -298,6 +302,8 @@ static void usage()
BIO_printf(bio_err, "-encrypt encrypt with public key\n");
BIO_printf(bio_err, "-decrypt decrypt with private key\n");
BIO_printf(bio_err, "-hexdump hex dump output\n");
+ BIO_printf(bio_err, "-engine e use engine e, possibly a hardware device.\n");
+
}
#endif