Skip to content

Commit

Permalink
Used Ruleset enum for defining the 'defaultRulesDirectory' field
Browse files Browse the repository at this point in the history
  • Loading branch information
enriozuni committed Jul 9, 2019
1 parent e7c9eb8 commit c3cde4a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
import boomerang.results.AbstractBoomerangResults;
import boomerang.results.BackwardBoomerangResults;
import boomerang.seedfactory.SeedFactory;
import crypto.HeadlessCryptoScanner;
import crypto.rules.CryptSLRule;
import crypto.rules.CryptSLRuleReader;
import crypto.analysis.CrySLRulesetSelector.Ruleset;
import soot.Body;
import soot.G;
import soot.PackManager;
Expand Down Expand Up @@ -64,7 +64,8 @@ public class ProviderDetection {
private String provider = null;
private String rulesDirectory = null;

private static final String defaultRulesDirectory = System.getProperty("user.dir")+File.separator+"src"+File.separator+"main"+File.separator+"resources"+File.separator+"JavaCryptographicArchitecture";
public static final Ruleset defaultRuleset = Ruleset.JavaCryptographicArchitecture;
private static final String defaultRulesDirectory = System.getProperty("user.dir")+File.separator+"src"+File.separator+"main"+File.separator+"resources"+File.separator+defaultRuleset;
private static final String sootClassPath = System.getProperty("user.dir") + File.separator+"target"+File.separator+"test-classes";

private static final String CRYPTSLBIN = ".cryptslbin";
Expand Down

0 comments on commit c3cde4a

Please sign in to comment.