[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Hidden service descriptor support
commit 14beceaa9da6e816ad3da0c28049e682003efb85
Merge: 48abb68 44f3e5f
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Sat Feb 28 21:12:46 2015 -0800
Hidden service descriptor support
Support for parsing hidden service descriptors, as defined in the rend-spec...
https://trac.torproject.org/projects/tor/ticket/15004
https://gitweb.torproject.org/torspec.git/tree/rend-spec.txt#n222
This doesn't yet support encrypted introduction-points, but otherwise is a
complete parser. Like server descriptors, this validates our signature's
integrity if pycrypto is available.
docs/api.rst | 1 +
docs/change_log.rst | 1 +
docs/contents.rst | 1 +
stem/descriptor/__init__.py | 119 +++++
stem/descriptor/hidden_service_descriptor.py | 311 ++++++++++++
stem/descriptor/server_descriptor.py | 138 +-----
stem/util/connection.py | 44 +-
test/mocking.py | 47 +-
test/settings.cfg | 1 +
.../unit/descriptor/data/hidden_service_basic_auth | 67 +++
.../unit/descriptor/data/hidden_service_duckduckgo | 60 +++
test/unit/descriptor/data/hidden_service_facebook | 60 +++
.../descriptor/data/hidden_service_stealth_auth | 60 +++
test/unit/descriptor/hidden_service_descriptor.py | 499 ++++++++++++++++++++
test/unit/descriptor/server_descriptor.py | 4 +-
test/unit/tutorial.py | 2 +-
16 files changed, 1265 insertions(+), 150 deletions(-)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits