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

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs