From 4989dad67b68b38e75416916df406dcec908b399 Mon Sep 17 00:00:00 2001
From: pacien
Date: Thu, 7 Sep 2017 14:27:37 +0200
Subject: Implement encrypted private keys support
---
app/src/main/res/layout/dialog_decrypt_keys.xml | 17 ++++++++++++
.../res/layout/dialog_encrypt_decrypt_keys.xml | 30 ++++++++++++++++++++++
.../main/res/layout/dialog_network_generate.xml | 7 +++++
app/src/main/res/layout/dialog_network_join.xml | 7 +++++
app/src/main/res/layout/page_configure.xml | 16 +++++++++---
app/src/main/res/values/strings.xml | 13 +++++++++-
6 files changed, 86 insertions(+), 4 deletions(-)
create mode 100644 app/src/main/res/layout/dialog_decrypt_keys.xml
create mode 100644 app/src/main/res/layout/dialog_encrypt_decrypt_keys.xml
(limited to 'app/src/main/res')
diff --git a/app/src/main/res/layout/dialog_decrypt_keys.xml b/app/src/main/res/layout/dialog_decrypt_keys.xml
new file mode 100644
index 0000000..b8a3586
--- /dev/null
+++ b/app/src/main/res/layout/dialog_decrypt_keys.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
diff --git a/app/src/main/res/layout/dialog_encrypt_decrypt_keys.xml b/app/src/main/res/layout/dialog_encrypt_decrypt_keys.xml
new file mode 100644
index 0000000..1f20d9b
--- /dev/null
+++ b/app/src/main/res/layout/dialog_encrypt_decrypt_keys.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/dialog_network_generate.xml b/app/src/main/res/layout/dialog_network_generate.xml
index cc51b7b..d849ca1 100644
--- a/app/src/main/res/layout/dialog_network_generate.xml
+++ b/app/src/main/res/layout/dialog_network_generate.xml
@@ -19,4 +19,11 @@
android:layout_height="match_parent"
android:hint="@string/field_node_name"/>
+
+
diff --git a/app/src/main/res/layout/dialog_network_join.xml b/app/src/main/res/layout/dialog_network_join.xml
index 2d23d4b..7bc8804 100644
--- a/app/src/main/res/layout/dialog_network_join.xml
+++ b/app/src/main/res/layout/dialog_network_join.xml
@@ -34,4 +34,11 @@
+
+
diff --git a/app/src/main/res/layout/page_configure.xml b/app/src/main/res/layout/page_configure.xml
index e094f7e..4f92b07 100644
--- a/app/src/main/res/layout/page_configure.xml
+++ b/app/src/main/res/layout/page_configure.xml
@@ -26,7 +26,7 @@
+ android:textIsSelectable="true"/>
@@ -39,7 +39,7 @@
+ android:textIsSelectable="true"/>
@@ -52,7 +52,7 @@
+ android:textIsSelectable="true"/>
@@ -84,6 +84,16 @@
+
+
+
+
+
+
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index c909933..dcb415b 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -18,6 +18,10 @@
Tinc network name
Name of this node
Invitation URL
+ Current passphrase\n(leave empty if none)
+ New passphrase\n(leave empty to decrypt)
+ Passphrase (optional)
+ Passphrase
Connect to network
Request VPN permissions
@@ -41,6 +45,8 @@
New network
Join network
Unable to start tinc
+ Private keys encryption
+ Unlock tinc private keys
Close
Cancel
@@ -52,17 +58,22 @@
Open manual
Scan QR code
Install
+ Unlock
+ Apply
+ Encrypt or decrypt private keys
No network configuration has been found.
No known node
Generating node configuration…
Joining network…
- Network configuration successfully created.
+ Network configuration successfully written.
No network name has been provided.
No configuration has been found for network \"%1$s\".
Network configuration file not found at \"%1$s\".
Invalid network configuration:\n\n%1$s
No scanner could be started.\n\nInstall Barcode Scanner?
+ Encrypting/decrypting private keys
+ Could not decrypt private keys:\n\n%1$s
none
yes
--
cgit v1.2.3