From 65efa2b7def8a0e7314f3e160207e65d99ba0e30 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Mon, 11 Feb 2019 14:39:04 +0300 Subject: [PATCH] Improved DROWN check status output --- cli/cli.go | 2 +- cli/details.go | 7 +++++-- common/sslcli.spec | 5 ++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index c7ed75a..e564119 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -29,7 +29,7 @@ import ( const ( APP = "SSLScan Client" - VER = "2.0.1" + VER = "2.1.0" DESC = "Command-line client for the SSL Labs API" ) diff --git a/cli/details.go b/cli/details.go index 0ffc7f6..d8b7399 100644 --- a/cli/details.go +++ b/cli/details.go @@ -705,9 +705,12 @@ func printEndpointPoodleStatus(details *sslscan.EndpointDetails) { func printEndpointDrownStatus(details *sslscan.EndpointDetails) { fmtc.Printf(" %-40s {s}|{!} ", "DROWN") - if details.DrownVulnerable { + switch { + case details.DrownErrors: + fmtc.Println("{y}Unable to perform this test due to an internal error{!}") + case details.DrownVulnerable: fmtc.Println("{r}Vulnerable{!}") - } else { + default: fmtc.Println("No") } } diff --git a/common/sslcli.spec b/common/sslcli.spec index 3807c3f..95401e5 100644 --- a/common/sslcli.spec +++ b/common/sslcli.spec @@ -44,7 +44,7 @@ Summary: Pretty awesome command-line client for public SSLLabs API Name: sslcli -Version: 2.0.1 +Version: 2.1.0 Release: 0%{?dist} Group: Applications/System License: EKOL @@ -92,6 +92,9 @@ rm -rf %{buildroot} ################################################################################ %changelog +* Mon Feb 11 2019 Anton Novojilov - 2.1.0-0 +- Improved DROWN check status output + * Sat Feb 09 2019 Anton Novojilov - 2.0.1-0 - Fixed compatibility with the latest version of ek package