Commit Graph

4 Commits

Author SHA1 Message Date
Robey Pointer aad7b859f1 [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-7]
cleaned up server code, renamed some files & classes
renamed demo-server.py and demo-host-key to demo_server.py and
demo_host_key, just to be consistent.

renamed SSHException -> SecshException.

generalized the mechanism where Channel decides whether to allow
different channel requests: 4 of the main ones (pty, window-change,
shell, and subsystem) go through easily override-able methods now.
you could probably make an actual ssh shell server.

gave ChannelFile a repr().

turned off ultra debugging in the demos.  demo_server creates a
subclass of Channel to allow pty/shell and sets an event when the
shell request is made, so that it knows when it can start sending
the fake bbs.

renamed to charmander and updated some of the distutils files.
2003-11-10 04:54:02 +00:00
Robey Pointer 79fecc4564 [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-4]
change kex-gex server code to generate primes by hand
added a util function "generate_prime" to compare to the incredibly slow C
version, but it's no faster of course.  i think kex-gex from the server is
just not going to be feasible without having a separate thread generate some
primes in the background to have handy when a request comes in.  so in short,
this still doesn't work.

also i put bit_length into util and a tb_strings function which gets stack
traceback info and splits it into a list of strings.
2003-11-09 20:59:51 +00:00
Robey Pointer 3b9901a602 [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-1]
no changes
why aren't my log messages kept?
2003-11-04 08:50:22 +00:00
Robey Pointer 51607386c7 [project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--base-0]
initial import

(automatically generated log message)
2003-11-04 08:34:24 +00:00