Skip to content

Commit

Permalink
Merge pull request #48 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 2.2.0
  • Loading branch information
andyone authored Mar 18, 2019
2 parents 1767b30 + 304ae1d commit dc9449a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ go:
- 1.9.x
- 1.10.x
- 1.11.x
- 1.12.x
- tip

os:
Expand Down
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
23 changes: 21 additions & 2 deletions cli/details.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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{!}")
Expand All @@ -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")
}
Expand Down Expand Up @@ -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 {
Expand Down
6 changes: 5 additions & 1 deletion common/sslcli.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -92,6 +92,10 @@ rm -rf %{buildroot}
################################################################################

%changelog
* Tue Mar 19 2019 Anton Novojilov <[email protected]> - 2.2.0-0
- Added info about 0-RTT support
- Minor UI fixes

* Mon Feb 11 2019 Anton Novojilov <[email protected]> - 2.1.0-0
- Improved DROWN check status output

Expand Down

0 comments on commit dc9449a

Please sign in to comment.