diff --git a/.travis.yml b/.travis.yml index 8f5feae..55e3492 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ go: - 1.9.x - 1.10.x - 1.11.x + - 1.12.x - tip os: diff --git a/cli/cli.go b/cli/cli.go index e564119..1bb8542 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -29,7 +29,7 @@ import ( const ( APP = "SSLScan Client" - VER = "2.1.0" + VER = "2.2.0" DESC = "Command-line client for the SSL Labs API" ) diff --git a/cli/details.go b/cli/details.go index d8b7399..b733c75 100644 --- a/cli/details.go +++ b/cli/details.go @@ -252,6 +252,7 @@ func printProtocolDetailsInfo(details *sslscan.EndpointDetails) { printEndpointDHPrimesInfo(details) printEndpointECDHInfo(details) printEndpointNamedGroups(details.NamedGroups) + print0RTTStatus(details.ZeroRTTEnabled) } // printTransactionsInfo prints info about HTTP transactions @@ -659,7 +660,7 @@ func printSimulationInfo(sim *sslscan.SIM, suites []*sslscan.ProtocolSuites) { func printEndpointRenegotiationInfo(details *sslscan.EndpointDetails) { fmtc.Printf(" %-40s {s}|{!} ", "Secure Renegotiation") - if details.RenegSupport&1 == 1 { + if details.RenegSupport == 0 { fmtc.Println("{y}Not supported{!}") } else { fmtc.Println("{g}Supported{!}") @@ -668,7 +669,7 @@ func printEndpointRenegotiationInfo(details *sslscan.EndpointDetails) { fmtc.Printf(" %-40s {s}|{!} ", "Secure Client-Initiated Renegotiation") if details.RenegSupport&4 == 4 { - fmtc.Println("{y}Supported (DoS DANGER){!}") + fmtc.Println("Yes") } else { fmtc.Println("No") } @@ -1061,6 +1062,24 @@ func printEndpointNamedGroups(namedGroups *sslscan.NamedGroups) { } } +// print0RTTStatus prints 0-RTT support status +func print0RTTStatus(status int) { + if status == -1 { + return + } + + fmtc.Printf(" %-40s {s}|{!} ", "0-RTT") + + switch status { + case -2: + fmtc.Println("Test failed") + case 0: + fmtc.Println("No") + case 1: + fmtc.Println("{g}Yes{!}") + } +} + // printPolicyInfo prints info about HPKP policy func printPolicyInfo(policy *sslscan.HPKPPolicy) { if policy == nil { diff --git a/common/sslcli.spec b/common/sslcli.spec index 95401e5..dfbc3be 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.1.0 +Version: 2.2.0 Release: 0%{?dist} Group: Applications/System License: EKOL @@ -92,6 +92,10 @@ rm -rf %{buildroot} ################################################################################ %changelog +* Tue Mar 19 2019 Anton Novojilov - 2.2.0-0 +- Added info about 0-RTT support +- Minor UI fixes + * Mon Feb 11 2019 Anton Novojilov - 2.1.0-0 - Improved DROWN check status output