[tor-commits] [stem/master] Include HS_DESC attributes added for HSPOST

atagar at torproject.org atagar at torproject.org
Fri May 8 16:49:23 UTC 2015


commit 7f2592028c2bff6f25fff7d37c322f489cf6b30d
Author: Damian Johnson <atagar at torproject.org>
Date:   Fri May 8 09:47:46 2015 -0700

    Include HS_DESC attributes added for HSPOST
    
    Tor's new HSPOST action adds a few new values to HS_DESC. Noting them in our
    enums. Presently I'm unsure if adding a method for HSPOST itself would be
    useful or not, so leaving that up to DonnchaC...
    
      https://gitweb.torproject.org/torspec.git/commit/?id=aaf2434
---
 stem/__init__.py |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/stem/__init__.py b/stem/__init__.py
index 4752a99..92299cf 100644
--- a/stem/__init__.py
+++ b/stem/__init__.py
@@ -406,7 +406,9 @@ Library for working with the tor process.
   HSDescAction    Description
   =============== ===========
   **REQUESTED**   uncached hidden service descriptor is being requested
+  **UPLOAD**      descriptor is being uploaded with HSPOST
   **RECEIVED**    hidden service descriptor has been retrieved
+  **UPLOADED**    descriptor was uploaded with HSPOST
   **IGNORE**      fetched descriptor was ignored because we already have its v0 descriptor
   **FAILED**      we were unable to retrieve the descriptor
   =============== ===========
@@ -420,6 +422,7 @@ Library for working with the tor process.
   =================== ===========
   **BAD_DESC**        descriptor was unparseable
   **QUERY_REJECTED**  hidden service directory refused to provide the descriptor
+  **UPLOAD_REJECTED** descriptor was rejected by the hidden service directory
   **NOT_FOUND**       descriptor with the given identifier wasn't found
   **UNEXPECTED**      failure type is unknown
   =================== ===========
@@ -807,7 +810,9 @@ TokenBucket = stem.util.enum.UppercaseEnum(
 
 HSDescAction = stem.util.enum.UppercaseEnum(
   'REQUESTED',
+  'UPLOAD',
   'RECEIVED',
+  'UPLOADED',
   'IGNORE',
   'FAILED',
 )
@@ -815,6 +820,7 @@ HSDescAction = stem.util.enum.UppercaseEnum(
 HSDescReason = stem.util.enum.UppercaseEnum(
   'BAD_DESC',
   'QUERY_REJECTED',
+  'UPLOAD_REJECTED',
   'NOT_FOUND',
   'UNEXPECTED',
 )



More information about the tor-commits mailing list