Re: Server-side functions?

2018-06-22 Thread Martin Galvan
I found an ssh_server_fork.c file which seems to have a server example. It would still be nice to have an official guide, though.

Re: Server-side functions?

2018-06-22 Thread g4-lisz
+1 Any documentation would be much appreciated! On 22.06.2018 17:04, Martin Galvan wrote: > Hi all, > > Since there's no documentation on how to write server code using > libssh, could anyone point me in the right direction? > > My server should be rather simple: it has to accept an incoming SCP

Server-side functions?

2018-06-22 Thread Martin Galvan
Hi all, Since there's no documentation on how to write server code using libssh, could anyone point me in the right direction? My server should be rather simple: it has to accept an incoming SCP transfer through a non-standard port (i.e. something other than 22) from a known IP address. I'm

master-chacha20 patch so it builds under windows

2018-06-22 Thread Alberto Aguirre
This is a patch against this branch: https://git.libssh.org/users/asn/libssh.git/log/?h=master-chacha20 This patch + the patch I sent earlier against master: "knownhosts: Fix windows build failure" makes this branch compile under Windows. From 664c13c137be5a4011575a0072e0a3b3b902 Mon Sep

[PATCH] knownhosts: Fix windows build failure

2018-06-22 Thread Alberto Aguirre
Signed-off-by: Alberto Aguirre --- src/knownhosts.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/knownhosts.c b/src/knownhosts.c index 648cd777..28f5e4a6 100644 --- a/src/knownhosts.c +++ b/src/knownhosts.c @@ -28,8 +28,11 @@ #include #include #include + +#ifndef _WIN32

Re: Removing DSS and other unreasonable algorithms (Was: Missing signed-off for pkg chacha20 patches)

2018-06-22 Thread Andreas Schneider
On Friday, 22 June 2018 12:36:12 CEST Tilo Eckert wrote: > Am 20.06.2018 um 15:12 schrieb Andreas Schneider: > > On Tuesday, 19 June 2018 16:35:49 CEST Jakub Jelen wrote: > >> On Thu, 2018-06-14 at 16:03 +0200, Andreas Schneider wrote: > >>> [...] > >>> > >>> Looks like openssh removed support

Re: Removing DSS and other unreasonable algorithms (Was: Missing signed-off for pkg chacha20 patches)

2018-06-22 Thread Tilo Eckert
Am 20.06.2018 um 15:12 schrieb Andreas Schneider: > On Tuesday, 19 June 2018 16:35:49 CEST Jakub Jelen wrote: >> On Thu, 2018-06-14 at 16:03 +0200, Andreas Schneider wrote: >>> [...] >>> >>> Looks like openssh removed support for ssh-dss. At least my openssh >>> 7.7 >>> doesn't know about it at

[PATCH 1/1] buffer: add and use ssh_buffer_ensure_allocated

2018-06-22 Thread Pino Toscano
Add a small helper for ssh_buffer to ensure that the buffer has a certain amount of space already preallocated. This can be useful in case it is known how much data is going to be added to a buffer, to avoid multiple reallocations. Make use of it in few places in the library. Signed-off-by: Pino

[PATCH 0/1] RFC: add ssh_buffer_ensure_allocated

2018-06-22 Thread Pino Toscano
Hi, while profiling libssh, I noticed that in different places ssh_buffer's were realloc'ed more than once during their lifetime. Since in few cases the amount of data is known in advance, I added a small helper to make sure the internal allocated buffer will be large enough to contain all the