From libssh2-devel-bounces@cool.haxx.se Sat Nov 3 21:10:52 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qA3KAPBR017501; Sat, 3 Nov 2012 21:10:47 +0100 Received: from smtp2.hushmail.com (smtp2a.hushmail.com [65.39.178.237]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qA3KALhO017470 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 3 Nov 2012 21:10:23 +0100 Received: from smtp2.hushmail.com (smtp2a.hushmail.com [65.39.178.237]) by smtp2.hushmail.com (Postfix) with SMTP id 055DDE6D4F for ; Sat, 3 Nov 2012 20:10:18 +0000 (UTC) Received: from smtp.hushmail.com (w7.hushmail.com [65.39.178.32]) by smtp2.hushmail.com (Postfix) with ESMTP for ; Sat, 3 Nov 2012 20:09:38 +0000 (UTC) Received: by smtp.hushmail.com (Postfix, from userid 99) id 1F8E96F454; Sat, 3 Nov 2012 20:09:38 +0000 (UTC) MIME-Version: 1.0 Date: Sat, 03 Nov 2012 20:09:38 +0000 To: libssh2-devel@cool.haxx.se Subject: Public key auth didn't work with gcrypt From: scout_game@hushmail.me Message-Id: <20121103200938.1F8E96F454@smtp.hushmail.com> X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0038920605==" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" --===============0038920605== Content-Type: multipart/alternative; boundary="=_40c2199f7f821458aa95f8c5288ca739" --=_40c2199f7f821458aa95f8c5288ca739 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" Hi When I build libssh2 with openssl, the scp example work if I choose publickey authentication. But if i build libssh2 with libgcrypt, the seem example fail to work with publickey authentication, I get message "Authentication by public key failed" any time I run the program. Is their a patch or something to be done for it to work ? --=_40c2199f7f821458aa95f8c5288ca739 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8" Hi
When I build lib= ssh2 with openssl, the scp example work if I choose publickey authenticatio= n. But if i build libssh2 with libgcrypt, the seem example fail to work wit= h publickey authentication, I get message "Authentication by public key fai= led" any time I run the program.
Is their a patch or something to be don= e for it to work ?
--=_40c2199f7f821458aa95f8c5288ca739-- --===============0038920605== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel --===============0038920605==-- From libssh2-devel-bounces@cool.haxx.se Tue Nov 6 14:50:10 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qA6DnewP007732; Tue, 6 Nov 2012 14:50:02 +0100 Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qA6DncmP007686 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 6 Nov 2012 14:49:39 +0100 Received: by mail-ie0-f182.google.com with SMTP id k10so557229iea.41 for ; Tue, 06 Nov 2012 05:49:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=6s+Muob4cltSiJKdzB0qI53P3jjqfsB6HjxeiV/NGFw=; b=CI8u7JIPuDHsBuMySSb2LlVG5RyYhQXSfIjwN0PD2oYEIcV9Wjgi9bUtHESWPVCven jMqVn1tiG2VQPt8TM5FiI0bldIP05MydQLARV84YUrDcXWs9TgeuuMqnzTzpIL4Awmd4 WN8SA/z9wsUlOSetrFRhgd/0ZR2OguGXlvIviNqJoT7EaIAZdNeJ7wra/SFAYd0Q3uQ2 lWqfyra3vO9lnDxz7M3IZyCbhLEdfPy0vusYI21dReH334UkIawi0nheY/9G8X09YdGp oApePFxD7t5nmgGjcM02qh0aI1iw3NWQFPeKHufHPB1WWN5ej8l5I2bj0j1peO0KlHCk cYsA== MIME-Version: 1.0 Received: by 10.50.41.165 with SMTP id g5mr1485600igl.66.1352209774094; Tue, 06 Nov 2012 05:49:34 -0800 (PST) Received: by 10.50.13.140 with HTTP; Tue, 6 Nov 2012 05:49:34 -0800 (PST) Date: Tue, 6 Nov 2012 19:19:34 +0530 Message-ID: Subject: Facing issue with libssh2 on MAC OSX From: Akshay Joshi To: libssh2-devel@cool.haxx.se X-Gm-Message-State: ALoCoQnBC6726k/YsXWgEe4sE6SHeY1Ufyo8YHDqLzZCWomjvcCehtUzLRtFsJ3nfPJrYYgPOFKd X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0974185790==" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" --===============0974185790== Content-Type: multipart/alternative; boundary=14dae9340f6f3f288004cdd3df8a --14dae9340f6f3f288004cdd3df8a Content-Type: text/plain; charset=ISO-8859-1 Hi I am using libssh2 to create SSH Tunnel. SSH tunnel gets created and deleted on some menu action. On the first attempt tunnel gets created and deleted successfully, but when I'll try to recreate SSH Tunnel I am facing crash/assert in libssh2. Not sure why it is crashing, because it is running successfully on Windows and Linux environment. Is there any bug on MAC OSX where libssh2 is not working properly. I am also facing "SSL SYSCALL error : EOF detected" error every time. -- *Akshay Joshi Senior Software Engineer EnterpriseDB Corporation The Enterprise PostgreSQL Company Phone: +91 20-3058-9522 Mobile: +91 976-788-8246* --14dae9340f6f3f288004cdd3df8a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi=A0

I am using libssh2 to create SSH Tunnel. SSH tunne= l gets created and deleted on some menu action. On the first attempt tunnel= gets created and deleted successfully, but =A0when I'll try to recreat= e SSH Tunnel=A0I am facing crash/assert in libssh2.=A0Not sure why it is cr= ashing, because=A0it is running successfully on Windows and Linux=A0environ= ment. Is there any bug on MAC OSX where libssh2 is not working properly.

I am also facing "SSL SYSCALL error : EOF detected= " error every time.

--
Akshay Joshi
Senior Software Engineer=A0
EnterpriseDB Corporation
The Enterprise P= ostgreSQL Company
Phone: +91 20-3058-9522
Mobile: +91 976-788-8246

--14dae9340f6f3f288004cdd3df8a-- --===============0974185790== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel --===============0974185790==-- From libssh2-devel-bounces@cool.haxx.se Tue Nov 13 04:23:15 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qAD3MiOU026459; Tue, 13 Nov 2012 04:23:07 +0100 Received: from foo.stuge.se (qmailr@foo.stuge.se [212.116.89.98]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id qAD3MhpN026455 for ; Tue, 13 Nov 2012 04:22:43 +0100 Received: (qmail 10572 invoked by uid 501); 13 Nov 2012 03:22:44 -0000 Message-ID: <20121113032244.10571.qmail@stuge.se> Date: Tue, 13 Nov 2012 04:22:44 +0100 From: Peter Stuge To: libssh2-devel@cool.haxx.se Subject: A few patches doing libgcrypt.h cleanup Mail-Followup-To: libssh2-devel@cool.haxx.se MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Hi, please have a look at the following patches.. I'm not exactly sure what the best approach is to fixing this ugly code, but I think that something should be done. I would appreciate if someone who knows anything about gcrypt (Simon?) can say something about how this is supposed to work. Thanks! //Peter _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Tue Nov 13 04:26:31 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qAD3QUOL028349; Tue, 13 Nov 2012 04:26:30 +0100 Received: from foo.stuge.se (qmailr@foo.stuge.se [212.116.89.98]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id qAD3QSLf028325 for ; Tue, 13 Nov 2012 04:26:28 +0100 Received: (qmail 10953 invoked from network); 13 Nov 2012 03:26:28 -0000 Received: from localhost (HELO stuge.se) (127.0.0.1) by localhost with SMTP; 13 Nov 2012 03:26:28 -0000 From: Peter Stuge To: libssh2-devel@cool.haxx.se Subject: [PATCH 1/2] libgcrypt.h: Make SHA1 and MD5 finalization use do { .. } while (0) Date: Tue, 13 Nov 2012 04:26:27 +0100 Message-Id: <1352777188-12245-1-git-send-email-peter@stuge.se> X-Mailer: git-send-email 1.7.4.1.343.ga91df.dirty In-Reply-To: <20121113032244.10571.qmail@stuge.se> References: <20121113032244.10571.qmail@stuge.se> X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" The libssh2_sha1_final() and libssh2_md5_final() macros had definitions calling both memcpy() and gcry_md_close() separated by a comma. It's nicer to have the definition as a single do {} while (0) statement. --- src/libgcrypt.h | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/libgcrypt.h b/src/libgcrypt.h index 1f0276e..2f9864f 100644 --- a/src/libgcrypt.h +++ b/src/libgcrypt.h @@ -62,8 +62,10 @@ #define libssh2_sha1_ctx gcry_md_hd_t #define libssh2_sha1_init(ctx) gcry_md_open (ctx, GCRY_MD_SHA1, 0); #define libssh2_sha1_update(ctx, data, len) gcry_md_write (ctx, data, len) -#define libssh2_sha1_final(ctx, out) \ - memcpy (out, gcry_md_read (ctx, 0), SHA_DIGEST_LENGTH), gcry_md_close (ctx) +#define libssh2_sha1_final(ctx, out) do { \ + memcpy (out, gcry_md_read (ctx, 0), SHA_DIGEST_LENGTH); \ + gcry_md_close (ctx); \ + } while (0) #define libssh2_sha1(message, len, out) \ gcry_md_hash_buffer (GCRY_MD_SHA1, out, message, len) @@ -74,8 +76,10 @@ (GPG_ERR_NO_ERROR == gcry_md_open (ctx, GCRY_MD_MD5, 0)) #define libssh2_md5_update(ctx, data, len) gcry_md_write (ctx, data, len) -#define libssh2_md5_final(ctx, out) \ - memcpy (out, gcry_md_read (ctx, 0), MD5_DIGEST_LENGTH), gcry_md_close (ctx) +#define libssh2_md5_final(ctx, out) do { \ + memcpy (out, gcry_md_read (ctx, 0), MD5_DIGEST_LENGTH); \ + gcry_md_close (ctx); \ + } while (0) #define libssh2_md5(message, len, out) \ gcry_md_hash_buffer (GCRY_MD_MD5, out, message, len) -- 1.7.4.1.343.ga91df.dirty _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Tue Nov 13 04:26:32 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qAD3QVMg028367; Tue, 13 Nov 2012 04:26:31 +0100 Received: from foo.stuge.se (qmailr@foo.stuge.se [212.116.89.98]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id qAD3QSHZ028327 for ; Tue, 13 Nov 2012 04:26:28 +0100 Received: (qmail 10959 invoked from network); 13 Nov 2012 03:26:29 -0000 Received: from localhost (HELO stuge.se) (127.0.0.1) by localhost with SMTP; 13 Nov 2012 03:26:29 -0000 From: Peter Stuge To: libssh2-devel@cool.haxx.se Subject: [PATCH 2/2] libgcrypt.h: Change _libssh2_random() definition to a single statement Date: Tue, 13 Nov 2012 04:26:28 +0100 Message-Id: <1352777188-12245-2-git-send-email-peter@stuge.se> X-Mailer: git-send-email 1.7.4.1.343.ga91df.dirty In-Reply-To: <1352777188-12245-1-git-send-email-peter@stuge.se> References: <20121113032244.10571.qmail@stuge.se> <1352777188-12245-1-git-send-email-peter@stuge.se> X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" --- src/libgcrypt.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libgcrypt.h b/src/libgcrypt.h index 2f9864f..96b5e61 100644 --- a/src/libgcrypt.h +++ b/src/libgcrypt.h @@ -56,8 +56,8 @@ #define MD5_DIGEST_LENGTH 16 #define SHA_DIGEST_LENGTH 20 -#define _libssh2_random(buf, len) \ - (gcry_randomize ((buf), (len), GCRY_STRONG_RANDOM), 1) +#define _libssh2_random(buf, len) \ + gcry_randomize ((buf), (len), GCRY_STRONG_RANDOM) #define libssh2_sha1_ctx gcry_md_hd_t #define libssh2_sha1_init(ctx) gcry_md_open (ctx, GCRY_MD_SHA1, 0); -- 1.7.4.1.343.ga91df.dirty _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Tue Nov 13 11:57:36 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qADAv7Bl001259; Tue, 13 Nov 2012 11:57:28 +0100 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qADAv5cJ001253 for ; Tue, 13 Nov 2012 11:57:05 +0100 Received: (qmail 20416 invoked from network); 13 Nov 2012 10:57:04 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 13 Nov 2012 10:57:04 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Tue, 13 Nov 2012 10:57:04 -0000 X-URL: https://trac.libssh2.org/ Subject: [libssh2] #251: Error during make expected specifier-qualifier-list before 'LIBSSH2_SEND_FUNC' X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/251 Message-ID: <045.a399c047211d05bfce2fe8705c971cbb@libssh2.stuge.se> X-Trac-Ticket-ID: 251 X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id qADAv5cJ001253 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Reply-To: trac@libssh2.stuge.se, libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" #251: Error during make expected specifier-qualifier-list before 'LIBSSH2_SEND_FUNC' ----------------------+-------------------- Reporter: rdenault | Owner: Type: defect | Status: new Priority: normal | Milestone: 1.4.3 Component: API | Version: 1.4.2 Keywords: | Blocked By: Blocks: | ----------------------+-------------------- When making libssh2, on linux redhat, compilation of channel.c returns the following errors. In file included from channel.c:41: libssh2_priv.h:564: error: expected specifier-qualifier-list before 'LIBSSH2_SEND_FUNC' libssh2_priv.h:1000: error: expected ')' before 'socket' libssh2_priv.h:1002: error: expected ')' before 'socket' configure options: INCLUDES=-I/opt2/local/include LDFLAGS=-L/opt2/local/lib64 export INCLUDES LDFLAGS ./configure --enable-rpath --prefix=/opt2/local --libdir=/opt2/local/lib64 --with-gnu-ld --with-libssl-prefix=/opt2/local --with-libz -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Tue Nov 13 11:57:37 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qADAva6d001428; Tue, 13 Nov 2012 11:57:37 +0100 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qADAvIRP001385 for ; Tue, 13 Nov 2012 11:57:18 +0100 Received: (qmail 20465 invoked from network); 13 Nov 2012 10:57:17 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 13 Nov 2012 10:57:17 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Tue, 13 Nov 2012 10:57:17 -0000 X-URL: https://trac.libssh2.org/ Subject: [libssh2] #252: Compilation Error on RedHat el5 64bit. X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/252 Message-ID: <045.6375ef7b3afe6148976e8b03d582757f@libssh2.stuge.se> X-Trac-Ticket-ID: 252 X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id qADAvIRP001385 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Reply-To: trac@libssh2.stuge.se, libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" #252: Compilation Error on RedHat el5 64bit. ----------------------+----------------------- Reporter: rdenault | Owner: rdenault Type: defect | Status: new Priority: high | Milestone: 1.4.3 Component: API | Version: 1.4.2 Keywords: | Blocked By: Blocks: | ----------------------+----------------------- When compiling libssh2 on RedHat I get compilation errors. I have tried with older releases, and all releases from 1.4.2 to 1.2.8 fail. Only 1.2.6, and 1.2.7 compile successfully. Configure options: INCLUDES=-I/opt2/local/include LDFLAGS=-L/opt2/local/lib64 export INCLUDES LDFLAGS ./configure --enable-rpath --prefix=/opt2/local --libdir=/opt2/local/lib64 --with-gnu-ld --with-libssl-prefix=/opt2/local --with-libz Configuration Summary of build options: version: 1.4.2 Host type: x86_64-unknown-linux-gnu Install prefix: /opt2/local Compiler: gcc Compiler flags: -g -O2 Library types: Shared=yes, Static=yes Crypto library: openssl: yes (AES-CTR: no) libgcrypt: no Debug build: no Build examples: yes Path to sshd: /usr/sbin/sshd (only for self-tests) libz compression: yes Result of Make: -bash-3.2# make Making all in src make[1]: Entering directory `/home/builder/downloads/libssh2/libssh2-1.4.2/src' make all-am make[2]: Entering directory `/home/builder/downloads/libssh2/libssh2-1.4.2/src' if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I/opt2/local/include -I../include -I../src -g -O2 -MT channel.lo -MD -MP -MF ".deps/channel.Tpo" -c -o channel.lo channel.c; \ then mv -f ".deps/channel.Tpo" ".deps/channel.Plo"; else rm -f ".deps/channel.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I/opt2/local/include -I../include -I../src -g -O2 -MT channel.lo -MD -MP -MF .deps/channel.Tpo -c channel.c -fPIC -DPIC -o .libs/channel.o In file included from channel.c:41: libssh2_priv.h:564: error: expected specifier-qualifier-list before 'LIBSSH2_SEND_FUNC' libssh2_priv.h:1000: error: expected ')' before 'socket' libssh2_priv.h:1002: error: expected ')' before 'socket' channel.c: In function '_libssh2_channel_nextid': channel.c:64: error: 'LIBSSH2_SESSION' has no member named 'next_channel' channel.c:67: error: 'LIBSSH2_SESSION' has no member named 'channels' channel.c:83: error: 'LIBSSH2_SESSION' has no member named 'next_channel' channel.c: In function '_libssh2_channel_locate': channel.c:100: error: 'LIBSSH2_SESSION' has no member named 'channels' channel.c:110: error: 'LIBSSH2_SESSION' has no member named 'listeners' channel.c: In function '_libssh2_channel_open': channel.c:144: error: 'LIBSSH2_SESSION' has no member named 'open_state' channel.c:145: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:146: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:147: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:150: error: 'LIBSSH2_SESSION' has no member named 'open_packet_len' channel.c:151: error: 'LIBSSH2_SESSION' has no member named 'open_local_channel' channel.c:154: error: 'LIBSSH2_SESSION' has no member named 'open_packet_requirev_state' channel.c:155: error: 'LIBSSH2_SESSION' has no member named 'open_packet_requirev_state' channel.c:160: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:162: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:167: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:169: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:170: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:172: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:175: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:176: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:179: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:183: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:183: error: 'LIBSSH2_SESSION' has no member named 'open_local_channel' channel.c:184: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:185: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:186: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:187: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:189: error: 'LIBSSH2_SESSION' has no member named 'channels' channel.c:190: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:192: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:193: error: 'LIBSSH2_SESSION' has no member named 'open_packet_len' channel.c:194: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:201: error: 'LIBSSH2_SESSION' has no member named 'open_local_channel' channel.c:207: error: 'LIBSSH2_SESSION' has no member named 'open_state' channel.c:210: error: 'LIBSSH2_SESSION' has no member named 'open_state' channel.c:212: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:213: error: 'LIBSSH2_SESSION' has no member named 'open_packet_len' channel.c:226: error: 'LIBSSH2_SESSION' has no member named 'open_state' channel.c:229: error: 'LIBSSH2_SESSION' has no member named 'open_state' channel.c:231: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:232: error: 'LIBSSH2_SESSION' has no member named 'open_data_len' channel.c:233: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:235: error: 'LIBSSH2_SESSION' has no member named 'open_packet_requirev_state' channel.c:243: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:244: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:245: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:246: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:247: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:248: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:249: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:250: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:251: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:261: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:262: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:263: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:264: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:266: error: 'LIBSSH2_SESSION' has no member named 'open_state' channel.c:267: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:270: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:278: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:279: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:280: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:282: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:283: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:284: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:286: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:288: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:290: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:293: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:295: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:296: error: 'LIBSSH2_SESSION' has no member named 'open_data_len' channel.c:300: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:301: error: 'LIBSSH2_SESSION' has no member named 'open_data_len' channel.c:303: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:304: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:307: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:308: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:311: error: 'LIBSSH2_SESSION' has no member named 'open_state' channel.c: In function 'libssh2_channel_open_ex': channel.c:331: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'channel_direct_tcpip': channel.c:351: error: 'LIBSSH2_SESSION' has no member named 'direct_state' channel.c:352: error: 'LIBSSH2_SESSION' has no member named 'direct_host_len' channel.c:353: error: 'LIBSSH2_SESSION' has no member named 'direct_shost_len' channel.c:355: error: 'LIBSSH2_SESSION' has no member named 'direct_message_len' channel.c:356: error: 'LIBSSH2_SESSION' has no member named 'direct_host_len' channel.c:356: error: 'LIBSSH2_SESSION' has no member named 'direct_shost_len' channel.c:362: error: 'LIBSSH2_SESSION' has no member named 'direct_message' channel.c:363: error: 'LIBSSH2_SESSION' has no member named 'direct_message_len' channel.c:364: error: 'LIBSSH2_SESSION' has no member named 'direct_message' channel.c:369: error: 'LIBSSH2_SESSION' has no member named 'direct_host_len' channel.c:371: error: 'LIBSSH2_SESSION' has no member named 'direct_shost_len' channel.c:380: error: 'LIBSSH2_SESSION' has no member named 'direct_message' channel.c:381: error: 'LIBSSH2_SESSION' has no member named 'direct_message_len' channel.c:387: error: 'LIBSSH2_SESSION' has no member named 'direct_state' channel.c:391: error: 'LIBSSH2_SESSION' has no member named 'direct_state' channel.c:393: error: 'LIBSSH2_SESSION' has no member named 'direct_message' channel.c:394: error: 'LIBSSH2_SESSION' has no member named 'direct_message' channel.c: In function 'libssh2_channel_direct_tcpip_ex': channel.c:413: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'channel_forward_listen': channel.c:435: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:436: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_host_len' channel.c:439: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet_len' channel.c:440: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_host_len' channel.c:443: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet_requirev_state' channel.c:444: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet_requirev_state' channel.c:450: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet' channel.c:451: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet_len' channel.c:452: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet' channel.c:462: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_host_len' channel.c:465: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:468: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:470: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet' channel.c:471: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet_len' channel.c:483: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet' channel.c:484: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet' channel.c:485: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:488: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet' channel.c:489: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet' channel.c:491: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:494: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:499: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet_requirev_state' channel.c:505: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:519: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_host_len' channel.c:529: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_host_len' channel.c:530: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_host_len' channel.c:544: error: 'LIBSSH2_SESSION' has no member named 'listeners' channel.c:553: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:560: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:565: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c: In function 'libssh2_channel_forward_listen_ex': channel.c:584: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_forward_cancel': channel.c:694: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'channel_forward_accept': channel.c:722: error: 'LIBSSH2_SESSION' has no member named 'channels' channel.c: In function 'libssh2_channel_forward_accept': channel.c:750: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_setenv_ex': channel.c:871: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_request_pty_ex': channel.c:991: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_request_pty_size_ex': channel.c:1064: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_x11_req_ex': channel.c:1215: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_process_startup': channel.c:1339: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function '_libssh2_channel_flush': channel.c:1370: error: 'LIBSSH2_SESSION' has no member named 'packets' channel.c: In function 'libssh2_channel_flush_ex': channel.c:1445: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_receive_window_adjust': channel.c:1628: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_receive_window_adjust2': channel.c:1659: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_handle_extended_data2': channel.c:1705: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function '_libssh2_channel_read': channel.c:1772: error: 'LIBSSH2_SESSION' has no member named 'packets' channel.c: In function 'libssh2_channel_read_ex': channel.c:1899: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c:1904: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function '_libssh2_channel_packet_data_len': channel.c:1922: error: 'LIBSSH2_SESSION' has no member named 'packets' channel.c: In function 'libssh2_channel_write_ex': channel.c:2107: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_send_eof': channel.c:2156: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_eof': channel.c:2175: error: 'LIBSSH2_SESSION' has no member named 'packets' channel.c: In function 'libssh2_channel_wait_eof': channel.c:2245: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function '_libssh2_channel_close': channel.c:2299: error: 'LIBSSH2_SESSION' has no member named 'socket_state' channel.c: In function 'libssh2_channel_close': channel.c:2334: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_wait_closed': channel.c:2395: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function '_libssh2_channel_free': channel.c:2427: error: 'LIBSSH2_SESSION' has no member named 'socket_state' channel.c: In function 'libssh2_channel_free': channel.c:2501: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_window_read_ex': channel.c:2528: error: 'LIBSSH2_SESSION' has no member named 'packets' make[2]: *** [channel.lo] Error 1 make[2]: Leaving directory `/home/builder/downloads/libssh2/libssh2-1.4.2/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/builder/downloads/libssh2/libssh2-1.4.2/src' make: *** [all-recursive] Error 1 -bash-3.2# -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Tue Nov 13 15:11:08 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qADEAhAn016145; Tue, 13 Nov 2012 15:11:02 +0100 Received: from gator378.hostgator.com (gator378.hostgator.com [184.173.199.219]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qADEAfo2016121 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 13 Nov 2012 15:10:42 +0100 Received: from [173.231.110.50] (port=23535 helo=[192.168.10.160]) by gator378.hostgator.com with esmtpa (Exim 4.80) (envelope-from ) id 1TYHCL-00040u-FF for libssh2-devel@cool.haxx.se; Tue, 13 Nov 2012 08:10:41 -0600 Message-ID: <50A254E0.7070002@yahoo.ca> Date: Tue, 13 Nov 2012 09:10:40 -0500 From: Maxime Larocque User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 MIME-Version: 1.0 To: libssh2 development Subject: Trouble between libssh2 and scponly X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator378.hostgator.com X-AntiAbuse: Original Domain - cool.haxx.se X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - yahoo.ca X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.10.160]) [173.231.110.50]:23535 X-Source-Auth: max@weirdows.com X-Email-Count: 0 X-Source-Cap: bWF4bXRsO21heG10bDtnYXRvcjM3OC5ob3N0Z2F0b3IuY29t X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Hi, We have some troubles using curl+libssh2 to access a scp URL. The remote system is using "scponly" as the login shell. Other scp clients (command-line scp, winscp) can access the server correctly. libssh2's ticket #71 has added the shell_quote function to quote the path before sending the command. This causes the path to be unrecognized by scponly; probablement because it does not interpret the quotes. shell_quote was added to support spaces in filenames. I have done a patch to only add single quotes when a space is present on the path, but I am not sure if it is the correct solution or if it will work correctly with other systems. Admittedly I have some more test to do on my side. What should be the correct solution in this case? 1. Only add single quotes when a space is present on the path (are there other characters that have to be escaped - single quotes and backslashes are already escaped) 2. Instead of quoting everyhting, replace the space by "\ " (backslash-space) 3. Nothing in libssh2 - scponly is broken and should be repaired (which is not exactly acceptable in my case) I am seeking your experience on this to be sure to have an optimal solution... Regards, Maxime Larocque _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Tue Nov 13 15:55:18 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qADEtA8q013269; Tue, 13 Nov 2012 15:55:17 +0100 Received: from donder.nssi.telus.com (donder.nssi.telus.com [208.38.59.82]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qADEt6MA012638 for ; Tue, 13 Nov 2012 15:55:07 +0100 DomainKey-Signature: s=donder.nssi; d=telus.com; c=nofws; q=dns; h=X-IronPort-Anti-Spam-Filtered: X-IronPort-Anti-Spam-Result:Received:Received:From:To:CC: Date:Subject:Thread-Topic:Thread-Index:Message-ID: References:In-Reply-To:Accept-Language:Content-Language: X-MS-Has-Attach:X-MS-TNEF-Correlator:acceptlanguage: Content-Type:Content-Transfer-Encoding:MIME-Version; b=UzDKmH30xp3XO4A1KZX05kMSKIGVrr1hYtgSU4V1vFHkklxx0H3YVGvd kNTxBexYIv3j7dMgh/fKqvMG4EltgLMnYwVM2eAfic1fjuCy9rvQZuM0u tdWHI0KQSoOlecCarPKlDPipIihnlN8NhFa+qCqZcEDuk9PANYD6UZpHS 4=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiAJAOZdolCOP4Bp/2dsb2JhbABBA4JsglRapmiWA3GBAQeCHwEFDBcRNw4QAgEGAg0NAiMDAgICMBQBEAEBBA4FCBOHbwEKpyuCPZAugSKKfySDBIIZMmEDiFqOPoRxijaDDQ Received: from unknown (HELO WP40057.corp.ads) ([142.63.128.105]) by donder-o.nssi.telus.com with ESMTP/TLS/AES128-SHA; 13 Nov 2012 14:55:00 +0000 Received: from wp40066.corp.ads ([::1]) by WP40057.corp.ads ([::1]) with mapi; Tue, 13 Nov 2012 09:55:00 -0500 From: Robert-Jean Denault To: "trac@libssh2.stuge.se" Date: Tue, 13 Nov 2012 09:54:57 -0500 Subject: RE: [libssh2] #252: Compilation Error on RedHat el5 64bit. Thread-Topic: [libssh2] #252: Compilation Error on RedHat el5 64bit. Thread-Index: Ac3BjaqwnEm4Ha4KQBmwUSP1yqXGeQAID3TA Message-ID: <349D8F9FFE9C194B956A7A170DA67BDB44D2EEAA1F@WP40066.corp.ads> References: <045.6375ef7b3afe6148976e8b03d582757f@libssh2.stuge.se> In-Reply-To: <045.6375ef7b3afe6148976e8b03d582757f@libssh2.stuge.se> Accept-Language: en-US, en-CA Content-Language: fr-FR X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-CA MIME-Version: 1.0 X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id qADEt6MA012638 Cc: "libssh2-devel@cool.haxx.se" X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id qADEtA8q013269 Hello libssh2, I have worked around the issue. The problem was caused by the fact the compilation environment used have the 1.2.6 version of the libraries, and all its include files installed. When the make ran the compiler settings caused it to use the older installed version of the headers instead of using the newer include files from the locate src directory. To get around the issue I had to uninstall the old library and its include files. The settings should be updated to search for the headers from the src distribution first, and then search the installed include paths. Should you have any questions or concerns please do not hesitate to contact me Robert Denault Programmeur-analyste principal II/ Senior Programmer-Analyst II TELUS Solutions en santé | avec l’expertise d’Emergis TELUS Health Solutions | backed by Emergis T : (450) 928 6000 x 3740 T : 1 (866) 363 7447 x 3740 robert.denault@telus.com telussante.com telushealth.com Le présent courriel et tout document joint sont destinés uniquement à la personne ou à l’entité à qui il est adressé et peut contenir des renseignements confidentiels. Si vous n’êtes pas le destinataire visé, veuillez nous en informer sans délai et détruire le courriel et les documents ainsi que toute copie qui en aurait été faite. Merci. This message and any accompanying attachments are intended only for the person(s) to whom this message is addressed and may contain privileged, proprietary and/or confidential information. Any unauthorized use, disclosure, reproduction or distribution of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and permanently delete or destroy this message, including any attachments. Thank you. . -----Message d'origine----- De : libssh2 Trac [mailto:trac@libssh2.stuge.se] Envoyé : November 13, 2012 5:57 AM Cc : libssh2-devel@cool.haxx.se Objet : [libssh2] #252: Compilation Error on RedHat el5 64bit. #252: Compilation Error on RedHat el5 64bit. ----------------------+----------------------- Reporter: rdenault | Owner: rdenault Type: defect | Status: new Priority: high | Milestone: 1.4.3 Component: API | Version: 1.4.2 Keywords: | Blocked By: Blocks: | ----------------------+----------------------- When compiling libssh2 on RedHat I get compilation errors. I have tried with older releases, and all releases from 1.4.2 to 1.2.8 fail. Only 1.2.6, and 1.2.7 compile successfully. Configure options: INCLUDES=-I/opt2/local/include LDFLAGS=-L/opt2/local/lib64 export INCLUDES LDFLAGS ./configure --enable-rpath --prefix=/opt2/local --libdir=/opt2/local/lib64 --with-gnu-ld --with-libssl-prefix=/opt2/local --with-libz Configuration Summary of build options: version: 1.4.2 Host type: x86_64-unknown-linux-gnu Install prefix: /opt2/local Compiler: gcc Compiler flags: -g -O2 Library types: Shared=yes, Static=yes Crypto library: openssl: yes (AES-CTR: no) libgcrypt: no Debug build: no Build examples: yes Path to sshd: /usr/sbin/sshd (only for self-tests) libz compression: yes Result of Make: -bash-3.2# make Making all in src make[1]: Entering directory `/home/builder/downloads/libssh2/libssh2-1.4.2/src' make all-am make[2]: Entering directory `/home/builder/downloads/libssh2/libssh2-1.4.2/src' if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I/opt2/local/include -I../include -I../src -g -O2 -MT channel.lo -MD -MP -MF ".deps/channel.Tpo" -c -o channel.lo channel.c; \ then mv -f ".deps/channel.Tpo" ".deps/channel.Plo"; else rm -f ".deps/channel.Tpo"; exit 1; fi libtool: compile: gcc -DHAVE_CONFIG_H -I/opt2/local/include -I../include -I../src -g -O2 -MT channel.lo -MD -MP -MF .deps/channel.Tpo -c channel.c -fPIC -DPIC -o .libs/channel.o In file included from channel.c:41: libssh2_priv.h:564: error: expected specifier-qualifier-list before 'LIBSSH2_SEND_FUNC' libssh2_priv.h:1000: error: expected ')' before 'socket' libssh2_priv.h:1002: error: expected ')' before 'socket' channel.c: In function '_libssh2_channel_nextid': channel.c:64: error: 'LIBSSH2_SESSION' has no member named 'next_channel' channel.c:67: error: 'LIBSSH2_SESSION' has no member named 'channels' channel.c:83: error: 'LIBSSH2_SESSION' has no member named 'next_channel' channel.c: In function '_libssh2_channel_locate': channel.c:100: error: 'LIBSSH2_SESSION' has no member named 'channels' channel.c:110: error: 'LIBSSH2_SESSION' has no member named 'listeners' channel.c: In function '_libssh2_channel_open': channel.c:144: error: 'LIBSSH2_SESSION' has no member named 'open_state' channel.c:145: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:146: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:147: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:150: error: 'LIBSSH2_SESSION' has no member named 'open_packet_len' channel.c:151: error: 'LIBSSH2_SESSION' has no member named 'open_local_channel' channel.c:154: error: 'LIBSSH2_SESSION' has no member named 'open_packet_requirev_state' channel.c:155: error: 'LIBSSH2_SESSION' has no member named 'open_packet_requirev_state' channel.c:160: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:162: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:167: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:169: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:170: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:172: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:175: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:176: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:179: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:183: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:183: error: 'LIBSSH2_SESSION' has no member named 'open_local_channel' channel.c:184: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:185: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:186: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:187: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:189: error: 'LIBSSH2_SESSION' has no member named 'channels' channel.c:190: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:192: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:193: error: 'LIBSSH2_SESSION' has no member named 'open_packet_len' channel.c:194: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:201: error: 'LIBSSH2_SESSION' has no member named 'open_local_channel' channel.c:207: error: 'LIBSSH2_SESSION' has no member named 'open_state' channel.c:210: error: 'LIBSSH2_SESSION' has no member named 'open_state' channel.c:212: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:213: error: 'LIBSSH2_SESSION' has no member named 'open_packet_len' channel.c:226: error: 'LIBSSH2_SESSION' has no member named 'open_state' channel.c:229: error: 'LIBSSH2_SESSION' has no member named 'open_state' channel.c:231: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:232: error: 'LIBSSH2_SESSION' has no member named 'open_data_len' channel.c:233: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:235: error: 'LIBSSH2_SESSION' has no member named 'open_packet_requirev_state' channel.c:243: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:244: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:245: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:246: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:247: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:248: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:249: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:250: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:251: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:261: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:262: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:263: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:264: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:266: error: 'LIBSSH2_SESSION' has no member named 'open_state' channel.c:267: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:270: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:278: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:279: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:280: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:282: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:283: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:284: error: 'LIBSSH2_SESSION' has no member named 'open_packet' channel.c:286: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:288: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:290: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:293: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:295: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:296: error: 'LIBSSH2_SESSION' has no member named 'open_data_len' channel.c:300: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:301: error: 'LIBSSH2_SESSION' has no member named 'open_data_len' channel.c:303: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:304: error: 'LIBSSH2_SESSION' has no member named 'open_data' channel.c:307: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:308: error: 'LIBSSH2_SESSION' has no member named 'open_channel' channel.c:311: error: 'LIBSSH2_SESSION' has no member named 'open_state' channel.c: In function 'libssh2_channel_open_ex': channel.c:331: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'channel_direct_tcpip': channel.c:351: error: 'LIBSSH2_SESSION' has no member named 'direct_state' channel.c:352: error: 'LIBSSH2_SESSION' has no member named 'direct_host_len' channel.c:353: error: 'LIBSSH2_SESSION' has no member named 'direct_shost_len' channel.c:355: error: 'LIBSSH2_SESSION' has no member named 'direct_message_len' channel.c:356: error: 'LIBSSH2_SESSION' has no member named 'direct_host_len' channel.c:356: error: 'LIBSSH2_SESSION' has no member named 'direct_shost_len' channel.c:362: error: 'LIBSSH2_SESSION' has no member named 'direct_message' channel.c:363: error: 'LIBSSH2_SESSION' has no member named 'direct_message_len' channel.c:364: error: 'LIBSSH2_SESSION' has no member named 'direct_message' channel.c:369: error: 'LIBSSH2_SESSION' has no member named 'direct_host_len' channel.c:371: error: 'LIBSSH2_SESSION' has no member named 'direct_shost_len' channel.c:380: error: 'LIBSSH2_SESSION' has no member named 'direct_message' channel.c:381: error: 'LIBSSH2_SESSION' has no member named 'direct_message_len' channel.c:387: error: 'LIBSSH2_SESSION' has no member named 'direct_state' channel.c:391: error: 'LIBSSH2_SESSION' has no member named 'direct_state' channel.c:393: error: 'LIBSSH2_SESSION' has no member named 'direct_message' channel.c:394: error: 'LIBSSH2_SESSION' has no member named 'direct_message' channel.c: In function 'libssh2_channel_direct_tcpip_ex': channel.c:413: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'channel_forward_listen': channel.c:435: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:436: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_host_len' channel.c:439: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet_len' channel.c:440: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_host_len' channel.c:443: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet_requirev_state' channel.c:444: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet_requirev_state' channel.c:450: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet' channel.c:451: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet_len' channel.c:452: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet' channel.c:462: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_host_len' channel.c:465: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:468: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:470: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet' channel.c:471: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet_len' channel.c:483: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet' channel.c:484: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet' channel.c:485: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:488: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet' channel.c:489: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet' channel.c:491: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:494: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:499: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_packet_requirev_state' channel.c:505: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:519: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_host_len' channel.c:529: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_host_len' channel.c:530: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_host_len' channel.c:544: error: 'LIBSSH2_SESSION' has no member named 'listeners' channel.c:553: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:560: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c:565: error: 'LIBSSH2_SESSION' has no member named 'fwdLstn_state' channel.c: In function 'libssh2_channel_forward_listen_ex': channel.c:584: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_forward_cancel': channel.c:694: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'channel_forward_accept': channel.c:722: error: 'LIBSSH2_SESSION' has no member named 'channels' channel.c: In function 'libssh2_channel_forward_accept': channel.c:750: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_setenv_ex': channel.c:871: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_request_pty_ex': channel.c:991: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_request_pty_size_ex': channel.c:1064: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_x11_req_ex': channel.c:1215: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_process_startup': channel.c:1339: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function '_libssh2_channel_flush': channel.c:1370: error: 'LIBSSH2_SESSION' has no member named 'packets' channel.c: In function 'libssh2_channel_flush_ex': channel.c:1445: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_receive_window_adjust': channel.c:1628: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_receive_window_adjust2': channel.c:1659: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_handle_extended_data2': channel.c:1705: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function '_libssh2_channel_read': channel.c:1772: error: 'LIBSSH2_SESSION' has no member named 'packets' channel.c: In function 'libssh2_channel_read_ex': channel.c:1899: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c:1904: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function '_libssh2_channel_packet_data_len': channel.c:1922: error: 'LIBSSH2_SESSION' has no member named 'packets' channel.c: In function 'libssh2_channel_write_ex': channel.c:2107: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_send_eof': channel.c:2156: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_eof': channel.c:2175: error: 'LIBSSH2_SESSION' has no member named 'packets' channel.c: In function 'libssh2_channel_wait_eof': channel.c:2245: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function '_libssh2_channel_close': channel.c:2299: error: 'LIBSSH2_SESSION' has no member named 'socket_state' channel.c: In function 'libssh2_channel_close': channel.c:2334: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_wait_closed': channel.c:2395: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function '_libssh2_channel_free': channel.c:2427: error: 'LIBSSH2_SESSION' has no member named 'socket_state' channel.c: In function 'libssh2_channel_free': channel.c:2501: error: 'LIBSSH2_SESSION' has no member named 'api_block_mode' channel.c: In function 'libssh2_channel_window_read_ex': channel.c:2528: error: 'LIBSSH2_SESSION' has no member named 'packets' make[2]: *** [channel.lo] Error 1 make[2]: Leaving directory `/home/builder/downloads/libssh2/libssh2-1.4.2/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/builder/downloads/libssh2/libssh2-1.4.2/src' make: *** [all-recursive] Error 1 -bash-3.2# -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Tue Nov 13 23:06:54 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qADM6akD000406; Tue, 13 Nov 2012 23:06:49 +0100 Received: from giant.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qADM6Y6d000394 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 13 Nov 2012 23:06:34 +0100 Received: from localhost (dast@localhost) by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id qADM6YqA000387 for ; Tue, 13 Nov 2012 23:06:34 +0100 X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs Date: Tue, 13 Nov 2012 23:06:34 +0100 (CET) From: Daniel Stenberg X-X-Sender: dast@giant.haxx.se To: libssh2 development Subject: RE: [libssh2] #252: Compilation Error on RedHat el5 64bit. In-Reply-To: <349D8F9FFE9C194B956A7A170DA67BDB44D2EEAA1F@WP40066.corp.ads> Message-ID: References: <045.6375ef7b3afe6148976e8b03d582757f@libssh2.stuge.se> <349D8F9FFE9C194B956A7A170DA67BDB44D2EEAA1F@WP40066.corp.ads> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) X-fromdanielhimself: yes MIME-Version: 1.0 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" On Tue, 13 Nov 2012, Robert-Jean Denault wrote: > I have worked around the issue. The problem was caused by the fact the > compilation environment used have the 1.2.6 version of the libraries, and > all its include files installed. When the make ran the compiler settings > caused it to use the older installed version of the headers instead of using > the newer include files from the locate src directory. > > To get around the issue I had to uninstall the old library and its include > files. > > The settings should be updated to search for the headers from the src > distribution first, and then search the installed include paths. So can you please be even more specific and point out *EXACTLY* where and what the problem is because I don't see it? -- / daniel.haxx.se _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Tue Nov 20 08:29:27 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qAK7Swlq030967; Tue, 20 Nov 2012 08:29:21 +0100 Received: from giant.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qAK7SuNt030960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 20 Nov 2012 08:28:56 +0100 Received: from localhost (dast@localhost) by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id qAK7Su6o030957 for ; Tue, 20 Nov 2012 08:28:56 +0100 X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs Date: Tue, 20 Nov 2012 08:28:56 +0100 (CET) From: Daniel Stenberg X-X-Sender: dast@giant.haxx.se To: libssh2 development Subject: another patch release? Message-ID: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) X-fromdanielhimself: yes MIME-Version: 1.0 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Hi, I was asked about a new release and looking through the changelog there's a bunch of fine bug fixes done since 1.4.2 that surely would be fine to make public. So, in exactly 7 days on November 27 I plan to make the release. If you have any particulars you want addressed before then, please speak up and/or send the patches asap! -- / daniel.haxx.se _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Tue Nov 27 22:50:03 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qARLneDK019853; Tue, 27 Nov 2012 22:49:57 +0100 Received: from giant.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qARLncfr019844 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 27 Nov 2012 22:49:38 +0100 Received: from localhost (dast@localhost) by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id qARLncfA019833 for ; Tue, 27 Nov 2012 22:49:38 +0100 X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs Date: Tue, 27 Nov 2012 22:49:38 +0100 (CET) From: Daniel Stenberg X-X-Sender: dast@giant.haxx.se To: libssh2 development Subject: [RELEASE] libssh2 1.4.3 Message-ID: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) X-fromdanielhimself: yes MIME-Version: 1.0 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Hi friends! I'm happy to announce that I've just uploaded libssh2 1.4.3 to the site: http://www.libssh2.org/ The RELEASE-NOTES from this package looks like the following: libssh2 1.4.3 This release includes the following changes: o compression: add support for zlib@openssh.com This release includes the following bugfixes: o sftp_read: return error if a too large package arrives o libssh2_hostkey_hash.3: update the description of return value o Fixed MSVC NMakefile o examples: use stderr for messages, stdout for data o openssl: do not leak memory when handling errors o improved handling of disabled MD5 algorithm in OpenSSL o known_hosts: Fail when parsing unknown keys in known_hosts file o configure: gcrypt doesn't come with pkg-config support o session_free: wrong variable used for keeping state o libssh2_userauth_publickey_fromfile_ex.3: mention publickey == NULL o comp_method_zlib_decomp: handle Z_BUF_ERROR when inflating This release would not have looked like this without help, code, reports and advice from friends like these: Guenter Knauf, Peter Stuge, TJ Saunders, Mike Abdullah, Maxime Larocque, Dmitry Smirnov, Dave Hayden, Peter Krempa, Kamil Dudka Thanks! (and sorry if I forgot to mention someone) -- / daniel.haxx.se _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Wed Nov 28 22:57:05 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qASLueEo027167; Wed, 28 Nov 2012 22:56:58 +0100 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qASLucCH027155 for ; Wed, 28 Nov 2012 22:56:38 +0100 Received: (qmail 2157 invoked from network); 28 Nov 2012 21:56:36 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 28 Nov 2012 21:56:36 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Wed, 28 Nov 2012 21:56:36 -0000 X-URL: https://trac.libssh2.org/ Subject: Re: [libssh2] #252: Compilation Error on RedHat el5 64bit. X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/252#comment:1 Message-ID: <060.8d7081f6824eb2bfcba17f255ce6aa0b@libssh2.stuge.se> References: <045.6375ef7b3afe6148976e8b03d582757f@libssh2.stuge.se> X-Trac-Ticket-ID: 252 In-Reply-To: <045.6375ef7b3afe6148976e8b03d582757f@libssh2.stuge.se> X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id qASLucCH027155 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Reply-To: trac@libssh2.stuge.se, libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" #252: Compilation Error on RedHat el5 64bit. -----------------------+---------------------- Reporter: rdenault | Owner: rdenault Type: defect | Status: new Priority: high | Milestone: 1.4.3 Component: API | Version: 1.4.2 Resolution: | Keywords: Blocked By: | Blocks: -----------------------+---------------------- Comment (by rdenault): I have worked around the issue. The problem was caused by the fact the compilation environment used had the 1.2.6 version of the libraries, and all its include files installed. When the make ran the compiler settings caused it to use the older installed version of the headers instead of using the newer include files from the locate src directory. To get around the issue I had to uninstall the old library and its include files. The settings should be updated to search for the headers from the src distribution first, and then search the installed include paths. -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Wed Nov 28 23:10:14 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qASMA9jj003425; Wed, 28 Nov 2012 23:10:12 +0100 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qASMA7er003422 for ; Wed, 28 Nov 2012 23:10:07 +0100 Received: (qmail 4136 invoked from network); 28 Nov 2012 22:10:07 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 28 Nov 2012 22:10:07 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Wed, 28 Nov 2012 22:10:07 -0000 X-URL: https://trac.libssh2.org/ Subject: [libssh2] #253: Transport aborted with a disconnect packet when ending the connection with libssh2_session_init_ex X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/253 Message-ID: <045.194f01d36d75ccd2db90fce25fba1e71@libssh2.stuge.se> X-Trac-Ticket-ID: 253 X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id qASMA7er003422 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Reply-To: trac@libssh2.stuge.se, libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" #253: Transport aborted with a disconnect packet when ending the connection with libssh2_session_init_ex ----------------------+----------------------- Reporter: rdenault | Owner: rdenault Type: defect | Status: new Priority: normal | Milestone: 1.4.3 Component: API | Version: 1.4.2 Keywords: | Blocked By: Blocks: | ----------------------+----------------------- When ending a client connection using the libssh2_session_init_ex, with the SSH_DISCONNECT_BY_APPLICATION, the server will log the session closure as an abort disconnect. This causes some server to abort their actions, and not perform the session end triggers. Log message: ================================================================== Nov 12 13:21:09 hostname vshelld[1467]: conn,00001: The transport was aborted with a disconnect packet: Disconnected by application. ================================================================== The issue was detect using curl, sftp (openssh), and perl Net:SSH2 modules that use ligssh2 (1.4.2) The issue was also present in version 1.2.6 of the library. -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Wed Nov 28 23:11:53 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qASMBp60004292; Wed, 28 Nov 2012 23:11:53 +0100 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qASMBojb004274 for ; Wed, 28 Nov 2012 23:11:50 +0100 Received: (qmail 4292 invoked from network); 28 Nov 2012 22:11:50 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 28 Nov 2012 22:11:50 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Wed, 28 Nov 2012 22:11:50 -0000 X-URL: https://trac.libssh2.org/ Subject: Re: [libssh2] #252: Compilation Error on RedHat el5 64bit. X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/252#comment:2 Message-ID: <060.a0f6f6b7fad92fccd2acb91410363970@libssh2.stuge.se> References: <045.6375ef7b3afe6148976e8b03d582757f@libssh2.stuge.se> X-Trac-Ticket-ID: 252 In-Reply-To: <045.6375ef7b3afe6148976e8b03d582757f@libssh2.stuge.se> X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id qASMBojb004274 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Reply-To: trac@libssh2.stuge.se, libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" #252: Compilation Error on RedHat el5 64bit. -----------------------+---------------------- Reporter: rdenault | Owner: rdenault Type: defect | Status: closed Priority: high | Milestone: 1.4.3 Component: API | Version: 1.4.2 Resolution: invalid | Keywords: Blocked By: | Blocks: -----------------------+---------------------- Changes (by bagder): * status: new => closed * resolution: => invalid Comment: Thanks for getting back on this. I'm making this issue resolved! -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Wed Nov 28 23:42:23 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qASMgE6i020871; Wed, 28 Nov 2012 23:42:21 +0100 Received: from mail.araelium.com (ar02.araelium.com [209.80.41.212]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qASMgCJr020850 for ; Wed, 28 Nov 2012 23:42:12 +0100 Received: from localhost (localhost [127.0.0.1]) by mail.araelium.com (Postfix) with ESMTP id F30C46AC82A for ; Wed, 28 Nov 2012 14:42:07 -0800 (PST) X-Virus-Scanned: amavisd-new at araelium.com Received: from mail.araelium.com ([127.0.0.1]) by localhost (ar02.araelium.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q-e3tEIvccDj for ; Wed, 28 Nov 2012 14:42:07 -0800 (PST) Received: from [192.168.1.7] (cpe-76-95-91-20.socal.res.rr.com [76.95.91.20]) by mail.araelium.com (Postfix) with ESMTPA id B21C26AC81F for ; Wed, 28 Nov 2012 14:42:07 -0800 (PST) From: Seth Willits Subject: Compiler warnings Date: Wed, 28 Nov 2012 14:42:07 -0800 Message-Id: <0618C784-604A-4BB1-ADBA-4259C9EEECB4@freaksw.com> To: libssh2 development Mime-Version: 1.0 (Apple Message framework v1278) X-Mailer: Apple Mail (2.1278) X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id qASMgCJr020850 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" strlen() returns size_t (unsigned long on OS X for instance) but it's being passed directly to unsigned int parameters in some places so warnings are generated about the implicit precision loss. For example in the define for libssh2_channel_exec. Pretty much everywhere strlen() is used in the header I think. They just need to be explicitly typecasted to (unsigned int). -- Seth Willits _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Wed Nov 28 23:45:31 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qASMjT7T022921; Wed, 28 Nov 2012 23:45:30 +0100 Received: from giant.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qASMjSfG022900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 28 Nov 2012 23:45:28 +0100 Received: from localhost (dast@localhost) by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id qASMjS0L022896 for ; Wed, 28 Nov 2012 23:45:28 +0100 X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs Date: Wed, 28 Nov 2012 23:45:28 +0100 (CET) From: Daniel Stenberg X-X-Sender: dast@giant.haxx.se To: libssh2 development Subject: Re: Compiler warnings In-Reply-To: <0618C784-604A-4BB1-ADBA-4259C9EEECB4@freaksw.com> Message-ID: References: <0618C784-604A-4BB1-ADBA-4259C9EEECB4@freaksw.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) X-fromdanielhimself: yes MIME-Version: 1.0 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" On Wed, 28 Nov 2012, Seth Willits wrote: > For example in the define for libssh2_channel_exec. Pretty much everywhere > strlen() is used in the header I think. They just need to be explicitly > typecasted to (unsigned int). Mind sending us a patch for it, please? -- / daniel.haxx.se _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Thu Nov 29 00:32:50 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qASNWa25015135; Thu, 29 Nov 2012 00:32:48 +0100 Received: from mail.araelium.com (ar02.araelium.com [209.80.41.212]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qASNWYED015124 for ; Thu, 29 Nov 2012 00:32:34 +0100 Received: from localhost (localhost [127.0.0.1]) by mail.araelium.com (Postfix) with ESMTP id 2CAD86ACB57 for ; Wed, 28 Nov 2012 15:32:30 -0800 (PST) X-Virus-Scanned: amavisd-new at araelium.com Received: from mail.araelium.com ([127.0.0.1]) by localhost (ar02.araelium.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nxoABaVmjDki for ; Wed, 28 Nov 2012 15:32:30 -0800 (PST) Received: from [192.168.1.7] (cpe-76-95-91-20.socal.res.rr.com [76.95.91.20]) by mail.araelium.com (Postfix) with ESMTPA id ECB366ACB4C for ; Wed, 28 Nov 2012 15:32:29 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: Compiler warnings From: Seth Willits In-Reply-To: Date: Wed, 28 Nov 2012 15:32:29 -0800 Message-Id: <8BA494DB-FDF3-4C4A-89F0-1B1F4014A83E@freaksw.com> References: <0618C784-604A-4BB1-ADBA-4259C9EEECB4@freaksw.com> To: libssh2 development X-Mailer: Apple Mail (2.1278) X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id qASNWYED015124 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" On Nov 28, 2012, at 2:45 PM, Daniel Stenberg wrote: >> For example in the define for libssh2_channel_exec. Pretty much everywhere strlen() is used in the header I think. They just need to be explicitly typecasted to (unsigned int). > > Mind sending us a patch for it, please? Clueless as to the process. :) -- Seth Willits _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Thu Nov 29 00:35:35 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qASNZYxW016743; Thu, 29 Nov 2012 00:35:34 +0100 Received: from foo.stuge.se (qmailr@foo.stuge.se [212.116.89.98]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id qASNZVIS016739 for ; Thu, 29 Nov 2012 00:35:32 +0100 Received: (qmail 4220 invoked by uid 501); 28 Nov 2012 23:35:33 -0000 Message-ID: <20121128233533.4219.qmail@stuge.se> Date: Thu, 29 Nov 2012 00:35:33 +0100 From: Peter Stuge To: libssh2-devel@cool.haxx.se Subject: Re: Compiler warnings Mail-Followup-To: libssh2-devel@cool.haxx.se References: <0618C784-604A-4BB1-ADBA-4259C9EEECB4@freaksw.com> <8BA494DB-FDF3-4C4A-89F0-1B1F4014A83E@freaksw.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8BA494DB-FDF3-4C4A-89F0-1B1F4014A83E@freaksw.com> X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Seth Willits wrote: > >> They just need to be explicitly typecasted to (unsigned int). > > > > Mind sending us a patch for it, please? > > Clueless as to the process. :) Are you interested in changing that? //Peter _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Thu Nov 29 01:42:08 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qAT0frLR017374; Thu, 29 Nov 2012 01:42:06 +0100 Received: from mail.araelium.com (ar02.araelium.com [209.80.41.212]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qAT0fp3k017338 for ; Thu, 29 Nov 2012 01:41:51 +0100 Received: from localhost (localhost [127.0.0.1]) by mail.araelium.com (Postfix) with ESMTP id 4267D6AD10F for ; Wed, 28 Nov 2012 16:41:45 -0800 (PST) X-Virus-Scanned: amavisd-new at araelium.com Received: from mail.araelium.com ([127.0.0.1]) by localhost (ar02.araelium.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6USMuAkO3pk3 for ; Wed, 28 Nov 2012 16:41:44 -0800 (PST) Received: from [192.168.1.7] (cpe-76-95-91-20.socal.res.rr.com [76.95.91.20]) by mail.araelium.com (Postfix) with ESMTPA id CF8F76AD104 for ; Wed, 28 Nov 2012 16:41:44 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: Compiler warnings From: Seth Willits In-Reply-To: <20121128233533.4219.qmail@stuge.se> Date: Wed, 28 Nov 2012 16:41:44 -0800 Message-Id: References: <0618C784-604A-4BB1-ADBA-4259C9EEECB4@freaksw.com> <8BA494DB-FDF3-4C4A-89F0-1B1F4014A83E@freaksw.com> <20121128233533.4219.qmail@stuge.se> To: libssh2 development X-Mailer: Apple Mail (2.1278) X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id qAT0fp3k017338 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" On Nov 28, 2012, at 3:35 PM, Peter Stuge wrote: >>> Mind sending us a patch for it, please? >> >> Clueless as to the process. :) > > Are you interested in changing that? Certainly. I'm not a git user so I'm confused by it's madness, but I managed to create some kind of patch dealy-bob, but I'm not sure what I should do with it. Subject: [PATCH] Typecasting strlen in macro parameters to avoid compiler warnings about lost precision. Several macros in libssh2.h call strlen and pass the result directly to unsigned int parameters of other functions, which warns about precision loss because strlen returns size_t which is unsigned long on at least some platforms (such as OS X). The fix is to simply typecast the strlen() result to unsigned int. --- include/libssh2.h | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/libssh2.h b/include/libssh2.h index 8caa90c..2ece0d5 100644 --- a/include/libssh2.h +++ b/include/libssh2.h @@ -521,8 +521,8 @@ LIBSSH2_API int libssh2_userauth_password_ex(LIBSSH2_SESSION *session, LIBSSH2_PASSWD_CHANGEREQ_FUNC((*passwd_change_cb))); #define libssh2_userauth_password(session, username, password) \ - libssh2_userauth_password_ex((session), (username), strlen(username), \ - (password), strlen(password), NULL) + libssh2_userauth_password_ex((session), (username), (unsigned int)strlen(username), \ + (password), (unsigned int)strlen(password), NULL) LIBSSH2_API int libssh2_userauth_publickey_fromfile_ex(LIBSSH2_SESSION *session, @@ -535,7 +535,7 @@ libssh2_userauth_publickey_fromfile_ex(LIBSSH2_SESSION *session, #define libssh2_userauth_publickey_fromfile(session, username, publickey, \ privatekey, passphrase) \ libssh2_userauth_publickey_fromfile_ex((session), (username), \ - strlen(username), (publickey), \ + (unsigned int)strlen(username), (publickey), \ (privatekey), (passphrase)) LIBSSH2_API int @@ -561,10 +561,10 @@ libssh2_userauth_hostbased_fromfile_ex(LIBSSH2_SESSION *session, #define libssh2_userauth_hostbased_fromfile(session, username, publickey, \ privatekey, passphrase, hostname) \ libssh2_userauth_hostbased_fromfile_ex((session), (username), \ - strlen(username), (publickey), \ + (unsigned int)strlen(username), (publickey), \ (privatekey), (passphrase), \ - (hostname), strlen(hostname), \ - (username), strlen(username)) + (hostname), (unsigned int)strlen(hostname), \ + (username), (unsigned int)strlen(username)) /* * response_callback is provided with filled by library prompts array, @@ -581,7 +581,7 @@ libssh2_userauth_keyboard_interactive_ex(LIBSSH2_SESSION* session, #define libssh2_userauth_keyboard_interactive(session, username, \ response_callback) \ libssh2_userauth_keyboard_interactive_ex((session), (username), \ - strlen(username), (response_callback)) + (unsigned int)strlen(username), (response_callback)) LIBSSH2_API int libssh2_poll(LIBSSH2_POLLFD *fds, unsigned int nfds, long timeout); @@ -636,8 +636,8 @@ LIBSSH2_API int libssh2_channel_setenv_ex(LIBSSH2_CHANNEL *channel, unsigned int value_len); #define libssh2_channel_setenv(channel, varname, value) \ - libssh2_channel_setenv_ex((channel), (varname), strlen(varname), (value), \ - strlen(value)) + libssh2_channel_setenv_ex((channel), (varname), (unsigned int)strlen(varname), (value), \ + (unsigned int)strlen(value)) LIBSSH2_API int libssh2_channel_request_pty_ex(LIBSSH2_CHANNEL *channel, const char *term, @@ -647,7 +647,7 @@ LIBSSH2_API int libssh2_channel_request_pty_ex(LIBSSH2_CHANNEL *channel, int width, int height, int width_px, int height_px); #define libssh2_channel_request_pty(channel, term) \ - libssh2_channel_request_pty_ex((channel), (term), strlen(term), NULL, 0, \ + libssh2_channel_request_pty_ex((channel), (term), (unsigned int)strlen(term), NULL, 0, \ LIBSSH2_TERM_WIDTH, LIBSSH2_TERM_HEIGHT, \ LIBSSH2_TERM_WIDTH_PX, LIBSSH2_TERM_HEIGHT_PX) @@ -676,11 +676,11 @@ LIBSSH2_API int libssh2_channel_process_startup(LIBSSH2_CHANNEL *channel, NULL, 0) #define libssh2_channel_exec(channel, command) \ libssh2_channel_process_startup((channel), "exec", sizeof("exec") - 1, \ - (command), strlen(command)) + (command), (unsigned int)strlen(command)) #define libssh2_channel_subsystem(channel, subsystem) \ libssh2_channel_process_startup((channel), "subsystem", \ sizeof("subsystem") - 1, (subsystem), \ - strlen(subsystem)) + (unsigned int)strlen(subsystem)) LIBSSH2_API ssize_t libssh2_channel_read_ex(LIBSSH2_CHANNEL *channel, int stream_id, char *buf, -- 1.7.4.4 _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Thu Nov 29 10:54:20 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qAT9rqvb030752; Thu, 29 Nov 2012 10:54:14 +0100 Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qAT9rntL030724 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 29 Nov 2012 10:53:50 +0100 Received: by mail-vb0-f54.google.com with SMTP id l1so6356172vba.41 for ; Thu, 29 Nov 2012 01:53:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=vuRq6JMTgTimcE9AxqMdFhYuvI3wZSzJeDyNBz9+m+4=; b=QwiLd6UriVivGwOkUT70Iyiurpw+ekV/RLN5C3JYhH0IswGTv5VlgrpaXd9a3ejoLq ZM1iWNr9E8SsGH5FnIzU8juxhCtztpnwxYWhJyHvcm7PaIxnOlXoNI+tfOKiMwSAL6qp 2D5Ay31V+Oqq10pAJWVmF1OSNN0LWP9uWqfjrvb/Sheb2k+1YSrhGH+6a/20fDNykD12 IQVFM6CVXqA9lmDvSsj06xSmopnmS70TK93/S5lCjPXnUiWFgOOoj9lHJN9NcfSAXgEI 2GqXkoTGNckhXXmEMpi/VRE/ljdfQNNWH8aeNd+GFprhzZlwrUIpfki5Yr4z+/pCU1QT Qaeg== MIME-Version: 1.0 Received: by 10.52.180.225 with SMTP id dr1mr27488232vdc.2.1354182824222; Thu, 29 Nov 2012 01:53:44 -0800 (PST) Received: by 10.220.152.211 with HTTP; Thu, 29 Nov 2012 01:53:44 -0800 (PST) In-Reply-To: References: Date: Thu, 29 Nov 2012 15:23:44 +0530 Message-ID: Subject: Re: Facing issue with libssh2 on MAC OSX From: Akshay Joshi To: libssh2-devel@cool.haxx.se X-Gm-Message-State: ALoCoQlr6ixEP3KSqQC6ctcU56b8s5MXvzhtz8WB74mKzrGhiis55cujqD9k3v+t8txvbZcghFHx X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1593651518==" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" --===============1593651518== Content-Type: multipart/alternative; boundary=bcaec517a99032e0e104cf9f429c --bcaec517a99032e0e104cf9f429c Content-Type: text/plain; charset=ISO-8859-1 Hi Can anyone please suggest me the solution for my below mail. On Tue, Nov 6, 2012 at 7:19 PM, Akshay Joshi wrote: > Hi > > I am using libssh2 to create SSH Tunnel. SSH tunnel gets created and > deleted on some menu action. On the first attempt tunnel gets created and > deleted successfully, but when I'll try to recreate SSH Tunnel I am facing > crash/assert in libssh2. Not sure why it is crashing, because it is running > successfully on Windows and Linux environment. Is there any bug on MAC OSX > where libssh2 is not working properly. > > I am also facing "SSL SYSCALL error : EOF detected" error every time. > > -- > *Akshay Joshi > Senior Software Engineer > EnterpriseDB Corporation > The Enterprise PostgreSQL Company > Phone: +91 20-3058-9522 > Mobile: +91 976-788-8246* > > -- *Akshay Joshi Senior Software Engineer EnterpriseDB Corporation The Enterprise PostgreSQL Company Phone: +91 20-3058-9522 Mobile: +91 976-788-8246* --bcaec517a99032e0e104cf9f429c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi=A0

Can anyone please suggest me the solution for my b= elow mail.

On Tue, Nov 6, 2012 at 7:19 PM= , Akshay Joshi <akshay.joshi@enterprisedb.com> w= rote:
Hi=A0

I am using libssh2 = to create SSH Tunnel. SSH tunnel gets created and deleted on some menu acti= on. On the first attempt tunnel gets created and deleted successfully, but = =A0when I'll try to recreate SSH Tunnel=A0I am facing crash/assert in l= ibssh2.=A0Not sure why it is crashing, because=A0it is running successfully= on Windows and Linux=A0environment. Is there any bug on MAC OSX where libs= sh2 is not working properly.

I am also facing "SSL SYSCALL error : EOF detected= " error every time.

--
Aksh= ay Joshi
Senior Software Engineer=A0
EnterpriseDB Corporation
The Enterprise P= ostgreSQL Company
Phone: +91 20-3058-9522
Mobile: +91 976-788-8246




--
Akshay Joshi Senior Software Engineer=A0
EnterpriseDB Corporation
The Enterprise P= ostgreSQL Company
Phone: +91 20-3058-9522
Mobile: +91 976-788-8246

--bcaec517a99032e0e104cf9f429c-- --===============1593651518== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel --===============1593651518==-- From libssh2-devel-bounces@cool.haxx.se Thu Nov 29 18:26:23 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qATHQ0PT031861; Thu, 29 Nov 2012 18:26:17 +0100 Received: from mail.araelium.com (ar02.araelium.com [209.80.41.212]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qATHPwkx031805 for ; Thu, 29 Nov 2012 18:25:58 +0100 Received: from localhost (localhost [127.0.0.1]) by mail.araelium.com (Postfix) with ESMTP id 89DB86B14B8 for ; Thu, 29 Nov 2012 09:25:53 -0800 (PST) X-Virus-Scanned: amavisd-new at araelium.com Received: from mail.araelium.com ([127.0.0.1]) by localhost (ar02.araelium.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zr4+de1WMQ+R for ; Thu, 29 Nov 2012 09:25:53 -0800 (PST) Received: from [192.168.1.7] (cpe-76-95-91-20.socal.res.rr.com [76.95.91.20]) by mail.araelium.com (Postfix) with ESMTPA id 46F966B14AD for ; Thu, 29 Nov 2012 09:25:53 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: Facing issue with libssh2 on MAC OSX From: Seth Willits In-Reply-To: Date: Thu, 29 Nov 2012 09:25:51 -0800 Message-Id: <81854DCF-90EA-4114-8436-00EBA7B50533@freaksw.com> References: To: libssh2 development X-Mailer: Apple Mail (2.1278) X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id qATHPwkx031805 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Code flow and a crash log wouldn't be a bad idea. -- Seth Willits On Nov 29, 2012, at 1:53 AM, Akshay Joshi wrote: > Hi > > Can anyone please suggest me the solution for my below mail. > > On Tue, Nov 6, 2012 at 7:19 PM, Akshay Joshi wrote: > Hi > > I am using libssh2 to create SSH Tunnel. SSH tunnel gets created and deleted on some menu action. On the first attempt tunnel gets created and deleted successfully, but when I'll try to recreate SSH Tunnel I am facing crash/assert in libssh2. Not sure why it is crashing, because it is running successfully on Windows and Linux environment. Is there any bug on MAC OSX where libssh2 is not working properly. > > I am also facing "SSL SYSCALL error : EOF detected" error every time. > > -- > Akshay Joshi _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Thu Nov 29 20:31:31 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qATJVGMR026812; Thu, 29 Nov 2012 20:31:28 +0100 Received: from giant.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qATJVErK026801 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 29 Nov 2012 20:31:14 +0100 Received: from localhost (dast@localhost) by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id qATJVE8J026794 for ; Thu, 29 Nov 2012 20:31:14 +0100 X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs Date: Thu, 29 Nov 2012 20:31:14 +0100 (CET) From: Daniel Stenberg X-X-Sender: dast@giant.haxx.se To: libssh2 development Subject: Re: Compiler warnings In-Reply-To: Message-ID: References: <0618C784-604A-4BB1-ADBA-4259C9EEECB4@freaksw.com> <8BA494DB-FDF3-4C4A-89F0-1B1F4014A83E@freaksw.com> <20121128233533.4219.qmail@stuge.se> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) X-fromdanielhimself: yes MIME-Version: 1.0 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" On Wed, 28 Nov 2012, Seth Willits wrote: > Certainly. I'm not a git user so I'm confused by it's madness, but I managed > to create some kind of patch dealy-bob, but I'm not sure what I should do > with it. Thanks, I've applied and pushed your fixes! (with some minor white space edits) -- / daniel.haxx.se _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Fri Nov 30 02:29:38 2012 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qAU1TBXJ021056; Fri, 30 Nov 2012 02:29:32 +0100 Received: from nm27.access.bullet.mail.mud.yahoo.com (nm27.access.bullet.mail.mud.yahoo.com [66.94.237.92]) by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id qAU1T8n2021043 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 30 Nov 2012 02:29:09 +0100 Received: from [66.94.237.195] by nm27.access.bullet.mail.mud.yahoo.com with NNFMP; 30 Nov 2012 01:29:03 -0000 Received: from [98.139.221.64] by tm6.access.bullet.mail.mud.yahoo.com with NNFMP; 30 Nov 2012 01:29:03 -0000 Received: from [127.0.0.1] by smtp101.rog.mail.bf1.yahoo.com with NNFMP; 30 Nov 2012 01:29:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s1024; t=1354238943; bh=cyHJbsFcw1TE1PdccGh2UXbfhYnzUpaJiwmatC9siQA=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=hCBGRmo7weVp2QcHacKMk0/78XYqwfnHCPlcxq8U22h15x9F1CZ0L0ujr6SBJh8+yW6FlGntptSgan+OwqPHudRnlIHevdnaFBxvj6USlWKmYhliQvyUl50K56c+nH2AigeyyHbqpaVYP2Hs0hadedazrQDpcxYkVoTDqLAz+g8= X-Yahoo-Newman-Id: 632002.57765.bm@smtp101.rog.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 3M6hG.YVM1nhnlrWuFf4lZZCVbvBjc3.IIa3Fk7u1GVZFMX bdbiWXQvL_sXe20xTDKUbPubbvFQHiir.b.85ACifSyOlfnq86.QR_eZcP57 GJpqilfKi8nvg040pwPKNVQTQU.POsY4qMI0046w.xdOTmBfdDxO2_N69kt6 .4bzo7iUYPy6jHG.lD0ROuBCBYBjCgCV6bH4rO1LvmcDhQaP3X.mgeCWb7yi veBwMm2eEHzdixnXIkiE2TMgd8TKlCb8O2TKnxwhLe3egtqttI4WoOO_YlYs U.c2ox0mN9jIePrOjH3x75CKh9TtjFQkmOOiC9PTc2hbMZ0uMxfPC5Js27aR aU8ZpOyk8QAeAZ8jzvuUM6cYvXRDPYG.BnJNTTxtgwJhHQGcVEVJWd64wt1F VzcWw.iN55trSCNCvaI9T6XvznlpIH71hAIfbH8.UkYXKpc3Iu5nMLysx57y nqXAsoRxfvdcfxa5W3LyuLGs- X-Yahoo-SMTP: ittiXmaswBDhscNhfQG6tb7_aoECVeenw6ekc88- Received: from cpe406c8f28047e-cm0019474754f2.cpe.net.cable.rogers.com (leo.r@99.231.50.212 with plain) by smtp101.rog.mail.bf1.yahoo.com with SMTP; 29 Nov 2012 17:29:03 -0800 PST Message-ID: <50B80BDF.1080200@rogers.com> Date: Thu, 29 Nov 2012 20:29:03 -0500 From: Leo User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: libssh2 development Subject: "Would block waiting for status message" error References: <81854DCF-90EA-4114-8436-00EBA7B50533@freaksw.com> In-Reply-To: <81854DCF-90EA-4114-8436-00EBA7B50533@freaksw.com> X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.15 Precedence: list Reply-To: libssh2 development List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Hi all, I'm getting this error when trying to send files to an SFTP site on Mac. Text (.txt) files are being sent with no problems. But PDF and ZIP files fail with this error: "Would block waiting for status message" I did an extensive search but couldn't find out what causes this problem and if there's any solution. Happens on both Mac OS X 10.7 and 10.8. Any help would be appreciated. Thanks, Leo _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel