1
1
Граф коммитов

2465 Коммитов

Автор SHA1 Сообщение Дата
Aris Adamantiadis
d101fb4329 more doxygen documentation
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@79 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-11-07 01:45:13 +00:00
Aris Adamantiadis
24aeed5d1f doxygen documentation for option module
added ssh_finalize() into libssh.h


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@78 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-11-06 23:57:50 +00:00
Aris Adamantiadis
44b5470443 at least I get a working doxygen documentation.
I am going to make the whole documentation as doxygen files.


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@77 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-11-06 22:58:58 +00:00
Aris Adamantiadis
ea215fdecc Added doxygen documentation file. Now need to document it..
added const keyword into ssh_connect_host


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@76 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-11-06 20:44:24 +00:00
Jean-Philippe Garcia Ballester
b2d0d13a2d Add ssh_finalize to handle finalization of libssh and underlying cryptographic
library.
Add corresponding paragraph in API draft.



git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@75 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-07-09 10:36:44 +00:00
Jean-Philippe Garcia Ballester
9bb0be2dbb Correct file header
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@74 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-07-09 10:32:47 +00:00
Jean-Philippe Garcia Ballester
f10e8874b2 libssh/keyfiles.c: Fix bug when reading private keys with libgcrypt
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@73 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-05-12 12:15:37 +00:00
Jean-Philippe Garcia Ballester
49f537bdbe configure.in: Now exit when crypto library not available and minor fixes
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@72 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-05-08 08:45:00 +00:00
Jean-Philippe Garcia Ballester
1c08838ce8 Makefile.in: Update dist target to copy libssh.vers, needed for compilation with symbol versioning
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@71 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-04-30 00:29:29 +00:00
Jean-Philippe Garcia Ballester
770e73d8b7 keyfiles.c and wrapper.c: Remove useless secure memory flag (for libgcrypt)
dh.c: Initialize libgcrypt only if not done before
client.c: Remove cleanup of cryptograhpic library. This needs to be put
somewhere, like in a crypto_finish function or something.



git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@70 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-03-01 16:32:22 +00:00
Jean-Philippe Garcia Ballester
10b1a631e8 Remove the file "plop", which was added some time ago by mistake (oops,
sorry...)



git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@69 7dcaeef0-15fb-0310-b436-a5af3365683c
2006-03-01 14:11:38 +00:00
Aris Adamantiadis
c5287c543e removed mercurius from trunk
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@66 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-12-12 12:21:09 +00:00
Aris Adamantiadis
4fd1df0586 git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@53 7dcaeef0-15fb-0310-b436-a5af3365683c 2005-12-06 18:10:30 +00:00
Aris Adamantiadis
3edfd105b3 nonblocking support in dh_handshake() from client.c
some packet nonblocking fixes.
reenable sftp from the sample client.


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@52 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-11-30 21:23:12 +00:00
Jean-Philippe Garcia Ballester
ac4fd09177 Added support for known_hosts format version 1
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@51 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-11-25 09:31:33 +00:00
Aris Adamantiadis
d923851664 same changes, SSH1 (reading only).
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@50 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-11-23 14:38:49 +00:00
Aris Adamantiadis
1847fb2373 added bases for nonblocking packet sending and receiving. packet_send
and packet_read may return SSH_AGAIN if the session is nonblocking and 
there is not enough data to be read.
I also added a socket buffering through session->in_socket_buffer. It is 
more low-level than the packet buffer.
I should rename in_buffer with in_packet_buffer.
There is still work to do with the socket status, (opened, error, 
closed, ...) and much more work to extend the nonblocking to session 
opening, messages sending and such.
I find the switch(session->packet_state) solution very nice (especially 
when the nonblocking function may have 10 differents states, like in a 
connection.)


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@49 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-11-22 23:15:31 +00:00
Aris Adamantiadis
cddc5d6889 norbert's Makefile.in and crypt.c patches
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@48 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-26 21:46:48 +00:00
Aris Adamantiadis
7b416e5c52 resolved the channel hangs on exit issue (moved EOF to read events and removed it from exceptions).
resolved stupid cute & paste error in init_md5()



git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@47 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-26 19:13:57 +00:00
Aris Adamantiadis
c53b6b907c resolved the infinite loop on exit (thanks giga for the hint).
I resolved a memory alloc problem into hmac_init (same kind that the one of md5_init).
It's still saying there is a memory corruption. Since the memory corruption happens before it is found (in malloc()), I'll have to run valgrind to locate it.


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@46 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-26 16:59:16 +00:00
Aris Adamantiadis
bef09f8848 Phillip Vandry has seen another bug into r42 :
-    MD5CTX c=malloc(sizeof(MD5CTX));
+    MD5CTX c=malloc(sizeof(*c));



git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@45 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-26 15:29:17 +00:00
Aris Adamantiadis
b719cc0d13 Libgcrypt was still used by default. Now it really compiles with openssl by default.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@44 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-26 13:11:37 +00:00
Aris Adamantiadis
5e02c25291 good, now it compiles (removed the -Wl-O1 thing as Giga said.)
removed the configure file from the svn (just do autoconf next time).


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@43 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-26 12:56:52 +00:00
Aris Adamantiadis
b753dae37e Almost forgot the most important :) a patch for AUTHORS file
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@42 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-26 12:20:31 +00:00
Aris Adamantiadis
0f67ff89d9 patches from Norbert merged in. I have made some little changes here and there.
It still doesn't compile because of the O1 thing passed to ld.


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@41 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-26 12:06:11 +00:00
Aris Adamantiadis
9a2683f183 added Jean-Philippe's patch for libtools. it doesn't compile on my computer.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@40 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-25 23:11:41 +00:00
Aris Adamantiadis
d86f001754 channel_select(). this function rocks !
I adapted the sample.c file. the select_loop function is bloated and fails to demonstrate how libssh is simple to handle...

it looks to run at first try.


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@39 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-25 23:02:25 +00:00
Aris Adamantiadis
5f7c84f900 added the gcrypt patch (without gcrypt as default library).
still needs tests.


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@38 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-10-04 22:11:19 +00:00
Aris Adamantiadis
c0525750fd ssh-1 small modulus server keys patch
acl bases in mercurius


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@37 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-09-20 14:26:04 +00:00
Aris Adamantiadis
0c1ca983ed 2 macosx patches
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@36 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-31 10:40:52 +00:00
Aris Adamantiadis
1b20b8df85 fixed bug in sample that made the client running in infinite loop.
hunted a bug in channel_poll that returned 0 when EOF.


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@35 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-31 02:20:36 +00:00
Aris Adamantiadis
c7a059f0d3 pam include path patch.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@34 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-31 01:54:02 +00:00
Aris Adamantiadis
c83b993af9 PATH_MAX patch
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@33 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-31 01:39:30 +00:00
Aris Adamantiadis
9a4a7da811 cfmakeraw patch for configure.in
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@32 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-31 01:29:22 +00:00
Aris Adamantiadis
8963144850 server goes into backgroup
server accepts command line arguments
server write
comments into the configuration file.


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@31 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-31 00:00:36 +00:00
Aris Adamantiadis
a8b5d63e14 write support
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@30 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-29 23:34:32 +00:00
Aris Adamantiadis
ed62d1fb53 Readme of course
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@29 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-29 16:41:02 +00:00
Aris Adamantiadis
f0008adac6 changed config file name, take rsa,dsa and port into account
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@28 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-29 16:14:39 +00:00
Aris Adamantiadis
c767514dae some compilation fix
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@27 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-29 15:28:14 +00:00
Aris Adamantiadis
f31e7a3bec removed obsolete debugging info, split main.c in 3, and now mercurius links with a statical libssh
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@26 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-29 14:53:44 +00:00
Aris Adamantiadis
bcb6bf25fa the server now does the chroot and change uid.
There is also an option "nopassword" for ftp users.


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@25 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-29 14:29:07 +00:00
Aris Adamantiadis
ddd650b3bd now the libconfig will be staticaly linked and will be autoconfigurated during make.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@24 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-29 11:53:20 +00:00
Aris Adamantiadis
b81c66ee8f pam samples files to put into /etc/pam.d
ssh_silent_disconnect() and server forking. I still have to add a -D command line to avoid the forking.
password auth works, but there is no uid change yet. I'll have to make the configuration stuff really being respected by the server. (like keys, ports, users, ...)


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@23 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-29 00:55:27 +00:00
Aris Adamantiadis
0de0dca16d more ACL on directories. Not already enabled.
First Pam code. looks like it works more or less.
it needs a file in /etc/pam.d to be activated


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@22 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-28 23:56:01 +00:00
Aris Adamantiadis
8510d2abe4 youhou it works :)
to compile libconfig, configure it, then the makefile will work.
to run, either make install make config or add its path to LD_LIBRARY_PATH.



git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@21 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-28 17:24:04 +00:00
Aris Adamantiadis
dc0c5c4cfe the whole libconfig + my development tree for ACL/ config
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@20 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-28 16:22:42 +00:00
Aris Adamantiadis
c76e6e496d file opening/reading works :).
I fixed the "longname" part of a stat (which makes the output for ls into openssh's sftp)
it's possible to browse and open abritrary files. but no ACL yet


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@19 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-26 16:04:49 +00:00
Aris Adamantiadis
6fd3760797 compile the sftp_server by default
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@18 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-26 00:27:26 +00:00
Aris Adamantiadis
7812915daa I've forgot about sftp_server/ :)
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@17 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-26 00:26:18 +00:00
Aris Adamantiadis
e2bdc2f66c sftp server implementation :)
at this time, basic support of opendir, readdir, lstat, etc.
just enough to "sftp" in and type ls.


git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@16 7dcaeef0-15fb-0310-b436-a5af3365683c
2005-08-26 00:25:01 +00:00