Re: [PATCH 07/11] libcrypto: get compiling with BoringSSL

2017-10-29 Thread Andreas Schneider
On Sunday, 10 September 2017 05:12:50 CET Jon Simons wrote: > With this change, libcrypto.c will compile with BoringSSL. To > get this working here's what I did: > > * Include the libcrypto-boringssl-compat shim header when building >with OPENSSL_IS_BORINGSSL. > > * Bring in a few more fun

Re: [PATCH 0/4] chachapoly: chacha20-poly1...@openssh.com support

2017-10-12 Thread Andreas Schneider
Will it be merge to the master of the main repository ? I will try to. It would be great if you could test it and report back. Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: [PATCH 0/4] chachapoly: chacha20-poly1...@openssh.com support

2017-10-12 Thread Andreas Schneider
/git.libssh.org/users/aris/libssh.git/log/?h=chacha20 Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Vacation

2017-09-12 Thread Andreas Schneider
I will be back mid of October. Will review patches when I'm back. Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: about issue 223

2017-09-11 Thread Andreas Schneider
On Monday, 11 September 2017 18:00:47 CEST 312 wrote: > Thank you for your commit, Andreas. I am going to import libssh as dll,so I > think it's supposed to be LGPL compliant now. And I will try to contribute > somesftp server examples to the libssh repo. Thanks, but the sftp server implementation

Pointers

2017-09-11 Thread Andreas Schneider
stolen from the Samba project ;-) We've added this in Samba after one of the last Security bugs we had ... Thanks, Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: about issue 223

2017-09-11 Thread Andreas Schneider
it is ok as long as you comply with the LGPL. I guess you're already doing that, right? https://bugs.libssh.org/T44 will be fixed with libssh 0.8. Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: async channel mode

2017-08-24 Thread Andreas Schneider
fore Duke Nukem Forever will be release. Oh wait? ... OK, till someone starts to implement this. I think this means YOU :-) > 2. Is there a way to write to the channel in non-blocking mode? > Currently ssh_channel_write() says it's blocking... Yeah, a lot of work ahead ... Andre

Re: [PATCH] add mbedtls crypto support

2017-08-10 Thread Andreas Schneider
On Wednesday, 9 August 2017 13:46:52 CEST Juraj Vijtiuk wrote: > On Tue, Aug 08, 2017 at 05:30:07PM +0200, Andreas Schneider wrote: > > Hi Juraj, > > > > thank you very much for your contribution to libssh. As the patch is > > really > > huge and I have commen

Re: [PATCH] add mbedtls crypto support

2017-08-08 Thread Andreas Schneider
ode review tool we would like to use for these things :-) You can create an account or use an existing github account to login. Thanks, Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: [INSTALL issue] missing header files poll.h and config.h

2017-08-03 Thread Andreas Schneider
nstall at least two header files I had to copy to /usr/include/libssh > manually: > poll.h > config.h > > Thank you for such a powerful library! Playing around with it for a week > already and find it very useful! Those are internal header files, so they are not installed. Why do

Re: Fwd: server API, I can not get authorization by key

2017-08-02 Thread Andreas Schneider
nt it! The server example: https://git.libssh.org/projects/libssh.git/tree/examples/samplesshd-cb.c shows how to do it for password, you need to add a callback for public key authentication ... Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Issule several commands using non-interactive remote shell

2017-07-31 Thread Andreas Schneider
tutorial. However you should be able to find examples in the maling list archive. You need your own protocol like ./command && echo OK || echo KO To know if a command has been executed or failed ... Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.org

Re: SSH server: Problem with polling of pipes created for reading stdout/stderr of child process using libssh API

2017-07-31 Thread Andreas Schneider
gt; https://pastebin.com/i5QLf1Gn The page has been removed. I think you have to turn on logging and try to find out what is going on. It could also be a bug in libssh. Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: sftp EOF detection infinite loop

2017-07-25 Thread Andreas Schneider
and so we loop forever. > > Does that theory sound plausible? Should the stderr data be ignored or bled > off? I dunno, the best would be if we have a reproducer and we could write a test for for the issue. Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Request for remote command-line SSH server example

2017-07-24 Thread Andreas Schneider
ssh.git/tree/examples/ssh_server_fork.c -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: [PATCH] libcrypto: add NULL-check for EVP_CIPHER_CTX_cleanup

2017-07-20 Thread Andreas Schneider
the patch, pushed. I will review your other patches next week. -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: [PATCH 5/5] misc: relax fatal errors in ssh_analyze_banner

2017-07-19 Thread Andreas Schneider
. If we are connected to a version which we know supports the feature we turn it on. I will add the patch. Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: [PATCH 5/5] misc: relax fatal errors in ssh_analyze_banner

2017-07-18 Thread Andreas Schneider
On Thursday, 13 July 2017 00:40:52 CEST Jon Simons wrote: > Aris, what do you think? Should we make it configureable via an option or just be more graceful? Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: [PATCH] libcrypto-compat: fix HMAC_CTX_free for OpenSSL < 1.1.0

2017-07-14 Thread Andreas Schneider
On Thursday, 13 July 2017 00:23:03 CEST Jon Simons wrote: > Hi Jon, thanks for the patches. The gcrypt build doesn't work anymore. https://test.libssh.org/viewBuildError.php?buildid=41092 Could you please take a look. Thanks, Andreas -- Andreas Schneider

Re: Issue accessing https://git.libssh.org

2017-06-29 Thread Andreas Schneider
On Thursday, 29 June 2017 10:54:12 CEST Tilo Eckert wrote: > Am 28.06.2017 um 18:05 schrieb Andreas Schneider: > > On Wednesday, 28 June 2017 15:40:00 CEST Tilo Eckert wrote: > >> Am 28.06.2017 um 13:42 schrieb Andreas Schneider: > >>> On Wednesday, 28 June 2017 1

Re: Issue accessing https://git.libssh.org

2017-06-28 Thread Andreas Schneider
On Wednesday, 28 June 2017 15:40:00 CEST Tilo Eckert wrote: > Am 28.06.2017 um 13:42 schrieb Andreas Schneider: > > On Wednesday, 28 June 2017 12:43:14 CEST Tilo Eckert wrote: > >> Hi, > > > > Hi Tilo, > > > >> I am experiencing a re-occuring issue wh

Re: Issue accessing https://git.libssh.org

2017-06-28 Thread Andreas Schneider
erver is configured for HTTPS2, this post might be relevant: > https://support.mozilla.org/en-US/questions/1139019 Thanks! Please retry. It should be reported to https://bettercrypto.org/ so that they update their documentation. Cheers, Andreas -- Andreas Schneider

Re: Writing an SFTP Server Using lobs she

2017-06-20 Thread Andreas Schneider
t;. The better way would be to reimplement the sftp-server using callbacks like the rest of the ssh server we have. Then all you have to do is to define the callblacks. Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Bugtracker

2017-06-20 Thread Andreas Schneider
: https://secure.phabricator.com/book/phabricator/article/arcanist/ The new bugtracker is at https://bugs.libssh.org/ The old one is read only and will be removed once we moved all the files. Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.org

Re: Writing an SFTP Server Using lobs she

2017-06-19 Thread Andreas Schneider
nks for any examples or help! Hi, the problem is that the sftp server should be rewritten to use callbacks like the rest of the server. We didn't have the time to do that yet. Help in that area is much appreciated. ou need to use messages to deal with sftp. sftp_get_client_message()

Re: [Patch] Windows sockets version 2.2

2017-06-07 Thread Andreas Schneider
chment. See https://git.libssh.org/projects/libssh.git/tree/SubmittingPatches Thanks, Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: [PATCH] Fix config file reading

2017-06-06 Thread Andreas Schneider
some > tests with my libssh based project and it seems that the patch works OK > for me. Please find the patch attached. Thanks for your patch! We really need tests for this code. Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

Re: Possible error in Docs on Authentication

2017-05-18 Thread Andreas Schneider
t; rc = ssh_userauth_none(session, NULL); > if (rc != SSH_AUTH_SUCCESS) { > return rc; > } > > I believe it should be: > If (rc == SSH_AUTH_SUCCESS) { > return rc; > } I think it should be: if (rc == SSH_AUTH_SUCCESS || rc == SSH_AUTH_ERROR) {

Re: Bug in partial key authentication?

2017-05-18 Thread Andreas Schneider
, shouldn't the > above case not block anyway? We already fixed some issues that the code is in the wrong state in the auth code. I think there are more cases missing and those should be fixed. It should be easy to extend our test suite with the case you describe and fix it fro

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

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: 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

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: [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:

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: 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: 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: [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: [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: 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-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: 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: 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: 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? Hi, look at examples/exec.c Andreas -- Andreas Schneider GPG-ID: CC014E3D www.cryptomilk.orga...@cryptomilk.org

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: 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

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: 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

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: 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-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-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: '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: '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: [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: 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: 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: 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: 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: 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-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: 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-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: 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: 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-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: 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 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 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: [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: [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] 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: 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: 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: [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: 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: 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: Short sftp packet!

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

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-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: 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: 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

[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: 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

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: [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: 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] 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: 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] 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: [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: 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 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: [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] 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
_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

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