From eed7eb0ff87a8555baeabcb4938e696fa08c4897 Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Fri, 26 Feb 2021 09:14:05 +0200 Subject: [PATCH] naming --- main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 30fb007..50c3411 100644 --- a/main.go +++ b/main.go @@ -28,10 +28,10 @@ type CLIArgs struct { verbosity int timeout time.Duration cert, key, cafile string - list_suites bool + list_ciphers bool } -func list_suites() { +func list_ciphers() { for _, cipher := range tls.CipherSuites() { fmt.Println(cipher.Name) } @@ -47,7 +47,7 @@ func parse_args() CLIArgs { flag.StringVar(&args.cert, "cert", "", "enable TLS and use certificate") flag.StringVar(&args.key, "key", "", "key for TLS certificate") flag.StringVar(&args.cafile, "cafile", "", "CA file to authenticate clients with certificates") - flag.BoolVar(&args.list_suites, "list-ciphers", false, "list ciphersuites") + flag.BoolVar(&args.list_ciphers, "list-ciphers", false, "list ciphersuites") flag.Parse() return args } @@ -55,8 +55,8 @@ func parse_args() CLIArgs { func run() int { args := parse_args() - if args.list_suites { - list_suites() + if args.list_ciphers { + list_ciphers() return 0 }