[tor-bugs] #5810 [Stem]: Implement verification of server descriptor

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Fri May 25 02:18:16 UTC 2012


#5810: Implement verification of server descriptor
-------------------------+--------------------------------------------------
 Reporter:  reganeet     |          Owner:  reganeet
     Type:  enhancement  |         Status:  new     
 Priority:  normal       |      Milestone:          
Component:  Stem         |        Version:          
 Keywords:               |         Parent:          
   Points:               |   Actualpoints:          
-------------------------+--------------------------------------------------

Comment(by reganeet):

 > So we need to both strip these out and figure out a method for you to
 edit files without introducing them.

 That's weird, since I think I've removed all the CRs, and in my emacs/vim
 there is no CR remaining in server_descriptors.py.

 > I'm not quite sure how we should handle this, logging a warning once if
 they try to verify without the module or something else...

 What about in RelayDescriptor.__init__:

 {{{
 if validate:
   try:
     if not self.is_valid():
       raise ValueError(self.nickname + " is not a valid server
 descriptor!")
   except ImportError:
     print("Unable to validate. Please install python-rsa module first.")
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5810#comment:11>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list