-
Notifications
You must be signed in to change notification settings - Fork 3
/
plugin.xml
43 lines (38 loc) · 1.65 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-pinnedhttps" version="0.1.0">
<name>Pinned HTTPS request</name>
<description>
This plugin allows you to make a hash-based certificate check before sending an HTTPS request (on the same connection) in order to dodge MITM attacks. For iOS and Android
</description>
<license>MIT</license>
<keywords>security,https,ceritifcate,fingerprint</keywords>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<js-module name="PinnedHTTPS" src="www/PinnedHTTPS.js">
<clobbers target="navigator.httpsBuilder"/>
</js-module>
<!--iOS plugin-->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="PinnedHTTPS">
<param name="ios-package" value="PinnedHTTPS"/>
</feature>
</config-file>
<header-file src="src/ios/PinnedHTTPS.h"/>
<source-file src="src/ios/PinnedHTTPS.m"/>
<framework src="Security.framework"/>
</platform>
<!--Android plugin-->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="PinnedHTTPS">
<param name="android-package" value="me.lockate.plugins.PinnedHTTPS" />
<param name="onload" value="true"/>
</feature>
</config-file>
<source-file src="src/android/me/lockate/plugins/PinnedHTTPS.java" target-dir="src/me/lockate/plugins"/>
<source-file src="src/android/me/lockate/plugins/HashTrust.java" target-dir="src/me/lockate/plugins"/>
<source-file src="src/android/me/lockate/plugins/LineReader.java" target-dir="src/me/lockate/plugins"/>
</platform>
</plugin>