File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/de/rub/nds/tlsscanner/report/result Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 20
20
* @author Robert Merget <[email protected] >
21
21
*/
22
22
public class CompressionsResult extends ProbeResult {
23
-
23
+
24
24
private List <CompressionMethod > compressions ;
25
-
25
+
26
26
public CompressionsResult (List <CompressionMethod > compressions ) {
27
27
super (ProbeType .COMPRESSIONS );
28
28
this .compressions = compressions ;
29
29
}
30
-
30
+
31
31
@ Override
32
32
public void mergeData (SiteReport report ) {
33
33
if (compressions != null ) {
34
34
report .setSupportedCompressionMethods (compressions );
35
- if (compressions .size () > 1 ) {
35
+ if (compressions .contains ( CompressionMethod . LZS ) || compressions . contains ( CompressionMethod . DEFLATE ) ) {
36
36
report .putResult (AnalyzedProperty .VULNERABLE_TO_CRIME , TestResult .TRUE );
37
37
} else {
38
38
report .putResult (AnalyzedProperty .VULNERABLE_TO_CRIME , TestResult .FALSE );
@@ -41,5 +41,5 @@ public void mergeData(SiteReport report) {
41
41
report .putResult (AnalyzedProperty .VULNERABLE_TO_CRIME , TestResult .COULD_NOT_TEST );
42
42
}
43
43
}
44
-
44
+
45
45
}
You can’t perform that action at this time.
0 commit comments