From 6815a788a3dc37e9294b944a26fa56e74e4f88d3 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sun, 18 Dec 2016 21:56:56 +0100 Subject: add support for RFC7711 to MTM --- libs/MemorizingTrustManager/build.gradle | 12 +- .../example/AndroidManifest.xml | 32 --- libs/MemorizingTrustManager/example/ant.properties | 14 -- libs/MemorizingTrustManager/example/build.gradle | 23 -- libs/MemorizingTrustManager/example/build.xml | 91 ------- .../example/proguard-project.txt | 20 -- .../example/project.properties | 11 - .../example/res/layout/mtmexample.xml | 36 --- .../example/res/values/strings.xml | 4 - .../src/de/duenndns/mtmexample/JULHandler.java | 179 ------------- .../src/de/duenndns/mtmexample/MTMExample.java | 151 ----------- .../de/duenndns/ssl/MemorizingTrustManager.java | 276 +++++++++++++++++---- 12 files changed, 230 insertions(+), 619 deletions(-) delete mode 100644 libs/MemorizingTrustManager/example/AndroidManifest.xml delete mode 100644 libs/MemorizingTrustManager/example/ant.properties delete mode 100644 libs/MemorizingTrustManager/example/build.gradle delete mode 100644 libs/MemorizingTrustManager/example/build.xml delete mode 100644 libs/MemorizingTrustManager/example/proguard-project.txt delete mode 100644 libs/MemorizingTrustManager/example/project.properties delete mode 100644 libs/MemorizingTrustManager/example/res/layout/mtmexample.xml delete mode 100644 libs/MemorizingTrustManager/example/res/values/strings.xml delete mode 100644 libs/MemorizingTrustManager/example/src/de/duenndns/mtmexample/JULHandler.java delete mode 100644 libs/MemorizingTrustManager/example/src/de/duenndns/mtmexample/MTMExample.java (limited to 'libs') diff --git a/libs/MemorizingTrustManager/build.gradle b/libs/MemorizingTrustManager/build.gradle index 12072b81f..46d464a33 100644 --- a/libs/MemorizingTrustManager/build.gradle +++ b/libs/MemorizingTrustManager/build.gradle @@ -3,18 +3,18 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:2.2.2' + classpath 'com.android.tools.build:gradle:2.0.0' } } -apply plugin: 'android-library' +apply plugin: 'com.android.library' android { - compileSdkVersion 19 - buildToolsVersion "19.1" + compileSdkVersion 24 + buildToolsVersion "23.0.3" defaultConfig { - minSdkVersion 7 - targetSdkVersion 19 + minSdkVersion 14 + targetSdkVersion 24 } sourceSets { diff --git a/libs/MemorizingTrustManager/example/AndroidManifest.xml b/libs/MemorizingTrustManager/example/AndroidManifest.xml deleted file mode 100644 index ebc664d65..000000000 --- a/libs/MemorizingTrustManager/example/AndroidManifest.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/libs/MemorizingTrustManager/example/ant.properties b/libs/MemorizingTrustManager/example/ant.properties deleted file mode 100644 index 2f48b3655..000000000 --- a/libs/MemorizingTrustManager/example/ant.properties +++ /dev/null @@ -1,14 +0,0 @@ -# This file is used to override default values used by the Ant build system. -# -# This file must be checked in Version Control Systems, as it is -# integral to the build system of your project. -# This file is only used by the Ant script. -# You can use this to override default values such as -# 'source.dir' for the location of your java source folder and -# 'out.dir' for the location of your output folder. -# You can also use it define how the release builds are signed by declaring -# the following properties: -# 'key.store' for the location of your keystore and -# 'key.alias' for the name of the key to use. -# The password will be asked during the build when you use the 'release' target. -application.package=de.duenndns.mtmexample diff --git a/libs/MemorizingTrustManager/example/build.gradle b/libs/MemorizingTrustManager/example/build.gradle deleted file mode 100644 index a07fbe87b..000000000 --- a/libs/MemorizingTrustManager/example/build.gradle +++ /dev/null @@ -1,23 +0,0 @@ -apply plugin: 'android' - -dependencies { - compile rootProject -} - -android { - compileSdkVersion 19 - buildToolsVersion "19.1" - defaultConfig { - minSdkVersion 7 - targetSdkVersion 19 - } - - sourceSets { - main { - manifest.srcFile 'AndroidManifest.xml' - java.srcDirs = ['src'] - res.srcDirs = ['res'] - } - } - -} diff --git a/libs/MemorizingTrustManager/example/build.xml b/libs/MemorizingTrustManager/example/build.xml deleted file mode 100644 index 0c61a2917..000000000 --- a/libs/MemorizingTrustManager/example/build.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/libs/MemorizingTrustManager/example/proguard-project.txt b/libs/MemorizingTrustManager/example/proguard-project.txt deleted file mode 100644 index f2fe1559a..000000000 --- a/libs/MemorizingTrustManager/example/proguard-project.txt +++ /dev/null @@ -1,20 +0,0 @@ -# To enable ProGuard in your project, edit project.properties -# to define the proguard.config property as described in that file. -# -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in ${sdk.dir}/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the ProGuard -# include property in project.properties. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} diff --git a/libs/MemorizingTrustManager/example/project.properties b/libs/MemorizingTrustManager/example/project.properties deleted file mode 100644 index be830d977..000000000 --- a/libs/MemorizingTrustManager/example/project.properties +++ /dev/null @@ -1,11 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system use, -# "ant.properties", and override values to adapt the script to your -# project structure. -android.library.reference.1=../ -# Project target. -target=android-19 diff --git a/libs/MemorizingTrustManager/example/res/layout/mtmexample.xml b/libs/MemorizingTrustManager/example/res/layout/mtmexample.xml deleted file mode 100644 index 4a08b6899..000000000 --- a/libs/MemorizingTrustManager/example/res/layout/mtmexample.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - -