s_time: Allow using -CAfile option as in other commands
authorTomas Mraz <tmraz@fedoraproject.org>
Thu, 16 Apr 2020 10:07:35 +0000 (12:07 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Fri, 17 Apr 2020 11:36:25 +0000 (13:36 +0200)
The s_time command in difference from all the other similar
commands supported -cafile option instead of -CAfile.
Add the -CAfile option and keep -cafile only for backwards
compatibility.

Fixes #11552

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11555)

apps/s_time.c
doc/man1/s_time.pod

index 82d40a5a513246acf7e47642a4864bc6e489bed9..d52f525eaca0bba2d40866d4fb950c46a9fe3b44 100644 (file)
@@ -62,6 +62,7 @@ const OPTIONS s_time_options[] = {
     {"key", OPT_KEY, '<', "File with key, PEM; default is -cert file"},
     {"CApath", OPT_CAPATH, '/', "PEM format directory of CA's"},
     {"cafile", OPT_CAFILE, '<', "PEM format file of CA's"},
+    {"CAfile", OPT_CAFILE, '<', "PEM format file of CA's"},
     {"no-CAfile", OPT_NOCAFILE, '-',
      "Do not load the default certificates file"},
     {"no-CApath", OPT_NOCAPATH, '-',
index ac32f36bc789850bf8d9625f144cdf862ab88178..85e9b7f6274c6446a1c433305b2d8892c20e0c24 100644 (file)
@@ -14,7 +14,7 @@ B<openssl> B<s_time>
 [B<-cert filename>]
 [B<-key filename>]
 [B<-CApath directory>]
-[B<-cafile filename>]
+[B<-CAfile filename>]
 [B<-no-CAfile>]
 [B<-no-CApath>]
 [B<-reuse>]