Skip to content

Commit a332903

Browse files
committed
Updated nbactions.xml
1 parent f6c4b1e commit a332903

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

src/main/java/de/rub/nds/tlsscanner/TlsScanner.java

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -144,30 +144,35 @@ private void fillDefaultProbeLists() {
144144
}
145145

146146
public SiteReport scan() {
147-
if (isConnectable()) {
148-
LOGGER.debug(config.getClientDelegate().getHost() + " is connectable");
149-
if (speaksTls()) {
147+
boolean isConnectable = false;
148+
try {
149+
if (isConnectable()) {
150150
LOGGER.debug(config.getClientDelegate().getHost() + " is connectable");
151-
ScanJob job = new ScanJob(phaseOneTestList, phaseTwoTestList, afterList);
152-
SiteReport report = executor.execute(config, job);
153-
if (closeAfterFinish) {
154-
executor.shutdown();
151+
if (speaksTls()) {
152+
LOGGER.debug(config.getClientDelegate().getHost() + " is connectable");
153+
ScanJob job = new ScanJob(phaseOneTestList, phaseTwoTestList, afterList);
154+
SiteReport report = executor.execute(config, job);
155+
return report;
156+
} else {
157+
isConnectable = true;
155158
}
156-
if (closeAfterFinishParallel) {
157-
parallelExecutor.shutdown();
158-
}
159-
return report;
160159
}
160+
SiteReport report = new SiteReport(config.getClientDelegate().getHost(), new LinkedList<ProbeType>(), config.isNoColor());
161+
report.setServerIsAlive(isConnectable);
162+
report.setSupportsSslTls(false);
163+
return report;
164+
} finally {
165+
closeExecutorsIfNeeded();
161166
}
162-
SiteReport report = new SiteReport(config.getClientDelegate().getHost(), new LinkedList<ProbeType>(), config.isNoColor());
163-
report.setServerIsAlive(false);
167+
}
168+
169+
private void closeExecutorsIfNeeded() {
164170
if (closeAfterFinish) {
165171
executor.shutdown();
166172
}
167173
if (closeAfterFinishParallel) {
168174
parallelExecutor.shutdown();
169175
}
170-
return report;
171176
}
172177

173178
public boolean isConnectable() {

src/main/java/de/rub/nds/tlsscanner/report/SiteReportPrinter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public String getFullReport() {
5454
return builder.toString();
5555
}
5656
if (report.getSupportsSslTls() == Boolean.FALSE) {
57-
builder.append("Server does not seem to support SSL / TLS");
57+
builder.append("Server does not seem to support SSL / TLS on the scanned port");
5858
return builder.toString();
5959
}
6060

0 commit comments

Comments
 (0)