summaryrefslogtreecommitdiffstats
path: root/libssh
Commit message (Collapse)AuthorAgeFilesLines
...
* found the nasty server bug ("ssh_accept: ")Aris Adamantiadis2007-03-172-1/+3
| | | | | | | | it was the session->alive which was null. I wonder how this bug survived my initial development ... git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@115 7dcaeef0-15fb-0310-b436-a5af3365683c
* include/libssh/server.h: Remove struct definitionsJean-Philippe Garcia Ballester2007-02-071-0/+1
| | | | | | | | | include/libssh/priv.h: Add struct definitions that previously were in include/libssh/server.h libssh/server.c: Include libssh/priv.h git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@109 7dcaeef0-15fb-0310-b436-a5af3365683c
* libssh/server.c: Include netinet/in.h in order to compile under OpenBSD.Jean-Philippe Garcia Ballester2007-01-041-0/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@108 7dcaeef0-15fb-0310-b436-a5af3365683c
* -rc releaseAris Adamantiadis2006-12-151-33/+49
| | | | | | | | | | | Ipv6 patch from Laurent Bigonville. When the ipv6 targets are unreachable, it tries all possible targets from the getaddrinfo list. Norbert: does it break anything ? it works for me but I didn't test it extensively git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@99 7dcaeef0-15fb-0310-b436-a5af3365683c
* forgot a line from norbert's patchAris Adamantiadis2006-12-121-0/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@98 7dcaeef0-15fb-0310-b436-a5af3365683c
* norbert's patches + strange typo in packet_nonblocking_flush()Aris Adamantiadis2006-12-122-3/+9
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@97 7dcaeef0-15fb-0310-b436-a5af3365683c
* fixed makefiles for debian packagingAris Adamantiadis2006-11-161-3/+3
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@83 7dcaeef0-15fb-0310-b436-a5af3365683c
* oops, forgot to verify that it compiled fineAris Adamantiadis2006-11-124-16/+60
| | | | | | | also, published changes from Norbert including lots of session->fd checks git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@81 7dcaeef0-15fb-0310-b436-a5af3365683c
* good work tonight. Made documentation for authentication, channels, buffers, ↵Aris Adamantiadis2006-11-124-11/+417
| | | | | | errors git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@80 7dcaeef0-15fb-0310-b436-a5af3365683c
* more doxygen documentationAris Adamantiadis2006-11-075-6/+146
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@79 7dcaeef0-15fb-0310-b436-a5af3365683c
* doxygen documentation for option moduleAris Adamantiadis2006-11-061-15/+132
| | | | | | | added ssh_finalize() into libssh.h git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@78 7dcaeef0-15fb-0310-b436-a5af3365683c
* at least I get a working doxygen documentation.Aris Adamantiadis2006-11-061-1/+20
| | | | | | | 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
* Added doxygen documentation file. Now need to document it..Aris Adamantiadis2006-11-061-1/+1
| | | | | | | 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
* Add ssh_finalize to handle finalization of libssh and underlying cryptographicJean-Philippe Garcia Ballester2006-07-093-2/+36
| | | | | | | | | 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
* Correct file headerJean-Philippe Garcia Ballester2006-07-091-4/+2
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@74 7dcaeef0-15fb-0310-b436-a5af3365683c
* libssh/keyfiles.c: Fix bug when reading private keys with libgcryptJean-Philippe Garcia Ballester2006-05-121-2/+3
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@73 7dcaeef0-15fb-0310-b436-a5af3365683c
* keyfiles.c and wrapper.c: Remove useless secure memory flag (for libgcrypt)Jean-Philippe Garcia Ballester2006-03-015-36/+23
| | | | | | | | | | 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
* git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@53 ↵Aris Adamantiadis2005-12-061-34/+40
| | | | 7dcaeef0-15fb-0310-b436-a5af3365683c
* nonblocking support in dh_handshake() from client.cAris Adamantiadis2005-11-302-69/+123
| | | | | | | | 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
* Added support for known_hosts format version 1Jean-Philippe Garcia Ballester2005-11-254-17/+197
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@51 7dcaeef0-15fb-0310-b436-a5af3365683c
* same changes, SSH1 (reading only).Aris Adamantiadis2005-11-231-96/+90
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@50 7dcaeef0-15fb-0310-b436-a5af3365683c
* added bases for nonblocking packet sending and receiving. packet_send Aris Adamantiadis2005-11-223-117/+204
| | | | | | | | | | | | | | | | | 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
* norbert's Makefile.in and crypt.c patchesAris Adamantiadis2005-10-261-4/+4
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@48 7dcaeef0-15fb-0310-b436-a5af3365683c
* resolved the channel hangs on exit issue (moved EOF to read events and ↵Aris Adamantiadis2005-10-263-3/+8
| | | | | | | | | | 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
* resolved the infinite loop on exit (thanks giga for the hint).Aris Adamantiadis2005-10-263-10/+30
| | | | | | | | 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
* Phillip Vandry has seen another bug into r42 :Aris Adamantiadis2005-10-261-1/+1
| | | | | | | | | - 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
* patches from Norbert merged in. I have made some little changes here and there.Aris Adamantiadis2005-10-266-66/+81
| | | | | | | 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
* added Jean-Philippe's patch for libtools. it doesn't compile on my computer.Aris Adamantiadis2005-10-253-14/+93
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@40 7dcaeef0-15fb-0310-b436-a5af3365683c
* channel_select(). this function rocks !Aris Adamantiadis2005-10-251-11/+143
| | | | | | | | | 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
* added the gcrypt patch (without gcrypt as default library).Aris Adamantiadis2005-10-0421-141/+1213
| | | | | | | still needs tests. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@38 7dcaeef0-15fb-0310-b436-a5af3365683c
* ssh-1 small modulus server keys patchAris Adamantiadis2005-09-201-6/+29
| | | | | | | acl bases in mercurius git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@37 7dcaeef0-15fb-0310-b436-a5af3365683c
* fixed bug in sample that made the client running in infinite loop.Aris Adamantiadis2005-08-312-0/+3
| | | | | | | 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
* write supportAris Adamantiadis2005-08-291-0/+3
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@30 7dcaeef0-15fb-0310-b436-a5af3365683c
* changed config file name, take rsa,dsa and port into accountAris Adamantiadis2005-08-291-1/+2
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@28 7dcaeef0-15fb-0310-b436-a5af3365683c
* removed obsolete debugging info, split main.c in 3, and now mercurius links ↵Aris Adamantiadis2005-08-291-1/+1
| | | | | | with a statical libssh git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@26 7dcaeef0-15fb-0310-b436-a5af3365683c
* pam samples files to put into /etc/pam.dAris Adamantiadis2005-08-292-0/+14
| | | | | | | | 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
* file opening/reading works :).Aris Adamantiadis2005-08-262-4/+22
| | | | | | | | 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
* sftp server implementation :)Aris Adamantiadis2005-08-263-5/+250
| | | | | | | | 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
* fixed server segfaults on exit (double frees)Aris Adamantiadis2005-08-254-10/+45
| | | | | | | sftp_server_init() git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@15 7dcaeef0-15fb-0310-b436-a5af3365683c
* some debugging things in ssh1 key exchangeAris Adamantiadis2005-08-201-2/+2
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@14 7dcaeef0-15fb-0310-b436-a5af3365683c
* stdint.patch, debug_output.patch, ssh_12_select.patch,Aris Adamantiadis2005-08-192-7/+16
| | | | | | | solaris_7.patch and args_in_decl.patch from Norbert. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@12 7dcaeef0-15fb-0310-b436-a5af3365683c
* oops, forgot to patch the Makefile.in for the ssh1 files. configure.in patch ↵Aris Adamantiadis2005-08-181-1/+1
| | | | | | from Norbert kiesel to have a compile time ssh1 support. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@11 7dcaeef0-15fb-0310-b436-a5af3365683c
* ssh-1 experimental supportAris Adamantiadis2005-08-182-0/+427
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@10 7dcaeef0-15fb-0310-b436-a5af3365683c
* More work on the server side and sftp.Aris Adamantiadis2005-08-186-7/+26
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@9 7dcaeef0-15fb-0310-b436-a5af3365683c
* some adds, now it's possible to test it correctly.Aris Adamantiadis2005-08-131-0/+20
| | | | | | | channels still need some hack so they know the message system exists. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@8 7dcaeef0-15fb-0310-b436-a5af3365683c
* The kex works, the client authentifies (with password) then it's possible to ↵Aris Adamantiadis2005-08-106-16/+395
| | | | | | choose a subsystem. The channels don't completely work. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@7 7dcaeef0-15fb-0310-b436-a5af3365683c
* server kex done :)Aris Adamantiadis2005-08-0713-127/+540
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@6 7dcaeef0-15fb-0310-b436-a5af3365683c
* ssh_accept() implementation begining in server.cAris Adamantiadis2005-07-081-0/+1
| | | | | | | it just accepts a socket and send a banner right now. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@5 7dcaeef0-15fb-0310-b436-a5af3365683c
* sample sshd server accepts a client and sends a banner.Aris Adamantiadis2005-07-063-37/+36
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@4 7dcaeef0-15fb-0310-b436-a5af3365683c
* Beginning of the SSH_BIND implementationAris Adamantiadis2005-07-053-34/+89
| | | | | | | | hack for errors handling so it supports an Object-oriented kind of errors (generic for ssh_bind and ssh_session data types) git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@3 7dcaeef0-15fb-0310-b436-a5af3365683c