Age | Commit message (Collapse) | Author |
|
bump copyright year to 2007
|
|
improve x11 test and add a test for reverse port forwarding
|
|
add another test to check out private key auth.
|
|
once, this test failed, so add a timer
|
|
add a ResourceManager to replace __del__ methods, and use it in SSHClient
to automatically close any open transport when the SSHClient is collected.
this won't work on Transport itself (to close the attached packetizer)
because Transport starts up its own thread, and the threading library
keeps a Transport object alive to run that thread. i think that's okay;
the SSHClient interface is meant to be the easier one, so that's the one
where it's important that some auto-cleanup is attempted.
|
|
add support for opening x11 channels, and a unit test
|
|
reorder the closing of the pipe in Channel.close() to make sure it happens even when the channel is closed by the remote host first
|
|
try a trick that should let 'hostkeys[hostname][keytype] = key' work for
HostKeys objects again.
|
|
bug 70398:
allow constructions like:
hostkeys['hostname'] = {}
to create an empty host entry object, so that future attempts to set
keys will at least not throw an exception. (they'll still silently do
nothing, though.)
|
|
might as well assert this
|
|
fix from john arbash-meinel for the stub sftp server's default open mode
|
|
sadly, revert the append optimization -- it breaks for openssh
|
|
fix __setitem__ to do the right thing
|
|
when a file is open for append, don't stat to get the file position unless the user asks for it explicitly
|
|
add 'flags' param to SFTPHandle and make the default impl avoid calling tell() when in append mode; add proper append-mode support to stub_sftp
|
|
add a unit test to verify that all the paramiko symbols are exported correctly
|
|
use hexlify in tests
|
|
allow prefetch + readv to occur at the same time (even though it will be really inefficient). instead of a moving pointer, use the prefetched buffers as an indication of what we've downloaded so far. break up large readv requests into the max packet size. add 2 more unit tests to test this stuff.
|
|
attempt to implement support for kex-gex 'old' packet type, which is apparently used by putty (this would only affect paramiko in server mode)
|
|
add PKey.from_private_key to read from a file object
|
|
add PKey.write_private_key to write a private key into a file object, and add tests for it
|
|
fix new cygwin test failures reported by alexander
|
|
new parent exception for all auth failures, and new specific exception for bad host key
|
|
pulled out openssh config parsing into its own class
|
|
add unit tests for SSHClient, and fix a few bugs that uncovered
|
|
channel operations raise an exception on error now instead of returning a bool
|
|
if open_channel fails, it now raises ChannelException. added a unit test for that too. renegotiate_keys will also raise an exception now instead of returning a bool.
|
|
make a slightly different exception for the expected mode on cygwin (why would they add support for some but not all of the unix mode bits? very odd)
|
|
readv should just yield results as it gets them (suggestion from robertc)
|
|
2 more unit test bugs found by alexander (can't change atime on win32)
|
|
tweak a test that relied too much on timing
|
|
fix a bug where prefetch() at EOF would throw an exception, and add a unit test
|
|
add a test that feed/read can happen piecemeal
|
|
factor out BufferedPipe into its own class
|
|
assertTrue doesn't exist in py23
|
|
some fixes for win32: potential fix for lockup during failed tests; don't try chmod/chown or symlinks; fix canonicalize to convert dos-style path separators to '/'; open local files in binary mode; close a file before erasing it
|
|
roll in some changes from bzr that may be necessary to get stub_sftp to work on windows
|
|
fix exception-catching error found by alexander belchenko
|
|
document readv, fix thinko, and add a readv unit test
|
|
add test to verify that 'for x in hostkeys' works
|
|
move sftp big-file tests into a separate class and add one that does a prefetch, then seeks in random order
|
|
improve HostKeys so that it more correctly emulates a dict, and add a unit test to verify that
|
|
add SFTPClient.truncate. add chmod, chown, utime, and truncate to SFTPFile. and of course tests.
|
|
add HostKeys, a helper for reading/parsing openssh known_hosts files, including hashed-host support
|
|
experimental util functions for parsing/getting openssh host config, and unit tests (turned out to be pretty easy)
|
|
add unit test for compression
|
|
new unit test for doing a bunch of prefetches at once
|
|
dumb test to verify utf8 encoding
|
|
add 'x' flag to open to allow O_EXCL behavior
|
|
don't attempt to start a rekey negotiation from within send_message -- always do it from the feeder thread. this prevents a situation where more than one thread may decide spontaneously to rekey, sending multiple kexinit messages, which confuses the hell out of the remote host :) also, do some locking around the clear-to-send event, to avoid a race when we first go into rekeying. add some tests for these things too
|