diff mbox

[ovs-dev] stream: include ssl protocol/cipher options in run-time help

Message ID 20170607145452.18831-1-lrichard@redhat.com
State Accepted
Headers show

Commit Message

Lance Richardson June 7, 2017, 2:54 p.m. UTC
Include --ssl-protocols and --ssl-ciphers options in run-time
help output.

Sample output with this change:

PKI configuration (required to use SSL):
  -p, --private-key=FILE  file with private key
  -c, --certificate=FILE  file with certificate for private key
  -C, --ca-cert=FILE      file with peer CA certificate
  --bootstrap-ca-cert=FILE  file with peer CA certificate to read or create
SSL options:
  --ssl-protocols=PROTOS  list of SSL protocols to enable
  --ssl-ciphers=CIPHERS   list of SSL ciphers to enable

Output formatting options:

Signed-off-by: Lance Richardson <lrichard@redhat.com>
---
 lib/stream.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Ben Pfaff June 7, 2017, 3:46 p.m. UTC | #1
On Wed, Jun 07, 2017 at 10:54:52AM -0400, Lance Richardson wrote:
> Include --ssl-protocols and --ssl-ciphers options in run-time
> help output.
> 
> Sample output with this change:
> 
> PKI configuration (required to use SSL):
>   -p, --private-key=FILE  file with private key
>   -c, --certificate=FILE  file with certificate for private key
>   -C, --ca-cert=FILE      file with peer CA certificate
>   --bootstrap-ca-cert=FILE  file with peer CA certificate to read or create
> SSL options:
>   --ssl-protocols=PROTOS  list of SSL protocols to enable
>   --ssl-ciphers=CIPHERS   list of SSL ciphers to enable
> 
> Output formatting options:
> 
> Signed-off-by: Lance Richardson <lrichard@redhat.com>

Applied to master, thanks!
diff mbox

Patch

diff --git a/lib/stream.c b/lib/stream.c
index 5959309..6b57c7c 100644
--- a/lib/stream.c
+++ b/lib/stream.c
@@ -156,6 +156,9 @@  stream_usage(const char *name, bool active, bool passive,
         printf("  --bootstrap-ca-cert=FILE  file with peer CA certificate "
                "to read or create\n");
     }
+    printf("SSL options:\n"
+           "  --ssl-protocols=PROTOS  list of SSL protocols to enable\n"
+           "  --ssl-ciphers=CIPHERS   list of SSL ciphers to enable\n");
 #endif
 }