Age | Commit message (Collapse) | Author |
|
can use up to 32k buffers here
|
|
bump version number to 1.4 oddish
|
|
add SFTPFile.check and server support (and test) -- it's an sftp extension that allows a client to retrieve the hash of part or all of a file without downloading it. we're probably the only ones who implement it yet
|
|
yeah! figured out the last things that were causing GC cycles and got rid of them: Channels, Transports, SFTPClients, and SFTPFiles can all have __del__ methods now, which auto-close themselves :)
|
|
try to handle utf8 paths in a sane way in SFTPClient: assume incoming strings are already utf8, and encode incoming unicodes -- for return values, use str if an ascii encoding will work, otherwise return a unicode
|
|
allow start_client and start_server to be passed no event object for synchronous behavior
|
|
don't forget to export Agent
|
|
pull in tiny changes from ralph
Patches applied:
* robey@lag.net--2005/paramiko--dev--1--patch-2
merge laptop work
* robey@lag.net--2005/paramiko--dev--1--patch-3
update from laptop
* robey@lag.net--2005/paramiko--dev--1--patch-4
integrate tons more laptop work
* robey@lag.net--2005/paramiko--dev--1--patch-5
thew has a good point: this is stable software now, not alpha
* robey@lag.net--2005/paramiko--dev--1--patch-6
roll up laptop changes
|
|
anal tweak of docs
|
|
bulletproof the select test in test_transport more
|
|
fix util docs a bit
|
|
remove debug print
|
|
move load_host_keys into util where others can use it
|
|
oooooops, didn't mean to leave posix commented out
|
|
fix a comment claiming that channels are closed automatically when GC'd (they aren't and can't be); don't close the pipe until the app explicitly calls close(); signal EOF via the pipe
|
|
add SFTPClient.put and SFTPClient.get, and make sftp file objects auto-close on del
|
|
add the concept of a cwd to SFTPClient, and add a unit test for it
|
|
fix whitespace on a line that bugged me
|
|
fix stupid line that broke dss's unit test... that'll teach me to fuss over pychecker warnings
|
|
a bunch of silly changes where i was trying to fix pychecker warnings before i decided it wasnt worth the effort
|
|
forgot to import server
|
|
remove now-incorrect comment
|
|
new ssh agent support! from john rochester. added a bunch of docs to it, and changed demo.py to use an Agent if it finds a working key there.
|
|
cool optimization from john rochester: use cStringIO in Message (and also fix some unit test bugs revealed by the change)
|
|
the previous windows pipe fix still didn't work. replace it with a new pipe.py abstraction of pipes (one for posix, one for windows) which appears to finally work on windows. for real this time. also add some more documentation to Channel to explain that after exec_command, invoke_shell, or invoke_subsystem, a Channel can't be reused.
|
|
stupid little doc tweaks
|
|
some doc changes; catch socket.error in the transport thread and log it as such instead of as an 'unknown exception'
|
|
oops, missed changing the version name to nidoran
|
|
fix docs and update version to 1.3.1
|
|
2 keys needed for unit tests
|
|
tweak random stuff in transport that i forgot what it does
|
|
more unit tests
|
|
forgot this one
|
|
random doc/comment tweaks
|
|
cute trick i saw openssh do in a network trace: if we're not encrypting, don't waste random bytes for the padding in packetizing
|
|
change pipe method to something that probably works on windows (the old system did not); also fix a race in _unlink
|
|
add notes about next version
|
|
copy over changelog from previous tla archive
|
|
fix stupid bug in kex_group1 which luckily only affected unit tests
|
|
oooh maybe i'll test things before checking them in next time: rekeying was a little bit overzealous. now it's careful to only rekey once and reset the counters in sync
|
|
add unit tests for the packetizer, and fix a little locking bug where i think more of the packetizer write function should be inside a lock
|
|
don't close the socket until the destructor -- we may drop a session before the socket is actually finished
|
|
when an auth method is rejected, log the list of acceptable auth methods
|
|
split out Packetizer, fix banner detection bug, new unit test
split out a chunk of BaseTransport into a Packetizer class, which handles
the in/out packet data, ciphers, etc. it didn't make the code any smaller
(transport.py is still close to 1500 lines, which is awful) but it did split
out a coherent chunk of functionality into a discrete unit.
in the process, fixed a bug that alain spineux pointed out: the banner
check was too forgiving and would block forever waiting for an SSH banner.
now it waits 5 seconds for the first line, and 2 seconds for each subsequent
line, before giving up.
added a unit test to test keepalive, since i wasn't sure that was still
working after pulling out Packetizer.
|
|
add Transport.open_sftp_client
|
|
make SFTPClient.file an alias for SFTPClient.open.
clean up docs a little, and make 'file' an alias for 'open'.
this is how python is heading in general.
|
|
wacky banner
add the wacky banner to the archive.
|
|
fix some docs
remove some epydoc comments about fileno() being non-portable.
|
|
add SFTPClient.close()
add SFTPClient.close() and add a simple little unit test for it.
|
|
avoid os.environ['HOME'] in the demos
avoid using os.environ['HOME'], which will never work on windows, and
use os.path.expanduser() instead. it's semi-moot because windows doesn't
have a standard location for ssh files, but i think paramiko should set a
good example anyway.
|