diff options
author | Richard Levitte <levitte@openssl.org> | 2015-05-06 18:50:57 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-05-06 19:43:59 +0200 |
commit | 5c4e3a4e60f7d92ef829eb70071e29270b7b6653 (patch) | |
tree | 7ed879bf3e7dae4337270480a5bf2331aae785e4 /apps/x509.c | |
parent | 2455eaf43f29cf11a949b965d7aa5b2ed816dd5c (diff) | |
download | openssl-5c4e3a4e60f7d92ef829eb70071e29270b7b6653.tar.gz |
Make -CAserial a type 's' option
The file name given to -CAserial might not exist yet. The
-CAcreateserial option decides if this is ok or not.
Previous to this change, -CAserial was a type '<' option, and in that
case, the existence of the file given as argument is tested quite
early, and is a failure if it doesn't. With the type 's' option, the
argument is just a string that the application can do whatever it
wants with.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps/x509.c')
-rw-r--r-- | apps/x509.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/x509.c b/apps/x509.c index fe9b10994e..5938b43412 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -175,7 +175,7 @@ OPTIONS x509_options[] = { "The CA key, must be PEM format; if not in CAfile"}, {"CAcreateserial", OPT_CACREATESERIAL, '-', "Create serial number file if it does not exist"}, - {"CAserial", OPT_CASERIAL, '<', "Serial file"}, + {"CAserial", OPT_CASERIAL, 's', "Serial file"}, {"set_serial", OPT_SET_SERIAL, 's', "Serial number to use"}, {"text", OPT_TEXT, '-', "Print the certificate in text form"}, {"C", OPT_C, '-', "Print out C code forms"}, |