Skip to content

Commit

Permalink
UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Feb 9, 2019
1 parent 80618cd commit 3857c4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 5 additions & 6 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ func process(args []string) {
checksInfo = append(checksInfo, checkInfo)
default:
grade = check(host)
fmtc.NewLine()
}

switch {
Expand Down Expand Up @@ -245,27 +246,25 @@ func check(host string) string {
IgnoreMismatch: options.GetB(OPT_IGNORE_MISMATCH),
}

if !options.GetB(OPT_DETAILED) {
fmtc.TPrintf("{*}%s{!} → {s}Preparing for tests…{!}", host)
}
fmtc.TPrintf("{*}%s{!} → {s}Preparing for tests…{!}", host)

ap, err := api.Analyze(host, params)

if err != nil {
fmtc.Printf("{r}%v{!}\n", err)
fmtc.TPrintf("{*}%s{!} → {r}%v{!}\n", host, err)
return "T"
}

for {
info, err = ap.Info(false)

if err != nil {
fmtc.Printf("{*}%s{!} → {r}%v{!}\n", host, err)
fmtc.TPrintf("{*}%s{!} → {r}%v{!}\n", host, err)
return "Err"
}

if info.Status == sslscan.STATUS_ERROR {
fmtc.Printf("{*}%s{!} → {r}%s{!}\n", host, info.StatusMessage)
fmtc.TPrintf("{*}%s{!} → {r}%s{!}\n", host, info.StatusMessage)
return "Err"
} else if info.Status == sslscan.STATUS_READY {
break
Expand Down
2 changes: 0 additions & 2 deletions cli/details.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ func printDetailedInfo(ap *sslscan.AnalyzeProgress) {
fmtc.Printf("\n{c*} %s {!*}#%d (%s){!}\n", info.Host, index+1, endpoint.IPAdress)
printDetailedEndpointInfo(endpoint, info.Certs)
}

fmtc.NewLine()
}

// printCertificateInfo prints info about server certificate
Expand Down

0 comments on commit 3857c4f

Please sign in to comment.