Re: LibSSH.jl logo

2024-02-01 Thread Andreas Schneider
k on libssh.org? Unfortunately I > can't find an easy way to set up a redirect from the old link :/ Done. Now packing for FOSDEM :-) > On Tue, Jan 16, 2024, 8:44 PM James Wrigley wrote: > > Sounds good, thanks  > > > > On Tue, Jan 16, 2024, 9:22 AM Andreas Schneider > > >

Re: SSH Key exchange (Kex error)

2024-02-01 Thread Andreas Schneider
roup1-sha1 Device_ip -p Port > > > > > > Not sure what's stopping us through libssh. > > > > > > Thanks > > > Bhautik > > > > > > On Wed, Jan 31, 2024, 5:38 PM Andreas Schneider > > > > wrote: >

Re: SSH Key exchange (Kex error)

2024-01-31 Thread Andreas Schneider
ice supports this kex? Did you enable verbose logging and check what the server returns? Best regards Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Time of a file on a remote machine via SCP API?

2024-01-18 Thread Andreas Schneider
do this though with the SFTP API. > > Thank you. However, if I understand correctly, this requires that ftpd > be installed and running on the remote machine. No, you need an SSH subsystem called sftp-server. For example OpenSSH provides one or you can implement one with libssh :-) Chee

Re: LibSSH.jl logo

2024-01-16 Thread Andreas Schneider
ackage isn't officially released yet but you can see the WIP > documentation here: https://jameswrigley.github.io/LibSSH.jl) -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Proposal for High level sftp api for uploads and downloads

2023-06-07 Thread Andreas Schneider
On Tuesday, 6 June 2023 16:34:43 CEST Eshan Kelkar wrote: > Suggestions for the implementation of progress_callback() and the > problems associated with it as well as general suggestions regarding > the design of the discussed api are welcome. One of users of the sftp API is KDE. Several years

Re: libssh would like to become a member of the Software Freedom Conservancy (SFC)

2023-06-06 Thread Andreas Schneider
On Tuesday, 11 April 2023 14:33:01 CEST Andreas Schneider wrote: > Hi, Hello, > the libssh project would like to become a member of the Software Freedom > Conservancy (SFC) [1]. Software Freedom Conservancy is a nonprofit > organization centered around ethical technology. It w

Re: Proposal for High level sftp api for uploads and downloads

2023-06-03 Thread Andreas Schneider
nt concurrent_requests, >size_t chunk_size); Thanks for the write up. If you use these function which look simple to use you want to also add a progress callback passed down and a userdata pointer. This way a UI (also cmdline) could display some progress. -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

libssh would like to become a member of the Software Freedom Conservancy (SFC)

2023-04-11 Thread Andreas Schneider
and raise any concerns you have. Best regards Andreas [1] https://sfconservancy.org/ [2] https://www.libssh.org/development/security-bug-bounty/ [3] https://www.openhub.net/p/libssh/contributors?sort=commits -- Andreas Schneider a...@cryptomilk.org GPG-ID

Re: [EXTERNAL] Re: Unable to compile 0.10.4 on Windows

2023-03-21 Thread Andreas Schneider
/27367 -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: [EXTERNAL] Re: Unable to compile 0.10.4 on Windows

2023-03-20 Thread Andreas Schneider
On Monday, 20 March 2023 19:49:03 CET Kerrison, Adam wrote: > The vcpkg is 0.9.6 as far as I could tell, which doesn't support/work with > openssl 3.x ... unless I've missed something I will update it. -- Andreas Schneider a...@cryptomilk.org

Re: Unable to compile 0.10.4 on Windows

2023-03-20 Thread Andreas Schneider
> > I don’t know enough about cmake to debug this – can anyone give me some > > pointers? > > > > I realize this is an old compiler but it was already installed so I was > > trying to use it for some tests … I can upgrade but

Re: key exchange fails in ssh_connect using libssh 0.10.4

2023-01-10 Thread Andreas Schneider
> >> sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group18-sha512,diffie-hel > >> lman-group16-sha512,diffie-hellman-group-exchange-sha256,diffie-hellman-g > >> roup14-sha256] [2023/01/09 16:37:45.627339, 3] ssh_connect: current > >> state : 9 > >> > >> > >> It is still working fine using libssh 0.9.4 dll > >> > >> It could be something I missed while compiling the new library. I had > >> created the solution using cmake, and compiled the ssh.dll using Visual > >> Studio 2017. Any leads to solve the problem is appreciated. > >> > >> > >> Regards, > >> > >> Jijo -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Version 0.10 deprecated functions

2022-09-08 Thread Andreas Schneider
arts. Patches are always welcome :-) Best regards, Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: libssh 0.10.0rc1

2022-07-11 Thread Andreas Schneider
On Monday, July 11, 2022 11:19:55 AM CEST Andreas Schneider wrote: > Hi, > > I'm pleased to announce libssh 0.10.0rc1. This is the first release > candidate and we need help testing it. > > The biggest change is the support of OpenSSL 3 and mbedTLS 3. We also have > some n

libssh 0.10.0rc1

2022-07-11 Thread Andreas Schneider
pubkey, privatekey API * Avoided some needless large stack buffers to minimize memory footprint * Removed support for OpenSSL < 1.0.1 -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Keep alive the session after remote execution of the commands

2022-07-01 Thread Andreas Schneider
ome protocol to find out if your command was successful or not like: ./mytool && echo SSH_OK || echo SSH_KO I hope this helps :-) Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Parsing private key PK - Invalid key tag or value

2022-07-01 Thread Andreas Schneider
mnQ9ZW//bgMP1srqw0JxRWY49G2OfQDlW5qsEl7yxc > +J18quQVm/u3NgcC7hpinwGGKBOrQByvYzKjvSGEuj6w== > > > > > Is this enough for you to check? https://github.com/CESNET/netopeer2/blob/master/scripts/merge_hostkey.sh#L29 removes the header and footer and we rely on that! https://gitlab.com/libssh/libssh-mirror/-/blob/master/src/pki.c#L76= Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Parsing private key PK - Invalid key tag or value

2022-06-30 Thread Andreas Schneider
witching to use openSSL does not show this error. Which version of libssh do you use? What key type do you use? Can you generate a new key pair which reproduces the error and share it with us? Best regards Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: New line handling in a server

2022-05-18 Thread Andreas Schneider
test for \n it works as expected: > > $ echo -e "Test \n for newline" > Test > for newline > > > Are there any settings in libssh to make my client interpret \n as new > line like in my ssh session? The data you receive is your re

Re: X11-Forwarding

2022-05-05 Thread Andreas Schneider
number, which other cygwin xterm windows have > already set, then the X11 windows is opened on my local computer by > executing the command ("xterm"). > Problem with this solution: > How to know the display number to use for this purpose? > > Thanks, > Klaus -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Creating a server

2022-04-12 Thread Andreas Schneider
eded first to check if we talk to a SSH client. But you should setup callbacks before you call ssh_handle_key_exchange() Patches to improve the documentation are welcome! :-) Did you look at examples/ssh_server.c? This is a simple ssh server implementation. We recommend to implement a pre-forking

Re: Suggestion: mention ssh_init() in "The Tutorial"?

2021-12-31 Thread Andreas Schneider
On Thursday, 30 December 2021 17:45:51 CET Mason Hieb wrote: > Hi, I'm a complete newbie to this library, and was *really* struggling to > get the tutorial to work for me because I kept getting the "Library Not > Initialized" error but couldn't understand why. > > I discovered - after much

Re: Help request for authentication with certicates

2021-10-29 Thread Andreas Schneider
On Thursday, October 28, 2021 4:24:14 PM CEST Marco wrote: > SOLVED THANKS TO THAT > > https://archive.libssh.org/libssh/2021-05/002.html Could you improve the documentation in this area and provide patches? Andreas -- Andreas Schneider a...@cryptomilk.o

Re: Function question

2021-08-11 Thread Andreas Schneider
ou decided what kind of channel you want you use ssh_channel_write() https://api.libssh.org/stable/ group__libssh__channel.html#ga5d658df773ba854b35ff9f905341e2fb See also the examples/ directory in the source code. Cheers Andreas -- Andreas Schneider a...@crypto

Re: ssh connection via a proxy

2021-08-03 Thread Andreas Schneider
On Tuesday, August 3, 2021 9:16:15 AM CEST Jeremy Fix wrote: > On 03/08/2021 08:52, Andreas Schneider wrote: > > On Monday, August 2, 2021 11:28:10 PM CEST Jeremy Fix wrote: > >> Hello, > > > > Hi, > > > >> I would like to use libssh for connecting t

Re: ssh connection via a proxy

2021-08-03 Thread Andreas Schneider
d in order to connect to server (const char *). Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: [PATCH] packet: Change the last argument of ssh_packet_encrypt to uint32_t

2021-05-10 Thread Andreas Schneider
void *packet, > - unsigned int len); > + uint32_t len); > int ssh_packet_hmac_verify(ssh_session session, const void *data, size_t > len, unsigned char *mac, enum ssh_hmac_e type); int > ssh_

Re: bugs.libssh.org is discontinued

2021-04-07 Thread Andreas Schneider
On Thursday, 18 March 2021 15:49:48 CEST Andreas Schneider wrote: > Hi, > > we have a huge spam problem on bugs.libssh.org so we decided to close new > registrations. The plan is to move the bug tracker and use > > https://gitlab.com/libssh/libssh-mirror/-/issues > > W

bugs.libssh.org is discontinued

2021-03-18 Thread Andreas Schneider
. Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Quite a lot of time spent in ssh_get_random

2021-02-20 Thread Andreas Schneider
On Friday, 19 February 2021 19:35:16 CET Richard W.M. Jones wrote: > Hmm, I don't *think* so, although I'm not certain I would know > how to tell this. Hi Rich, I don't think that you run in FIPS mode. On Fedora we have: fips-mode-setup --check Andreas

Re: libssh and libgcrypt recent vulnerability

2021-01-30 Thread Andreas Schneider
On Friday, 29 January 2021 22:42:27 CET Aris Adamantiadis wrote: > Hi everyone. Hi Aris, > Libgcrypt has been an itch that scratched both Andreas and me for a > while. Till now, the biggest problem was the workload associated in > maintaining the gcrypt backend (mostly with external

Re: Libssh Python bindings

2020-12-22 Thread Andreas Schneider
y much for working on them! Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: "PTY allocation request failed on channel 0"

2020-11-30 Thread Andreas Schneider
On Tuesday, 17 November 2020 01:39:00 CET Ogogon !!! wrote: > Colleagues, please tell me the answer to my question. > > *When I connecting to a test sshd-like programm, written using libssh, > the client side gets the message "PTY allocation request failed on > channel 0". Why is this happening?

Re: A clear example of a server on pthreads.

2020-11-30 Thread Andreas Schneider
On Sunday, 22 November 2020 03:41:11 CET Ogogon !!! wrote: > Colleagues, please tell me where you can find a simple example of a > server, which use a posix threads. For security reasons we recommend to implement a pre-forked server! Andreas

Re: API site down

2020-11-16 Thread Andreas Schneider
On Monday, 16 November 2020 13:53:15 CET Bruno Buzzi Brassesco wrote: > Hi, > API site is down right now: > https://api.libssh.org/ there was a lot more down. Issues with dracut and initramfs network. Fixed now. Andreas -- Andreas Schneider a...@cryptomilk.o

Re: Missing functions

2020-10-19 Thread Andreas Schneider
https://github.com/Microsoft/vcpkg/ Cheers Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Dependency with libcrypto.so.1.1 in 0.9.4

2020-07-02 Thread Andreas Schneider
the dynamic linker config if you require special treatment. See man ld.so or https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/RPATH-handling Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: FW: Support For SSH_KEX_DH_GROUPEX_SHA256

2020-06-26 Thread Andreas Schneider
f7dd5ed9000) libresolv.so.2 => /lib64/libresolv.so.2 (0x7f7dd5ebf000) libselinux.so.1 => /lib64/libselinux.so.1 (0x7f7dd5e91000) libpcre.so.1 => /usr/lib64/libpcre.so.1 (0x7f7dd5e02000) I have no idea what you're doing. -- Andrea

Re: FW: Support For SSH_KEX_DH_GROUPEX_SHA256

2020-06-26 Thread Andreas Schneider
I can see the support in 0.9.4 with "WITH_GEX" enabled . > We cannot upgrade to 0.9.4 due to dependencies of libgpg-error 1.3.8 > designed for 64bit architecture . libssh doesn't require libgpgp-error! Which crypto library are you using? -- Andreas Schneider

Re: Installing libssh to a customized folder

2020-06-22 Thread Andreas Schneider
PREFIX.html cmake -DCMAKE_INSTALL_PREFIX=/mylibs/third-party/libssh .. -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: SFTP Write async

2020-06-03 Thread Andreas Schneider
the current API is not nice at all. I'm open for suggestions for the current API. Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: SFTP Write async

2020-06-02 Thread Andreas Schneider
re there any suggestions? If you want it, you need to implement it. The best would be to completely rewrite the read and write async API and create sftp_put() and sftp_get() wrappers. Patches are welcome! Andreas -- Andreas Schneider a...@cryptomil

Re: [SUPPORT REQUEST] Configuration of libssh host key algos on client

2020-05-27 Thread Andreas Schneider
ult in a near-future release. https://www.openssh.com/txt/release-8.2 -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: [patch] Use inttypes macros for size_t format string

2020-05-07 Thread Andreas Schneider
On Tuesday, 5 May 2020 16:15:35 CEST Andreas Schneider wrote: > On Wednesday, 15 January 2020 13:01:08 CEST g4-l...@tonarchiv.ch wrote: > > Hi there, here's a patch for fixing a printf format string issue when > > compiling with MinGW (and possibly other "architecture

Re: [patch] Use inttypes macros for size_t format string

2020-05-05 Thread Andreas Schneider
.libssh.org/T228 -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Request to help regarding ssh_scp apis.

2020-04-27 Thread Andreas Schneider
me and on timeout, it returns > some SSH_ERROR and proceeds further. SCP is one of the worst protocols on planet earth and should be removed as soon as possible. Please use SFTP instead! Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Version update in vcpkg

2020-04-27 Thread Andreas Schneider
h version 1.0.2s-2 in vcpkg. Is this a problem? > > Hello, > > I've just checked vcpkg and libssh-0.9.3 and openssl-1.1.1d are available > there. Have you updated the repositories? I think libssh is currently built with mbedtls because openssl-1.1 wasn't available for a ver

Re: libssh-0.9.4 release archives report 0.9.3

2020-04-14 Thread Andreas Schneider
ngle place. > > The same happened also for 0.8.4. It is already tracked in the > following bug: > > https://bugs.libssh.org/T226 We should have a libssh_version.h.cmake which fills just the version data and gets included in libssh.h Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: 回复:Is ssh appropriate for this use case?

2020-04-12 Thread Andreas Schneider
On Friday, 10 April 2020 09:57:37 CEST 刘元哲 wrote: > Hello, Chris > > > I'm also learning libssh this few days, and found your problem when I wake > up at afternoon :-). First of all, I think libssh tcp/ip forwarding can > solve your problem, u need >

Re: Is ssh appropriate for this use case?

2020-04-10 Thread Andreas Schneider
On Friday, 10 April 2020 02:07:59 CEST Christopher Morley wrote: > Hi all - > I hope this is an appropriate question for this forum. > > I have an application that consists of a user interface component (written > in java) and a simulation engine (written in c++). These run in separate >

Re: 回复:HOW to use ssh_channel_open_reverse_forward function to implement a reverse tunnel?

2020-04-09 Thread Andreas Schneider
very welcome. See the server testing code Anderson implemented for a start. Best regards, Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: cross-compilation leads to error "Your system must have getaddrinfo()"

2020-04-02 Thread Andreas Schneider
cmake starting at line 247. Is there a way to specify which > libsocket to use in a cross-compilation scenario? Using qcc as the > compiler, Ubuntu 18.04 as the host and QNX 7 as the target. How does your cmake toolchain file look like? -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: [RFC] channels regression issue

2020-04-01 Thread Andreas Schneider
libssh-mirror/ This way we get some CI runs. The next question would be if you could write a test for it :-) Best regards, Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Issue banner, IP of clients

2020-03-27 Thread Andreas Schneider
he RFC. Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Importing hostkey

2020-03-26 Thread Andreas Schneider
dtls crypto backends. > > Fair enough, another argument for not accepting libssh that was compiled > with gcrypt. So is there a way of detecting this? Any macro defined in a > header file or somewhere? I don't think so. Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: ssh_channel_read is failing, it is returning -1 . Please suggest a workaround or solution

2020-03-26 Thread Andreas Schneider
row_window: growing window (channel 342:0) to 128 bytes > [2020/03/06 14:51:53.600633, 1] ssh_channel_read_timeout: Remote channel > is closed. The remote has closed the channel. You can't read anymore. See https://api.libssh.org/stable/ group__libssh__channel.html#gab2720b44cb7f1d

Re: Issue banner, IP of clients

2020-03-26 Thread Andreas Schneider
> logging/blacklisting/etc? getpeername() ? Cheers! -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Question about multithreading with libSSH

2020-03-26 Thread Andreas Schneider
On Wednesday, 25 March 2020 21:07:33 CET Kennedy, Marcus A. wrote: > Is libSSH thread safe? Yes, on a session level. One thread, one session. -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Sftp performance

2020-03-26 Thread Andreas Schneider
gt; > I am using the latest libssh with openssl 1.1.1e in windows 10. > > > > Thanks. > > San. We need an async sftp API which we don't have, patches are welcome. Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Need Your Valuable Inputs for diffie-hellman-group14-sha256

2020-01-31 Thread Andreas Schneider
512,ssh-ed25519,aes256-...@openssh.com,aes256- g...@openssh.com,hmac-sha2-256-...@openssh.com,hma c-sha2-256-...@openssh.com,none,none,, As we try all combination, I wonder what is the SSH counter part you're trying to connect to which is failing ... Andreas -- An

Re: Need Your Valuable Inputs for diffie-hellman-group14-sha256

2020-01-31 Thread Andreas Schneider
On Thursday, 30 January 2020 18:43:40 CET Zeev ? wrote: > Hi, > How can I provide the "diffie-hellman-group18-sha512, > diffie-hellman-group16-sha512" to the SSH Server ? Thanks This is done by default unless you disabled it. -- Andreas Schneider a...@cr

Re: Need Your Valuable Inputs for diffie-hellman-group14-sha256

2020-01-30 Thread Andreas Schneider
, as we have: diffie-hellman-group18-sha512, diffie-hellman-group16-sha512 can't you use those? What is the reason for diffie-hellman-group14-sha256? Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: [PATCH 1/1] pki: add support for sk-ecdsa and sk-ed25519

2020-01-23 Thread Andreas Schneider
On Tuesday, 17 December 2019 06:48:01 CET Sebastian Kinne wrote: > Hi, > > > a) Could you please split the patch and put the pki_sha256() function into > > a separate commit? I would also use uint8_t instead of unsigend char in > > pki_sha256(). > > Done, please see attached. > > > b) Could you

Re: [PATCH] Fix Solaris and Sun Studio support

2020-01-23 Thread Andreas Schneider
On Wednesday, 25 December 2019 18:07:41 CET William Orr wrote: > This fixes support on Solaris and building with Sun Studio 12.6. William, thank you very much for your contribution. I just going trought my backlock. Could you please split the cmake changes from the rest and rebase on master.

Re: Importing hostkey

2020-01-23 Thread Andreas Schneider
On Thursday, 23 January 2020 12:18:17 CET Michal Vaško wrote: > Hi Anderson, Hi Michal, > thanks a lot for the information, I will try your suggestion. However, in > case I cannot sue the legacy key format for whatever reason, is there a > simple way of detecting what crypto library libssh was

Re: [patch] Use inttypes macros for size_t format string

2020-01-23 Thread Andreas Schneider
On Wednesday, 22 January 2020 17:40:04 CET Tilo Eckert wrote: > Am 22.01.2020 um 13:56 schrieb g4-l...@tonarchiv.ch: > > For Windows I can find documentation of "z" as supported spezifier: > > https://docs.microsoft.com/en-us/cpp/c-runtime-library/format-specificatio > >

Re: [patch] Use inttypes macros for size_t format string

2020-01-21 Thread Andreas Schneider
On Thursday, 16 January 2020 12:55:07 CET g4-l...@tonarchiv.ch wrote: > >> According to that you need to compile with: > >> > >> cmake -DCMAKE_C_FLAGS="-D__USE_MINGW_ANSI_STDIO=1" .. > > > > Alternative seems to be: > > > > -Dsnprintf=__mingw_snprintf -Dvsnprintf=__mingw_vsnprintf ... > > Yes

Re: Linking issue when using MinGW with Posix Threads

2020-01-17 Thread Andreas Schneider
On Thursday, 16 January 2020 20:38:02 CET g4-l...@tonarchiv.ch wrote: > On 16.01.20 16:23, Andreas Schneider wrote: > > On Thursday, 16 January 2020 14:40:50 CET g4-l...@tonarchiv.ch wrote: > >> Hi there, > >> > >> cmake detects pthreads and

Re: Linking issue when using MinGW with Posix Threads

2020-01-16 Thread Andreas Schneider
gt; > CMAKE_SHARED_LINKER_FLAGS etc. did not do the trick because it puts it > in the wrong place (before CMakeFiles/ssh.dir/objects.a). Can you try: https://git.libssh.org/users/asn/libssh.git/commit/?h=master-threads -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: [patch] Use inttypes macros for size_t format string

2020-01-16 Thread Andreas Schneider
gt; > Is this something that can be automatically done by some cmake check if > the mingw cross-compilation is detected? I think till needs to confirm it works and then I can you can do: if (MINGW AND WIN32) add_definitions(__USE_MINGW_ANSI_STDIO=1) endif() ... -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: [patch] Use inttypes macros for size_t format string

2020-01-16 Thread Andreas Schneider
On Thursday, 16 January 2020 11:51:48 CET Andreas Schneider wrote: > On Wednesday, 15 January 2020 17:46:30 CET g4-l...@tonarchiv.ch wrote: > > On 15.01.20 17:32, Andreas Schneider wrote: > > > On Wednesday, 15 January 2020 14:35:39 CET Jakub Jelen wrote: > > >> On

Re: [patch] Use inttypes macros for size_t format string

2020-01-16 Thread Andreas Schneider
On Wednesday, 15 January 2020 17:46:30 CET g4-l...@tonarchiv.ch wrote: > On 15.01.20 17:32, Andreas Schneider wrote: > > On Wednesday, 15 January 2020 14:35:39 CET Jakub Jelen wrote: > >> On Wed, 2020-01-15 at 13:01 +0100, g4-l...@tonarchiv.ch wrote: > >>> Hi th

Re: [patch] Use inttypes macros for size_t format string

2020-01-15 Thread Andreas Schneider
old now. We had PRIdS because Visual Studio didn't have %zu support for a long time. So we should replace PRIdS with %zu ;-) Till, I'm sorry but you hit a compiler bug, open a bug against MinGW. Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: [patch] Use inttypes macros for size_t format string

2020-01-15 Thread Andreas Schneider
> generator, > modulus); > > and type, tests, tries and size are of size_t. Or we have to change them > to ssize_t, but then also the `best_size` argument of > ssh_retrieve_dhgroup_file() had to be signed. > > What you think? For size_t we should use %zu and for ssize_t %zd which is ANSI C99. See https://en.cppreference.com/w/c/io/fprintf Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Strange Segfault with V 0.9.3 an MinGW Cross Compile

2020-01-14 Thread Andreas Schneider
t verbosity to > 2. > > I could track this down to vsnprintf() which is called through line 865 > in channels.c: > > SSH_LOG(SSH_LOG_PACKET, > "placing %zu bytes into channel buffer (%s)", > len, > s_stderr ? "stderr" : "

Re: SSH poll functions not exposed to libssh.so

2019-12-20 Thread Andreas Schneider
On Friday, 20 December 2019 18:01:13 CET Torsten Kuehnel wrote: > On Fri, 20 Dec 2019 09:07:45 +0100 > Thanks for the answer, this cleares things up for me. > > Beside the api not beeing stable yet, are the ssh_poll_* functions itself > considered tested and stable to be useful ? I am

Re: [PATCH 1/1] pki: add support for sk-ecdsa and sk-ed25519

2019-12-16 Thread Andreas Schneider
https://gitlab.com/libssh/libssh-mirror/commit/ 04b284dae02858b151ab75704eb15facf3781551 Untested code is broken code ;-) Thanks. Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

libssh-0.9.3 and libssh-0.8.8 security release

2019-12-10 Thread Andreas Schneider
/ Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: [PATCH 1/1] pki: add support for sk-ecdsa and sk-ed25519

2019-12-10 Thread Andreas Schneider
ou fork from https://gitlab.com/libssh/libssh-mirror and push a branch to your fork, you will get CI for libssh. Thanks. Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Simple non-interactive shell

2019-11-28 Thread Andreas Schneider
and copy the file, then the > "pass_instruction(channel, MV_FILE, "example2.txt") ;" works according to > the program, but the file is not copied. I don't understand why... This only write to the channel, you also need to read and check that the command has been successfully executed before sending the next. andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

libssh 0.9.2

2019-11-07 Thread Andreas Schneider
Hello, the libssh team released libssh 0.9.2 https://www.libssh.org/2019/11/07/libssh-0-9-2/ Thanks to all people who contribute to libssh! -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: using ssh_channel_write for command execution problem

2019-11-07 Thread Andreas Schneider
ter you sent it, read from the channel and create a command protocol. Let me know if you get it working. It would be great to get http://api.libssh.org/stable/libssh_tutor_shell.html updated with an example for this. Andreas -- Andreas Schneider

Re: using ssh_channel_write for command execution problem

2019-11-07 Thread Andreas Schneider
thing wrong in my code? It should be a vanilla libssh initialization and > a write. Could it be a unique issue in my environment? https://git.libssh.org/projects/libssh.git/tree/examples/exec.c works just fine for me. -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: using ssh_channel_write for command execution problem

2019-11-07 Thread Andreas Schneider
ed on the server. So I know the connection is ok > and probably I am calling the API in a wrong way. Why don't you use ssh_channel_exec()? You don't seem to need a pty. Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

libssh-0.9.1

2019-10-25 Thread Andreas Schneider
Hello list, libssh-0.9.1 is out to address some bugfixes. Learn more about it at: https://www.libssh.org/2019/10/25/libssh-0-9-1/ -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: CHUNKSIZE in connector.c

2019-07-29 Thread Andreas Schneider
so > I'll apply the workaround to our project's libssh and then, as time > permits, I can work on trying to fix this properly. > > Thanks for your input! > > Chris > > On 7/19/19 8:42 AM, Andreas Schneider wrote: > > On Friday, July 19, 2019 1:53:30 PM CEST Chris Towns

Re: Cannot configure with cmake (Invalid character escape '\m' in Modules/FindDoxygen.cmake:955)

2019-07-21 Thread Andreas Schneider
On Sunday, 21 July 2019 11:32:04 CEST Дилян Палаузов wrote: > Hello, Hi, > with ccmake 3.12.2, cmake 3.13.1 and libssh 0.9.0, when I do “ccmake .”, it > prints the error: > > CMake Error at build/CMakeDoxygenDefaults.cmake:471 (set): >Syntax error in cmake code at > >

Re: CHUNKSIZE in connector.c

2019-07-19 Thread Andreas Schneider
that would be great, else file a bug report. Thanks, Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: CHUNKSIZE in connector.c

2019-07-19 Thread Andreas Schneider
IZE should increase performance some > since everything can be read at once and not have to loop through to try > to see if more data is available. The channel max packet size is 32768 so I think it shouldn't be bigger than that. However doesn't that just hide the problem? I think we

Re: Multiple channels for a single session

2019-07-18 Thread Andreas Schneider
ifferent sessions for shell and for sftp tasks? You don't have to. Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Why SSH_TIMEOUT_DEFAULT is always used in channel functions

2019-07-10 Thread Andreas Schneider
Hey, I've added it to the website? :-) Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Why SSH_TIMEOUT_DEFAULT is always used in channel functions

2019-07-09 Thread Andreas Schneider
long > time. After looking through the code I discovered, that all channel > functions use SSH_TIMEOUT_DEFAULT, thus ignoring user specified timeout. > Is this intended? If yes, how can I prevent my program from hanging in such > situations? Please use libssh 0.9

Re: Questions on threading and networking

2019-07-09 Thread Andreas Schneider
s and callbacks between the > library and the application, allowing the application to manage the > threading and networking. You can manage the threading/forking and accepting new connections but not the networking. https://git.libssh.org/projects/libssh.git/tree/examples/ssh_server_f

Re: [PATCH v2] libcrypto: fix compilation with LibreSSL

2019-07-02 Thread Andreas Schneider
On Monday, 1 July 2019 17:19:55 CEST Stefan Strogin wrote: > LibreSSL does not support FIPS mode, check for FIPS_mode() in > ConfigureChecks.cmake. Sorry, this doesn't work as there is no definition in config.h.cmake for it. Also I think it should be a function so that config.h is included!

Re: [PATCH v2] libcrypto: fix compilation with LibreSSL

2019-07-02 Thread Andreas Schneider
ing in FIPS mode */ > +#ifdef HAVE_FIPS_MODE > #define ssh_fips_mode() (FIPS_mode() != 0) > +#else > +#define ssh_fips_mode() false > +#endif > > #endif /* HAVE_LIBCRYPTO */ -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Implement SCP server

2019-06-28 Thread Andreas Schneider
On Friday, June 28, 2019 9:09:57 AM CEST Alberto Garcia wrote: > I think that's not the link you were trying to paste. > > Can you provide the correct one please? Ups, sorry :-) https://git.libssh.org/projects/libssh.git/tree/include/libssh/sftp.h#n836 -- Andreas

libssh 0.9.0 released

2019-06-28 Thread Andreas Schneider
I'm proud to announce the release of libssh-0.9.0! For details visit: https://www.libssh.org/2019/06/28/libssh-0-9-0/ Thanks to all contributors for making this possible! Best regards, Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID

Re: Implement SCP server

2019-06-28 Thread Andreas Schneider
uld rewrite it to use callbacks like the rest of the server code, that would be much appreciated :-) Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

Re: Implement SCP server

2019-06-27 Thread Andreas Schneider
ng libssh as a client but nothing > regarding a server. Don't use scp, use sftp. scp is just horrible. Andreas -- Andreas Schneider a...@cryptomilk.org GPG-ID: 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

  1   2   3   4   5   6   7   >