Skip to content

Commit 9532552

Browse files
committed
Formatted
1 parent 9067a42 commit 9532552

File tree

8 files changed

+6
-18
lines changed

8 files changed

+6
-18
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
<destFileName>${project.build.finalName}.${project.packaging}</destFileName>
106106
</artifactItem>
107107

108-
</artifactItems>
108+
</artifactItems>
109109
<outputDirectory>${basedir}/apps</outputDirectory>
110110
</configuration>
111111
</execution>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static void main(String[] args) throws IOException {
5252
// ANSI escape sequences to erase the progressbar
5353
ConsoleLogger.CONSOLE.info(AnsiEscapeSequence.ANSI_ONE_LINE_UP + AnsiEscapeSequence.ANSI_ERASE_LINE);
5454
}
55-
ConsoleLogger.CONSOLE.info(AnsiColor.RESET.getCode() + "Scanned in: " + ((System.currentTimeMillis() - time) / 1000) + "s\n" + report.getFullReport(config.getReportDetail(),!config.isNoColor()));
55+
ConsoleLogger.CONSOLE.info(AnsiColor.RESET.getCode() + "Scanned in: " + ((System.currentTimeMillis() - time) / 1000) + "s\n" + report.getFullReport(config.getReportDetail(), !config.isNoColor()));
5656

5757
} catch (ConfigurationException E) {
5858
LOGGER.error("Encountered a ConfigurationException aborting.", E);

src/main/java/de/rub/nds/tlsscanner/probe/TlsProbe.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public final void executeState(List<State> states) {
9797
public abstract ProbeResult executeTest();
9898

9999
public abstract boolean canBeExecuted(SiteReport report);
100-
100+
101101
public abstract ProbeResult getCouldNotExecuteResult();
102102

103103
public abstract void adjustConfig(SiteReport report);

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ public enum AnalyzedProperty {
7373
SUPPORTS_ENCRYPT_THEN_MAC(AnalyzedPropertyCategory.EXTENSIONS),
7474
SUPPORTS_TOKENBINDING(AnalyzedPropertyCategory.EXTENSIONS),
7575
SUPPORTS_MONTGOMERY_CURVES(AnalyzedPropertyCategory.EC),
76-
7776
SUPPORTS_SESSION_TICKETS(AnalyzedPropertyCategory.SESSION_RESUMPTION),
7877
SUPPORTS_SESSION_IDS(AnalyzedPropertyCategory.SESSION_RESUMPTION),
7978
SUPPORTS_SESSION_TICKET_ROTATION_HINT(AnalyzedPropertyCategory.SESSION_RESUMPTION),
@@ -82,20 +81,17 @@ public enum AnalyzedProperty {
8281
SUPPORTS_CLIENT_SIDE_INSECURE_RENEGOTIATION(AnalyzedPropertyCategory.RENEGOTIATION),
8382
SUPPORTS_TLS_FALLBACK_SCSV(AnalyzedPropertyCategory.RENEGOTIATION),
8483
SUPPORTS_TLS_COMPRESSION(AnalyzedPropertyCategory.COMPRESSION),
85-
8684
SUPPORTS_COMMON_DH_PRIMES(AnalyzedPropertyCategory.FFDHE),
8785
SUPPORTS_ONLY_PRIME_MODULI(AnalyzedPropertyCategory.FFDHE),
8886
SUPPORTS_ONLY_SAFEPRIME_MODULI(AnalyzedPropertyCategory.FFDHE),
8987
SUPPORTS_INSECURE_RENEGOTIATION(AnalyzedPropertyCategory.RENEGOTIATION),
9088
SUPPORTS_RENEGOTIATION(AnalyzedPropertyCategory.RENEGOTIATION),
91-
9289
SUPPORTS_HTTPS(AnalyzedPropertyCategory.HTTPS_HEADERS),
9390
SUPPORTS_HSTS(AnalyzedPropertyCategory.HTTPS_HEADERS),
9491
SUPPORTS_HSTS_PRELOADING(AnalyzedPropertyCategory.HTTPS_HEADERS),
9592
SUPPORTS_HPKP(AnalyzedPropertyCategory.HTTPS_HEADERS),
9693
SUPPORTS_HPKP_REPORTING(AnalyzedPropertyCategory.HTTPS_HEADERS),
9794
SUPPORTS_HTTP_COMPRESSION(AnalyzedPropertyCategory.HTTPS_HEADERS),
98-
9995
PREFERS_PFS(AnalyzedPropertyCategory.BEST_PRACTICES),
10096
ENFORCES_PFS(AnalyzedPropertyCategory.BEST_PRACTICES),
10197
ENFOCRES_CS_ORDERING(AnalyzedPropertyCategory.BEST_PRACTICES),
@@ -186,7 +182,6 @@ public enum AnalyzedProperty {
186182
MISSES_GCM_CHECKS(AnalyzedPropertyCategory.COMPARISON_FAILURE),
187183
HAS_CERTIFICATE_ISSUES(AnalyzedPropertyCategory.CERTIFICATE),
188184
HAS_WEAK_RANDOMNESS(AnalyzedPropertyCategory.FRESHNESS),
189-
190185
REUSES_EC_PUBLICKEY(AnalyzedPropertyCategory.FRESHNESS),
191186
REUSES_DH_PUBLICKEY(AnalyzedPropertyCategory.FRESHNESS),
192187
REUSES_GCM_NONCES(AnalyzedPropertyCategory.FRESHNESS),

src/main/java/de/rub/nds/tlsscanner/report/result/CiphersuiteProbeResult.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ public void mergeData(SiteReport report) {
8686
adjustCipherType(suite);
8787
}
8888
report.setCipherSuites(allSupported);
89-
}else
90-
{
89+
} else {
9190
supportsAeadCiphers = TestResult.COULD_NOT_TEST;
9291
prefersPfsCiphers = TestResult.COULD_NOT_TEST;
9392
supportsAeadCiphers = TestResult.COULD_NOT_TEST;

src/main/java/de/rub/nds/tlsscanner/report/result/ExtensionResult.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ public void mergeData(SiteReport report) {
5454
sessionTickets = TestResult.TRUE;
5555
}
5656
}
57-
}else
58-
{
57+
} else {
5958
encryptThenMac = TestResult.COULD_NOT_TEST;
6059
extendedMasterSecret = TestResult.COULD_NOT_TEST;
6160
secureRenegotiation = TestResult.COULD_NOT_TEST;

src/main/java/de/rub/nds/tlsscanner/report/result/PaddingOracleResponseMap.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ public void mergeData(SiteReport report) {
3838
if (resultList != null && resultList.isEmpty() && vulnerable == null) {
3939
vulnerable = TestResult.FALSE;
4040
}
41-
if(resultList == null)
42-
{
41+
if (resultList == null) {
4342
vulnerable = TestResult.COULD_NOT_TEST;
4443
}
4544
report.setPaddingOracleTestResultList(resultList);

src/test/java/de/rub/nds/tlsscanner/report/SiteReportPrinterTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,5 @@ public void testPrintEmptyReport() {
5959
printer.getFullReport();
6060
}
6161
}
62-
63-
64-
65-
6662

6763
}

0 commit comments

Comments
 (0)