Andreas Schneider
ebce70eba1
Fixed documentation of buffer struct.
2009-12-18 23:41:01 +01:00
Andreas Schneider
1b7877f6ed
Moved the doxygen mainpage to doc/mainpage.dox
2009-12-18 23:35:41 +01:00
Andreas Schneider
7500b0564c
Document the callback structure correctly.
2009-12-18 23:19:37 +01:00
Andreas Schneider
0c992ece3b
Added a mainpage to doxygen.
2009-12-18 23:12:47 +01:00
Aris Adamantiadis
9780f22866
Made packet_wait issue warnings
2009-12-13 20:49:47 +01:00
Aris Adamantiadis
c92f54102e
Key exchange currently done asynchronously
...
Fixed an important bug in packet buffering (two packets received in the same recv would'nt be processed correctly)
2009-12-13 18:20:05 +01:00
Aris Adamantiadis
ad7e9d88fb
packet SSH_KEXINIT received and parsed
...
Resolved some bugs in the callback mechanism as well
2009-12-12 00:23:53 +01:00
Aris Adamantiadis
3ace7817b4
Async connection + banner fetch is working
2009-12-11 23:26:25 +01:00
Aris Adamantiadis
80b6cf77b0
Added a global poll context
2009-12-11 21:11:23 +01:00
Andreas Schneider
79b4bf4ac2
Don't install crypto.h which is an internal header file.
2009-12-10 13:55:42 +01:00
Aris Adamantiadis
64b72f8d3a
Fix some doxygen errors
2009-12-09 19:43:16 +01:00
Andreas Schneider
ffc9806e6d
Remove socklen_t definition.
...
Tthe problem is that winsock2.h defines socklen_t as a typedef, not as a
define, so depending on the order of includes you can get errors in
ws2tcpip.h with msvc.
2009-12-09 13:02:48 +01:00
Aris Adamantiadis
a1e05c62ae
struct socket -> struct ssh_socket_struct +typedef
2009-12-06 22:48:56 +01:00
Aris Adamantiadis
076e884873
More callback stuff in connection
...
I have coded it, not actually tested it :) It still needs
work to get past the banner exchange.
2009-12-05 15:05:02 +01:00
Aris Adamantiadis
2f6fbbd706
Trying to adapt client.c to use callbacks
2009-12-03 23:55:46 +01:00
Aris Adamantiadis
4924ac8099
Asynchronous sockets work !
...
Still need a bit of tuning but it's stable enough
for our current needs
2009-12-01 23:34:55 +01:00
Andreas Schneider
f83f837de7
Added gettimeofday for Windows.
...
Thanks to Patrick Spendrin.
2009-12-01 16:57:49 +01:00
Andreas Schneider
48b719cf68
Fixed uint* to work on Windows.
...
Thanks to Patrick Spendrin.
2009-12-01 16:15:54 +01:00
Aris Adamantiadis
92a50f731c
Socket connect callback working...
...
Still need to make sure the connect syscall is correctly
called
2009-11-30 23:44:40 +01:00
Aris Adamantiadis
76d6838223
Some brain surgery to add event-based sockets
...
chapter 1- SSH Socket Connections.
I would like to be able to
-Have a ssh_poll_ctx object
-Add a ssh socket over it
-launch the socket connection (using socket functions)
-ssh_poll_ctx_dopoll()
-Wait for the timeout or have the "connected" callback called
2009-11-30 22:35:43 +01:00
Aris Adamantiadis
0bfb9d476c
Standardize callbacks style and add documentation
2009-11-29 22:51:14 +01:00
Aris Adamantiadis
91bb1b2de6
Squashed commit of the following:
...
commit 43fad8dfd977637c31fade76ace2905f6528c3bc
Author: Aris Adamantiadis <aris@0xbadc0de.be>
Date: Fri Nov 27 18:39:06 2009 +0100
adaptation to the new ssh_poll_handle object name
commit 1e5e6ac4605adf10d437d04f0fd4b7e66024853c
Merge: 3fd92a0... 810adad...
Author: Aris Adamantiadis <aris@0xbadc0de.be>
Date: Fri Nov 27 18:33:06 2009 +0100
Merge branch 'master' into badcode/libssh_async
commit 3fd92a08eb74b1447a9ff4ca4e1d137475c62cc6
Author: Aris Adamantiadis <aris@0xbadc0de.be>
Date: Mon Nov 2 14:25:46 2009 +0100
Compiles again
commit 8910d7b9692418c9ccea0234f6d49674d238dc16
Merge: e83f1b5... cce34a6...
Author: Aris Adamantiadis <aris@0xbadc0de.be>
Date: Mon Nov 2 12:47:34 2009 +0100
Merge branch 'master' into libssh_async
Very big merge !
Conflicts:
include/libssh/callbacks.h
include/libssh/priv.h
libssh/channels.c
libssh/messages.c
libssh/packet.c
libssh/server.c
libssh/session.c
libssh/socket.c
commit e83f1b593219e183082b015315f09bfe95a29cfc
Author: Aris Adamantiadis <aris@0xbadc0de.be>
Date: Mon Nov 2 12:07:01 2009 +0100
rename callback.h
commit dffa7b730e8f39e2198de18ab69a8e57bef95e58
Merge: 5a8b748... de8808c...
Author: Aris Adamantiadis <aris@0xbadc0de.be>
Date: Tue Sep 15 10:50:07 2009 +0200
Merge branch 'master' of git://git.libssh.org/projects/libssh/libssh into libssh_async
commit 5a8b7484f36599d28f2c0c14a23b76bfc7257638
Author: Aris Adamantiadis <aris@0xbadc0de.be>
Date: Sun Sep 13 12:55:18 2009 +0200
More updates to callback system
commit 18620c20d5e4e62107093f7fd330e553493253fa
Author: Aris Adamantiadis <aris@0xbadc0de.be>
Date: Sat Sep 12 22:26:52 2009 +0200
Same thing with channel_rcv_data
commit fc4a56f6726e409a5866272923f1cbebfc821af3
Author: Aris Adamantiadis <aris@0xbadc0de.be>
Date: Sat Sep 12 22:17:45 2009 +0200
added a few packet handlers for channels
commit 4b6bb4fd00b10cf1321a764126f277ab204bffe3
Author: Aris Adamantiadis <aris@0xbadc0de.be>
Date: Fri Sep 11 23:15:25 2009 +0300
sample packet handlers + bugfixes
commit 2784d09d6dec0a8f868912d14f90d860233b3f82
Author: Aris Adamantiadis <aris@0xbadc0de.be>
Date: Fri Sep 11 20:30:50 2009 +0300
Packet callbacks nearly finished
Need tests and implementation of some packet callbacks
commit cd3ea43f20c9ae2f54576ca98a0ea75c5d4299d3
Author: Aris Adamantiadis <aris@0xbadc0de.be>
Date: Thu Sep 10 12:46:02 2009 +0300
First step of async packet handling
The socket to packet handler is nearly done (needs testing)
I still need to define the interface for callbacks.
commit 487f4d2a900a5fe3b90ceda4460ab7d38d7ad722
Author: Aris Adamantiadis <aris@0xbadc0de.be>
Date: Tue Sep 8 23:24:09 2009 +0300
Almost complete socket callback system
Finished the callback function so it bufferizes data when
callee does not use it.
Flushes the buffer automaticaly after a ssh_socket_nonblocking_flush
commit 23571f22fac9e40c855dfa99569bba181a39648b
Author: Aris Adamantiadis <aris@0xbadc0de.be>
Date: Tue Sep 8 22:22:32 2009 +0300
First draft of a callback system
2009-11-27 20:42:43 +01:00
Aris Adamantiadis
ae11589205
Pcap: more cleanup and minimalist API
2009-11-16 23:20:16 +01:00
Aris Adamantiadis
02aecc1278
Improved pcap dumping support
2009-11-16 22:36:31 +01:00
Andreas Schneider
12da24c056
Added an option to set log verbosity as string.
2009-11-10 09:12:07 +01:00
Aris Adamantiadis
10b625e180
First lines of experimental pcap output support
...
This will serve to debug packets right under wireshark !
2009-11-08 23:42:41 +01:00
Aris Adamantiadis
51f1918109
Update structures name to new convention
...
SSH_POLL* -> ssh_poll_handle,
SSH_POLL_CTX* -> ssh_poll_ctx
2009-11-06 18:52:49 +01:00
Andreas Schneider
fa27956daf
Improve MSVC support. Better binary compatibility.
...
Patch by Patrick Spendrin from KDE.
2009-11-06 09:57:09 +01:00
Aris Adamantiadis
e71c28f6a0
Fix warnings on old gcc's
...
they don't like variable names having type names
2009-11-03 21:04:07 +01:00
Aris Adamantiadis
c0e091a52f
Fix openssl header inclusion
...
caused cbc_encrypt to be redefined by an openssl
macro
2009-11-03 21:03:22 +01:00
Aris Adamantiadis
17f2645a32
Fix server kex again
2009-10-29 10:36:00 +01:00
Aris Adamantiadis
27d25752e9
Allow use of SSH_DIR/ when expanding key paths
2009-10-17 18:10:42 +02:00
Andreas Schneider
7b7280e728
Added option to set log_verbosity in the server.
2009-10-15 17:17:36 +02:00
Andreas Schneider
2523ed0779
Added an option to set the port as string.
2009-10-15 17:02:51 +02:00
Andreas Schneider
22e74e3bab
Remove deprecated functions.
2009-10-13 22:14:23 +02:00
Aris Adamantiadis
e74305c5eb
updated the sftp subsystem to follow the type conv
2009-10-10 20:55:17 +02:00
Aris Adamantiadis
499f9aa707
Add structure cleaning in comment
2009-10-10 20:07:52 +02:00
Andreas Schneider
4dee9a3e68
Document the function to set the callbacks and provide an example.
2009-10-10 19:59:14 +02:00
Aris Adamantiadis
399041180f
resolve callback crash
2009-10-10 16:25:40 +02:00
Aris Adamantiadis
3f55fb5b22
fix typo in header inclusion
2009-10-10 12:04:35 +02:00
Andreas Schneider
b1bc283e9a
Rename callback header file.
2009-10-10 10:52:04 +02:00
Andreas Schneider
be75fac7ff
Add a function to set the callback structure to the session.
2009-10-10 10:51:56 +02:00
Aris Adamantiadis
6ec65c6f9d
ssh_disconnect doesn't free the session anymore
2009-10-09 22:50:48 +02:00
Aris Adamantiadis
71ab0cf6cc
No more SSH_BIND SSH_MESSAGE etc.
2009-10-09 22:37:23 +02:00
Aris Adamantiadis
4b65aea401
Last nail on SSH_OPTIONS, SSH_SESSION etc.
2009-10-09 22:26:08 +02:00
Aris Adamantiadis
98ff6fbbce
get rid of the option structure
2009-10-09 22:24:23 +02:00
Aris Adamantiadis
58294442d3
Moved samples into examples directory
2009-10-09 21:44:05 +02:00
Aris Adamantiadis
2e9c13dad0
Modified server API
2009-10-09 21:26:15 +02:00
Bernhard R. Link
7c759b9615
add ssh_set_error_oom and ssh_set_error_invalid
...
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-10-05 00:02:43 +02:00
Bernhard R. Link
d54e9550da
proper prototype of ssh_session_new
...
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-10-05 00:01:50 +02:00