[tor-commits] [translation/torbutton-torbuttondtd] Update translations for torbutton-torbuttondtd

2014-11-01 Thread translation
commit 3f20c80aaf78e66365149a34c1caf94603d6d76f
Author: Translation commit bot 
Date:   Sat Nov 1 23:45:46 2014 +

Update translations for torbutton-torbuttondtd
---
 pt_BR/torbutton.dtd |   14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/pt_BR/torbutton.dtd b/pt_BR/torbutton.dtd
index 95f2099..07a9b4b 100644
--- a/pt_BR/torbutton.dtd
+++ b/pt_BR/torbutton.dtd
@@ -44,7 +44,7 @@
 
 
 
-
+
 
 
 
@@ -149,9 +149,9 @@
 
 
 
-
-
-
-
-
-
+
+
+
+
+
+

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


[tor-commits] [tor/master] Use digest256map for computing microdescriptor downloads

2014-11-01 Thread nickm
commit dc05b8549a73064337020eb3f0d8d91c8149518a
Author: Nick Mathewson 
Date:   Fri Oct 31 11:32:32 2014 -0400

Use digest256map for computing microdescriptor downloads
---
 changes/bug13399|7 +++
 src/or/microdesc.c  |   36 ++--
 src/or/microdesc.h  |2 +-
 src/or/routerlist.c |   30 ++
 src/or/routerlist.h |2 +-
 5 files changed, 45 insertions(+), 32 deletions(-)

diff --git a/changes/bug13399 b/changes/bug13399
new file mode 100644
index 000..bbd0b23
--- /dev/null
+++ b/changes/bug13399
@@ -0,0 +1,7 @@
+  o Minor bugfixes:
+- Use a full 256 bits of the SHA256 digest of a microdescriptor when
+  computing which microdescriptors to download.  This keeps us from
+  erroneous download behavior if two microdescriptor digests ever have
+  the same first 160 bits. Fixes part of bug 13399; bugfix on
+  0.2.3.1-alpha.
+
diff --git a/src/or/microdesc.c b/src/or/microdesc.c
index e8c11a9..7b82600 100644
--- a/src/or/microdesc.c
+++ b/src/or/microdesc.c
@@ -163,19 +163,18 @@ microdescs_add_to_cache(microdesc_cache_t *cache,
   md->last_listed = listed_at);
   }
   if (requested_digests256) {
-digestmap_t *requested; /*  actually we should just use a
-   digest256map */
-requested = digestmap_new();
+digest256map_t *requested;
+requested = digest256map_new();
 /* Set requested[d] to DIGEST_REQUESTED for every md we requested. */
-SMARTLIST_FOREACH(requested_digests256, const char *, cp,
-  digestmap_set(requested, cp, DIGEST_REQUESTED));
+SMARTLIST_FOREACH(requested_digests256, const uint8_t *, cp,
+  digest256map_set(requested, cp, DIGEST_REQUESTED));
 /* Set requested[d] to DIGEST_INVALID for every md we requested which we
  * will never be able to parse.  Remove the ones we didn't request from
  * invalid_digests.
  */
-SMARTLIST_FOREACH_BEGIN(invalid_digests, char *, cp) {
-  if (digestmap_get(requested, cp)) {
-digestmap_set(requested, cp, DIGEST_INVALID);
+SMARTLIST_FOREACH_BEGIN(invalid_digests, uint8_t *, cp) {
+  if (digest256map_get(requested, cp)) {
+digest256map_set(requested, cp, DIGEST_INVALID);
   } else {
 tor_free(cp);
 SMARTLIST_DEL_CURRENT(invalid_digests, cp);
@@ -185,8 +184,9 @@ microdescs_add_to_cache(microdesc_cache_t *cache,
  * ones we never requested from the 'descriptors' smartlist.
  */
 SMARTLIST_FOREACH_BEGIN(descriptors, microdesc_t *, md) {
-  if (digestmap_get(requested, md->digest)) {
-digestmap_set(requested, md->digest, DIGEST_RECEIVED);
+  if (digest256map_get(requested, (const uint8_t*)md->digest)) {
+digest256map_set(requested, (const uint8_t*)md->digest,
+ DIGEST_RECEIVED);
   } else {
 log_fn(LOG_PROTOCOL_WARN, LD_DIR, "Received non-requested microdesc");
 microdesc_free(md);
@@ -195,14 +195,14 @@ microdescs_add_to_cache(microdesc_cache_t *cache,
 } SMARTLIST_FOREACH_END(md);
 /* Remove the ones we got or the invalid ones from requested_digests256.
  */
-SMARTLIST_FOREACH_BEGIN(requested_digests256, char *, cp) {
-  void *status = digestmap_get(requested, cp);
+SMARTLIST_FOREACH_BEGIN(requested_digests256, uint8_t *, cp) {
+  void *status = digest256map_get(requested, cp);
   if (status == DIGEST_RECEIVED || status == DIGEST_INVALID) {
 tor_free(cp);
 SMARTLIST_DEL_CURRENT(requested_digests256, cp);
   }
 } SMARTLIST_FOREACH_END(cp);
-digestmap_free(requested, NULL);
+digest256map_free(requested, NULL);
   }
 
   /* For every requested microdescriptor that was unparseable, mark it
@@ -794,7 +794,7 @@ microdesc_average_size(microdesc_cache_t *cache)
  * smartlist.  Omit all microdescriptors whose digest appear in skip. */
 smartlist_t *
 microdesc_list_missing_digest256(networkstatus_t *ns, microdesc_cache_t *cache,
- int downloadable_only, digestmap_t *skip)
+ int downloadable_only, digest256map_t *skip)
 {
   smartlist_t *result = smartlist_new();
   time_t now = time(NULL);
@@ -806,7 +806,7 @@ microdesc_list_missing_digest256(networkstatus_t *ns, 
microdesc_cache_t *cache,
 !download_status_is_ready(&rs->dl_status, now,
   get_options()->TestingMicrodescMaxDownloadTries))
   continue;
-if (skip && digestmap_get(skip, rs->descriptor_digest))
+if (skip && digest256map_get(skip, (const uint8_t*)rs->descriptor_digest))
   continue;
 if (tor_mem_is_zero(rs->descriptor_digest, DIGEST256_LEN))
   continue;
@@ -831,7 +831,7 @@ update_microdesc_downloads(time_t now)
   const or_options_t *options = get_options();
   networkstatus_t *consensus;
   smartlist_t *missing;
-  digestmap_t *pending;
+  digest256map_t *pending;
 
   if (should_delay_dir_fetches(options, NULL))

[tor-commits] [tor/master] Merge remote-tracking branch 'public/bug13399'

2014-11-01 Thread nickm
commit f179ff18f3d05cff2a28add5b0ae9df929d94536
Merge: bac6d54 efd5001
Author: Nick Mathewson 
Date:   Sat Nov 1 17:04:04 2014 -0400

Merge remote-tracking branch 'public/bug13399'

 changes/bug13399   |   12 
 src/or/microdesc.c |   36 ++--
 src/or/microdesc.h |2 +-
 src/or/networkstatus.c |2 +-
 src/or/routerlist.c|   30 ++
 src/or/routerlist.h|2 +-
 6 files changed, 51 insertions(+), 33 deletions(-)

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


[tor-commits] [tor/master] Use digest256_len in networkstatus_copy_old_consensus_info()

2014-11-01 Thread nickm
commit efd5001c3b94c633850d7ae9b9f5b6e1ee45ab4e
Author: Nick Mathewson 
Date:   Fri Oct 31 11:36:31 2014 -0400

Use digest256_len in networkstatus_copy_old_consensus_info()

Now, if a router ever changes its microdescriptor, but the new
microdescriptor SHA256 hash has the same 160-bit prefix as the old
one, we treat it as a new microdescriptor when deciding whether to
copy status information.

(This function also is used to compare SHA1 digests of router
descriptors, but don't worry: the descriptor_digest field either holds
a SHA256 hash, or a SHA1 hash padded with 0 bytes.)
---
 changes/bug13399   |5 +
 src/or/networkstatus.c |2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/changes/bug13399 b/changes/bug13399
index bbd0b23..fcaf58a 100644
--- a/changes/bug13399
+++ b/changes/bug13399
@@ -5,3 +5,8 @@
   the same first 160 bits. Fixes part of bug 13399; bugfix on
   0.2.3.1-alpha.
 
+- Reset a router's status if its microdescriptor digest changes,
+  even if the first 160 bits remain the same.  Fixes part of bug
+  13399; bugfix on 0.2.3.1-alpha.
+
+
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 351b20c..21efdd1 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -1123,7 +1123,7 @@ networkstatus_copy_old_consensus_info(networkstatus_t 
*new_c,
 rs_new->last_dir_503_at = rs_old->last_dir_503_at;
 
 if (tor_memeq(rs_old->descriptor_digest, rs_new->descriptor_digest,
-  DIGEST_LEN)) { /*  Change this to digest256_len */
+  DIGEST256_LEN)) {
   /* And the same descriptor too! */
   memcpy(&rs_new->dl_status, &rs_old->dl_status,sizeof(download_status_t));
 }



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


[tor-commits] [translation/torbutton-torbuttondtd] Update translations for torbutton-torbuttondtd

2014-11-01 Thread translation
commit 5467d574f49a2605e09b7d94eb7f5b86814844ea
Author: Translation commit bot 
Date:   Sat Nov 1 15:15:48 2014 +

Update translations for torbutton-torbuttondtd
---
 de/torbutton.dtd |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/de/torbutton.dtd b/de/torbutton.dtd
index 55f880d..e0199c4 100644
--- a/de/torbutton.dtd
+++ b/de/torbutton.dtd
@@ -128,7 +128,7 @@
 
 
 
-
+
 
 
 
@@ -144,7 +144,7 @@
 
 
 
-
+
 
 
 

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


[tor-commits] [translation/torbutton-torbuttondtd] Update translations for torbutton-torbuttondtd

2014-11-01 Thread translation
commit a1857a501614e6b70e97864595902cc11b291bfd
Author: Translation commit bot 
Date:   Sat Nov 1 14:45:47 2014 +

Update translations for torbutton-torbuttondtd
---
 de/torbutton.dtd |   32 
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/de/torbutton.dtd b/de/torbutton.dtd
index 667d2c3..55f880d 100644
--- a/de/torbutton.dtd
+++ b/de/torbutton.dtd
@@ -13,10 +13,10 @@
 
 
 
-
+
 
 
-
+
 
 
 
@@ -32,7 +32,7 @@
 
 
 
-
+
 
 
 
@@ -51,7 +51,7 @@
 
 
 
-
+
 
 
 
@@ -71,12 +71,12 @@
 
 
 
-
+
 
 
 
 
-
+
 
 
 
@@ -90,14 +90,14 @@
 
 
 
-
+
 
-
+
 
 
-
+
 
-
+
 
 
 
@@ -116,7 +116,7 @@
 
 
 
-
+
 
 
 
@@ -150,8 +150,8 @@
 
 
 
-
-
-
-
-
+
+
+
+
+

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


[tor-commits] [translation/torbutton-torbuttondtd] Update translations for torbutton-torbuttondtd

2014-11-01 Thread translation
commit 12e2fbad356b2b315f95ca5970dacddca3f30c9d
Author: Translation commit bot 
Date:   Sat Nov 1 14:15:47 2014 +

Update translations for torbutton-torbuttondtd
---
 de/torbutton.dtd |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/de/torbutton.dtd b/de/torbutton.dtd
index 82729af..667d2c3 100644
--- a/de/torbutton.dtd
+++ b/de/torbutton.dtd
@@ -44,7 +44,7 @@
 
 
 
-
+
 
 
 
@@ -149,7 +149,7 @@
 
 
 
-
+
 
 
 

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


[tor-commits] [support-tools/master] Add data for queue usage and response time for 2014Q4

2014-11-01 Thread lunar
commit 57caca3839125097cc070f55240e9be0b51e29de
Author: Lunar 
Date:   Sat Nov 1 13:29:10 2014 +0100

Add data for queue usage and response time for 2014Q4
---
 queue-graphs/data/2014Q4.csv  |7 +++
 response-time/data/2014Q4.csv |   29 +
 2 files changed, 36 insertions(+)

diff --git a/queue-graphs/data/2014Q4.csv b/queue-graphs/data/2014Q4.csv
new file mode 100644
index 000..c29a82c
--- /dev/null
+++ b/queue-graphs/data/2014Q4.csv
@@ -0,0 +1,7 @@
+month,queue,newtickets
+2014-10,ar,9
+2014-10,en,1338
+2014-10,es,55
+2014-10,fa,108
+2014-10,fr,51
+2014-10,zh,122
diff --git a/response-time/data/2014Q4.csv b/response-time/data/2014Q4.csv
new file mode 100644
index 000..db7032d
--- /dev/null
+++ b/response-time/data/2014Q4.csv
@@ -0,0 +1,29 @@
+month,fromhours,tohours,requests
+2014-11,0,1,7
+2014-11,1,2,6
+2014-11,2,3,3
+2014-11,3,4,4
+2014-11,4,5,2
+2014-11,5,6,2
+2014-11,6,7,1
+2014-11,7,8,1
+2014-11,8,9,1
+2014-11,9,10,1
+2014-11,10,11,4
+2014-11,11,12,1
+2014-11,13,14,1
+2014-11,15,16,1
+2014-11,16,17,2
+2014-11,17,18,1
+2014-11,18,19,1
+2014-11,22,23,1
+2014-11,27,28,1
+2014-11,47,48,1
+2014-11,68,69,1
+2014-11,94,95,1
+2014-11,95,96,1
+2014-11,100,101,1
+2014-11,117,118,1
+2014-11,189,190,1
+2014-11,263,264,1
+2014-11,361,362,1

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


[tor-commits] [translation/torbutton-torbuttondtd] Update translations for torbutton-torbuttondtd

2014-11-01 Thread translation
commit 6bd5625280d886aca7c2c527a99f814da4ba9ea0
Author: Translation commit bot 
Date:   Sat Nov 1 11:45:51 2014 +

Update translations for torbutton-torbuttondtd
---
 el/torbutton.dtd |   14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/el/torbutton.dtd b/el/torbutton.dtd
index ac6d2e3..6fb3052 100644
--- a/el/torbutton.dtd
+++ b/el/torbutton.dtd
@@ -44,7 +44,7 @@
 
 
 
-
+
 
 
 
@@ -149,9 +149,9 @@
 
 
 
-
-
-
-
-
-
+
+
+
+
+
+

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


[tor-commits] [translation/tails-misc] Update translations for tails-misc

2014-11-01 Thread translation
commit 76526055fa686f2344374a465bb47f754ae9
Author: Translation commit bot 
Date:   Sat Nov 1 11:45:35 2014 +

Update translations for tails-misc
---
 el.po |   13 +++--
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/el.po b/el.po
index 6cd47c4..88ab783 100644
--- a/el.po
+++ b/el.po
@@ -8,14 +8,15 @@
 # andromeas , 2014
 # firespin , 2014
 # Ellie El , 2014
+# Georgios Vasileiadis , 2014
 # kotkotkot , 2013
 msgid ""
 msgstr ""
 "Project-Id-Version: The Tor Project\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2014-10-15 17:57+0200\n"
-"PO-Revision-Date: 2014-10-27 20:01+\n"
-"Last-Translator: Ellie El \n"
+"PO-Revision-Date: 2014-11-01 11:31+\n"
+"Last-Translator: Georgios Vasileiadis \n"
 "Language-Team: Greek 
(http://www.transifex.com/projects/p/torproject/language/el/)\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
@@ -453,7 +454,7 @@ msgstr "Η κονσόλα του δρομολογητή I2P 
είναι έτοι
 
 #: config/chroot_local-includes/usr/local/sbin/tails-i2p:43
 msgid "You can now access I2P's router console on http://127.0.0.1:7657.";
-msgstr ""
+msgstr "Μπορείτε τώρα να έχετε πρόσβαση στην 
κονσόλα του ρούτερ I2P μέσω της διεύθυνσης 
http://127.0.0.1:7657.";
 
 #: config/chroot_local-includes/usr/local/sbin/tails-i2p:48
 msgid "I2P is not ready"
@@ -472,7 +473,7 @@ msgstr "Ο I2P είναι έτοιμος"
 
 #: config/chroot_local-includes/usr/local/sbin/tails-i2p:60
 msgid "You can now access services on I2P."
-msgstr ""
+msgstr "Μπορείτε τώρα να έχετε πρόσβαση στις υ
πηρεσίες I2P"
 
 #: 
../config/chroot_local-includes/etc/skel/Desktop/Report_an_error.desktop.in.h:1
 msgid "Report an error"
@@ -489,11 +490,11 @@ msgstr "Μάθετε πώς να 
χρησιμοποιείτε το Tails"
 
 #: 
../config/chroot_local-includes/usr/share/applications/i2p-browser.desktop.in.h:1
 msgid "Anonymous overlay network browser"
-msgstr ""
+msgstr "Δίκτυο ανώνυμης περιήγησης"
 
 #: 
../config/chroot_local-includes/usr/share/applications/i2p-browser.desktop.in.h:2
 msgid "I2P Browser"
-msgstr ""
+msgstr "I2P πρόγραμμα περιήγησης"
 
 #: 
../config/chroot_local-includes/usr/share/applications/tails-about.desktop.in.h:2
 msgid "Learn more about Tails"

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


[tor-commits] [translation/torbutton-torbuttonproperties] Update translations for torbutton-torbuttonproperties

2014-11-01 Thread translation
commit 614239241932b6948d11a7829369745e1b36fa6d
Author: Translation commit bot 
Date:   Sat Nov 1 11:15:45 2014 +

Update translations for torbutton-torbuttonproperties
---
 el/torbutton.properties |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/el/torbutton.properties b/el/torbutton.properties
index 716b232..65304ff 100644
--- a/el/torbutton.properties
+++ b/el/torbutton.properties
@@ -48,7 +48,7 @@ torbutton.popup.confirm_plugins = Plugins όπως το Flash 
μπορουν ν
 torbutton.popup.never_ask_again = Μην με ρωτήση ξανά
 
 # Canvas permission prompt. Strings are kept here for ease of translation.
-canvas.siteprompt=This website (%S) attempted to extract HTML5 canvas image 
data, which may be used to uniquely identify your computer.\n\nShould Tor 
Browser allow this website to extract HTML5 canvas image data?
+canvas.siteprompt=Η ιστοσελίδα (%S) προσπάθησε να 
εξαγάγει πληροφορίες HTML5, οι οποίες μπορούν 
να χρησιμοποιηθούν ώστε να αναγνωρισθεί η 
ταυτότητα του ηλεκτρονικού σας υ
πολογιστή.\n\n\nΝα επιτραπεί στην ιστοσελίδα 
η εξαγωγή πληροφοριών HTML5;
 canvas.notNow=όχι τώρα
 canvas.notNowAccessKey=Ν
 canvas.allow=επιτρέπεται το στο μέλλον

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


[tor-commits] [translation/torbutton-torbuttondtd] Update translations for torbutton-torbuttondtd

2014-11-01 Thread translation
commit 29b952c49cd510d048dc4645e5e6dd6bd2799120
Author: Translation commit bot 
Date:   Sat Nov 1 11:15:49 2014 +

Update translations for torbutton-torbuttondtd
---
 ca/torbutton.dtd |   16 
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/ca/torbutton.dtd b/ca/torbutton.dtd
index 404db56..8432cd0 100644
--- a/ca/torbutton.dtd
+++ b/ca/torbutton.dtd
@@ -44,7 +44,7 @@
 
 
 
-
+
 
 
 
@@ -144,14 +144,14 @@
 
 
 
-
+
 
 
 
 
-
-
-
-
-
-
+
+
+
+
+
+

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


[tor-commits] [translation/torbutton-torbuttondtd] Update translations for torbutton-torbuttondtd

2014-11-01 Thread translation
commit 1ed768b953c43137965b651f1385ff949d2c946d
Author: Translation commit bot 
Date:   Sat Nov 1 09:45:47 2014 +

Update translations for torbutton-torbuttondtd
---
 pl/torbutton.dtd |   14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/pl/torbutton.dtd b/pl/torbutton.dtd
index df390d5..5cfb5ef 100644
--- a/pl/torbutton.dtd
+++ b/pl/torbutton.dtd
@@ -44,7 +44,7 @@
 
 
 
-
+
 
 
 
@@ -149,9 +149,9 @@
 
 
 
-
-
-
-
-
-
+
+
+
+
+
+

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