Re: Packet corrupt when high latency

2015-09-22 Thread Andreas Schneider
s.html Cheers, -- andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Packet corrupt when high latency

2015-09-22 Thread Andreas Schneider
t likely lead to internal state corruption. This limitation is being worked out and will maybe disappear later. -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: ssh_connect_host_nonblocking: Failed to connect: No error

2015-09-23 Thread Andreas Schneider
On Wednesday 23 September 2015 14:33:44 lars van ruiten wrote: > [2015/09/23 16:00:56.991535, 1] ssh_connect: libssh 0.6.4 (c) 2003-2014 Aris > Adamantiadis, Andreas Schneider and libssh contributors. Distributed under > the LGPL, please reger to COPYING file for information about yo

Re: ssh_connect_host_nonblocking: Failed to connect: No error

2015-09-23 Thread Andreas Schneider
Wed, 23 Sep 2015 17:29:02 +0200 > > > > On Wednesday 23 September 2015 14:33:44 lars van ruiten wrote: > > > [2015/09/23 16:00:56.991535, 1] ssh_connect: libssh 0.6.4 (c) 2003-2014 > > > Aris Adamantiadis, Andreas Schneider and libssh contributors. > > > Distrib

Re: ssh_connect_host_nonblocking: Failed to connect: No error

2015-09-23 Thread Andreas Schneider
et libssh 0.7.2 at: https://red.libssh.org/projects/libssh/files again ... -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Need help in understanding libssh/libssh2‏

2015-09-23 Thread Andreas Schneider
pm I need to choose in order to support this OS. There are RPMs available for libssh in EPEL6. > 3. In future, if we decide to upgrade to Red hat 6 or higher version, will > I have to install new RPM for libssh? libssh is available trough EPEL in RHEL6. RHEL 7.2 ships libssh in the e

Re: SSH reverse tunnel

2015-09-24 Thread Andreas Schneider
ny tips/advice/help would be really appreciated. An > example program would be totally awesome. Cheerio You connect() to localhost:5900 Then handle the the reverse channel ... ssh_channel_read() -> send() recv() -> ssh_channel_write() -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

libssh in the Matrix

2015-09-24 Thread Andreas Schneider
Coming soon ... http://blog.cryptomilk.org/2015/09/24/libssh-in-the-matrix/ -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Need help in choosing the right RPM

2015-09-30 Thread Andreas Schneider
On Wednesday 30 September 2015 16:39:09 Kailash V wrote: > Hi Aris, > > Sorry, my bad. Please let me know which libssh rpm would suit my > requirement? Try the one from EPEL6 or build one on your own ... -- Andreas Schneider GPG-ID: CC014E3D www.cr

Re: Quick question

2015-10-08 Thread Andreas Schneider
time I > have to restart my program that starts the SSH connection an creates the > tunnel. Yes, that's by design. I'm sure you read the RFCs to understand how SSH channels are working, didn't you? You need to cleanup the channel and create a new one. -- Andreas Schneider

Re: Quick question

2015-10-08 Thread Andreas Schneider
hannel > 2. while connection not closed and not eof >1. Read reverse channel and write to Local Socket >2. Read Local socket and write to reverse channel ssh_channel_send_eof() >3. Close Channel ssh_channel_free() -- Andreas Schneider

Re: libssh multi session / channel Single Server

2015-10-08 Thread Andreas Schneider
f you want. I do not understand what you are trying to achieve here. -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Quick question

2015-10-08 Thread Andreas Schneider
On Thursday 08 October 2015 14:06:34 lars van ruiten wrote: > Allright after studying the RFC's again I believe that this is the right way > to do it: 1. Start SSH session2. Request listening on remote port3. While > Forever1. Wait untill incoming channel and load in an ssh_channel >

Re: [PATCH] SSH Tunnels

2015-10-21 Thread Andreas Schneider
aux Aris, please take a look at this patch! -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Patch: for SSH 2.0, send client banner immediately and save a round-trip

2015-10-22 Thread Andreas Schneider
ek. I try to review your patches soon. -- andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

libssh 0.8 and testing

2015-10-29 Thread Andreas Schneider
5/10/29/uid_wrapper-1-2-0-released/ -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: ssh_userauth_publickey() vs. ssh_userauth_pubkey()

2016-01-13 Thread Andreas Schneider
Thanks in advance for you help :) The documentation needs to be updated ... Obviously ssh_userauth_publickey() is the right function to use and not the legacy one ... Cheers, -- andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: [PATCH] basic client certificate support for libssh

2016-01-21 Thread Andreas Schneider
ebase your patches on master. Take a look how I worte tests using 'ssh-agent'. Please implement them the same way for certificates. The tests require https://cwrap.org Thanks! Cheers, -- andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: INSTALL - error

2016-01-23 Thread Andreas Schneider
On Friday, January 22, 2016 07:47:06 AM geo le wrote: > I've made the changes to rebuild the source code from git: > #--gle > # cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug .. > #++gle > #http://stackoverflow.com/questions/16248775/cmake-not-able-to-find-openssl > # Add "-DOPENSSL_

FOSDEM

2016-01-26 Thread Andreas Schneider
Hello, Aris and I will be at FOSDEM and hack on libssh. If you want to talk to us just send a mail or attend my talk: https://fosdem.org/2016/schedule/event/testing_complex_software_in_ci/ It explains the new test infrastructure used by libssh. Cheers, -- andreas -- Andreas

Re: [PATCH] Renamed function: ssh_get_publickey() to ssh_get_server_publickey()

2016-01-30 Thread Andreas Schneider
On Sunday, January 24, 2016 07:33:37 PM Younes Serraj wrote: > Hi Younes, that for your contribution, but renaming this function would break the API. We still need the old function name ... -- andreas

Re: [PATCH] pki.c: ssh_pki_export_privkey_to_pubkey: fixed documentation about return value.

2016-01-30 Thread Andreas Schneider
On Sunday, January 24, 2016 06:43:26 PM Younes Serraj wrote: > Thank you very much for your contribution. I've pushed the patch upstream. -- andreas

Re: FOSDEM

2016-02-01 Thread Andreas Schneider
my talk and the others were there too. Maybe we can meet next year :) Cheers, -- andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: sftp_write waits infinitely

2016-02-17 Thread Andreas Schneider
On Wednesday 17 February 2016 15:00:20 Jakob Kohl | nowcast GmbH wrote: > Hello, > > > some more information. > > I am using libssh 0.6.1 from ubuntu trusty. Can you try the latest 0.7 release? Thanks, -- andreas -- Andreas Schneider

libssh 0.7.3 (security and bugfix release)

2016-02-23 Thread Andreas Schneider
can download libssh 0.7.3 here: https://red.libssh.org/projects/libssh/files -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: ssh_set_callbacks bug ?

2016-02-23 Thread Andreas Schneider
(sshs); > free(cb); > > } > > int main() > { > onerun(); > // Allocate a new block of memory so ssh_new() will not reuse > the old memory, > // making the pointer saved in ssh_set_callbacks() with > ssh_set_log_userdata() &

Re: Implementation of ecdh-sha2-nistp384 and ecdh-sha2-nistp521 key exchange algorithms

2016-03-02 Thread Andreas Schneider
On Wednesday 02 March 2016 12:23:57 Dirkjan Bussink wrote: > Hi Andreas, > > > On 11 Sep 2015, at 16:04, Andreas Schneider wrote: > > > > your changes look perfectly fine, however they need to wait. I'm currently > > rewriting our test environment so that

Re: [PATCH] client code for agent forwarding

2016-03-02 Thread Andreas Schneider
based ssh server. We want to get rid of the old messages API. See https://git.libssh.org/projects/libssh.git/tree/examples/ssh_server_fork.c for a server exampling using the callbacks API. Best regards, -- andreas -- Andreas Schneider GPG-ID: CC014E3D www.crypt

Re: [PATCH] Add request_denied and unimplemented_packet callbacks on server side

2016-03-02 Thread Andreas Schneider
sed */ > -(void)type; > +(void)type; /* unused */ > (void)user; > > rc = ssh_buffer_unpack(packet, "d", &seq); > @@ -477,6 +476,11 @@ SSH_PACKET_CALLBACK(ssh_packet_unimplemented){ > SSH_LOG(SSH_LOG_RARE, > "Received SSH_MSG_

Re: ssh_user_auth_none Permission denied

2016-03-21 Thread Andreas Schneider
use different usernames during the authentication and the server will not allow this. -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: [PATCH] client code for agent forwarding

2016-03-21 Thread Andreas Schneider
_CHANNEL_FORWARDED_AUTH_AGENT; > +if (ssh_callbacks_exists(session->common.callbacks, > channel_open_request_auth_agent_function)) { + ssh_channel > agent_channel = ssh_message_channel_request_open_reply_accept(msg); + > session->common.callbacks->channel_open_request_auth_agent_function(session > , +agent_channel, > +session->common.callbacks->userdata); > +} > +goto error; > + } > + >msg->channel_request_open.type = SSH_CHANNEL_UNKNOWN; >goto end; -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: [PATCH] tests: Make test suite work out of the box on Debian

2016-03-21 Thread Andreas Schneider
;sb); > -if (rc < 0) { > -sftp_server = getenv("TORTURE_SFTP_SERVER"); > -} > -} > + if (rc == 0) > +break; > } > +if (sftp_server == NULL) > +

Re: [PATCH] client code for agent forwarding

2016-03-21 Thread Andreas Schneider
the patch and rebase against master. The best would be an attachment created with 'git format-patch'. Thanks, -- andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: [PATCH 1/5] options: Check if a port has been given

2016-03-21 Thread Andreas Schneider
sue with missing brackets is Apples 'goto fail'. However experience shows that missing brackets lead to errors. Please also add brackets to the other patches. Thanks, -- andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: sftp_write waits infinitely

2016-03-21 Thread Andreas Schneider
_poll(ssh_pollfd_t *fds, nfds_t nfds, int timeout) { > - return poll((struct pollfd *) fds, nfds, timeout); > + int rc = poll((struct pollfd *) fds, nfds, timeout); > + if (rc <= 0) > + return -1; > + return rc; > } > > #else /* HAVE_POLL */ -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: [PATCH] Renamed function: ssh_get_publickey() to ssh_get_server_publickey()

2016-03-21 Thread Andreas Schneider
On Friday 29 January 2016 10:32:49 Andreas Schneider wrote: > On Sunday, January 24, 2016 07:33:37 PM Younes Serraj wrote: > > > > Hi Younes, > > that for your contribution, but renaming this function would break the API. > We still need the old function name .

Re: [PATCH] diffie-hellman-group-exchange-sha256

2016-03-21 Thread Andreas Schneider
st of > >> introducing new security problems. > >> > >> Your code however correctly and neatly implements the packet parsing and > >> packet sending, together with the corner case of SSH_MSG_GEX_OLD_INIT. > >> My proposition now is that I'll work on a better way of decoupling the > >> different key exchange methods, and implement GEX by using as much of > >> your code as I can. I'll make sure you get your name as the commiter so > >> you're properly credited for you work. > >> > >> Best regards, > >> > >> Aris -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: libssh heap crashes when integrating with cpp in debug mode

2016-05-02 Thread Andreas Schneider
On Tuesday, March 29, 2016 08:16:50 AM Sruthi Mohan wrote: > Dear All, > I tried integrating libssh to my "Qt-C++" application MINGW compiler I get > heap errors in API like ssh_userauth_none , ssh_pki_import_pubkey_file and > ultimately crashes in Debug Mode. > > It works perfectly in release mod

Re: Patch: for SSH 2.0, send client banner immediately and save a round-trip

2016-05-02 Thread Andreas Schneider
On Thursday, October 15, 2015 10:35:09 PM you wrote: > Hello again, > > Sorry for having sent incorrect patch file. > > Previous patch file won’t send client banner immediately, it will be > buffered. > > I use ssh_set_fd_towrite to force banner being sent immediately, but I’m not > sure whether

Re: [Patch] Banner should end with CRLF for SSH 2.0

2016-05-02 Thread Andreas Schneider
On Sunday, October 18, 2015 04:41:36 PM Yang Yubo wrote: > Hi, Hi Yang, > In attached patch, libssh banners end with “\r\n” if SSH 1 disabled in > configuration, but keep origin behavior (send “\n”) if SSH 1 still allowed. thanks you very much for your patch. I've rewrote the complete function

Re: Quick question about some patches

2016-05-02 Thread Andreas Schneider
ct: [PATCH 1/2] client: Receive the banner correctly Comply with RFC 4253 compliance section 4.2. Allow data other than "SSH-" to be sent across prior to the actual version striong. Signed-off-by: Ken Reister Reviewed-by: Andreas Schneider --- src/client.c | 7 +++ 1 file chang

Re: I need help on the use of libssh (sftp_rmdir function),to delete a directory and its subdirectories on the sftp server

2016-05-02 Thread Andreas Schneider
On Tuesday, April 12, 2016 05:42:08 PM Stéphane Lemoine wrote: > Hi , > I need help > I have tried several ways to delete a directory and its subdirectory with > sftp_rmdir > on the sftp server and my function fails and the directory and its > subdirectories are not deleted. > How should I use the

Re: [PATCH 2/3] pki_gcrypt: Handle ECDSA keys and signatures

2016-05-02 Thread Andreas Schneider
On Wednesday, March 30, 2016 11:53:25 AM you wrote: > * ConfigureChecks.cmake: Set 'HAVE_ECC' and 'HAVE_GCRYPT_ECC' if > applicable. > * include/libssh/libgcrypt.h (EVPCTX): Fix type. > (NID_gcrypt_nistp{256,384,521}): New constants. > * include/libssh/pki.h (struct ssh_key_struct): Fix type of fie

Re: [Patch] Banner should end with CRLF for SSH 2.0

2016-05-02 Thread Andreas Schneider
On Monday, May 02, 2016 06:07:43 PM Yang Yubo wrote: > Hi Andreas, > > It’s great to hear that, thank you for still remembered the patch. > > So for now, I do not have to keep my private branch, really good for me :) > > Thank you again for your work, We have more issues with receiving and send

Re: Quick question about some patches

2016-05-03 Thread Andreas Schneider
On Monday, May 02, 2016 10:00:02 AM Kenneth Reister wrote: > I had included the sign off in my email, but I see you've added it to the > .patch file. Is that the correct way to do it in future? > > I don't see anything wrong with your changes/refactor. Looks like you > refactored the entire func

[ANNOUNCEMENT] SSHv1 will be removed

2016-05-03 Thread Andreas Schneider
Hello, the SSH developers of several FOSS implementations agreed to remove support for SSHv1. The libssh project supports SSHv1 on the client side. libssh 0.8 will be the last release with SSHv1 support. After the release we will remove all SSHv1 related code. If you haven't done yet you shoul

Re: Return SSH_EOF in ssh_channel_read_timeout

2016-05-18 Thread Andreas Schneider
return of SSH_EOF value. > Is it so or I'm missing something? Hi, this looks correct. Could you please send a patch as 'git format-patch' with you Signed-Off? See SubmittingPatches in the git tree. Thanks, -- andreas -- Andreas Schneider GP

Re: Download Site Down

2016-08-08 Thread Andreas Schneider
On Friday, 29 July 2016 19:08:43 CEST Jason Goodell -X (jagoodel - KFORCE INC at Cisco) wrote: > Been trying to download the library all afternoon, and the webmaster link > has no associated address. Thanks. Fixed, sorry for the inconvenience. -- Andreas Schneider

Re: Short sftp packet!

2016-08-23 Thread Andreas Schneider
On Tuesday, 23 August 2016 12:25:42 CEST Saju Panikulam wrote: > Try reading and writing in blocks of 4K. Do this to EOF of source file. Yes, exactly. I use 16k for the chunk size in KDE which works very well. -- andreas -- Andreas Schneider GPG-ID: CC014

Re: Short sftp packet!

2016-08-23 Thread Andreas Schneider
lob/master/src/justup.c#L330 Isn't there a 0.7 version available? -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Short sftp packet!

2016-08-24 Thread Andreas Schneider
al are welcome. -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Protocol error: expected packet type 50, got 90

2016-08-24 Thread Andreas Schneider
n successful Maybe start with checking return codes, we provide them for a reason ... -- andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: https://red.libssh.org/projects/libssh/files not accessible

2016-09-09 Thread Andreas Schneider
On Monday, 11 July 2016 17:18:18 CEST Yang Yubo wrote: > And another question that may off topic: why libssh does not hosting on > Github? We prefer to run our own git infrastructure. We do not trust web applications with write access to git. -- Andreas Schneider

Re: [PATCH] sftp: ensure sftp_packet_read recognizes channel EOF to avoid infinite loop

2016-10-07 Thread Andreas Schneider
Cheers, Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Libssh server RekeyLimit setting?

2016-10-07 Thread Andreas Schneider
On Wednesday, 5 October 2016 11:06:10 CEST Karl Scott wrote: > Thank you very much for the quick response Aris! Good to know. Patches are always welcome ;)

Re: Bugfix patches + SFTP append support

2016-10-08 Thread Andreas Schneider
On Friday, 1 July 2016 16:13:40 CEST Tilo Eckert wrote: > Hi, Hi Tilo, > I attached some patches: > > - The SSH_FXF_READ flag was always set when opening a file via SFTP > - I added support for opening files in append mode. Due to bad protocol > design I had to query the file size through the s

Re: [PATCH] sftp: fix memory leak in sftp_fstat

2016-10-22 Thread Andreas Schneider
){ > -return sftp_parse_attr(file->sftp, msg->payload, 0); > +sftp_attributes attr = sftp_parse_attr(file->sftp, msg->payload, 0); > +sftp_message_free(msg); > + > +return attr; >} else if (msg->packet_type == SSH_FXP_STATUS) { > st

Re: [PATCH] Remove extra newlines from log/error messages

2016-10-22 Thread Andreas Schneider
"Received unhandled sftp message %d\n", msg->type); > +"Received unhandled sftp message %d", msg->type); >sftp_client_message_free(msg); >return NULL; >} > diff --git a/src/wrapper.c b/src/wrapper.c > index b75

Re: [PATCH] fixed Windows compile

2016-10-22 Thread Andreas Schneider
t;opts.identity); >} > +#ifndef _WIN32 >ssh_agent_state_free (session->agent_state); > +#endif >session->agent_state = NULL; >SAFE_FREE(session->auth_auto_state); -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Build libssh against openssl 1.1.0

2016-11-02 Thread Andreas Schneider
Yes, this is indeed nice work. However I've already found some small issues. In DEBUG_CRYPTO there were some const issue and dsa instead of ecdsa was used. I've fixed that in the branch here: https://git.libssh.org/users/asn/libssh.git/log/?h=fix Andreas -- Andreas Schn

Re: Build libssh against openssl 1.1.0

2016-11-02 Thread Andreas Schneider
On Wednesday, 2 November 2016 12:34:59 CET Andreas Schneider wrote: > On Wednesday, 2 November 2016 11:27:18 CET Aris Adamantiadis wrote: > > Hi Jakub, > > > > That's great work you did here. Please let us some time to review your > > patch and give feedback. We s

Re: Build libssh against gcrypt

2016-11-02 Thread Andreas Schneider
. I've started with a review but did not finish it. I will try to finish it tomorrow. Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Build libssh against gcrypt

2016-11-02 Thread Andreas Schneider
life with them for now. For the future: int len; len = foo(); if (len == 1) is easier to debug (gdb$ print len) and to understand then if (foo() == 1) Cheers, Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Patch for libssh and x2go for ssh-forwarding

2016-11-02 Thread Andreas Schneider
. > > http://www.danisch.de/tmp/libssh_0.7.3_AUTH-AGENT.diff Could you please send the patch for master as 'git format-patch' with your sign-off? Thanks, Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Build libssh against gcrypt

2016-11-04 Thread Andreas Schneider
ast if you spend a lot of time in the debugger and I do :) Could you please check the memory leaks and fix them: https://test.libssh.org/viewDynamicAnalysis.php?buildid=37424 Thanks, Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Build libssh against openssl 1.1.0

2016-11-05 Thread Andreas Schneider
improves the > readability of some constructions according to your hints. Thank you very much. I split up one patch which didn't have your sign off. The patchset is attached. I need your ok to add your sign-off and push it. Cheers, Andreas -- Andreas Schneider

Re: ssh_scp_close hangs

2016-11-06 Thread Andreas Schneider
00 00 00 2b ...+ > Event Log: Disconnected: All channels closed > > It seems that putty is waiting for SSH2_MSG_CHANNEL_CLOSE but server > doesn't send it because it waits eof. > > Is it ok to remove the while loop? Or it could cause other problems? You should really use sftp and not that broken scp protocol. Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Build libssh against openssl 1.1.0

2016-11-06 Thread Andreas Schneider
On Saturday, 5 November 2016 17:02:13 CET Andreas Schneider wrote: > On Wednesday, 2 November 2016 17:58:01 CET Jakub Jelen wrote: > > Andreas, > > thank you for the comments. I reworked the patch (attached) to smaller > > parts that finally build and passes the testsui

Re: Build libssh against openssl 1.1.0

2016-11-06 Thread Andreas Schneider
On Sunday, 6 November 2016 12:09:30 CET Andreas Schneider wrote: > On Saturday, 5 November 2016 17:02:13 CET Andreas Schneider wrote: > > On Wednesday, 2 November 2016 17:58:01 CET Jakub Jelen wrote: > > > Andreas, > > > thank you for the comments. I reworked the

Re: Build libssh against openssl 1.1.0

2016-11-07 Thread Andreas Schneider
On Monday, 7 November 2016 10:44:12 CET Jakub Jelen wrote: > On 11/05/2016 05:02 PM, Andreas Schneider wrote: > > On Wednesday, 2 November 2016 17:58:01 CET Jakub Jelen wrote: > >> Andreas, > >> thank you for the comments. I reworked the patch (attached) to smaller &g

Re: Possible error in sftp_get_client_message

2016-11-07 Thread Andreas Schneider
On Friday, 13 May 2016 11:16:28 CET Игорь Коваленко wrote: > Hi! > There is a code in sftp_get_client_message > case SSH_FXP_FSTAT: > rc = ssh_buffer_unpack(payload, > "Sd", > &msg->handle, > &msg->flag

Re: Return SSH_EOF in ssh_channel_read_timeout

2016-11-07 Thread Andreas Schneider
On Friday, 13 May 2016 11:13:27 CET Игорь Коваленко wrote: > Hi! > there are such lines in function ssh_channel_read_timeout : > ... > if (channel->remote_eof && buffer_get_rest_len(stdbuf) == 0) { > return 0; > } > It seems in such a case there should be a return of SSH_EOF value. > Is it so o

Re: Build libssh against openssl 1.1.0

2016-11-07 Thread Andreas Schneider
On Monday, 7 November 2016 10:44:12 CET Jakub Jelen wrote: > On 11/05/2016 05:02 PM, Andreas Schneider wrote: > > On Wednesday, 2 November 2016 17:58:01 CET Jakub Jelen wrote: > >> Andreas, > >> thank you for the comments. I reworked the patch (attached) to smaller &g

Re: [PATCH 1/2] pki_gcrypt: Fix memory leak.

2016-11-09 Thread Andreas Schneider
On Wednesday, 9 November 2016 16:34:14 CET Justus Winter wrote: > * src/pki_gcrypt.c (pki_key_ecdsa_to_nid): Release 'sexp'. I've pushed both patches upstream, thanks! Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.or

Re: 'Short sftp packet error' in libssh

2016-11-14 Thread Andreas Schneider
e latest libssh library from the git repository. Hey, do you write in 16k chunks? Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: 'Short sftp packet error' in libssh

2016-11-14 Thread Andreas Schneider
ill you hit EOF ... Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Microsoft visual C++ compilation problems

2016-11-24 Thread Andreas Schneider
not play nice with openssl > 1.0.1. I could I guess try openssl 0.9 but that is now unsupported. I've recently fixed all issues with VS2015 in the v0-7 and master. It compiles just fine for me. -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Microsoft visual C++ compilation problems

2016-11-25 Thread Andreas Schneider
ernal symbol _ssh_agent_state_free referenced > in function _ssh_free > I like to think I’m relatively intelligent but this is getting beyond me > now, trying to put together a proof of concept but think I may have failed > at first hurdle ☹ git pull :) > > On 24/11/2016, 12:

Re: Microsoft visual C++ compilation problems

2016-11-25 Thread Andreas Schneider
2009 with the v0-7 > build getting a link error > > error LNK2019: unresolved external symbol _ssh_agent_state_free referenced > in function _ssh_free > > I like to think I'm relatively intelligent but this is getting beyond me > now, trying to put together a proof of concept

Re: Microsoft visual C++ compilation problems

2016-11-26 Thread Andreas Schneider
On Friday, 25 November 2016 17:25:11 CET Mark Ramsden wrote: > That’s worked a treat. Thank you. Now all I need to do is write my tunnel > thread for my app and away I go. > What could go wrong ? ☺ > > Jeremy thanks for the patch Thanks for all your help and contributions. Sorry but my time for

Re: Help-libssh

2016-12-11 Thread Andreas Schneider
me SSH_OK. > > What could be the problem. Hey! We don't know. Increase the logging output and try to find out yourself ;) http://api.libssh.org/stable/ group__libssh__session.html#ga7a801b85800baa3f4e16f5b47db0a73d Andreas -- Andreas Schneider

libssh-0.7.4

2017-02-03 Thread Andreas Schneider
Hello, it took to long but finally here is a new release! https://red.libssh.org/projects/libssh/files Thanks for all contributors. ChangeLog: version 0.7.4 (released 2017-02-03) * Added id_ed25519 to the default identity list * Fixed sftp EOF packet handling * Fixed ssh_send_banner()

Re: Microsoft visual C++ compilation problems

2017-02-03 Thread Andreas Schneider
On Wednesday, 23 November 2016 17:16:11 CET Mark Ramsden wrote: > Aris, > > This may be a stupid question if I install MinFW to build the libs will I be > able to link resultant dll with msvc projects ? Sure I could but don’t > wantto run off on a fools errand Aris and myself are not Windows user

Re: passing passphrase as parameter?

2017-02-14 Thread Andreas Schneider
ted space ... This doesn't really make sense ... -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Help With Reading Output Data

2017-02-14 Thread Andreas Schneider
output that I already read at #3. > > What am I doing wrong with this basic scenario? Hi, look at examples/exec.c Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: hostbased authentication in libssh

2017-02-14 Thread Andreas Schneider
an error on the page. We do not support it but maybe you're interested to implement it? Shouldn't be very hard to add it. Cheers, Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Help With Reading Output Data

2017-02-14 Thread Andreas Schneider
output that I already read at #3. > > What am I doing wrong with this basic scenario? Patches to improve the documentation are very welcome :) Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Complete example of daemon with multiprocess

2017-02-22 Thread Andreas Schneider
wait for a connection. Forking is better because if you have a segfault only the process for client connection dies. About threading: http://bholley.net/blog/2015/must-be-this-tall-to-write-multi-threaded-code.html Improved examples are always welcome. Andreas -- Andreas Schneider

Re: [PATCH] add ssh1 support for ssh_send_ignore & ssh_send_debug

2017-03-10 Thread Andreas Schneider
On Friday, 10 March 2017 10:16:07 CET Yanis Kurganov wrote: > Dear libssh developers! > Please care about ssh1. It's still alive =) > > Patch attached. I will look into it, but we completely remove SSHv1 in future. I would say telnet is as secure as SSHv1 ;-) --

Re: non-blocking server api

2017-04-05 Thread Andreas Schneider
30d869d57b4dc813a84877d9 > > 174a15cd > > > > and an accompanying fix: > > https://github.com/pmundkur/libssh/commit/df0fd2707c070e5f51ba3d68a8db6944 > > 65eced0e > > > > With this, an example of a fully non-blocking non-forking > > callback-based server is here:

Re: [PATCH] add ssh1 support for ssh_send_ignore & ssh_send_debug

2017-04-11 Thread Andreas Schneider
re you fine if I add the attached patchset? Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org>From 531e0e24c788fbd64e5771127c6a8a1e89caa88b Mon Sep 17 00:00:00 2001 From: Yanis Kurganov Date: Tue, 11 Apr 2017 09:49

Re: [PATCH] Utilize the message queue for SSH_REQUEST_GLOBAL.

2017-04-11 Thread Andreas Schneider
Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: non-blocking code and EAGAIN

2017-04-11 Thread Andreas Schneider
s into an error mode > (data_except is set which subsequently sets the status to SSH_CLOSED_ERROR) Sounds like a bug which needs fixing :) Can you provide a patch? Thanks, Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Set ssh_bind private key from ssh_key pointer

2017-04-11 Thread Andreas Schneider
ng a > new bind option (SSH_BIND_OPTIONS_IMPORT_KEY) to the function > ssh_bind_options_set(). > > Alfredo Mazzinghi > --- > Signed-off-by: Alfredo Mazzinghi Pushed to master, that you very much for your contribution! I've added the Sign-off to the patch itself.

Re: Test suite for libssh

2017-04-11 Thread Andreas Schneider
an point to those. Everything is in tests/* in the master branch! Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: [PATCH] add ssh1 support for ssh_send_ignore & ssh_send_debug

2017-04-11 Thread Andreas Schneider
On Tuesday, 11 April 2017 13:54:57 CEST Yanis Kurganov wrote: > OK, no problem! Pushed to master and will be in the next 0.7 release. Thanks for your contribution! > 2017-04-11 10:52 GMT+03:00 Andreas Schneider : > > On Monday, 13 March 2017 16:19:43 CEST Yanis Kurganov wrote:

libssh-0.7.5

2017-04-13 Thread Andreas Schneider
Hi, I've just released libssh-0.7.5 ChangeLog: * Fixed a memory allocation issue with buffers * Fixed PKI on Windows * Fixed some SSHv1 functions * Fixed config hostname expansion -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.org

Re: ssh_pki_import_privkey_file always returns -1

2017-04-17 Thread Andreas Schneider
ill able to > connect to the server but I would like to have the key method to work. > > If you have any suggestion or tips, that would be greatly appreciated, Turn on debug messages and it will give you some hints :) http://api.libssh.org/master/ group__libssh__session.html#ga7a801b85800baa3f4e16f5b47db0a73d Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Problem with simple echo server

2017-05-18 Thread Andreas Schneider
error and set errno correctly. Patches are very welcome. Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: permissions other with libssh 0.7.3

2017-05-18 Thread Andreas Schneider
gt; if I use libssh 0.7.5 is this probleme corrected or is there any other > solution to this problem ? > > thanks for your answers I think you have to try. Patches are very welcome :) Shouldn't be hard to fix. -- Andreas Schneider GPG-ID: CC014E3D www.crypt

<    1   2   3   4   5   6   7   8   9   10   >