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.
+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
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
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
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
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
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
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
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