From f97bc71257b0425fca4a8bdf2bebb3ec4e79a64d Mon Sep 17 00:00:00 2001 From: enriozuni Date: Tue, 9 Jul 2019 13:40:05 +0200 Subject: [PATCH] Refactoring on ProviderDetection.java --- .../java/crypto/providerdetection/ProviderDetection.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CryptoAnalysis/src/main/java/crypto/providerdetection/ProviderDetection.java b/CryptoAnalysis/src/main/java/crypto/providerdetection/ProviderDetection.java index 904927825..1d66144fb 100644 --- a/CryptoAnalysis/src/main/java/crypto/providerdetection/ProviderDetection.java +++ b/CryptoAnalysis/src/main/java/crypto/providerdetection/ProviderDetection.java @@ -64,8 +64,9 @@ public class ProviderDetection { private String provider = null; private String rulesDirectory = null; - 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 Ruleset defaultRuleset = Ruleset.JavaCryptographicArchitecture; + private static final String rootRulesDirectory = System.getProperty("user.dir")+File.separator+"src"+File.separator+"main"+File.separator+"resources"; + private static final String defaultRulesDirectory = rootRulesDirectory+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";