Comment 3 for bug 736955

Revision history for this message
Jason R. Coombs (jaraco) wrote :

Upon further investigation, I found that I did not experience the problem on 32-bit Python. It turns out the problem was with the construction of the COPYDATASTRUCT (cds). The Python code assumes a 32-bit architecture and constructs a byte string based on that structure. On 64-bit, the structure is different.

I've created a patch for the issue in my fork (https://github.com/jaraco/paramiko), butit adds the hard requirement for ctypes. Given that ctypes is part of the standard lib as of Python 2.5 (and available for earlier versions of Python), can paramiko assume ctypes support? If so, I can create a subsequent patch to remove the pywin32 requirement. Otherwise, I can create a pywin32-compatible patch as well.