Skip to content

Commit 846b7eb

Browse files
authored
Merge pull request #1 from secure-software-engineering/develop
Merge develop into master
2 parents 97e9a04 + 5dba1f6 commit 846b7eb

File tree

75 files changed

+2994
-1726
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2994
-1726
lines changed

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules/icognicrypt.iml

Lines changed: 1 addition & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules/icognicrypt.main.iml

Lines changed: 0 additions & 326 deletions
This file was deleted.

.idea/modules/icognicrypt.test.iml

Lines changed: 0 additions & 328 deletions
This file was deleted.

build.gradle

Lines changed: 34 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import org.apache.tools.ant.taskdefs.condition.Os;
2+
13
plugins {
24
id 'java'
3-
id 'org.jetbrains.intellij' version '0.4.8'
5+
id 'org.jetbrains.intellij' version '0.6.1'
46
id 'maven'
57
}
68

@@ -9,11 +11,12 @@ apply plugin: 'org.jetbrains.intellij'
911
apply plugin: 'java'
1012

1113
group 'de.fraunhofer'
12-
version '0.2.5'
14+
version '0.2.5.3'
1315

1416
sourceCompatibility = 1.8
1517

1618
repositories {
19+
mavenLocal()
1720
mavenCentral()
1821
maven {
1922
url "https://soot-build.cs.uni-paderborn.de/nexus/repository/soot-snapshot/"
@@ -25,32 +28,42 @@ repositories {
2528

2629
dependencies {
2730
testCompile group: 'junit', name: 'junit', version: '4.12'
28-
compile group: 'de.fraunhofer.iem', name: 'CryptoAnalysis-Android', version: '2.4'
29-
compile group: 'de.fraunhofer.iem', name: 'CryptoAnalysis', version: '2.4'
30-
compile group: 'ca.mcgill.sable', name: 'soot', version: '3.3.0'
31-
compile group: 'de.tud.sse', name: 'soot-infoflow', version: '2.7.1'
32-
compile group: 'de.tud.sse', name: 'soot-infoflow-android', version: '2.7.1'
33-
compile group: 'de.tud.sse', name: 'soot-infoflow-cmd', version: '2.7.1'
31+
compile group: 'ca.mcgill.sable', name: 'soot', version: '4.0.0'
32+
compile group: 'de.fraunhofer.iem', name: 'CryptoAnalysis-Android', version: '2.7.2'
33+
compile group: 'de.fraunhofer.iem', name: 'CryptoAnalysis', version: '2.7.2'
34+
compile group: 'de.tud.sse', name: 'soot-infoflow', version: '2.8'
35+
compile group: 'de.tud.sse', name: 'soot-infoflow-android', version: '2.8'
36+
compile group: 'de.tud.sse', name: 'soot-infoflow-cmd', version: '2.8'
37+
compile group: 'org.swinglabs.swingx', name: 'swingx-all', version: '1.6.4'
38+
}
39+
40+
41+
patchPluginXml {
42+
sinceBuild '193'
43+
untilBuild '203.*'
3444
}
3545

3646
// See https://github.com/JetBrains/gradle-intellij-plugin/gradle
3747
intellij {
38-
plugins 'android'
39-
version '2018.3.6'
40-
updateSinceUntilBuild false
41-
42-
//TODO: Add your real path here
43-
//alternativeIdePath 'C:\\test\\Android Studio'
44-
alternativeIdePath 'C:\\Program Files\\Android\\Android Studio'
48+
plugins 'android', 'java', 'maven', 'gradle'
49+
50+
// updateSinceUntilBuild true
51+
52+
if (Os.isFamily(Os.FAMILY_MAC)){
53+
alternativeIdePath '/Applications/Android Studio 3.5 Beta.app/'
54+
}
55+
else if (Os.isFamily(Os.FAMILY_WINDOWS)){
56+
alternativeIdePath 'C:\\Program Files\\Android\\Android Studio'
57+
}
4558
}
4659

60+
61+
4762
runIde {
4863
jvmArgs '-Xmx4G'
4964
jvmArgs '-Xss100m'
65+
if (Os.isFamily(Os.FAMILY_MAC)){
66+
// For some strange reason debugging without this causes Menu items not to work
67+
jvmArgs '-Dapple.laf.useScreenMenuBar=false'
68+
}
5069
}
51-
52-
patchPluginXml {
53-
changeNotes """
54-
Add change notes here.<br>
55-
<em>most HTML tags may be used</em>"""
56-
}

src/main/java/de/fraunhofer/iem/icognicrypt/CogniCryptComponent.java

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
import com.intellij.openapi.components.ProjectComponent;
44
import com.intellij.openapi.project.Project;
55
import de.fraunhofer.iem.icognicrypt.IdeSupport.projects.Outputs.IOutputFinderCache;
6+
import de.fraunhofer.iem.icognicrypt.IdeSupport.projects.Outputs.IProjectOutputFinder;
67

78
class CogniCryptComponent implements ProjectComponent, ICogniCryptComponent
89
{
9-
private IOutputFinderCache _outputFinderCache;
1010
private Project _project;
11+
private IProjectOutputFinder _outputFinder;
1112

12-
public CogniCryptComponent(Project project, IOutputFinderCache outputFinderCache)
13+
public CogniCryptComponent(Project project, IProjectOutputFinder outputFinder)
1314
{
1415
_project = project;
15-
_outputFinderCache = outputFinderCache;
16+
_outputFinder = outputFinder;
1617
}
1718

1819
@Override
@@ -29,13 +30,7 @@ public void projectClosed()
2930
public void disposeComponent()
3031
{
3132
_project = null;
32-
_outputFinderCache = null;
33-
}
34-
35-
@Override
36-
protected void finalize() throws Throwable
37-
{
38-
super.finalize();
33+
_outputFinder = null;
3934
}
4035
}
4136

src/main/java/de/fraunhofer/iem/icognicrypt/CogniCryptPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package de.fraunhofer.iem.icognicrypt;
22

3-
import com.intellij.openapi.application.Application;
4-
import com.intellij.openapi.components.ServiceManager;
53
import com.intellij.openapi.progress.ProgressIndicator;
64
import de.fraunhofer.iem.icognicrypt.core.BackgroundComponent;
75
import de.fraunhofer.iem.icognicrypt.core.crySL.CrySLExtractor;
86
import de.fraunhofer.iem.icognicrypt.settings.IPersistableCogniCryptSettings;
97

8+
import java.io.Console;
9+
1010
public class CogniCryptPlugin extends BackgroundComponent
1111
{
1212
private final CrySLExtractor _extractor;
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
package de.fraunhofer.iem.icognicrypt;
22

3+
import crypto.cryslhandler.CrySLModelReader;
34

45
public class Constants {
56

67
public final static boolean AUTOMATIC_SCAN_ON_COMPILE = false;
78

8-
public static final String DummyCrySLPath = "./CrySLRules/JavaCryptographicArchitecture";
9+
public static final String DummyCrySLPath = "./CrySLRules/JCA";
910

10-
public static final String CRYSL_BIN_EXTENSION = ".cryptslbin";
11-
public static final String CRYSL_RULES_DOWNLOADLINK = "https://github.com/CROSSINGTUD/CryptoAnalysis/releases/download/2.3/CrySL-rulesets.zip";
11+
// TODO: This constant is not final in CryptoAnalysis
12+
public static final String CRYSL_EXTENSION = CrySLModelReader.cryslFileEnding;
13+
public static final String CRYSL_RULES_DOWNLOADLINK = "https://soot-build.cs.uni-paderborn.de/nexus/repository/soot-release/de/darmstadt/tu/crossing/JavaCryptographicArchitecture/1.5.1/JavaCryptographicArchitecture-1.5.1-ruleset.zip";
1214
public static final boolean WARNINGS_IN_SOURCECODECLASSES_ONLY = true;
15+
16+
public static final String ResourceZipPath = "/CrySLRules/JCA1.5.2.zip";
17+
public static final String DefaultExtractLocation = "./CrySLRules/";
1318
}

0 commit comments

Comments
 (0)