Changeset 275

Show
Ignore:
Timestamp:
08/10/06 18:17:25 (2 years ago)
Author:
mj
Message:

Further study of the sourcecode reveals that the random password is totally ignored

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • z3wingdbg/trunk/debugger/configure.zcml

    r271 r275  
    1717    /> 
    1818     
    19 <utility 
    20     component=".randomstring.RandomStringUtility" 
    21     provides=".randomstring.IRandomString" 
    22     /> 
    23      
    2419<!-- subscribers --> 
    2520<subscriber 
  • z3wingdbg/trunk/debugger/networkdebugger.py

    r273 r275  
    1616     
    1717    """ 
    18     _data = '' 
    19      
    2018    def __init__(self): 
    2119        self._logger = logging.getLogger('z3wingdbg.debugger.networkdebugger') 
     
    5856            pwfile_path=(netserver.abstract.kPWFilePathUserProfileDir,)) 
    5957         
    60         # Set a random password so we don't need to rely on the existence of 
    61         # a profile dir 
    62         etype = netserver.abstract.securechannel.kNoEncryption 
    63         server.SetSecurityInfo(etype, component.getUtility(IRandomString)()
     58        # netserver insists we set a non-empty string, but securechannel  
     59        # ignores it completely when the channel is set to NoEncryption 
     60        server.SetSecurityInfo(netserver.abstract.securechannel.kNoEncryption, 
     61                               'ignored'
    6462         
    6563        # We set our own sockethook later