vcpkg libssh 0.8.x version isn't available

2019-02-27 Thread Franciszek Juras
Hi, I have code working on linux that uses libssh 0.8.x api. Now that I want to port my application to windows, I wanted to build libssh using vcpkg. However, there is only 0.7.6 version of libssh available in vcpkg. What is the reason of such situation? Can I expect the 0.8.x version to be availab

Re: vcpkg libssh 0.8.x version isn't available

2019-02-28 Thread Franciszek Juras
Ok. I'll revert to 0.7 api for now. Thanks for info. czw., 28 lut 2019, 11:28 użytkownik Andreas Schneider napisał: > On Thursday, February 28, 2019 10:10:53 AM CET Tilo Eckert wrote: > > Hi Franciszek, > > > > as far as I understand vcpkg, its packages are maintained by Microsoft > > and they

Re: vcpkg libssh 0.8.x version isn't available

2019-02-28 Thread Franciszek Juras
Thing is, I don't build libssh on linux, only use distro packages. Could you explain, why there is no precompiled version of libssh available on windows? That would make things a lot easier. I feel there is too much complexity involved with building library on your own, especially for people not fa

Re: Execution of invalid command doesn't return error

2019-03-22 Thread Franciszek Juras
In function "int channel_read_buffer (ssh_channel channel, ssh_buffer buffer, uint32_t count, int is_stderr)" you need to pass 1 in place of is_stderr to read from stderr. Now you probably pass 0, thus you read from stdout. You need to read stdout and stderr separately. FJ pt., 22 mar 2019, 12:12

How to set up timeout

2019-04-06 Thread Franciszek Juras
Hi, I noticed, that functions like ssh_channel_request_exec or sftp_open never return (or it takes very long time - didn't wait) if the connection is lost. I tried setting SSH_OPTIONS_TIMEOUT with ssh_options_set, but it didn't change anything. So how can I prevent functions from blocking forever?

Re: How to set up timeout

2019-04-07 Thread Franciszek Juras
I'm using version 0.8.6 FJ

Re: How to set up timeout

2019-04-09 Thread Franciszek Juras
:03 CEST Franciszek Juras wrote: > > Hi, > > I noticed, that functions like ssh_channel_request_exec or sftp_open > never > > return (or it takes very long time - didn't wait) if the connection is > > lost. I tried setting SSH_OPTIONS_TIMEOUT with ssh_options_set, but i

Why SSH_TIMEOUT_DEFAULT is always used in channel functions

2019-07-09 Thread Franciszek Juras
Hi, I'm using libssh version 0.8.6 to send files and commands to a device. I noticed, that if I disconnect ethernet cable, functions like ssh_channel_request_exec or ssh_channel_open_session hang for a very long time. After looking through the code I discovered, that all channel functions use SSH_T

Re: Why SSH_TIMEOUT_DEFAULT is always used in channel functions

2019-07-09 Thread Franciszek Juras
Is there any ppa with latest libssh? wt., 9 lip 2019, 13:27 użytkownik Andreas Schneider napisał: > On Tuesday, July 9, 2019 11:40:28 AM CEST Franciszek Juras wrote: > > Hi, > > I'm using libssh version 0.8.6 to send files and commands to a device. I > > noticed, tha

Re: Why SSH_TIMEOUT_DEFAULT is always used in channel functions

2019-07-10 Thread Franciszek Juras
I installed the 0.9 version and everything works as expected (yay) śr., 10 lip 2019 o 10:18 Andreas Schneider napisał(a): > On Wednesday, July 10, 2019 9:40:45 AM CEST David Kedves wrote: > > Hi, > > > > I've actually created a PPA for libssh stable releases (sometimes i am > > late by few weeks

Runtime error on Windows with libssh 0.9: DllMain: ssh_init_failed!

2019-07-12 Thread Franciszek Juras
Hi, I'm trying to compile dynamic version of libssh 0.9 on Windows with msvc 2017 using vcpkg. I'm using vcpkg from cryptomilk:master-libssh branch. I successfully build libssh. However, I get "DllMain: ssh_init_failed!" when trying to use it. One thing that worries me is that exported mbedtls has

Re: Runtime error on Windows with libssh 0.9: DllMain: ssh_init_failed!

2019-07-14 Thread Franciszek Juras
Should I link those static mbedtls libraries in my program? Franciszek pt., 12 lip 2019, 19:04 użytkownik Franciszek Juras < franciszekju...@gmail.com> napisał: > Hi, > I'm trying to compile dynamic version of libssh 0.9 on Windows with msvc > 2017 using vcpkg.

Re: Runtime error on Windows with libssh 0.9: DllMain: ssh_init_failed!

2019-07-15 Thread Franciszek Juras
aster-libssh and try linking against it. Anyway, I ended up building libssh with prebuilt openSSL. It works fine, so it's probably the best way for Windows users. Franciszek pon., 15 lip 2019 o 10:08 Andreas Schneider napisał(a): > On Sunday, July 14, 2019 11:15:26 AM CEST Francisze

Re: Libssh on Windows 10

2019-09-30 Thread Franciszek Juras
AFAIK libssh 0.9 should be build against openssl 1.1.1 And openssl 1.0.2 support ends at the end of the year anyway. FJ pon., 30 wrz 2019, 23:41 użytkownik Kennedy, Marcus A. < marcus.kenn...@rocket.com> napisał: > All, > > > > libssh-0.9.0 > > openssl-1.0.2s > > > > I'm just now digging into t