[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] return auth cookie at intent service



commit 2d0437a834449b4b4069933bad65f63471f9ac3a
Author: arrase <arrase@xxxxxxxxx>
Date:   Sun Dec 4 22:12:41 2016 +0100

    return auth cookie at intent service
---
 app/src/main/java/org/torproject/android/OrbotMainActivity.java | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/app/src/main/java/org/torproject/android/OrbotMainActivity.java b/app/src/main/java/org/torproject/android/OrbotMainActivity.java
index 07d0199..caed0c3 100644
--- a/app/src/main/java/org/torproject/android/OrbotMainActivity.java
+++ b/app/src/main/java/org/torproject/android/OrbotMainActivity.java
@@ -675,6 +675,13 @@ public class OrbotMainActivity extends AppCompatActivity
 
                             nResult.putExtra("hs_host", hostname);
 
+                            if (authCookie) {
+                                nResult.putExtra(
+                                        "hs_auth_cookie",
+                                        onion.getString(onion.getColumnIndex(HSContentProvider.HiddenService.AUTH_COOKIE_VALUE))
+                                );
+                            }
+
                             if (backupToPackage != null && backupToPackage.length() > 0) {
                                 String servicePath = getFilesDir() + "/" + TorServiceConstants.HIDDEN_SERVICES_DIR + "/hs" + hsPort;
                                 File hidden_service_key = new File(servicePath, "private_key");



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits