From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 04:51:45 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o113pQgn006859;
	Mon, 1 Feb 2010 04:51:38 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o113pPVS006855
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 04:51:25 +0100
Received: (qmail 2262 invoked by uid 501); 1 Feb 2010 03:51:25 -0000
Message-ID: <20100201035125.2261.qmail@stuge.se>
Date: Mon, 1 Feb 2010 04:51:25 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Cross-compiling
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <20100129210503.9727.qmail@stuge.se>
	<87vdekzjux.fsf@mocca.josefsson.org>
	<20100129215250.17784.qmail@stuge.se>
	<20100129215752.18506.qmail@stuge.se>
	<20100129231203.31815.qmail@stuge.se>
	<87bpgcuioy.fsf@mocca.josefsson.org>
	<001501caa1bf$958f9180$c0aeb480$@com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <001501caa1bf$958f9180$c0aeb480$@com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Neil Gierman wrote:
> Of course this is all on 0.18. I still haven't had a chance to
> upgrade libssh2 and try out the SFTP transfer stuff.

I guess the 1.2.3 release will come soon.

It would be a great opportunity to test widely, since it is the first
release in a long time (0.18 last, right?) that handles larger blocks
correctly.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 05:24:16 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o114NsJV029491;
	Mon, 1 Feb 2010 05:23:58 +0100
Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com
	[71.74.56.124])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o114NqDV029444
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 05:23:52 +0100
X-Authority-Analysis: v=1.0 c=1 a=XKXomMF6H3tFGTSQsbcA:9
	a=VO4Oe3uokthGjBdO-rxhH6amdqkA:4
X-Cloudmark-Score: 0
X-Originating-IP: 70.116.71.237
Received: from [70.116.71.237] ([70.116.71.237:45649] helo=dc7100.roadrunn.com)
	by hrndva-oedge02.mail.rr.com (envelope-from <ngierman@roadrunn.com>)
	(ecelerity 2.2.2.39 r()) with ESMTP
	id 33/4F-09114-357566B4; Mon, 01 Feb 2010 04:23:47 +0000
Received: by dc7100.roadrunn.com (Postfix, from userid 501)
	id C597A830A2A; Sun, 31 Jan 2010 23:17:24 -0600 (CST)
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on dc7100.roadrunn.com
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00
	autolearn=ham version=3.2.4
Received: from ngierman3 (dc7100 [192.168.1.6])
	by dc7100.roadrunn.com (Postfix) with ESMTP id 2CD44830A17
	for <libssh2-devel@cool.haxx.se>; Sun, 31 Jan 2010 23:17:20 -0600 (CST)
From: "Neil Gierman" <ngierman@roadrunn.com>
To: "'libssh2 development'" <libssh2-devel@cool.haxx.se>
References: <20100129210503.9727.qmail@stuge.se>	<87vdekzjux.fsf@mocca.josefsson.org>	<20100129215250.17784.qmail@stuge.se>	<20100129215752.18506.qmail@stuge.se>	<20100129231203.31815.qmail@stuge.se>	<87bpgcuioy.fsf@mocca.josefsson.org>	<001501caa1bf$958f9180$c0aeb480$@com>
	<20100201035125.2261.qmail@stuge.se>
In-Reply-To: <20100201035125.2261.qmail@stuge.se>
Subject: RE: Cross-compiling
Date: Sun, 31 Jan 2010 22:23:41 -0600
Message-ID: <000001caa2f6$55998760$00cc9620$@com>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: Acqi+gkA/pEpEkLcTWK+F+/sj4HcMgABSg4Q
Content-Language: en-us
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

> I guess the 1.2.3 release will come soon.

Do we have date for 1.2.3? I don't mind testing a snapshot but I can't
include a snapshot in any of my releases.

> 
> It would be a great opportunity to test widely, since it is the first
> release in a long time (0.18 last, right?) that handles larger blocks
> correctly.
> 

Yes 0.18 was the last release that (for me at least) worked with my 64K
buffer size. I know I need to go down to 32500 max for the current fix but
I'm trying to wrap up a release right now. So I will start testing the
latest code as soon as I get this release off my back.

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 06:18:03 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o115Hqvk004223;
	Mon, 1 Feb 2010 06:18:01 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o115Hoao004193
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 06:17:50 +0100
Received: (qmail 14411 invoked by uid 501); 1 Feb 2010 05:17:51 -0000
Message-ID: <20100201051751.14410.qmail@stuge.se>
Date: Mon, 1 Feb 2010 06:17:51 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Cross-compiling
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <20100129210503.9727.qmail@stuge.se>
	<87vdekzjux.fsf@mocca.josefsson.org>
	<20100129215250.17784.qmail@stuge.se>
	<20100129215752.18506.qmail@stuge.se>
	<20100129231203.31815.qmail@stuge.se>
	<87bpgcuioy.fsf@mocca.josefsson.org>
	<001501caa1bf$958f9180$c0aeb480$@com>
	<20100201035125.2261.qmail@stuge.se>
	<000001caa2f6$55998760$00cc9620$@com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <000001caa2f6$55998760$00cc9620$@com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Neil Gierman wrote:
> > I guess the 1.2.3 release will come soon.
> 
> Do we have date for 1.2.3?

I think any day now would be good. Daniel - time to press the button?


> I don't mind testing a snapshot but I can't include a snapshot in
> any of my releases.

Nod.


> > It would be a great opportunity to test widely, since it is the first
> > release in a long time (0.18 last, right?) that handles larger blocks
> > correctly.
> 
> Yes 0.18 was the last release that (for me at least) worked with my 64K
> buffer size. I know I need to go down to 32500 max for the current fix
> but I'm trying to wrap up a release right now. So I will start testing
> the latest code as soon as I get this release off my back.

Please do!

You could also try to increase constants throughout the source code
and use even larger buffers, the code should handle it fine as long
as you leave some free room for overhead.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 11:50:56 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11AogTR003072;
	Mon, 1 Feb 2010 11:50:51 +0100
Received: from mx2.wallix.com (mx2.wallix.com [84.14.156.235])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11AofKa003034
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 11:50:41 +0100
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mx2.wallix.com (Postfix) with ESMTP id 0EFFB24500B7
	for <libssh2-devel@cool.haxx.se>; Mon,  1 Feb 2010 11:50:42 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at com.ifr.lan
Received: from mx2.wallix.com ([127.0.0.1])
	by localhost (com.ifr.lan [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id GB3AdZFq5rjR for <libssh2-devel@cool.haxx.se>;
	Mon,  1 Feb 2010 11:50:38 +0100 (CET)
Received: from zimbra.ifr.lan (zimbra.ifr.lan [10.10.1.211])
	by mx2.wallix.com (Postfix) with ESMTP id 40CDD24500B1
	for <libssh2-devel@cool.haxx.se>; Mon,  1 Feb 2010 11:50:38 +0100 (CET)
Received: from newaza (sbz.ifr.lan [10.10.4.3])
	by zimbra.ifr.lan (Postfix) with ESMTP id 21BFFA0001F
	for <libssh2-devel@cool.haxx.se>; Mon,  1 Feb 2010 11:50:38 +0100 (CET)
Date: Mon, 1 Feb 2010 11:51:18 +0100
From: Sofian Brabez <sofian.brabez@wallix.com>
To: libssh2-devel@cool.haxx.se
Subject: Transport hexdump output
Message-ID: <20100201105118.GA4944@newaza>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="opJtzjQTFsWo+cga"
Content-Disposition: inline
User-Agent: Mutt/1.5.20 (2009-06-14)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


--opJtzjQTFsWo+cga
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi folks,

Does it normal it appears a ':' character in transport hexdump ? During a
debugging session i get this:

=> libssh2_transport_write send() (84 bytes)
0000: E3 07 A2 9E 61 6D 21 C5:1A F5 3E 51 EA 32 20 83 : ....am!...>Q.2 .
0010: 69 97 47 1C 46 EF 88 FC:78 1E A6 DC 97 D1 E3 22 : i.G.F...x......"
0020: 92 66 C9 85 BF C1 F8 6A:C6 A4 03 B8 82 9E BF D9 : .f.....j........
0030: 26 3E DD 8A 44 4B D7 6A:3E EC BF 90 B9 7A 78 E0 : &>..DK.j>....zx.
0040: A9 0E 6C E8 65 88 75 BB:4C 69 89 E7 1A 0A 1C DF : ..l.e.u.Li......
0050: 18 F0 F3 15            :                        : ....

I think the ':' character added is not necessary. Does make any sense
for you guys to keep it ? Please accept the ridiculous patch in attachment
to fix the hexdump. After patch it output looks like this:

=> libssh2_transport_write send() (84 bytes)
0000: 78 CE C0 22 88 B7 EE 84 28 DB FD 11 7C 72 76 4A : x.."....(...|rvJ
0010: 2B 33 10 38 4A 29 A6 5C 91 89 34 C0 26 F5 91 34 : +3.8J).\..4.&..4
0020: 1B BC 4A 3E E3 6D FD 29 81 3A 5A EA 2F 77 10 EF : ..J>.m.).:Z./w..
0030: E9 00 6E B0 C7 38 C5 82 93 2D EA 89 44 9B FA 6A : ..n..8...-..D..j
0040: F7 FB 9A 08 24 A6 D4 54 1B 4B 71 2B 2C 2F 27 18 : ....$..T.Kq+,/'.
0050: 08 9C 68 3F                                     : ..h?

Regards

-- 
Sofian Brabez
Security R&D Engineer
Email: sbz@wallix.com
Website: www.wallix.com

--opJtzjQTFsWo+cga
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0001-Fix-extra-character-in-hexdump.patch"

From 8353d6678909ac2bc286e19b1b86c37d75b203c0 Mon Sep 17 00:00:00 2001
From: Sofian Brabez <sbz@wallix.com>
Date: Mon, 1 Feb 2010 11:40:11 +0100
Subject: [PATCH] Fix extra character : in hexdump

---
 src/transport.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/transport.c b/src/transport.c
index 1894485..4c3664c 100644
--- a/src/transport.c
+++ b/src/transport.c
@@ -90,7 +90,7 @@ debugdump(LIBSSH2_SESSION * session,
                 buffer[used++] = ' ';
             }
 
-            buffer[used++] = (c == (width/2)-1) ? ':' : ' ';
+            buffer[user++] = ' ';
         }
 
         buffer[used++] = ':';
-- 
1.6.3.3


--opJtzjQTFsWo+cga
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

--opJtzjQTFsWo+cga--

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 11:57:07 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11Av3RX005902;
	Mon, 1 Feb 2010 11:57:06 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11Av14t005805
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 11:57:01 +0100
Date: Mon, 1 Feb 2010 11:57:01 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Cross-compiling
In-Reply-To: <20100201051751.14410.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1002011155440.4408@tvnag.unkk.fr>
References: <20100129210503.9727.qmail@stuge.se>
	<87vdekzjux.fsf@mocca.josefsson.org>
	<20100129215250.17784.qmail@stuge.se>
	<20100129215752.18506.qmail@stuge.se>
	<20100129231203.31815.qmail@stuge.se>
	<87bpgcuioy.fsf@mocca.josefsson.org>
	<001501caa1bf$958f9180$c0aeb480$@com>
	<20100201035125.2261.qmail@stuge.se>
	<000001caa2f6$55998760$00cc9620$@com>
	<20100201051751.14410.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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Mon, 1 Feb 2010, Peter Stuge wrote:

>> Do we have date for 1.2.3?
>
> I think any day now would be good. Daniel - time to press the button?

Sure, I've been holding off since we've kept on working on the code.

I'll get it done, asap.

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 12:08:33 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11B8Rgv016456;
	Mon, 1 Feb 2010 12:08:30 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11B8Qjp016453
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 12:08:26 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	o11B8Ocn009548
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 12:08:26 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Transport hexdump output
References: <20100201105118.GA4944@newaza>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100201:libssh2-devel@cool.haxx.se::LcIO4oR8h7oBWzwh:6Rbt
Date: Mon, 01 Feb 2010 12:08:24 +0100
In-Reply-To: <20100201105118.GA4944@newaza> (Sofian Brabez's message of "Mon, 
	1 Feb 2010 11:51:18 +0100")
Message-ID: <87eil5nrh3.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_03_06,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Sofian Brabez <sofian.brabez@wallix.com> writes:

> Hi folks,
>
> Does it normal it appears a ':' character in transport hexdump ? During a
> debugging session i get this:
>
> => libssh2_transport_write send() (84 bytes)
> 0000: E3 07 A2 9E 61 6D 21 C5:1A F5 3E 51 EA 32 20 83 : ....am!...>Q.2 .
> 0010: 69 97 47 1C 46 EF 88 FC:78 1E A6 DC 97 D1 E3 22 : i.G.F...x......"
> 0020: 92 66 C9 85 BF C1 F8 6A:C6 A4 03 B8 82 9E BF D9 : .f.....j........
> 0030: 26 3E DD 8A 44 4B D7 6A:3E EC BF 90 B9 7A 78 E0 : &>..DK.j>....zx.
> 0040: A9 0E 6C E8 65 88 75 BB:4C 69 89 E7 1A 0A 1C DF : ..l.e.u.Li......
> 0050: 18 F0 F3 15            :                        : ....
>
> I think the ':' character added is not necessary. Does make any sense
> for you guys to keep it ? Please accept the ridiculous patch in attachment
> to fix the hexdump. After patch it output looks like this:
>
> => libssh2_transport_write send() (84 bytes)
> 0000: 78 CE C0 22 88 B7 EE 84 28 DB FD 11 7C 72 76 4A : x.."....(...|rvJ
> 0010: 2B 33 10 38 4A 29 A6 5C 91 89 34 C0 26 F5 91 34 : +3.8J).\..4.&..4
> 0020: 1B BC 4A 3E E3 6D FD 29 81 3A 5A EA 2F 77 10 EF : ..J>.m.).:Z./w..
> 0030: E9 00 6E B0 C7 38 C5 82 93 2D EA 89 44 9B FA 6A : ..n..8...-..D..j
> 0040: F7 FB 9A 08 24 A6 D4 54 1B 4B 71 2B 2C 2F 27 18 : ....$..T.Kq+,/'.
> 0050: 08 9C 68 3F                                     : ..h?

Would you accept having two spaces instead?  I find it annoying to not
be able to visually find the 8-octet delimiter quickly.  A colon or
something really helps.  With two spaces then it would look like:

> => libssh2_transport_write send() (84 bytes)
> 0000: 78 CE C0 22 88 B7 EE 84  28 DB FD 11 7C 72 76 4A : x.."....(...|rvJ
> 0010: 2B 33 10 38 4A 29 A6 5C  91 89 34 C0 26 F5 91 34 : +3.8J).\..4.&..4
> 0020: 1B BC 4A 3E E3 6D FD 29  81 3A 5A EA 2F 77 10 EF : ..J>.m.).:Z./w..
> 0030: E9 00 6E B0 C7 38 C5 82  93 2D EA 89 44 9B FA 6A : ..n..8...-..D..j
> 0040: F7 FB 9A 08 24 A6 D4 54  1B 4B 71 2B 2C 2F 27 18 : ....$..T.Kq+,/'.
> 0050: 08 9C 68 3F                                      : ..h?

I think this is the most readable and still helpful for those of us
still reading the hex output.

Btw, sometimes I've even used spaces to separate the 4-byte delimiter
since my brain can use some help even for that... then it becomes:

> => libssh2_transport_write send() (84 bytes)
> 0000: 78 CE C0 22  88 B7 EE 84  28 DB FD 11  7C 72 76 4A : x.."....(...|rvJ
> 0010: 2B 33 10 38  4A 29 A6 5C  91 89 34 C0  26 F5 91 34 : +3.8J).\..4.&..4
> 0020: 1B BC 4A 3E  E3 6D FD 29  81 3A 5A EA  2F 77 10 EF : ..J>.m.).:Z./w..
> 0030: E9 00 6E B0  C7 38 C5 82  93 2D EA 89  44 9B FA 6A : ..n..8...-..D..j
> 0040: F7 FB 9A 08  24 A6 D4 54  1B 4B 71 2B  2C 2F 27 18 : ....$..T.Kq+,/'.
> 0050: 08 9C 68 3F                                        : ..h?

I don't care strongly about this though.

/Simon
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 12:12:36 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11BCOXT017975;
	Mon, 1 Feb 2010 12:12:26 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11BCMfU017969
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 12:12:22 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	o11BCLlL009647
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 12:12:23 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Cross-compiling
References: <20100129210503.9727.qmail@stuge.se>
	<87vdekzjux.fsf@mocca.josefsson.org>
	<20100129215250.17784.qmail@stuge.se>
	<20100129215752.18506.qmail@stuge.se>
	<20100129231203.31815.qmail@stuge.se>
	<87bpgcuioy.fsf@mocca.josefsson.org>
	<001501caa1bf$958f9180$c0aeb480$@com>
	<20100201035125.2261.qmail@stuge.se>
	<000001caa2f6$55998760$00cc9620$@com>
	<20100201051751.14410.qmail@stuge.se>
	<alpine.DEB.2.00.1002011155440.4408@tvnag.unkk.fr>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100201:libssh2-devel@cool.haxx.se::GjzCmO3Ont5cHZC6:HBlB
Date: Mon, 01 Feb 2010 12:12:21 +0100
In-Reply-To: <alpine.DEB.2.00.1002011155440.4408@tvnag.unkk.fr> (Daniel
	Stenberg's message of "Mon, 1 Feb 2010 11:57:01 +0100 (CET)")
Message-ID: <87aavtnrai.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_03_06,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg <daniel@haxx.se> writes:

> On Mon, 1 Feb 2010, Peter Stuge wrote:
>
>>> Do we have date for 1.2.3?
>>
>> I think any day now would be good. Daniel - time to press the button?
>
> Sure, I've been holding off since we've kept on working on the code.
>
> I'll get it done, asap.

There are some build problems right now though, try 'make distcheck'.

/Simon
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 13:35:24 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11CZE9P010810;
	Mon, 1 Feb 2010 13:35:21 +0100
Received: from mx2.wallix.com (mx2.wallix.com [84.14.156.235])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11CZC8q010774
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 13:35:12 +0100
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mx2.wallix.com (Postfix) with ESMTP id A7F3324500B6
	for <libssh2-devel@cool.haxx.se>; Mon,  1 Feb 2010 13:35:13 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at com.ifr.lan
Received: from mx2.wallix.com ([127.0.0.1])
	by localhost (com.ifr.lan [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Q7t04Kdxwnpq for <libssh2-devel@cool.haxx.se>;
	Mon,  1 Feb 2010 13:35:10 +0100 (CET)
Received: from zimbra.ifr.lan (zimbra.ifr.lan [10.10.1.211])
	by mx2.wallix.com (Postfix) with ESMTP id 108C724500B7
	for <libssh2-devel@cool.haxx.se>; Mon,  1 Feb 2010 13:35:07 +0100 (CET)
Received: from newaza (sbz.ifr.lan [10.10.4.3])
	by zimbra.ifr.lan (Postfix) with ESMTP id 022D6A0001F
	for <libssh2-devel@cool.haxx.se>; Mon,  1 Feb 2010 13:35:07 +0100 (CET)
Date: Mon, 1 Feb 2010 13:35:47 +0100
From: Sofian Brabez <sofian.brabez@wallix.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Transport hexdump output
Message-ID: <20100201123547.GA12103@newaza>
References: <20100201105118.GA4944@newaza> <87eil5nrh3.fsf@mocca.josefsson.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <87eil5nrh3.fsf@mocca.josefsson.org>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Mon, Feb 01, 2010 at 12:08:24PM +0100, Simon Josefsson wrote:
> Would you accept having two spaces instead?  I find it annoying to not
> be able to visually find the 8-octet delimiter quickly.  A colon or
> something really helps.  With two spaces then it would look like:
> 
> > => libssh2_transport_write send() (84 bytes)
> > 0000: 78 CE C0 22 88 B7 EE 84  28 DB FD 11 7C 72 76 4A : x.."....(...|rvJ
> > 0010: 2B 33 10 38 4A 29 A6 5C  91 89 34 C0 26 F5 91 34 : +3.8J).\..4.&..4
> > 0020: 1B BC 4A 3E E3 6D FD 29  81 3A 5A EA 2F 77 10 EF : ..J>.m.).:Z./w..
> > 0030: E9 00 6E B0 C7 38 C5 82  93 2D EA 89 44 9B FA 6A : ..n..8...-..D..j
> > 0040: F7 FB 9A 08 24 A6 D4 54  1B 4B 71 2B 2C 2F 27 18 : ....$..T.Kq+,/'.
> > 0050: 08 9C 68 3F                                      : ..h?
> 
> I think this is the most readable and still helpful for those of us
> still reading the hex output.
>

I'm agree, two spaces instead is most readable to visually find the
8-octets delimiter.

Btw, the displayed format it's not really important, but it was
strange when i've seen the colon in middle of dump. That's why i asked you
about this.

Regards

-- 
Sofian Brabez
Security R&D Engineer
Email: sbz@wallix.com
Website: www.wallix.com
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 14:42:20 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11DgBJK017352;
	Mon, 1 Feb 2010 14:42:18 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11DgAYB017318
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 14:42:10 +0100
Date: Mon, 1 Feb 2010 14:42:10 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Cross-compiling
In-Reply-To: <87aavtnrai.fsf@mocca.josefsson.org>
Message-ID: <alpine.DEB.2.00.1002011441001.15648@tvnag.unkk.fr>
References: <20100129210503.9727.qmail@stuge.se>
	<87vdekzjux.fsf@mocca.josefsson.org>
	<20100129215250.17784.qmail@stuge.se>
	<20100129215752.18506.qmail@stuge.se>
	<20100129231203.31815.qmail@stuge.se>
	<87bpgcuioy.fsf@mocca.josefsson.org>
	<001501caa1bf$958f9180$c0aeb480$@com>
	<20100201035125.2261.qmail@stuge.se>
	<000001caa2f6$55998760$00cc9620$@com>
	<20100201051751.14410.qmail@stuge.se>
	<alpine.DEB.2.00.1002011155440.4408@tvnag.unkk.fr>
	<87aavtnrai.fsf@mocca.josefsson.org>
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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Mon, 1 Feb 2010, Simon Josefsson wrote:

> There are some build problems right now though, try 'make distcheck'.

Really? It just worked fine when I tried it here. What goes wrong in your end?

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 14:50:23 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11DnTBJ020549;
	Mon, 1 Feb 2010 14:49:32 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11DnR1A020545
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 14:49:28 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	o11DnQSb013781
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 14:49:28 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Cross-compiling
References: <20100129210503.9727.qmail@stuge.se>
	<87vdekzjux.fsf@mocca.josefsson.org>
	<20100129215250.17784.qmail@stuge.se>
	<20100129215752.18506.qmail@stuge.se>
	<20100129231203.31815.qmail@stuge.se>
	<87bpgcuioy.fsf@mocca.josefsson.org>
	<001501caa1bf$958f9180$c0aeb480$@com>
	<20100201035125.2261.qmail@stuge.se>
	<000001caa2f6$55998760$00cc9620$@com>
	<20100201051751.14410.qmail@stuge.se>
	<alpine.DEB.2.00.1002011155440.4408@tvnag.unkk.fr>
	<87aavtnrai.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1002011441001.15648@tvnag.unkk.fr>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100201:libssh2-devel@cool.haxx.se::08AZT/9CDkDg6THg:5ltd
Date: Mon, 01 Feb 2010 14:49:26 +0100
In-Reply-To: <alpine.DEB.2.00.1002011441001.15648@tvnag.unkk.fr> (Daniel
	Stenberg's message of "Mon, 1 Feb 2010 14:42:10 +0100 (CET)")
Message-ID: <87zl3tm5g9.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Spam-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_06_12, FB_WORD1_END_DOLLAR, RDNS_DYNAMIC,
	SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

RGFuaWVsIFN0ZW5iZXJnIDxkYW5pZWxAaGF4eC5zZT4gd3JpdGVzOgoKPiBPbiBNb24sIDEgRmVi
IDIwMTAsIFNpbW9uIEpvc2Vmc3NvbiB3cm90ZToKPgo+PiBUaGVyZSBhcmUgc29tZSBidWlsZCBw
cm9ibGVtcyByaWdodCBub3cgdGhvdWdoLCB0cnkgJ21ha2UgZGlzdGNoZWNrJy4KPgo+IFJlYWxs
eT8gSXQganVzdCB3b3JrZWQgZmluZSB3aGVuIEkgdHJpZWQgaXQgaGVyZS4gV2hhdCBnb2VzIHdy
b25nIGluIHlvdXIgZW5kPwoKSW50ZXJlc3RpbmcuICBJdCBmYWlsIHNpbmNlIHRoZSBleGFtcGxl
L2xpYnNzaDJfY29uZmlnLmggc3R1ZmYgd2FzCmFkZGVkLiAgUHJvYmxlbSBhcHBlYXJzIHRvIGJl
IGEgc3JjZGlyIT1vYmpkaXIgaXNzdWUuICBGcm9tIGEg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t
MS4yLjJfREVWL19idWlsZC9leGFtcGxlJwptYWtlWzFdOiAqKiogW2FsbC1yZWN1cnNpdmVdIEVy
cm9yIDEKbWFrZVsxXTogTGVhdmluZyBkaXJlY3RvcnkgYC9ob21lL2phcy9zcmMvbGlic3NoMi9s
aWJzc2gyLTEuMi4yX0RFVi9fYnVpbGQnCm1ha2U6ICoqKiBbZGlzdGNoZWNrXSBFcnJvciAxCmph
c0Btb2NjYTp+L3NyYy9saWJzc2gyIG1hc3RlciQgCgovU2ltb24KX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1kZXZlbCBodHRwOi8vY29vbC5o
YXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gyLWRldmVsCg==

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 15:01:15 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11E0aAw027347;
	Mon, 1 Feb 2010 15:00:40 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11E0ZxE027298
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 15:00:35 +0100
Date: Mon, 1 Feb 2010 15:00:35 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Cross-compiling
In-Reply-To: <87zl3tm5g9.fsf@mocca.josefsson.org>
Message-ID: <alpine.DEB.2.00.1002011452470.15648@tvnag.unkk.fr>
References: <20100129210503.9727.qmail@stuge.se>
	<87vdekzjux.fsf@mocca.josefsson.org>
	<20100129215250.17784.qmail@stuge.se>
	<20100129215752.18506.qmail@stuge.se>
	<20100129231203.31815.qmail@stuge.se>
	<87bpgcuioy.fsf@mocca.josefsson.org>
	<001501caa1bf$958f9180$c0aeb480$@com>
	<20100201035125.2261.qmail@stuge.se>
	<000001caa2f6$55998760$00cc9620$@com>
	<20100201051751.14410.qmail@stuge.se>
	<alpine.DEB.2.00.1002011155440.4408@tvnag.unkk.fr>
	<87aavtnrai.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1002011441001.15648@tvnag.unkk.fr>
	<87zl3tm5g9.fsf@mocca.josefsson.org>
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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Mon, 1 Feb 2010, Simon Josefsson wrote:

> Interesting.  It fail since the example/libssh2_config.h stuff was added. 
> Problem appears to be a srcdir!=objdir issue.  From a clean git checkout:

Ah, yes. When I do that series I too get the problem.

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 16:25:18 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11FP6PO023108;
	Mon, 1 Feb 2010 16:25:14 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o11FP43n022742
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 16:25:04 +0100
Received: (qmail 25989 invoked by uid 501); 1 Feb 2010 15:25:03 -0000
Message-ID: <20100201152503.25988.qmail@stuge.se>
Date: Mon, 1 Feb 2010 16:25:03 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Cross-compiling
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <20100129231203.31815.qmail@stuge.se>
	<87bpgcuioy.fsf@mocca.josefsson.org>
	<001501caa1bf$958f9180$c0aeb480$@com>
	<20100201035125.2261.qmail@stuge.se>
	<000001caa2f6$55998760$00cc9620$@com>
	<20100201051751.14410.qmail@stuge.se>
	<alpine.DEB.2.00.1002011155440.4408@tvnag.unkk.fr>
	<87aavtnrai.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1002011441001.15648@tvnag.unkk.fr>
	<87zl3tm5g9.fsf@mocca.josefsson.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <87zl3tm5g9.fsf@mocca.josefsson.org>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Simon Josefsson wrote:
> > What goes wrong in your end?
> 
> Interesting.  It fail since the example/libssh2_config.h stuff was
> added.

See what I did for direct_tcpip.c. It works fine, is simple, and
requires no _config.h.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 16:32:06 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11FW1HE027171;
	Mon, 1 Feb 2010 16:32:04 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11FVxCp027165
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 16:31:59 +0100
Date: Mon, 1 Feb 2010 16:31:59 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Cross-compiling
In-Reply-To: <20100201152503.25988.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1002011625450.15648@tvnag.unkk.fr>
References: <20100129231203.31815.qmail@stuge.se>
	<87bpgcuioy.fsf@mocca.josefsson.org>
	<001501caa1bf$958f9180$c0aeb480$@com>
	<20100201035125.2261.qmail@stuge.se>
	<000001caa2f6$55998760$00cc9620$@com>
	<20100201051751.14410.qmail@stuge.se>
	<alpine.DEB.2.00.1002011155440.4408@tvnag.unkk.fr>
	<87aavtnrai.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1002011441001.15648@tvnag.unkk.fr>
	<87zl3tm5g9.fsf@mocca.josefsson.org>
	<20100201152503.25988.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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Mon, 1 Feb 2010, Peter Stuge wrote:

> See what I did for direct_tcpip.c. It works fine, is simple, and requires no 
> _config.h.

But in all honestly it is also slightly less portable since it now assume s
every non-Windows machine will have all those headers and have the necessary 
defines in those headers...

To make the examples build properly everywhere (or not build at all on the 
systems that don't have what a particular example needs), I think we need to 
have a config.h file for them.

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 16:35:54 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11FZgwt028706;
	Mon, 1 Feb 2010 16:35:44 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o11FZfP8028699
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 16:35:41 +0100
Received: (qmail 28161 invoked by uid 501); 1 Feb 2010 15:35:42 -0000
Message-ID: <20100201153542.28160.qmail@stuge.se>
Date: Mon, 1 Feb 2010 16:35:42 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Transport hexdump output
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <20100201105118.GA4944@newaza> <87eil5nrh3.fsf@mocca.josefsson.org>
	<20100201123547.GA12103@newaza>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20100201123547.GA12103@newaza>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Sofian Brabez wrote:
> > Would you accept having two spaces instead?
> 
> I'm agree

Pushed now.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 16:45:55 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11Fjnpr005744;
	Mon, 1 Feb 2010 16:45:53 +0100
Received: from mx2.wallix.com (mx2.wallix.com [84.14.156.235])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11FjlLs005741
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 16:45:47 +0100
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mx2.wallix.com (Postfix) with ESMTP id B821D24500B9
	for <libssh2-devel@cool.haxx.se>; Mon,  1 Feb 2010 16:45:48 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at com.ifr.lan
Received: from mx2.wallix.com ([127.0.0.1])
	by localhost (com.ifr.lan [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id vSujIv+nLOvs for <libssh2-devel@cool.haxx.se>;
	Mon,  1 Feb 2010 16:45:45 +0100 (CET)
Received: from zimbra.ifr.lan (zimbra.ifr.lan [10.10.1.211])
	by mx2.wallix.com (Postfix) with ESMTP id EC0B024500B7
	for <libssh2-devel@cool.haxx.se>; Mon,  1 Feb 2010 16:45:41 +0100 (CET)
Received: from newaza (sbz.ifr.lan [10.10.4.3])
	by zimbra.ifr.lan (Postfix) with ESMTP id B99014C002
	for <libssh2-devel@cool.haxx.se>; Mon,  1 Feb 2010 16:45:41 +0100 (CET)
Date: Mon, 1 Feb 2010 16:46:22 +0100
From: Sofian Brabez <sofian.brabez@wallix.com>
To: libssh2-devel@cool.haxx.se
Subject: Re: Transport hexdump output
Message-ID: <20100201154622.GA32662@newaza>
References: <20100201105118.GA4944@newaza> <87eil5nrh3.fsf@mocca.josefsson.org>
	<20100201123547.GA12103@newaza>
	<20100201153542.28160.qmail@stuge.se>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20100201153542.28160.qmail@stuge.se>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Mon, Feb 01, 2010 at 04:35:42PM +0100, Peter Stuge wrote:
> Sofian Brabez wrote:
> > > Would you accept having two spaces instead?
> > 
> > I'm agree
> 
> Pushed now.
> 
> 
Thanks Peter.

Regards

-- 
Sofian Brabez
Security R&D Engineer
Email: sbz@wallix.com
Website: www.wallix.com
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 16:49:04 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11Fn0ob007713;
	Mon, 1 Feb 2010 16:49:01 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o11FmwS9007707
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 16:48:58 +0100
Received: (qmail 30541 invoked by uid 501); 1 Feb 2010 15:48:59 -0000
Message-ID: <20100201154859.30540.qmail@stuge.se>
Date: Mon, 1 Feb 2010 16:48:59 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Cross-compiling
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <001501caa1bf$958f9180$c0aeb480$@com>
	<20100201035125.2261.qmail@stuge.se>
	<000001caa2f6$55998760$00cc9620$@com>
	<20100201051751.14410.qmail@stuge.se>
	<alpine.DEB.2.00.1002011155440.4408@tvnag.unkk.fr>
	<87aavtnrai.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1002011441001.15648@tvnag.unkk.fr>
	<87zl3tm5g9.fsf@mocca.josefsson.org>
	<20100201152503.25988.qmail@stuge.se>
	<alpine.DEB.2.00.1002011625450.15648@tvnag.unkk.fr>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.00.1002011625450.15648@tvnag.unkk.fr>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg wrote:
> But in all honestly it is also slightly less portable

Is it a real problem? Neil's testing would help. :)


> I think we need to have a config.h file for them.

I have less desire for maximally portable examples. To me, their
purpose is to show how to use the library, so the source code is
much more important than running the actual programs.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 16:55:24 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11FtIKE010479;
	Mon, 1 Feb 2010 16:55:22 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11FtGlY010476
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 16:55:17 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	o11FtGMx017121
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 16:55:17 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2-devel@cool.haxx.se
Subject: Re: Cross-compiling
References: <001501caa1bf$958f9180$c0aeb480$@com>
	<20100201035125.2261.qmail@stuge.se>
	<000001caa2f6$55998760$00cc9620$@com>
	<20100201051751.14410.qmail@stuge.se>
	<alpine.DEB.2.00.1002011155440.4408@tvnag.unkk.fr>
	<87aavtnrai.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1002011441001.15648@tvnag.unkk.fr>
	<87zl3tm5g9.fsf@mocca.josefsson.org>
	<20100201152503.25988.qmail@stuge.se>
	<alpine.DEB.2.00.1002011625450.15648@tvnag.unkk.fr>
	<20100201154859.30540.qmail@stuge.se>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100201:libssh2-devel@cool.haxx.se::AxupH2sPakG8mNA2:0sjM
Date: Mon, 01 Feb 2010 16:55:16 +0100
In-Reply-To: <20100201154859.30540.qmail@stuge.se> (Peter Stuge's message of
	"Mon, 1 Feb 2010 16:48:59 +0100")
Message-ID: <87k4uxkl23.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Spam-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_06_12,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Peter Stuge <peter@stuge.se> writes:

>> I think we need to have a config.h file for them.
>
> I have less desire for maximally portable examples. To me, their
> purpose is to show how to use the library, so the source code is
> much more important than running the actual programs.

If we want them to be built during normal 'make', they need to be
portable...

I think using config.h for examples is fine, it helps to make the code
portable -- people adapting it for their own needs should be able to,
well, adapt the code for their own needs.

/Simon
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 16:55:32 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11FtMpG010501;
	Mon, 1 Feb 2010 16:55:23 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11FtLlE010490
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 16:55:21 +0100
Date: Mon, 1 Feb 2010 16:55:21 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Cross-compiling
In-Reply-To: <20100201154859.30540.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1002011651280.15648@tvnag.unkk.fr>
References: <001501caa1bf$958f9180$c0aeb480$@com>
	<20100201035125.2261.qmail@stuge.se>
	<000001caa2f6$55998760$00cc9620$@com>
	<20100201051751.14410.qmail@stuge.se>
	<alpine.DEB.2.00.1002011155440.4408@tvnag.unkk.fr>
	<87aavtnrai.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1002011441001.15648@tvnag.unkk.fr>
	<87zl3tm5g9.fsf@mocca.josefsson.org>
	<20100201152503.25988.qmail@stuge.se>
	<alpine.DEB.2.00.1002011625450.15648@tvnag.unkk.fr>
	<20100201154859.30540.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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Mon, 1 Feb 2010, Peter Stuge wrote:

>> But in all honestly it is also slightly less portable
>
> Is it a real problem? Neil's testing would help. :)

I'll admit I'm guessing, but after many years of writing portable C code on 
*nix systems I've learned that there's always someone somewhere that can show 
how naive portability assumptions break.

>> I think we need to have a config.h file for them.
>
> I have less desire for maximally portable examples. To me, their purpose is 
> to show how to use the library, so the source code is much more important 
> than running the actual programs.

Then I also take it that you vote for us moving out the building of the 
examples from the main 'make' action?

Ordinary mortals will take the spewing of build errors on the terminal as a 
signal that the build went wrong, even if the lib itself built fine and it was 
"only" the examples that failed to build.

I think we should still strive ay keeping the examples building, as much as 
possible. Even if that means using a config.h file.

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 18:00:11 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11GxxUD021147;
	Mon, 1 Feb 2010 18:00:07 +0100
Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com
	[71.74.56.124])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11Gxqph021117
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 17:59:53 +0100
X-Authority-Analysis: v=1.0 c=1 a=Btd2ALUo6sXSOo-iUWsA:9
	a=F9PQOQoV4Pt7M_QsQE0Fves0h5gA:4
X-Cloudmark-Score: 0
X-Originating-IP: 70.116.71.237
Received: from [70.116.71.237] ([70.116.71.237:46012] helo=dc7100.roadrunn.com)
	by hrndva-oedge02.mail.rr.com (envelope-from <ngierman@roadrunn.com>)
	(ecelerity 2.2.2.39 r()) with ESMTP
	id 63/6E-09114-488076B4; Mon, 01 Feb 2010 16:59:48 +0000
Received: by dc7100.roadrunn.com (Postfix, from userid 501)
	id 005F8830A2A; Mon,  1 Feb 2010 11:53:25 -0600 (CST)
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on dc7100.roadrunn.com
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00
	autolearn=ham version=3.2.4
Received: from ngierman3 (dc7100 [192.168.1.6])
	by dc7100.roadrunn.com (Postfix) with ESMTP id 31F63830A17
	for <libssh2-devel@cool.haxx.se>; Mon,  1 Feb 2010 11:53:22 -0600 (CST)
From: "Neil Gierman" <ngierman@roadrunn.com>
To: "'libssh2 development'" <libssh2-devel@cool.haxx.se>
References: <001501caa1bf$958f9180$c0aeb480$@com>	<20100201035125.2261.qmail@stuge.se>	<000001caa2f6$55998760$00cc9620$@com>	<20100201051751.14410.qmail@stuge.se>	<alpine.DEB.2.00.1002011155440.4408@tvnag.unkk.fr>	<87aavtnrai.fsf@mocca.josefsson.org>	<alpine.DEB.2.00.1002011441001.15648@tvnag.unkk.fr>	<87zl3tm5g9.fsf@mocca.josefsson.org>	<20100201152503.25988.qmail@stuge.se>	<alpine.DEB.2.00.1002011625450.15648@tvnag.unkk.fr>
	<20100201154859.30540.qmail@stuge.se>
In-Reply-To: <20100201154859.30540.qmail@stuge.se>
Subject: RE: Cross-compiling
Date: Mon, 1 Feb 2010 10:59:43 -0600
Message-ID: <000001caa35f$f3d3e010$db7ba030$@com>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AcqjXp40ax7b741LQii46blqfZD0OwAADEYg
Content-Language: en-us
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

> > But in all honestly it is also slightly less portable
> 
> Is it a real problem? Neil's testing would help. :)
> 
> 

I wanted to clear up one thing with my testing. When I listed the different
platforms that I compile for, that was meant that I compile my application
using the libssh2 library. I don't run any of the libssh2 provided tests
(although maybe I should one day). All I do is make sure that libssh2 still
compiles on my target platforms and then make sure that my client
application functions correctly using libssh2's functions.

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 20:53:56 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11JrfMm023114;
	Mon, 1 Feb 2010 20:53:52 +0100
Received: from mail.h1658242.stratoserver.net (h1658242.stratoserver.net
	[85.214.71.31])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11JrdeU023106
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 20:53:39 +0100
Received: by mail.h1658242.stratoserver.net (Postfix, from userid 1000)
	id EADA93FA4316; Mon,  1 Feb 2010 20:53:40 +0100 (CET)
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on
	h1658242.stratoserver.net
X-Spam-Level: 
X-Spam-Status: No, score=-3.5 required=7.0 tests=ALL_TRUSTED,AWL,BAYES_00
	autolearn=disabled version=3.2.4
Received: from [192.168.178.59] (e178088160.adsl.alicedsl.de [85.178.88.160])
	by mail.h1658242.stratoserver.net (Postfix) with ESMTPSA id
	5F6803FA42CA
	for <libssh2-devel@cool.haxx.se>; Mon,  1 Feb 2010 20:53:40 +0100 (CET)
Message-ID: <4B673143.8080104@felixschulze.de>
Date: Mon, 01 Feb 2010 20:53:39 +0100
From: Felix Schulze <code@felixschulze.de>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
	rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: Building for iPhoneSimulator fails (ld: absolute addressing not
	allowed in slidable image)
X-Enigmail-Version: 1.0.1
OpenPGP: id=8B1F611D;
	url=http://www.felixschulze.de/0x8B1F611D.asc
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hello,

i want build libssh2 for the iPhone Simulator.
My Environment:

export DEVROOT=/Developer/Platforms/iPhoneSimulator.platform/Developer
export SDKROOT=$DEVROOT/SDKs/iPhoneSimulator3.1.2.sdk
export CC=$DEVROOT/usr/bin/gcc-4.2
export LD=$DEVROOT/usr/bin/ld
export CPP=$DEVROOT/usr/bin/cpp-4.2
export CXX=$DEVROOT/usr/bin/g++-4.2
export AR=$DEVROOT/usr/bin/ar
export AS=$DEVROOT/usr/bin/as
export NM=$DEVROOT/usr/bin/nm
export CXXCPP=$DEVROOT/usr/bin/cpp-4.2
export RANLIB=$DEVROOT/usr/bin/ranlib
export LDFLAGS="-arch i386 -pipe -no-cpp-precomp -isysroot $SDKROOT"
export CFLAGS="-arch i386 -pipe -no-cpp-precomp -isysroot $SDKROOT"
export CXXFLAGS="-arch i386 -pipe -no-cpp-precomp -isysroot $SDKROOT"

I have builded
gnupg 1.4.10 with: ./configure --prefix=/<path>/iphone-sim
libgpg-error-1.7: ./configure --prefix=/<path>/iphone-sim --enable-shared=no
libcrypt 1.7 with: ./configure --prefix=/<path>/iphone-sim
- --enable-shared=no --with-gpg-error-prefix=/<path>/iphone-sim

and tried to build libssh2-1.2.2 with: ./configure
- --prefix=/<path>/iphone-sim --with-libgcrypt-prefix=/<path>/iphone-sim

But the build fails with:

ld: absolute addressing (perhaps -mdynamic-no-pic) used in
__gcry_mpih_add_n from
/<path>/iphone-sim/lib/libgcrypt.a(mpih-add1-asm.o) not allowed in
slidable image. Use '-read_only_relocs suppress' to enable text relocs
collect2: ld returned 1 exit status
make[2]: *** [libssh2.la] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

Any Ideas whats happen?

Greetings Felix
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iQIcBAEBCAAGBQJLZzFDAAoJEBtICPKLH2EdNVMP+wQdBphh8iGUYADVNSnlz9Pj
jslo6+RtNnr+JWGJxtcm3nAOcbYTuRbyQF+UsYd3ddhqac+sVbydh/82f8/dN9PH
2GhOPAO8gpJDZhDpihpXgb2F+YMftpA8zRQU/hy4Bmxm5zNUkYoQbrSAR20zJYDm
1jHRUizmocFuTkmpJRhc78I5sNUa1z+MogjyByCwLI2IO05cJEiioD9GoYq/hcIU
m5rGsi2eYFCJBIPGzAapXCnQDeQElBQt8okA9fb0b4XK2564ehUVtVwzdjezpUqA
WRj8CiQB5hTjmY8BqX/h1jmOkp7p1wg51Uw48yCzFKNgggHBEN5hwypagBeGZxhO
E8+EqQM7ouf675w5Ugc7d8tEov1ShFKGbQhGfJW5RO7sK+BJIcwcNDZSfQqtlf7A
+Jj+h0yIUxIaWjE8PV/mTCbNV3R0h41GbqnZVP0fxVu7BfkF74lFrgRYXskHwXt2
ZpCBiWwKuM4DtEyO1kp05EvnO8rXzAvOMqnstSe03uHcVQD8pW6g9USbGRanePgN
RJ5givEoz8zEoT1+ClHSjZV61A2FPaqLu+nCt4pqvA18qKjHaXRf9dc1BSW2mWKz
qYc4Z1pdd7JPhkctXmAAIuWqXj+jYeDDEDs3RxIJC+nrjfCrHK08PJE3/2YQKHCd
E+8HOEoMEapBBfNdnpN2
=a/ll
-----END PGP SIGNATURE-----
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb  1 23:27:00 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11MQoue002140;
	Mon, 1 Feb 2010 23:26:56 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o11MQnGV002133
	for <libssh2-devel@cool.haxx.se>; Mon, 1 Feb 2010 23:26:49 +0100
Date: Mon, 1 Feb 2010 23:26:49 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Building for iPhoneSimulator fails (ld: absolute addressing not
	allowed in slidable image)
In-Reply-To: <4B673143.8080104@felixschulze.de>
Message-ID: <alpine.DEB.2.00.1002012323100.11263@tvnag.unkk.fr>
References: <4B673143.8080104@felixschulze.de>
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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Mon, 1 Feb 2010, Felix Schulze wrote:

> But the build fails with:
>
> ld: absolute addressing (perhaps -mdynamic-no-pic) used in
> __gcry_mpih_add_n from
> /<path>/iphone-sim/lib/libgcrypt.a(mpih-add1-asm.o) not allowed in
> slidable image. Use '-read_only_relocs suppress' to enable text relocs
> collect2: ld returned 1 exit status

Sounds like gcrypt issue to me.

It seems lots of other Mac OSX users have experienced this problem in other 
projects, like these:

  http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-January/060574.html
  http://lists.macosforge.org/pipermail/macports-users/2009-May/015332.html
  http://www.mail-archive.com/fink-users@lists.sourceforge.net/msg31571.html

In some cases, it seems to have been because of some kind of conflict with 
existing installed stuff in /usr/local.

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Tue Feb  2 15:48:50 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o12EmaZC022028;
	Tue, 2 Feb 2010 15:48:43 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o12EmYW1022023
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 2 Feb 2010 15:48:35 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	o12EmWd8019344
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 2 Feb 2010 15:48:34 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Building for iPhoneSimulator fails (ld: absolute addressing not
	allowed in slidable image)
References: <4B673143.8080104@felixschulze.de>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100202:libssh2-devel@cool.haxx.se::PniXcae88iFI5/L5:9T2I
Date: Tue, 02 Feb 2010 15:48:32 +0100
In-Reply-To: <4B673143.8080104@felixschulze.de> (Felix Schulze's message of
	"Mon, 01 Feb 2010 20:53:39 +0100")
Message-ID: <871vh3k81r.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Spam-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_24_48,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Felix Schulze <code@felixschulze.de> writes:

> ld: absolute addressing (perhaps -mdynamic-no-pic) used in
> __gcry_mpih_add_n from
> /<path>/iphone-sim/lib/libgcrypt.a(mpih-add1-asm.o) not allowed in
> slidable image. Use '-read_only_relocs suppress' to enable text relocs

This looks like a build problem with the libgcrypt assembler code.  Just
build libgcrypt with --disable-asm and it will build a C implementation
instead, which typically is more portable.

/Simon
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb  3 12:35:44 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o13BZQgC028929;
	Wed, 3 Feb 2010 12:35:36 +0100
Received: from web24406.mail.ird.yahoo.com (web24406.mail.ird.yahoo.com
	[87.248.114.218])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o13BZP0t028925
	for <libssh2-devel@cool.haxx.se>; Wed, 3 Feb 2010 12:35:25 +0100
Received: (qmail 19123 invoked by uid 60001); 3 Feb 2010 11:35:21 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024;
	t=1265196920; bh=k/MmVwwFANgFekvVpAm+EjR1+NjZXoE144/zKnww1kY=;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=fFnRYvWSHlYIbxvhueLm/hsUg3txnPcbi1q3vcOgB7i+9mwr/uYxqUvI6fN2Il3+HoVJs6tuAnaPHR/+RZ011GnUs9SWt5I/GDaEQayWZEtCd4oBeX18hnyv3f3vA+7bWAv1w1c2J2aS6lOdAp/b2ezRpYl5ydMm+z2YT6ISYvY=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=3/W8I+eWNYkl3wkOcz14Ni2UjmX25elxdFm3S5dnoErVHPNf76vIrN7R3vOXaWBO9koZzFkbHLX+De5pyspCGdO1tatWstdrhPoNHIY8gQE5FNsrelxhqXCgyJCsg2oDDHNi/sefgyCfjqmfl2ubtGVCYwRPRCZ/6besOEEJoY0=;
Message-ID: <941869.18706.qm@web24406.mail.ird.yahoo.com>
X-YMail-OSG: bjhv8k4VM1nVVKLz.bRAXj0JwvxHT0DV7MMy5l8A0IdGidGPE2oOUZJ7YLx2Fu617rWIFAmJWEJBT7efrmZQgQIlseM78NC1.Y3QKmEEIh.b2hhiFO8GrQJIdhoPVD4kSmRtsAjOh2z9y3FNHkVnHlWct1rAjnvrv29Skp.XI25uVDa3vV27XNMRosxGdFX37lS9KObwQCoP5jd0N53W.lSOkcixCNlKvTQM7TWmHhIHgcZ7n6Es0EZoLp6bLgTFgLcyIVyUoEsm2A--
Received: from [193.251.74.9] by web24406.mail.ird.yahoo.com via HTTP;
	Wed, 03 Feb 2010 11:35:20 GMT
X-Mailer: YahooMailClassic/9.1.10 YahooMailWebService/0.8.100.260964
Date: Wed, 3 Feb 2010 11:35:20 +0000 (GMT)
From: sebastien isquierdo <quiseb@yahoo.fr>
Subject: libssh2 and Port forwarding
To: libssh2-devel@cool.haxx.se
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hello,

I'd like to make port forwarding with libssh2 but i can't find how. 
I modified ssh2.c to make this. I saw connection and port forwarding informations on my SSH server which meant i was correctly connected and remote port correctly forwarded.
But when i tried libssh2_channel_forward, this function never returns.

I suppose i made mistakes...
Is there somewhere i can find examples or documentation about using libssh2 and port forwarding?

Thanks for your help...



      
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb  3 12:41:46 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o13BffdT000493;
	Wed, 3 Feb 2010 12:41:44 +0100
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o13BfdcP000424
	for <libssh2-devel@cool.haxx.se>; Wed, 3 Feb 2010 12:41:40 +0100
Received: from int-mx02.intmail.prod.int.phx2.redhat.com
	(int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o13Bfdov027331
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Wed, 3 Feb 2010 06:41:39 -0500
Received: from vpn1-5-132.ams2.redhat.com (vpn1-5-132.ams2.redhat.com
	[10.36.5.132])
	by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id o13Bfca8015511; Wed, 3 Feb 2010 06:41:39 -0500
From: Kamil Dudka <kdudka@redhat.com>
To: sebastien isquierdo <quiseb@yahoo.fr>
Subject: Re: libssh2 and Port forwarding
Date: Wed, 3 Feb 2010 12:41:22 +0100
User-Agent: KMail/1.9.10
References: <941869.18706.qm@web24406.mail.ird.yahoo.com>
In-Reply-To: <941869.18706.qm@web24406.mail.ird.yahoo.com>
MIME-Version: 1.0
Content-Disposition: inline
Message-Id: <201002031241.23094.kdudka@redhat.com>
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Wednesday 03 of February 2010 12:35:20 sebastien isquierdo wrote:
> Is there somewhere i can find examples or documentation about using libssh2
> and port forwarding?

Have you looked at example/direct_tcpip.c ?

Kamil
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb  3 19:38:17 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o13Ic3LB024802;
	Wed, 3 Feb 2010 19:38:13 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o13Ic2aJ024784
	for <libssh2-devel@cool.haxx.se>; Wed, 3 Feb 2010 19:38:02 +0100
Date: Wed, 3 Feb 2010 19:38:02 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: ANNOUNCE: libssh2 1.2.3
Message-ID: <alpine.DEB.2.00.1002031930450.11134@tvnag.unkk.fr>
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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi friends!

I'm happy to announce that we once again managed to put together a release:

 	libssh2 1.2.3

You can as usual find it at http://www.libssh2.org/

This release includes the following changes:

  o ssh-agent support with the new libssh2_agent_* functions
  o Added libssh2_trace_sethandler()
  o Added the direct_tcpip.c and ssh2_agent.c examples

This release includes the following bugfixes:

  o Fixed memory leak in userauth_publickey
  o Fixed publickey authentication regression
  o Silenced several compiler warnings
  o avoid returning data to memory already freed
  o transport layer fix for bogus -39 (LIBSSH2_ERROR_BAD_USE) errors
  o Fixed padding in ssh-dss signature blob encoding
  o Fixed direction blocking flag problems
  o Fixed memory leak in sftp_fstat()

This release would not have looked like this without help, code, reports and
advice from friends like these:

  Simon Josefsson, Peter Stuge, Daiki Ueno, Dave McCaldon,
  Alexander Lamaison

         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 Feb  3 21:21:41 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o13KLSk7011841;
	Wed, 3 Feb 2010 21:21:35 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o13KLPl4011786
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 3 Feb 2010 21:21:26 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	o13KLPmQ032432
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 3 Feb 2010 21:21:26 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: ANNOUNCE: libssh2 1.2.3
References: <alpine.DEB.2.00.1002031930450.11134@tvnag.unkk.fr>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100203:libssh2-devel@cool.haxx.se::npwsIJOLP2CUKNnj:Otwu
Date: Wed, 03 Feb 2010 21:21:25 +0100
In-Reply-To: <alpine.DEB.2.00.1002031930450.11134@tvnag.unkk.fr> (Daniel
	Stenberg's message of "Wed, 3 Feb 2010 19:38:02 +0100 (CET)")
Message-ID: <87ock66pfe.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Spam-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_48_96,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg <daniel@haxx.se> writes:

> Hi friends!
>
> I'm happy to announce that we once again managed to put together a release:
>
> 	libssh2 1.2.3

Great!  As always, my Windows build is available from:

http://josefsson.org/gnutls4win/

Direct links:

http://josefsson.org/gnutls4win/libssh2-1.2.3.zip
http://josefsson.org/gnutls4win/libssh2-1.2.3.zip.sig
http://josefsson.org/gnutls4win/mingw32-libssh2_1.2.3-1_all.deb

FWIW, it built fine and no patches were necessary, yay!

/Simon
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb  5 02:04:36 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1514I1N012045;
	Fri, 5 Feb 2010 02:04:29 +0100
Received: from mail-qy0-f192.google.com (mail-qy0-f192.google.com
	[209.85.221.192])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1514Grx011881
	for <libssh2-devel@cool.haxx.se>; Fri, 5 Feb 2010 02:04:17 +0100
Received: by qyk30 with SMTP id 30so1535104qyk.32
	for <libssh2-devel@cool.haxx.se>; Thu, 04 Feb 2010 17:04:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:date:message-id:subject
	:from:to:content-type;
	bh=287smVpJTXE3L5numlb2JP+TnHaqRB5IYd4bkluuSDQ=;
	b=N8Fgbi+ruiK30TSvodqthgt+S0y2N+F+K4Gm4eqcoI4BllrVyXg7nBILqJl/Cri3bI
	sA6ZlYerhnCblI6JPfYXz13XuSiPdM2lwLev3hooU8QjVQls8z1/vU7lUSzYzLomKlQk
	5Gzp0NSftr8+DpR5att9Ajlxk0tCAjKYV9rX4=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	b=d4LsOduwzFpkwlhumCICajd0t8K5eukPAiRV1x8+LEh/7Aq3cQhL1RaYGfC82GFNx8
	jhUyhLOrzR0Hut3mbPyJrJxzKXdFSJslJoAnWLwipc1AYiTv6e8D3tKvwwDUh/UJJpny
	0u5+QWCOFUCzt+HDaKXjvzXgO2aRV4PX/JcUE=
MIME-Version: 1.0
Received: by 10.229.214.196 with SMTP id hb4mr1002506qcb.72.1265331853118; 
	Thu, 04 Feb 2010 17:04:13 -0800 (PST)
Date: Thu, 4 Feb 2010 17:04:13 -0800
Message-ID: <603122d71002041704k23659d46kcb66c31c0e0d5794@mail.gmail.com>
Subject: ssh tunneling
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1283441713=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1283441713==
Content-Type: multipart/alternative; boundary=0016361e8356a0ccd5047ed00779

--0016361e8356a0ccd5047ed00779
Content-Type: text/plain; charset=ISO-8859-1

Hello!

I'd like to know if ssh tunneling is possible with the library. Basically,
I'm trying to access a host on a LAN that has no external IP on the
Internet. I have another host on the LAN that does have an external IP, to
be precise the external IP is being routed to this host on the LAN, and of
course both hosts have ssh service setup on port 22. I also have read that
putty is capable of tunneling too.

Thank you!

--0016361e8356a0ccd5047ed00779
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello!<br><br>I&#39;d like to know if ssh tunneling is possible with the li=
brary. Basically, I&#39;m trying to access a host on a LAN that has no exte=
rnal IP on the Internet. I have another host on the LAN that does have an e=
xternal IP, to be precise the external IP is being routed to this host on t=
he LAN, and of course both hosts have ssh service setup on port 22. I also =
have read that putty is capable of tunneling too.<br>
<br>Thank you!<br>

--0016361e8356a0ccd5047ed00779--

--===============1283441713==
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

--===============1283441713==--

From libssh2-devel-bounces@cool.haxx.se  Fri Feb  5 18:11:32 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o15HBF64005100;
	Fri, 5 Feb 2010 18:11:24 +0100
Received: from mail.intersystems.com (mail.intersys.COM [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o15HBEAE005072
	for <libssh2-devel@cool.haxx.se>; Fri, 5 Feb 2010 18:11:14 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
From: Dave McCaldon <davem@intersystems.com>
Content-Type: multipart/mixed; boundary=Apple-Mail-51--680139605
Subject: [PATCH] Resolve compile issues on Solaris x64 and UltraSPARC
Date: Fri, 5 Feb 2010 12:11:09 -0500
Message-Id: <FCA44680-03A3-49DD-A3D7-BB44F371527D@intersystems.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Mime-Version: 1.0 (Apple Message framework v1077)
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


--Apple-Mail-51--680139605
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Solaris builds of libssh2-1.2.3 failed on both x64 and UltraSPARC =
platforms because of two problems:

     1) src/agent.c:145  sun is a reserved word when using the SUNWspro =
compiler
     2) example/direct_tcpip.c:84  INADDR_NONE is not defined

This patch resolves both of these issues.

I have successfully built libssh-1.2.3 with this patch on the following =
platforms:

	Mac OS x64
	Linux 32-bit (RedHat)
	Linux 64-bit (RedHat)
	Linux Itanium (SuSE)
	HP/UX (PA-RISC and Itanium)
	AIX 5.3 (32-bit and 64-bit)
	Solaris x64 and UltraSPARC
	Windows x86
	Windows x64
	HP Tru64 5.1B (Alpha)

Thanks.



--Apple-Mail-51--680139605
Content-Disposition: attachment;
	filename=0001-Resolve-compile-issues-on-Solaris-x64-and-UltraSPARC.patch
Content-Type: application/octet-stream;
	name="0001-Resolve-compile-issues-on-Solaris-x64-and-UltraSPARC.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=2096431e0e23722548d43c24eb7b3407fe0293c31f=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Dave=20McCaldon=20<davem@intersys.com>=0ADate:=20=
Fri,=205=20Feb=202010=2011:22:24=20-0500=0ASubject:=20[PATCH]=20Resolve=20=
compile=20issues=20on=20Solaris=20x64=20and=20UltraSPARC=0A=20Solaris=20=
builds=20of=20libssh2-1.2.3=20failed=20on=20both=20x64=20and=20=
UltraSPARC=20platforms=20because=20of=20two=20problems:=0A=20=20=20=20=20=
1)=20src/agent.c:145=20=20sun=20is=20a=20reserved=20word=20when=20using=20=
the=20SUNWspro=20compiler=0A=20=20=20=20=202)=20=
example/direct_tcpip.c:84=20=20INADDR_NONE=20is=20not=20defined=0A=20=
This=20patch=20resolves=20both=20of=20these=20issues.=0A=0A---=0A=20=
example/direct_tcpip.c=20|=20=20=20=204=20++++=0A=20src/agent.c=20=20=20=20=
=20=20=20=20=20=20=20=20|=20=20=20=208=20++++----=0A=202=20files=20=
changed,=208=20insertions(+),=204=20deletions(-)=0A=0Adiff=20--git=20=
a/example/direct_tcpip.c=20b/example/direct_tcpip.c=0Aindex=20=
06976ab..0e41f11=20100644=0A---=20a/example/direct_tcpip.c=0A+++=20=
b/example/direct_tcpip.c=0A@@=20-18,6=20+18,10=20@@=0A=20#include=20=
<unistd.h>=0A=20#include=20<sys/types.h>=0A=20=0A+#ifndef=20INADDR_NONE=0A=
+#define=20INADDR_NONE=20(in_addr_t)-1=0A+#endif=0A+=0A=20const=20char=20=
*keyfile1=20=3D=20"/home/username/.ssh/id_rsa.pub";=0A=20const=20char=20=
*keyfile2=20=3D=20"/home/username/.ssh/id_rsa";=0A=20const=20char=20=
*username=20=3D=20"username";=0Adiff=20--git=20a/src/agent.c=20=
b/src/agent.c=0Aindex=209ff4ebb..4286d9b=20100644=0A---=20a/src/agent.c=0A=
+++=20b/src/agent.c=0A@@=20-142,7=20+142,7=20@@=20static=20int=0A=20=
agent_connect_unix(LIBSSH2_AGENT=20*agent)=0A=20{=0A=20=20=20=20=20const=20=
char=20*path;=0A-=20=20=20=20struct=20sockaddr_un=20sun;=0A+=20=20=20=20=
struct=20sockaddr_un=20s_un;=0A=20=0A=20=20=20=20=20path=20=3D=20=
getenv("SSH_AUTH_SOCK");=0A=20=20=20=20=20if=20(!path)=20{=0A@@=20-154,9=20=
+154,9=20@@=20agent_connect_unix(LIBSSH2_AGENT=20*agent)=0A=20=20=20=20=20=
=20=20=20=20return=20-1;=0A=20=20=20=20=20}=0A=20=0A-=20=20=20=20=
sun.sun_family=20=3D=20AF_UNIX;=0A-=20=20=20=20strncpy=20(sun.sun_path,=20=
path,=20sizeof=20sun.sun_path);=0A-=20=20=20=20if=20(connect(agent->fd,=20=
(struct=20sockaddr*)(&sun),=20sizeof=20sun)=20!=3D=200)=20{=0A+=20=20=20=20=
s_un.sun_family=20=3D=20AF_UNIX;=0A+=20=20=20=20strncpy=20=
(s_un.sun_path,=20path,=20sizeof=20s_un.sun_path);=0A+=20=20=20=20if=20=
(connect(agent->fd,=20(struct=20sockaddr*)(&s_un),=20sizeof=20s_un)=20!=3D=
=200)=20{=0A=20=20=20=20=20=20=20=20=20close=20(agent->fd);=0A=20=20=20=20=
=20=20=20=20=20return=20-1;=0A=20=20=20=20=20}=0A--=20=0A1.6.4.4=0A=0A=

--Apple-Mail-51--680139605
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

--Apple-Mail-51--680139605--

From libssh2-devel-bounces@cool.haxx.se  Fri Feb  5 22:04:36 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o15L4PoZ006359;
	Fri, 5 Feb 2010 22:04:31 +0100
Received: from mail.intersystems.com (mail.intersys.COM [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o15L4L5n006112
	for <libssh2-devel@cool.haxx.se>; Fri, 5 Feb 2010 22:04:21 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
From: Dave McCaldon <davem@intersystems.com>
Subject: [PATCH] Fix Tru64 socklen_t compile issue with direct_tcpip.c
Date: Fri, 5 Feb 2010 16:04:16 -0500
Message-Id: <839F1E0E-F6F3-4971-896F-285E0E8FB99F@intersystems.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Mime-Version: 1.0 (Apple Message framework v1077)
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1951094660=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


--===============1951094660==
Content-Type: multipart/alternative; boundary=Apple-Mail-63--666151911


--Apple-Mail-63--666151911
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

I spoke too soon -- my test build of libssh2-1.2.3 (with my previous =
patch) in fact failed in direct_tcpip.c on Tru64 (DECunix) with:

cxx -DHAVE_CONFIG_H   -I../include -I../example =
-I/home/davem/work/openssl-0.9.8g/include -DLIBSSH2DEBUG  -g -c =
direct_tcpip.c
cc: Error: direct_tcpip.c, line 48: In this declaration, "socklen_t" =
must specify a type. (badparsedecl)
    socklen_t sinlen;
----^
cc: Error: direct_tcpip.c, line 166: In this statement, "sinlen" is not =
declared. (undeclared)
    sinlen=3Dsizeof(sin);
----^


Looking into this, in /usr/include/sys/socket.h, Tru64 only defines =
socklen_t under the following conditions:

/*
 * This data type is needed for both UNIX98 and POSIX support.
 */
#if (defined (_XOPEN_SOURCE) && (_XOPEN_SOURCE>=3D500)) || \
    defined(_POSIX_PII_SOCKET) || defined(__VMS)
typedef unsigned long	socklen_t;	/* 64-bits */
#endif

It's not as simple as just adding a typedef for socklen_t as other =
socket functions (such as accept()) are defined as taking an int for =
socklen_t if  _POSIX_PII_SOCKET is not defined.

Since socklen_t is the more portable approach, I felt it best to =
properly fix this for Tru64 and thus I have updated configure.ac to add =
-D_POSIX_PII_SOCKET to CFLAGS for Tru64 (DECunix) platform(s).

Thanks.




--Apple-Mail-63--666151911
Content-Type: multipart/mixed;
	boundary=Apple-Mail-64--666151911


--Apple-Mail-64--666151911
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><div><div>I spoke too soon -- my test build of libssh2-1.2.3 (with my =
previous patch) in fact failed in direct_tcpip.c on&nbsp;Tru64 =
(DECunix)&nbsp;with:</div></div><div><br></div><div><div><font =
class=3D"Apple-style-span" face=3D"Courier" size=3D"3"><span =
class=3D"Apple-style-span" style=3D"font-size: 12px; ">cxx =
-DHAVE_CONFIG_H &nbsp; -I../include -I../example =
-I/home/davem/work/openssl-0.9.8g/include -DLIBSSH2DEBUG &nbsp;-g -c =
direct_tcpip.c</span></font></div><div><font class=3D"Apple-style-span" =
face=3D"Courier" size=3D"3"><span class=3D"Apple-style-span" =
style=3D"font-size: 12px;">cc: Error: direct_tcpip.c, line 48: In this =
declaration, "socklen_t" must specify a type. =
(badparsedecl)</span></font></div><div><font class=3D"Apple-style-span" =
face=3D"Courier" size=3D"3"><span class=3D"Apple-style-span" =
style=3D"font-size: 12px;">&nbsp;&nbsp; &nbsp;socklen_t =
sinlen;</span></font></div><div><font class=3D"Apple-style-span" =
face=3D"Courier" size=3D"3"><span class=3D"Apple-style-span" =
style=3D"font-size: 12px;">----^</span></font></div><div><font =
class=3D"Apple-style-span" face=3D"Courier" size=3D"3"><span =
class=3D"Apple-style-span" style=3D"font-size: 12px;">cc: Error: =
direct_tcpip.c, line 166: In this statement, "sinlen" is not declared. =
(undeclared)</span></font></div><div><font class=3D"Apple-style-span" =
face=3D"Courier" size=3D"3"><span class=3D"Apple-style-span" =
style=3D"font-size: 12px;">&nbsp;&nbsp; =
&nbsp;sinlen=3Dsizeof(sin);</span></font></div><div><font =
class=3D"Apple-style-span" face=3D"Courier" size=3D"3"><span =
class=3D"Apple-style-span" style=3D"font-size: =
12px;">----^</span></font></div><div><br></div><div><br></div><div>Looking=
 into this, in /usr/include/sys/socket.h, Tru64 only defines socklen_t =
under the following conditions:</div><div><br></div><div><div><font =
class=3D"Apple-style-span" face=3D"Courier" size=3D"3"><span =
class=3D"Apple-style-span" style=3D"font-size: =
12px;">/*</span></font></div><div><font class=3D"Apple-style-span" =
face=3D"Courier" size=3D"3"><span class=3D"Apple-style-span" =
style=3D"font-size: 12px;">&nbsp;* This data type is needed for both =
UNIX98 and POSIX support.</span></font></div><div><font =
class=3D"Apple-style-span" face=3D"Courier" size=3D"3"><span =
class=3D"Apple-style-span" style=3D"font-size: =
12px;">&nbsp;*/</span></font></div><div><font class=3D"Apple-style-span" =
face=3D"Courier" size=3D"3"><span class=3D"Apple-style-span" =
style=3D"font-size: 12px;">#if (defined (_XOPEN_SOURCE) &amp;&amp; =
(_XOPEN_SOURCE&gt;=3D500)) || \</span></font></div><div><font =
class=3D"Apple-style-span" face=3D"Courier" size=3D"3"><span =
class=3D"Apple-style-span" style=3D"font-size: 12px;">&nbsp;&nbsp; =
&nbsp;defined(_POSIX_PII_SOCKET) || =
defined(__VMS)</span></font></div><div><font class=3D"Apple-style-span" =
face=3D"Courier" size=3D"3"><span class=3D"Apple-style-span" =
style=3D"font-size: 12px;">typedef unsigned long</span></font><span =
class=3D"Apple-tab-span" style=3D"white-space:pre"><font =
class=3D"Apple-style-span" face=3D"Courier" size=3D"3"><span =
class=3D"Apple-style-span" style=3D"font-size: 12px;">	=
</span></font></span><font class=3D"Apple-style-span" face=3D"Courier" =
size=3D"3"><span class=3D"Apple-style-span" style=3D"font-size: =
12px;">socklen_t;</span></font><span class=3D"Apple-tab-span" =
style=3D"white-space:pre"><font class=3D"Apple-style-span" =
face=3D"Courier" size=3D"3"><span class=3D"Apple-style-span" =
style=3D"font-size: 12px;">	</span></font></span><font =
class=3D"Apple-style-span" face=3D"Courier" size=3D"3"><span =
class=3D"Apple-style-span" style=3D"font-size: 12px;">/* 64-bits =
*/</span></font></div><div><font class=3D"Apple-style-span" =
face=3D"Courier" size=3D"3"><span class=3D"Apple-style-span" =
style=3D"font-size: =
12px;">#endif</span></font></div><div><br></div><div>It's not as simple =
as just adding a typedef for socklen_t as other socket functions (such =
as accept()) are defined as taking an int for socklen_t if =
&nbsp;_POSIX_PII_SOCKET is not defined.</div><div><br></div><div>Since =
socklen_t is the more portable approach, I felt it best to properly fix =
this for Tru64 and thus I have updated configure.ac to =
add&nbsp;-D_POSIX_PII_SOCKET to CFLAGS for Tru64 (DECunix) =
platform(s).</div><div><br></div><div>Thanks.</div><div><br></div><div><br=
></div><div><br></div><div></div></div></div></body></html>=

--Apple-Mail-64--666151911
Content-Disposition: attachment;
	filename=0001-Fix-Tru64-compile-issue-with-direct_tcpip.c.patch
Content-Type: application/octet-stream;
	name="0001-Fix-Tru64-compile-issue-with-direct_tcpip.c.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=2099fda049ab83dea096a0181f0a0a94f8dba300e5=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Dave=20McCaldon=20<davem@intersys.com>=0ADate:=20=
Fri,=205=20Feb=202010=2015:56:13=20-0500=0ASubject:=20[PATCH]=20Fix=20=
Tru64=20socklen_t=20compile=20issue=20with=20direct_tcpip.c=0A=20=
Building=20libssh2-1.2.3=20on=20Tru64=20fails=20at=20line=2048=20and=20=
166=20because=20socklen_t=20isn't=20defined=20on=20Tru64=20unless=20=
_POSIX_PII_SOCKET=20is=20defined.=0A=20This=20patch=20updates=20=
configure.ac=20to=20add=20-D_POSIX_PII_SOCKET=20when=20building=20on=20=
Tru64=20platform(s).=0A=0A---=0A=20configure.ac=20|=20=20=20=203=20+++=0A=
=201=20files=20changed,=203=20insertions(+),=200=20deletions(-)=0A=0A=
diff=20--git=20a/configure.ac=20b/configure.ac=0Aindex=20=
cd8ae61..3c86a21=20100644=0A---=20a/configure.ac=0A+++=20b/configure.ac=0A=
@@=20-41,6=20+41,9=20@@=20case=20"$host"=20in=0A=20=09;;=0A=20=20=20=20=20=
*hpux*)=0A=20=20=20=20=20;;=0A+=20=20=20=20*osf*)=0A+=20=20=20=20=
CFLAGS=3D"$CFLAGS=20-D_POSIX_PII_SOCKET"=0A+=20=20=20=20;;=0A=20=20=20=20=
=20*)=0A=20=20=20=20=20;;=0A=20esac=0A--=20=0A1.6.4.4=0A=0A=

--Apple-Mail-64--666151911
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=us-ascii

<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div></div></div></div></body></html>
--Apple-Mail-64--666151911--

--Apple-Mail-63--666151911--

--===============1951094660==
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

--===============1951094660==--

From libssh2-devel-bounces@cool.haxx.se  Tue Feb  9 10:26:33 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o199PIJ9011597;
	Tue, 9 Feb 2010 10:26:28 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o199PGsO011473
	for <libssh2-devel@cool.haxx.se>; Tue, 9 Feb 2010 10:25:16 +0100
Received: (qmail 29791 invoked by uid 501); 9 Feb 2010 09:25:15 -0000
Message-ID: <20100209092515.29790.qmail@stuge.se>
Date: Tue, 9 Feb 2010 10:25:15 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: ssh tunneling
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71002041704k23659d46kcb66c31c0e0d5794@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <603122d71002041704k23659d46kcb66c31c0e0d5794@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

A. Mark wrote:
> I'd like to know if ssh tunneling is possible with the library.

Yeah, local forwards are certainly possible, and maybe also remote
forwards though I'm unsure about that.


> Basically, I'm trying to access a host on a LAN

How do you want to access the internal host?


> both hosts have ssh service setup on port 22.

From this I assume that you want to access the internal host on port
22.

For an example of how to use a direct-tcpip SSH channel (this is the
term for channels used for outbound TCP connections from the sshd)
please see example/direct_tcpip.c.

As you can see in that file you must manually pump data through the
first connection. Since libssh2 requires a fd also for the second
connection you must use pipe() and manually copy data from the first
libssh2 connection into that pipe, and vice versa.

Remember to init a new LIBSSH2_SESSION for the second connection to
the internal host.


> I also have read that putty is capable of tunneling too.

Yes - why do you bring this up?


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Tue Feb  9 11:25:09 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19AO38t015681;
	Tue, 9 Feb 2010 11:25:07 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o19AO1hn015613
	for <libssh2-devel@cool.haxx.se>; Tue, 9 Feb 2010 11:24:01 +0100
Received: (qmail 7038 invoked by uid 501); 9 Feb 2010 10:24:02 -0000
Message-ID: <20100209102402.7037.qmail@stuge.se>
Date: Tue, 9 Feb 2010 11:24:01 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: [PATCH] Resolve compile issues on Solaris x64 and UltraSPARC
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <FCA44680-03A3-49DD-A3D7-BB44F371527D@intersystems.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <FCA44680-03A3-49DD-A3D7-BB44F371527D@intersystems.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi Dave,

I touched up the commit message and have pushed the changes. Thanks!


Dave McCaldon wrote:
> I have successfully built libssh-1.2.3 with this patch on the
> following platforms:
> 
> 	Mac OS x64
> 	Linux 32-bit (RedHat)
> 	Linux 64-bit (RedHat)
> 	Linux Itanium (SuSE)
> 	HP/UX (PA-RISC and Itanium)
> 	AIX 5.3 (32-bit and 64-bit)
> 	Solaris x64 and UltraSPARC
> 	Windows x86
> 	Windows x64
> 	HP Tru64 5.1B (Alpha)
> 
> Thanks.

Awesome! Thank you very much for testing!


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Tue Feb  9 11:53:41 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19AqXYc002006;
	Tue, 9 Feb 2010 11:53:39 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o19AqVG2001999
	for <libssh2-devel@cool.haxx.se>; Tue, 9 Feb 2010 11:52:32 +0100
Received: (qmail 12021 invoked by uid 501); 9 Feb 2010 10:52:30 -0000
Message-ID: <20100209105230.12020.qmail@stuge.se>
Date: Tue, 9 Feb 2010 11:52:30 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: [PATCH] Fix Tru64 socklen_t compile issue with direct_tcpip.c
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <839F1E0E-F6F3-4971-896F-285E0E8FB99F@intersystems.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <839F1E0E-F6F3-4971-896F-285E0E8FB99F@intersystems.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Dave McCaldon wrote:
> Since socklen_t is the more portable approach, I felt it best to
> properly fix this for Tru64 and thus I have updated configure.ac to
> add -D_POSIX_PII_SOCKET to CFLAGS for Tru64 (DECunix) platform(s).

Thanks! Again touched up the commit message and pushed this.


To save me this effort and thus make it more easy to include patches,
please always use the following format for the commit message:

----
One-line summary (max 60-70 chars)

Longer description (max 76 (preferably max 75) chars per line)
Longer description line 2
...
----

The first line is used in various abbreviated log formats, one is the
shortlog in gitweb, see http://git.stuge.se/?p=libssh2.git;a=shortlog


Thanks for the fix!


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Tue Feb  9 13:56:32 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19CuLMj023308;
	Tue, 9 Feb 2010 13:56:29 +0100
Received: from mail.intersystems.com (mail.intersys.COM [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19CuJUQ023284
	for <libssh2-devel@cool.haxx.se>; Tue, 9 Feb 2010 13:56:19 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: [PATCH] Fix Tru64 socklen_t compile issue with direct_tcpip.c
From: Dave McCaldon <davem@intersystems.com>
In-Reply-To: <20100209105230.12020.qmail@stuge.se>
Date: Tue, 9 Feb 2010 07:56:13 -0500
Message-Id: <8CD0955E-FCDC-425A-8D32-860769F09A4D@intersystems.com>
References: <839F1E0E-F6F3-4971-896F-285E0E8FB99F@intersystems.com>
	<20100209105230.12020.qmail@stuge.se>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


On Feb 9, 2010, at 5:52 AM, Peter Stuge wrote:

> To save me this effort and thus make it more easy to include patches,
> please always use the following format for the commit message:


Absolutely!  Sorry, I didn't realize there was a blank line between the short & long descriptions.

Next time!

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Tue Feb  9 14:51:32 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19DpQVR025592;
	Tue, 9 Feb 2010 14:51:30 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o19DpPcB025586
	for <libssh2-devel@cool.haxx.se>; Tue, 9 Feb 2010 14:51:25 +0100
Received: (qmail 13045 invoked by uid 501); 9 Feb 2010 13:51:26 -0000
Message-ID: <20100209135126.13044.qmail@stuge.se>
Date: Tue, 9 Feb 2010 14:51:26 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: [PATCH] Fix Tru64 socklen_t compile issue with direct_tcpip.c
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <839F1E0E-F6F3-4971-896F-285E0E8FB99F@intersystems.com>
	<20100209105230.12020.qmail@stuge.se>
	<8CD0955E-FCDC-425A-8D32-860769F09A4D@intersystems.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <8CD0955E-FCDC-425A-8D32-860769F09A4D@intersystems.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Dave McCaldon wrote:
> > To save me this effort and thus make it more easy to include patches,
> > please always use the following format for the commit message:
> 
> Absolutely!  Sorry, I didn't realize there was a blank line between
> the short & long descriptions.

Also check the max line lengths. In the two latest patches it seemed
like everything was on a single long line. Dunno how it got that way.


> Next time!

No problem!


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Tue Feb  9 17:58:12 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19GvxHx018444;
	Tue, 9 Feb 2010 17:58:08 +0100
Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com
	[71.74.56.123])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19GvvdV018408
	for <libssh2-devel@cool.haxx.se>; Tue, 9 Feb 2010 17:57:57 +0100
X-Authority-Analysis: v=1.0 c=1 a=CYA6WEK6ipIA:10 a=WHwJPSc_BagpUoe7vHYA:9
	a=IaaGfhfY4FcAeGa2d56bUhxwisIA:4
X-Cloudmark-Score: 0
X-Originating-IP: 70.116.71.237
Received: from [70.116.71.237] ([70.116.71.237:55857] helo=dc7100.roadrunn.com)
	by hrndva-oedge04.mail.rr.com (envelope-from <ngierman@roadrunn.com>)
	(ecelerity 2.2.2.39 r()) with ESMTP
	id CC/17-16477-014917B4; Tue, 09 Feb 2010 16:57:52 +0000
Received: by dc7100.roadrunn.com (Postfix, from userid 501)
	id 08C2D830A2B; Tue,  9 Feb 2010 11:51:35 -0600 (CST)
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on dc7100.roadrunn.com
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00
	autolearn=ham version=3.2.4
Received: from ngierman3 (dc7100 [192.168.1.6])
	by dc7100.roadrunn.com (Postfix) with ESMTP id E651F830A21
	for <libssh2-devel@cool.haxx.se>; Tue,  9 Feb 2010 11:51:30 -0600 (CST)
From: "Neil Gierman" <ngierman@roadrunn.com>
To: "'libssh2 development'" <libssh2-devel@cool.haxx.se>
References: <FCA44680-03A3-49DD-A3D7-BB44F371527D@intersystems.com>
	<20100209102402.7037.qmail@stuge.se>
In-Reply-To: <20100209102402.7037.qmail@stuge.se>
Subject: RE: [PATCH] Resolve compile issues on Solaris x64 and UltraSPARC
Date: Tue, 9 Feb 2010 10:57:48 -0600
Message-ID: <000701caa9a9$02021ae0$060650a0$@com>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AcqpezzSFBWs+ErsRfmAeJwSi73pnQALUrAA
Content-Language: en-us
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

> Dave McCaldon wrote:
> > I have successfully built libssh-1.2.3 with this patch on the
> > following platforms:
> >
> > 	Mac OS x64
> > 	Linux 32-bit (RedHat)
> > 	Linux 64-bit (RedHat)
> > 	Linux Itanium (SuSE)
> > 	HP/UX (PA-RISC and Itanium)
> > 	AIX 5.3 (32-bit and 64-bit)
> > 	Solaris x64 and UltraSPARC
> > 	Windows x86
> > 	Windows x64
> > 	HP Tru64 5.1B (Alpha)
> >

You can add Windows IA64 to that list (as well as duplicating many of the
ones Dave already listed - My HPUX/Itanium testing is on the GNU toolchain
not aCC).

Neil

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Tue Feb  9 18:28:45 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19HSV7C011872;
	Tue, 9 Feb 2010 18:28:35 +0100
Received: from mail.intersystems.com (mail.intersys.COM [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19HSMRP011700
	for <libssh2-devel@cool.haxx.se>; Tue, 9 Feb 2010 18:28:22 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: [PATCH] Resolve compile issues on Solaris x64 and UltraSPARC
From: Dave McCaldon <davem@intersystems.com>
In-Reply-To: <000701caa9a9$02021ae0$060650a0$@com>
Date: Tue, 9 Feb 2010 12:28:17 -0500
Message-Id: <317CFF9A-D006-44C4-8A07-B2DD77AD2D7F@intersystems.com>
References: <FCA44680-03A3-49DD-A3D7-BB44F371527D@intersystems.com>
	<20100209102402.7037.qmail@stuge.se>
	<000701caa9a9$02021ae0$060650a0$@com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


On Feb 9, 2010, at 11:57 AM, Neil Gierman wrote:

>> Dave McCaldon wrote:
>>> I have successfully built libssh-1.2.3 with this patch on the
>>> following platforms:
>>> 
>>> 	Mac OS x64
>>> 	Linux 32-bit (RedHat)
>>> 	Linux 64-bit (RedHat)
>>> 	Linux Itanium (SuSE)
>>> 	HP/UX (PA-RISC and Itanium)
>>> 	AIX 5.3 (32-bit and 64-bit)
>>> 	Solaris x64 and UltraSPARC
>>> 	Windows x86
>>> 	Windows x64
>>> 	HP Tru64 5.1B (Alpha)
>>> 
> 
> You can add Windows IA64 to that list (as well as duplicating many of the
> ones Dave already listed - My HPUX/Itanium testing is on the GNU toolchain
> not aCC).

Yes, I should point out that aside from Linux/Mac, all of this was done using recent versions of the vendor supplied compilers rather than GCC.  So for Solaris, it's SUNWspro, aCC on HP/UX, xlc on AIX, Compaq C on Tru64 and the Microsoft Visual Studio compilers on Windows.

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Tue Feb  9 18:54:26 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19HsJNm029159;
	Tue, 9 Feb 2010 18:54:23 +0100
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o19HsHGZ029154
	for <libssh2-devel@cool.haxx.se>; Tue, 9 Feb 2010 18:54:18 +0100
Received: by qw-out-2122.google.com with SMTP id 8so776167qwh.41
	for <libssh2-devel@cool.haxx.se>; Tue, 09 Feb 2010 09:54:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=Bl4t5PzXjQmK/ub6cbKIvicTVfohCqgHlKb7MFeo2Nw=;
	b=ZaYWf54GctBd8nfJh05mHAcyYH+dKePLgYPPMZQypGTZHa3ZifOGW23crCL+0oEyE3
	9sdNTN43F0K9fR6U8direm5CGTII5ij4VBXmvx86d4Jui/3sF5SyAYdsyfKWlw5kMUZq
	CnkJGt1D9rD5KJyR1RYIzxeZhsp0jjL0E3yXU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=ZVdBmAOyq+q10F5qr64K019lyouK7i582VknecNuP0MdZfRzoguIrwCp2XdiXuhwDV
	LVgRuJFSSynlxXMjyhgO07GeRp8zLYjvnuxnwyGf4pttVvy7iF96PWqt0xSx44Pt0S/q
	mxztD5bGNEMAJsuY29dpVOftU9kyTEN20STcY=
MIME-Version: 1.0
Received: by 10.229.11.220 with SMTP id u28mr1318168qcu.64.1265738057928; Tue, 
	09 Feb 2010 09:54:17 -0800 (PST)
In-Reply-To: <20100209092515.29790.qmail@stuge.se>
References: <603122d71002041704k23659d46kcb66c31c0e0d5794@mail.gmail.com>
	<20100209092515.29790.qmail@stuge.se>
Date: Tue, 9 Feb 2010 09:54:17 -0800
Message-ID: <603122d71002090954v6a367a2foc4be2edf6ac511f8@mail.gmail.com>
Subject: Re: ssh tunneling
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0225726121=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0225726121==
Content-Type: multipart/alternative; boundary=00151757664052500b047f2e9b10

--00151757664052500b047f2e9b10
Content-Type: text/plain; charset=ISO-8859-1

How do you want to access the internal host?
>

I'd like to be able establish an ssh session to a private host (hostPrivate)
on a network where one of the hosts (hostPublic) has an external IP to the
internet (perhaps through port forwarding via router). So both hosts have
sshd and port 22 open, you may ssh into hostPublic from anywhere on the
internet, however you cannot ssh into hostPrivate because it's only visible
from the subnet. So you may ssh into hostPrivate from hostPublic since they
are on the same subnet or LAN for example.


> For an example of how to use a direct-tcpip SSH channel (this is the
> term for channels used for outbound TCP connections from the sshd)
> please see example/direct_tcpip.c.
>

I'm sorry but I don't understand how this has anything to do with what I'm
trying to do.



> As you can see in that file you must manually pump data through the
> first connection. Since libssh2 requires a fd also for the second
> connection you must use pipe() and manually copy data from the first
> libssh2 connection into that pipe, and vice versa.
>


I would like know how do you make the second connection without being able
to see the IP of that host. What is fd?



> Yes - why do you bring this up?
>

Because I thought someone might know how to use putty to do this and
understand what i'm trying to do with libssh2...
The procedure should be similar as they are both clients.


What I figured out so far is that I need to forward the connection via an
ssh tunnel within the LAN from hostPrivate to hostPublic. There is a
procedure to do it with ssh commands and settings. So far it turned out I'm
not sure that my question had anything to do with libssh2 or if it's
possible or even feasable to use it in any way for my purposes. Please let
me know.


Thank you!


M.

--00151757664052500b047f2e9b10
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br>
<div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"borde=
r-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-le=
ft: 1ex;">How do you want to access the internal host?<br></blockquote><div=
>
<br>I&#39;d like to be able establish an ssh session to a private host (hos=
tPrivate) on a network where one of the hosts (hostPublic) has an external =
IP to the internet (perhaps through port forwarding via router). So both ho=
sts have sshd and port 22 open, you may ssh into hostPublic from anywhere o=
n the internet, however you cannot ssh into hostPrivate because it&#39;s on=
ly visible from the subnet. So you may ssh into hostPrivate from hostPublic=
 since they are on the same subnet or LAN for example.<br>
=A0</div><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid =
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
For an example of how to use a direct-tcpip SSH channel (this is the<br>
term for channels used for outbound TCP connections from the sshd)<br>
please see example/direct_tcpip.c.<br></blockquote><div><br>I&#39;m sorry b=
ut I don&#39;t understand how this has anything to do with what I&#39;m try=
ing to do. <br></div><div><br>=A0</div><blockquote class=3D"gmail_quote" st=
yle=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex=
; padding-left: 1ex;">

As you can see in that file you must manually pump data through the<br>
first connection. Since libssh2 requires a fd also for the second<br>
connection you must use pipe() and manually copy data from the first<br>
libssh2 connection into that pipe, and vice versa.<br></blockquote><div><br=
><br>I would like know how do you make the second connection without being =
able to see the IP of that host. What is fd?=A0 </div><div><br>=A0</div><bl=
ockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204=
, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yes - why do you bring this up?<br></blockquote><div><br>Because I thought =
someone might know how to use putty to do this and understand what i&#39;m =
trying to do with libssh2...<br>The procedure should be similar as they are=
 both clients.<br>
<br><br>What I figured out so far is that I need to forward the connection =
via an ssh tunnel within the LAN from hostPrivate to hostPublic. There is a=
 procedure to do it with ssh commands and settings. So far it turned out I&=
#39;m not sure that my question had anything to do with libssh2 or if it&#3=
9;s possible or even feasable to use it in any way for my purposes. Please =
let me know.<br>
<br><br>Thank you!<br><br><br>M.<br></div></div>

--00151757664052500b047f2e9b10--

--===============0225726121==
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

--===============0225726121==--

From libssh2-devel-bounces@cool.haxx.se  Tue Feb  9 23:23:09 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19MMtVY003329;
	Tue, 9 Feb 2010 23:23:05 +0100
Received: from ch3.sourceforge.net (ch3.sourceforge.net [216.34.181.60])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19MMrk5003278
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 9 Feb 2010 23:22:54 +0100
Received: from www by sfs-web-2.v29.ch3.sourceforge.com with local (Exim 4.69)
	(envelope-from <noreply@sourceforge.net>)
	id 1NeyTt-0007IW-Hz; Tue, 09 Feb 2010 22:22:53 +0000
To: noreply@sourceforge.net
From: "SourceForge.net" <noreply@sourceforge.net>
Subject: [ libssh2-Bugs-2948737 ] libssh2 1.2.3 compile failure under solaris 8
Mime-Version: 1.0
X-SourceForge-Tracker-unixname: libssh2
X-SourceForge-Tracker-trackerid: 703942
X-SourceForge-Tracker-itemid: 2948737
X-SourceForge-Tracker-itemstatus: Open
X-SourceForge-Tracker-itemassignee: nobody
X-SourceForge-Tracker-itemupdate-reason: Tracker Item Submitted
X-SourceForge-Tracker-itemupdate-username: nobody
Message-Id: <E1NeyTt-0007IW-Hz@sfs-web-2.v29.ch3.sourceforge.com>
Date: Tue, 09 Feb 2010 22:22:53 +0000
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Bugs item #2948737, was opened at 2010-02-09 22:22
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2948737&group_id=125852

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: misc
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: libssh2 1.2.3 compile failure under solaris 8

Initial Comment:
libssh2 1.2.3 no longer compiles cleanly on one of my solaris 8 hosts. version 1.2.2 compiles without complaint.

host:/tmp > gtar -zxpf libssh2-1.2.3.tar.gz 
host:/tmp > cd libssh2-1.2.3
host:/tmp/libssh2-1.2.3 > ./configure --with-libssl-prefix=/usr/local/openssl >& /dev/null && echo $status
0
host:/tmp/libssh2-1.2.3 > gmake >& /dev/null ; echo $status
2
host:/tmp/libssh2-1.2.3 > gmake
Making all in src
gmake[1]: Entering directory `/tmp/libssh2-1.2.3/src'
gmake  all-am
gmake[2]: Entering directory `/tmp/libssh2-1.2.3/src'
source='agent.c' object='agent.lo' libtool=yes \
        DEPDIR=.deps depmode=gcc /bin/bash ../depcomp \
        /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src -I/usr/local/openssl/include -I/usr/local/include  -g -O2 -c -o agent.lo agent.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -I/usr/local/openssl/include -I/usr/local/include -g -O2 -c agent.c -Wp,-MD,.deps/agent.TPlo  -fPIC -DPIC -o .libs/agent.o
agent.c: In function `agent_connect_unix':
agent.c:145: parse error before `1'
agent.c:157: request for member `sun_family' in something not a structure or union
agent.c:158: request for member `sun_path' in something not a structure or union
agent.c:158: request for member `sun_path' in something not a structure or union
agent.c:159: invalid lvalue in unary `&'
gmake[2]: *** [agent.lo] Error 1
gmake[2]: Leaving directory `/tmp/libssh2-1.2.3/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/tmp/libssh2-1.2.3/src'
gmake: *** [all-recursive] Error 1
host:/tmp/libssh2-1.2.3 > 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2948737&group_id=125852
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Tue Feb  9 23:25:57 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19MPs74007761;
	Tue, 9 Feb 2010 23:25:56 +0100
Received: from ch3.sourceforge.net (ch3.sourceforge.net [216.34.181.60])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19MPq3A007755
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 9 Feb 2010 23:25:52 +0100
Received: from www by sfs-web-3.v29.ch3.sourceforge.com with local (Exim 4.69)
	(envelope-from <noreply@sourceforge.net>)
	id 1NeyWn-00079N-2l; Tue, 09 Feb 2010 22:25:53 +0000
To: noreply@sourceforge.net
From: "SourceForge.net" <noreply@sourceforge.net>
Subject: [ libssh2-Bugs-2948737 ] libssh2 1.2.3 compile failure under solaris 8
Mime-Version: 1.0
X-SourceForge-Tracker-unixname: libssh2
X-SourceForge-Tracker-trackerid: 703942
X-SourceForge-Tracker-itemid: 2948737
X-SourceForge-Tracker-itemstatus: Open
X-SourceForge-Tracker-itemassignee: bagder
X-SourceForge-Tracker-itemupdate-reason: Settings changed
X-SourceForge-Tracker-itemupdate-username: bagder
Message-Id: <E1NeyWn-00079N-2l@sfs-web-3.v29.ch3.sourceforge.com>
Date: Tue, 09 Feb 2010 22:25:53 +0000
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Bugs item #2948737, was opened at 2010-02-09 23:22
Message generated for change (Settings changed) made by bagder
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2948737&group_id=125852

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: misc
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Daniel Stenberg (bagder)
Summary: libssh2 1.2.3 compile failure under solaris 8

Initial Comment:
libssh2 1.2.3 no longer compiles cleanly on one of my solaris 8 hosts. version 1.2.2 compiles without complaint.

host:/tmp > gtar -zxpf libssh2-1.2.3.tar.gz 
host:/tmp > cd libssh2-1.2.3
host:/tmp/libssh2-1.2.3 > ./configure --with-libssl-prefix=/usr/local/openssl >& /dev/null && echo $status
0
host:/tmp/libssh2-1.2.3 > gmake >& /dev/null ; echo $status
2
host:/tmp/libssh2-1.2.3 > gmake
Making all in src
gmake[1]: Entering directory `/tmp/libssh2-1.2.3/src'
gmake  all-am
gmake[2]: Entering directory `/tmp/libssh2-1.2.3/src'
source='agent.c' object='agent.lo' libtool=yes \
        DEPDIR=.deps depmode=gcc /bin/bash ../depcomp \
        /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src -I/usr/local/openssl/include -I/usr/local/include  -g -O2 -c -o agent.lo agent.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -I/usr/local/openssl/include -I/usr/local/include -g -O2 -c agent.c -Wp,-MD,.deps/agent.TPlo  -fPIC -DPIC -o .libs/agent.o
agent.c: In function `agent_connect_unix':
agent.c:145: parse error before `1'
agent.c:157: request for member `sun_family' in something not a structure or union
agent.c:158: request for member `sun_path' in something not a structure or union
agent.c:158: request for member `sun_path' in something not a structure or union
agent.c:159: invalid lvalue in unary `&'
gmake[2]: *** [agent.lo] Error 1
gmake[2]: Leaving directory `/tmp/libssh2-1.2.3/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/tmp/libssh2-1.2.3/src'
gmake: *** [all-recursive] Error 1
host:/tmp/libssh2-1.2.3 > 

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2010-02-09 23:25

Message:
Can you please the current git or tomorrow's daily snapshot and see if the
bug is still there? There have been fixes applied that might've corrected
the problem.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2948737&group_id=125852
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 10 00:45:52 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19NjPMB020323;
	Wed, 10 Feb 2010 00:45:34 +0100
Received: from mail.intersystems.com (mail.intersys.com [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o19NjNF3020121
	for <libssh2-devel@cool.haxx.se>; Wed, 10 Feb 2010 00:45:23 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: [ libssh2-Bugs-2948737 ] libssh2 1.2.3 compile failure under
	solaris 8
From: Dave McCaldon <davem@intersystems.com>
In-Reply-To: <E1NeyWn-00079N-2l@sfs-web-3.v29.ch3.sourceforge.com>
Date: Tue, 9 Feb 2010 18:45:17 -0500
Message-Id: <DCE8E25B-3957-499A-B785-4D50CFCCF550@intersystems.com>
References: <E1NeyWn-00079N-2l@sfs-web-3.v29.ch3.sourceforge.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


On Feb 9, 2010, at 5:25 PM, SourceForge.net wrote:

> Bugs item #2948737, was opened at 2010-02-09 23:22
> Message generated for change (Settings changed) made by bagder
> You can respond by visiting: 
> https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2948737&group_id=125852
> 
> Please note that this message will contain a full copy of the comment thread,
> including the initial issue submission, for this request,
> not just the latest update.
> Category: misc
> Group: None
> Status: Open
> Resolution: None
> Priority: 5
> Private: No
> Submitted By: Nobody/Anonymous (nobody)
>> Assigned to: Daniel Stenberg (bagder)
> Summary: libssh2 1.2.3 compile failure under solaris 8
> 
> Initial Comment:
> libssh2 1.2.3 no longer compiles cleanly on one of my solaris 8 hosts. version 1.2.2 compiles without complaint.
> 
> host:/tmp > gtar -zxpf libssh2-1.2.3.tar.gz 
> host:/tmp > cd libssh2-1.2.3
> host:/tmp/libssh2-1.2.3 > ./configure --with-libssl-prefix=/usr/local/openssl >& /dev/null && echo $status
> 0
> host:/tmp/libssh2-1.2.3 > gmake >& /dev/null ; echo $status
> 2
> host:/tmp/libssh2-1.2.3 > gmake
> Making all in src
> gmake[1]: Entering directory `/tmp/libssh2-1.2.3/src'
> gmake  all-am
> gmake[2]: Entering directory `/tmp/libssh2-1.2.3/src'
> source='agent.c' object='agent.lo' libtool=yes \
>        DEPDIR=.deps depmode=gcc /bin/bash ../depcomp \
>        /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src -I/usr/local/openssl/include -I/usr/local/include  -g -O2 -c -o agent.lo agent.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -I/usr/local/openssl/include -I/usr/local/include -g -O2 -c agent.c -Wp,-MD,.deps/agent.TPlo  -fPIC -DPIC -o .libs/agent.o
> agent.c: In function `agent_connect_unix':
> agent.c:145: parse error before `1'
> agent.c:157: request for member `sun_family' in something not a structure or union
> agent.c:158: request for member `sun_path' in something not a structure or union
> agent.c:158: request for member `sun_path' in something not a structure or union
> agent.c:159: invalid lvalue in unary `&'
> gmake[2]: *** [agent.lo] Error 1
> gmake[2]: Leaving directory `/tmp/libssh2-1.2.3/src'
> gmake[1]: *** [all] Error 2
> gmake[1]: Leaving directory `/tmp/libssh2-1.2.3/src'
> gmake: *** [all-recursive] Error 1
> host:/tmp/libssh2-1.2.3 > 
> 
> ----------------------------------------------------------------------
> 
>> Comment By: Daniel Stenberg (bagder)
> Date: 2010-02-09 23:25
> 
> Message:
> Can you please the current git or tomorrow's daily snapshot and see if the
> bug is still there? There have been fixes applied that might've corrected
> the problem.


FYI:

This is definitely the same problem resolved by my patch the other day:
---
[PATCH] Resolve compile issues on Solaris x64 and UltraSPARC

Solaris builds of libssh2-1.2.3 failed on both x64 and UltraSPARC platforms because of two problems:

    1) src/agent.c:145  sun is a reserved word when using the SUNWspro compiler
    2) example/direct_tcpip.c:84  INADDR_NONE is not defined

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 10 05:30:05 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1A4Tmgs032470;
	Wed, 10 Feb 2010 05:29:58 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1A4Tkqs032467
	for <libssh2-devel@cool.haxx.se>; Wed, 10 Feb 2010 05:29:46 +0100
Received: (qmail 1636 invoked by uid 501); 10 Feb 2010 04:29:46 -0000
Message-ID: <20100210042946.1635.qmail@stuge.se>
Date: Wed, 10 Feb 2010 05:29:46 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: ssh tunneling
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71002041704k23659d46kcb66c31c0e0d5794@mail.gmail.com>
	<20100209092515.29790.qmail@stuge.se>
	<603122d71002090954v6a367a2foc4be2edf6ac511f8@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <603122d71002090954v6a367a2foc4be2edf6ac511f8@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi A,

A. Mark wrote:
> > How do you want to access the internal host?
> 
> I'd like to be able establish an ssh session to a private host
> (hostPrivate) on a network where one of the hosts (hostPublic) has
> an external IP to the internet

Ok, that's what I guessed, and what I wrote suggestions for.


> > For an example of how to use a direct-tcpip SSH channel (this is the
> > term for channels used for outbound TCP connections from the sshd)
> > please see example/direct_tcpip.c.
> 
> I'm sorry but I don't understand how this has anything to do with
> what I'm trying to do.

Please study the example and read up on how direct-tcpip channels in
SSH work: http://www.ietf.org/rfc/rfc4254.txt section 7.2. (Note that
forwarded-tcpip is not what you want to use here, so look for
direct-tcpip further down in the section.)


> > As you can see in that file you must manually pump data through the
> > first connection. Since libssh2 requires a fd also for the second
> > connection you must use pipe() and manually copy data from the first
> > libssh2 connection into that pipe, and vice versa.
> 
> I would like know how do you make the second connection without
> being able to see the IP of that host.

As I wrote, the sshd makes the second connection, according to what
the libssh2 program asks for. You can also use a name instead of an
IP when opening the direct-tcpip channel, in which case the sshd will
do a lookup to find the IP. So you can specify an internal name in
the external client without problems, as long as the name can be
resolved by hostPublic.


> What is fd?

fd is "file descriptor", the thing you get back from socket() and
open() in *ix, and for our purposes it's also what socket() on win32
returns.

Because of the current library API it's not as convenient as it could
be to accomplish what you want, but it is completely possible with
only a little effort.


> > Yes - why do you bring this up?
> 
> Because I thought someone might know how to use putty to do this
> and understand what i'm trying to do with libssh2...

Aha. Unfortunately since both PuTTY and libssh2 are fairly complete
SSH client implementations, saying "I want to do with libssh2 what I
can do with PuTTY" without specific terminology or examples doesn't
help. :\


> The procedure should be similar as they are both clients.

But one is an application and the other is a library, so the
procedure is in fact pretty different.


> What I figured out so far is that I need to forward the connection
> via an ssh tunnel within the LAN from hostPrivate to hostPublic.

The other way around would be simpler:

* Connect using libssh2 from internet to hostPublic
* Open direct-tcpip channel from hostPublic to hostPrivate like in
  example/direct_tcpip.c
* Init a second LIBSSH2_SESSION for logging in to hostPrivate
* Then it gets a bit messy: you'll need to use all of direct_tcpip.c
  and set up a socket on localhost that you connect to, just so that
  there is a socket, since libssh2 needs one also for the second
  session. This means that the data pump for that first connection
  likely should run in it's own thread.


> There is a procedure to do it with ssh commands and settings.

Yes, the equivalent of what I described above is:

# this is exactly what direct_tcpip.c implements
ssh -L 2222:hostPrivate:22 hostPublic

and then, in a second terminal:

ssh -p 2222 -ohostkeyalias\ hostPrivate -ohostname\ localhost user@hostPrivate


> So far it turned out I'm not sure that my question had anything to
> do with libssh2 or if it's possible or even feasable to use it in
> any way for my purposes. Please let me know.

Sure thing, you're on the right track, and using a direct-tcpip
channel it will work just fine, even though the implementation will
be a little unclean because of that extra socket and data pump.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 10 06:42:52 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1A5geMk019077;
	Wed, 10 Feb 2010 06:42:47 +0100
Received: from mail-qy0-f200.google.com (mail-qy0-f200.google.com
	[209.85.221.200])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1A5gcj8018871
	for <libssh2-devel@cool.haxx.se>; Wed, 10 Feb 2010 06:42:38 +0100
Received: by qyk38 with SMTP id 38so1909863qyk.1
	for <libssh2-devel@cool.haxx.se>; Tue, 09 Feb 2010 21:42:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=wS1qgAxCza6QKOODlpYSvIp62fJLNRviLOXQ0myb4IQ=;
	b=L4j+hm38nd+GuzmUiPQ+NBy5A7vk25JV/fCoXNM/UY/F691jXpsuT7Vo8TW2OkilJm
	Qkk4DRV9BXbO2N1De9v1GNxI7Z7Vvx1dVUZU4auuPz5P4wrM0xiPHeEQFFpDRExD/w3b
	OTS0e1ZsDnttl6a0vf6L5+Ab8O3gtC7ewT2Q0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=Ty8TeVijcDNN5+y55zubnkmEAenjJyh+qED/KzsH5izKsyygdDsqdgcf+GSCa2Vc4g
	35I6bm+JWHoj2RdUlztkLM3RSPLR2ZqAVauZqn9c/pqj7kXLZizTHxD37RgwU2ba9TOU
	6h1EeYk2pgcHC22Wy+TVDfDQDAto0yrm7oEyA=
MIME-Version: 1.0
Received: by 10.229.128.82 with SMTP id j18mr1584683qcs.61.1265780553031; Tue, 
	09 Feb 2010 21:42:33 -0800 (PST)
In-Reply-To: <20100210042946.1635.qmail@stuge.se>
References: <603122d71002041704k23659d46kcb66c31c0e0d5794@mail.gmail.com>
	<20100209092515.29790.qmail@stuge.se>
	<603122d71002090954v6a367a2foc4be2edf6ac511f8@mail.gmail.com>
	<20100210042946.1635.qmail@stuge.se>
Date: Tue, 9 Feb 2010 21:42:32 -0800
Message-ID: <603122d71002092142u5f7007e1x60da26315c505956@mail.gmail.com>
Subject: Re: ssh tunneling
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0176330043=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0176330043==
Content-Type: multipart/alternative; boundary=001517570a8e3a216d047f388017

--001517570a8e3a216d047f388017
Content-Type: text/plain; charset=ISO-8859-1

Well thanks a bunch again, I really appreciate it. I will report once I get
to the bottom of the things involved here.

A.M.

On Tue, Feb 9, 2010 at 8:29 PM, Peter Stuge <peter@stuge.se> wrote:

> Hi A,
>
> A. Mark wrote:
> > > How do you want to access the internal host?
> >
> > I'd like to be able establish an ssh session to a private host
> > (hostPrivate) on a network where one of the hosts (hostPublic) has
> > an external IP to the internet
>
> Ok, that's what I guessed, and what I wrote suggestions for.
>
>
> > > For an example of how to use a direct-tcpip SSH channel (this is the
> > > term for channels used for outbound TCP connections from the sshd)
> > > please see example/direct_tcpip.c.
> >
> > I'm sorry but I don't understand how this has anything to do with
> > what I'm trying to do.
>
> Please study the example and read up on how direct-tcpip channels in
> SSH work: http://www.ietf.org/rfc/rfc4254.txt section 7.2. (Note that
> forwarded-tcpip is not what you want to use here, so look for
> direct-tcpip further down in the section.)
>
>
> > > As you can see in that file you must manually pump data through the
> > > first connection. Since libssh2 requires a fd also for the second
> > > connection you must use pipe() and manually copy data from the first
> > > libssh2 connection into that pipe, and vice versa.
> >
> > I would like know how do you make the second connection without
> > being able to see the IP of that host.
>
> As I wrote, the sshd makes the second connection, according to what
> the libssh2 program asks for. You can also use a name instead of an
> IP when opening the direct-tcpip channel, in which case the sshd will
> do a lookup to find the IP. So you can specify an internal name in
> the external client without problems, as long as the name can be
> resolved by hostPublic.
>
>
> > What is fd?
>
> fd is "file descriptor", the thing you get back from socket() and
> open() in *ix, and for our purposes it's also what socket() on win32
> returns.
>
> Because of the current library API it's not as convenient as it could
> be to accomplish what you want, but it is completely possible with
> only a little effort.
>
>
> > > Yes - why do you bring this up?
> >
> > Because I thought someone might know how to use putty to do this
> > and understand what i'm trying to do with libssh2...
>
> Aha. Unfortunately since both PuTTY and libssh2 are fairly complete
> SSH client implementations, saying "I want to do with libssh2 what I
> can do with PuTTY" without specific terminology or examples doesn't
> help. :\
>
>
> > The procedure should be similar as they are both clients.
>
> But one is an application and the other is a library, so the
> procedure is in fact pretty different.
>
>
> > What I figured out so far is that I need to forward the connection
> > via an ssh tunnel within the LAN from hostPrivate to hostPublic.
>
> The other way around would be simpler:
>
> * Connect using libssh2 from internet to hostPublic
> * Open direct-tcpip channel from hostPublic to hostPrivate like in
>  example/direct_tcpip.c
> * Init a second LIBSSH2_SESSION for logging in to hostPrivate
> * Then it gets a bit messy: you'll need to use all of direct_tcpip.c
>  and set up a socket on localhost that you connect to, just so that
>  there is a socket, since libssh2 needs one also for the second
>  session. This means that the data pump for that first connection
>  likely should run in it's own thread.
>
>
> > There is a procedure to do it with ssh commands and settings.
>
> Yes, the equivalent of what I described above is:
>
> # this is exactly what direct_tcpip.c implements
> ssh -L 2222:hostPrivate:22 hostPublic
>
> and then, in a second terminal:
>
> ssh -p 2222 -ohostkeyalias\ hostPrivate -ohostname\ localhost
> user@hostPrivate
>
>
> > So far it turned out I'm not sure that my question had anything to
> > do with libssh2 or if it's possible or even feasable to use it in
> > any way for my purposes. Please let me know.
>
> Sure thing, you're on the right track, and using a direct-tcpip
> channel it will work just fine, even though the implementation will
> be a little unclean because of that extra socket and data pump.
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

--001517570a8e3a216d047f388017
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Well thanks a bunch again, I really appreciate it. I will report once I get=
 to the bottom of the things involved here.<br><br>A.M.<br><br><div class=
=3D"gmail_quote">On Tue, Feb 9, 2010 at 8:29 PM, Peter Stuge <span dir=3D"l=
tr">&lt;<a href=3D"mailto:peter@stuge.se">peter@stuge.se</a>&gt;</span> wro=
te:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi A,<br>
<br>
A. Mark wrote:<br>
&gt; &gt; How do you want to access the internal host?<br>
&gt;<br>
&gt; I&#39;d like to be able establish an ssh session to a private host<br>
&gt; (hostPrivate) on a network where one of the hosts (hostPublic) has<br>
&gt; an external IP to the internet<br>
<br>
Ok, that&#39;s what I guessed, and what I wrote suggestions for.<br>
<br>
<br>
&gt; &gt; For an example of how to use a direct-tcpip SSH channel (this is =
the<br>
&gt; &gt; term for channels used for outbound TCP connections from the sshd=
)<br>
&gt; &gt; please see example/direct_tcpip.c.<br>
&gt;<br>
&gt; I&#39;m sorry but I don&#39;t understand how this has anything to do w=
ith<br>
&gt; what I&#39;m trying to do.<br>
<br>
Please study the example and read up on how direct-tcpip channels in<br>
SSH work: <a href=3D"http://www.ietf.org/rfc/rfc4254.txt" target=3D"_blank"=
>http://www.ietf.org/rfc/rfc4254.txt</a> section 7.2. (Note that<br>
forwarded-tcpip is not what you want to use here, so look for<br>
direct-tcpip further down in the section.)<br>
<br>
<br>
&gt; &gt; As you can see in that file you must manually pump data through t=
he<br>
&gt; &gt; first connection. Since libssh2 requires a fd also for the second=
<br>
&gt; &gt; connection you must use pipe() and manually copy data from the fi=
rst<br>
&gt; &gt; libssh2 connection into that pipe, and vice versa.<br>
&gt;<br>
&gt; I would like know how do you make the second connection without<br>
&gt; being able to see the IP of that host.<br>
<br>
As I wrote, the sshd makes the second connection, according to what<br>
the libssh2 program asks for. You can also use a name instead of an<br>
IP when opening the direct-tcpip channel, in which case the sshd will<br>
do a lookup to find the IP. So you can specify an internal name in<br>
the external client without problems, as long as the name can be<br>
resolved by hostPublic.<br>
<br>
<br>
&gt; What is fd?<br>
<br>
fd is &quot;file descriptor&quot;, the thing you get back from socket() and=
<br>
open() in *ix, and for our purposes it&#39;s also what socket() on win32<br=
>
returns.<br>
<br>
Because of the current library API it&#39;s not as convenient as it could<b=
r>
be to accomplish what you want, but it is completely possible with<br>
only a little effort.<br>
<br>
<br>
&gt; &gt; Yes - why do you bring this up?<br>
&gt;<br>
&gt; Because I thought someone might know how to use putty to do this<br>
&gt; and understand what i&#39;m trying to do with libssh2...<br>
<br>
Aha. Unfortunately since both PuTTY and libssh2 are fairly complete<br>
SSH client implementations, saying &quot;I want to do with libssh2 what I<b=
r>
can do with PuTTY&quot; without specific terminology or examples doesn&#39;=
t<br>
help. :\<br>
<br>
<br>
&gt; The procedure should be similar as they are both clients.<br>
<br>
But one is an application and the other is a library, so the<br>
procedure is in fact pretty different.<br>
<br>
<br>
&gt; What I figured out so far is that I need to forward the connection<br>
&gt; via an ssh tunnel within the LAN from hostPrivate to hostPublic.<br>
<br>
The other way around would be simpler:<br>
<br>
* Connect using libssh2 from internet to hostPublic<br>
* Open direct-tcpip channel from hostPublic to hostPrivate like in<br>
 =A0example/direct_tcpip.c<br>
* Init a second LIBSSH2_SESSION for logging in to hostPrivate<br>
* Then it gets a bit messy: you&#39;ll need to use all of direct_tcpip.c<br=
>
 =A0and set up a socket on localhost that you connect to, just so that<br>
 =A0there is a socket, since libssh2 needs one also for the second<br>
 =A0session. This means that the data pump for that first connection<br>
 =A0likely should run in it&#39;s own thread.<br>
<br>
<br>
&gt; There is a procedure to do it with ssh commands and settings.<br>
<br>
Yes, the equivalent of what I described above is:<br>
<br>
# this is exactly what direct_tcpip.c implements<br>
ssh -L 2222:hostPrivate:22 hostPublic<br>
<br>
and then, in a second terminal:<br>
<br>
ssh -p 2222 -ohostkeyalias\ hostPrivate -ohostname\ localhost user@hostPriv=
ate<br>
<br>
<br>
&gt; So far it turned out I&#39;m not sure that my question had anything to=
<br>
&gt; do with libssh2 or if it&#39;s possible or even feasable to use it in<=
br>
&gt; any way for my purposes. Please let me know.<br>
<br>
Sure thing, you&#39;re on the right track, and using a direct-tcpip<br>
channel it will work just fine, even though the implementation will<br>
be a little unclean because of that extra socket and data pump.<br>
<br>
<br>
//Peter<br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</blockquote></div><br>

--001517570a8e3a216d047f388017--

--===============0176330043==
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

--===============0176330043==--

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 11 13:29:16 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BCSeoL022769;
	Thu, 11 Feb 2010 13:29:09 +0100
Received: from ch3.sourceforge.net (ch3.sourceforge.net [216.34.181.60])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BCScGo022763
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 11 Feb 2010 13:28:39 +0100
Received: from www by sfs-web-3.v29.ch3.sourceforge.com with local (Exim 4.69)
	(envelope-from <noreply@sourceforge.net>)
	id 1NfY9u-0002Pt-IX; Thu, 11 Feb 2010 12:28:38 +0000
To: noreply@sourceforge.net
From: "SourceForge.net" <noreply@sourceforge.net>
Subject: [ libssh2-Bugs-2948737 ] libssh2 1.2.3 compile failure under solaris 8
Mime-Version: 1.0
X-SourceForge-Tracker-unixname: libssh2
X-SourceForge-Tracker-trackerid: 703942
X-SourceForge-Tracker-itemid: 2948737
X-SourceForge-Tracker-itemstatus: Closed
X-SourceForge-Tracker-itemassignee: bagder
X-SourceForge-Tracker-itemupdate-reason: Comment added
X-SourceForge-Tracker-itemupdate-username: bagder
Message-Id: <E1NfY9u-0002Pt-IX@sfs-web-3.v29.ch3.sourceforge.com>
Date: Thu, 11 Feb 2010 12:28:38 +0000
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Bugs item #2948737, was opened at 2010-02-09 23:22
Message generated for change (Comment added) made by bagder
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2948737&group_id=125852

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: misc
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: libssh2 1.2.3 compile failure under solaris 8

Initial Comment:
libssh2 1.2.3 no longer compiles cleanly on one of my solaris 8 hosts. version 1.2.2 compiles without complaint.

host:/tmp > gtar -zxpf libssh2-1.2.3.tar.gz 
host:/tmp > cd libssh2-1.2.3
host:/tmp/libssh2-1.2.3 > ./configure --with-libssl-prefix=/usr/local/openssl >& /dev/null && echo $status
0
host:/tmp/libssh2-1.2.3 > gmake >& /dev/null ; echo $status
2
host:/tmp/libssh2-1.2.3 > gmake
Making all in src
gmake[1]: Entering directory `/tmp/libssh2-1.2.3/src'
gmake  all-am
gmake[2]: Entering directory `/tmp/libssh2-1.2.3/src'
source='agent.c' object='agent.lo' libtool=yes \
        DEPDIR=.deps depmode=gcc /bin/bash ../depcomp \
        /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src -I/usr/local/openssl/include -I/usr/local/include  -g -O2 -c -o agent.lo agent.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -I/usr/local/openssl/include -I/usr/local/include -g -O2 -c agent.c -Wp,-MD,.deps/agent.TPlo  -fPIC -DPIC -o .libs/agent.o
agent.c: In function `agent_connect_unix':
agent.c:145: parse error before `1'
agent.c:157: request for member `sun_family' in something not a structure or union
agent.c:158: request for member `sun_path' in something not a structure or union
agent.c:158: request for member `sun_path' in something not a structure or union
agent.c:159: invalid lvalue in unary `&'
gmake[2]: *** [agent.lo] Error 1
gmake[2]: Leaving directory `/tmp/libssh2-1.2.3/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/tmp/libssh2-1.2.3/src'
gmake: *** [all-recursive] Error 1
host:/tmp/libssh2-1.2.3 > 

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2010-02-11 13:28

Message:
This is already fixed!

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2010-02-09 23:25

Message:
Can you please the current git or tomorrow's daily snapshot and see if the
bug is still there? There have been fixes applied that might've corrected
the problem.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2948737&group_id=125852
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 11 20:08:21 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BJ7n2N006801;
	Thu, 11 Feb 2010 20:08:16 +0100
Received: from rock.net.tufts.edu (rock.net.tufts.edu [130.64.1.11])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BJ7kbH006795
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 11 Feb 2010 20:07:47 +0100
Received: from mikem by rock.net.tufts.edu with local (Exim)
	id 1NfeOA-0004SV-EO
	for libssh2-devel@cool.haxx.se; Thu, 11 Feb 2010 14:07:46 -0500
Date: Thu, 11 Feb 2010 14:07:46 -0500
From: Michael Maciolek <michael.maciolek@tufts.edu>
To: libssh2-devel@cool.haxx.se
Subject: requested change for Sun/Solaris compatibility
Message-ID: <20100211190746.GC29040@net.tufts.edu>
Mime-Version: 1.0
Content-Disposition: inline
User-Agent: Mutt/1.4.2i
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

A request to the libssh2 code maintainers:

Please consider renaming the variable 'sun' used in the file 'agent.c',
as the name conflicts with the predefined macro 'sun' that appears on
Sun Microsystems computers running the Solaris operating system.  The
conflict causes libssh2 builds to fail on such systems:

Excerpt from 'make' on a Sun/Solaris system showing how it fails:

	libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -g -O2 -MT agent.lo -MD -MP -MF .deps/agent.Tpo -c agent.c  -fPIC -DPIC -o .libs/agent.o
	agent.c: In function `agent_connect_unix':
	agent.c:145: error: syntax error before numeric constant
	agent.c:157: error: request for member `sun_family' in something not a structure or union
	agent.c:158: error: request for member `sun_path' in something not a structure or union
	agent.c:158: error: request for member `sun_path' in something not a structure or union
	agent.c:159: error: invalid lvalue in unary `&'
	make[2]: *** [agent.lo] Error 1
	make[2]: Leaving directory `/tmp/libssh2-1.2.3/src'
	make[1]: *** [all] Error 2
	make[1]: Leaving directory `/tmp/libssh2-1.2.3/src'
	make: *** [all-recursive] Error 1

Specific location of 'sun' variable:

	bash# pwd
	/tmp/libssh2-1.2.3
	bash# grep -n sun src/agent.c
	145:    struct sockaddr_un sun;
	157:    sun.sun_family = AF_UNIX;
	158:    strncpy (sun.sun_path, path, sizeof sun.sun_path);
	159:    if (connect(agent->fd, (struct sockaddr*)(&sun), sizeof sun) != 0) {

Demonstration of conflicting constant 'sun' that is produced by cpp:

	bash# echo "" | cpp -dM|grep -i sun
	#define __sun 1
	#define sun 1
	#define __sun__ 1
	bash#

Many thanks,
Michael Maciolek
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 11 20:13:09 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BJCw7S009044;
	Thu, 11 Feb 2010 20:13:00 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1BJCst6009017
	for <libssh2-devel@cool.haxx.se>; Thu, 11 Feb 2010 20:12:55 +0100
Received: (qmail 4337 invoked by uid 501); 11 Feb 2010 19:12:12 -0000
Message-ID: <20100211191212.4336.qmail@stuge.se>
Date: Thu, 11 Feb 2010 20:12:12 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: requested change for Sun/Solaris compatibility
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <20100211190746.GC29040@net.tufts.edu>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20100211190746.GC29040@net.tufts.edu>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi Michael,

Michael Maciolek wrote:
> A request to the libssh2 code maintainers:
> 
> Please consider renaming the variable 'sun' used in the file 'agent.c',

Thanks for the report!

This is already fixed, since commit ea914c8b a few days ago.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 11 20:46:35 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BJkSJX004583;
	Thu, 11 Feb 2010 20:46:33 +0100
Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com
	[71.74.56.125])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BJkQII004558
	for <libssh2-devel@cool.haxx.se>; Thu, 11 Feb 2010 20:46:27 +0100
X-Authority-Analysis: v=1.0 c=1 a=imacczzIOAkA:10 a=5ijuY4it0McbB-Avxk8A:9
	a=569wjGCGWw7sZkUuOSTaSvgWAn4A:4
X-Cloudmark-Score: 0
X-Originating-IP: 70.116.71.237
Received: from [70.116.71.237] ([70.116.71.237:59464] helo=dc7100.roadrunn.com)
	by hrndva-oedge02.mail.rr.com (envelope-from <ngierman@roadrunn.com>)
	(ecelerity 2.2.2.39 r()) with ESMTP
	id C8/E0-24559-D8E547B4; Thu, 11 Feb 2010 19:46:22 +0000
Received: by dc7100.roadrunn.com (Postfix, from userid 501)
	id 2C9CD830A2B; Thu, 11 Feb 2010 14:40:04 -0600 (CST)
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on dc7100.roadrunn.com
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00
	autolearn=ham version=3.2.4
Received: from ngierman3 (dc7100 [192.168.1.6])
	by dc7100.roadrunn.com (Postfix) with ESMTP id C25D1830A21
	for <libssh2-devel@cool.haxx.se>; Thu, 11 Feb 2010 14:39:59 -0600 (CST)
From: "Neil Gierman" <ngierman@roadrunn.com>
To: "'libssh2 development'" <libssh2-devel@cool.haxx.se>
References: <20100211190746.GC29040@net.tufts.edu>
	<20100211191212.4336.qmail@stuge.se>
In-Reply-To: <20100211191212.4336.qmail@stuge.se>
Subject: RE: requested change for Sun/Solaris compatibility
Date: Thu, 11 Feb 2010 13:46:15 -0600
Message-ID: <000001caab52$df669370$9e33ba50$@com>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AcqrVjgWSFPH8uHUT1K1/HoeloPCWAAA4Dhg
Content-Language: en-us
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

> This is already fixed, since commit ea914c8b a few days ago.
> 
> 
> //Peter

Do we need to push another 1.2.3? This is the 3rd report I have seen with
the Solaris bug that has already been fixed.

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 11 21:11:07 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BKAwLA028779;
	Thu, 11 Feb 2010 21:11:04 +0100
Received: from mail.intersystems.com (mail.intersys.com [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BKAu2E028736
	for <libssh2-devel@cool.haxx.se>; Thu, 11 Feb 2010 21:10:56 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: requested change for Sun/Solaris compatibility
From: Dave McCaldon <davem@intersystems.com>
In-Reply-To: <000001caab52$df669370$9e33ba50$@com>
Date: Thu, 11 Feb 2010 15:10:51 -0500
Message-Id: <EE467B81-140D-486D-85F5-E4F570CB8955@intersystems.com>
References: <20100211190746.GC29040@net.tufts.edu>
	<20100211191212.4336.qmail@stuge.se>
	<000001caab52$df669370$9e33ba50$@com>
To: libssh2 development <libssh2-devel@cool.haxx.se>,
        Neil Gierman <ngierman@roadrunn.com>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


On Feb 11, 2010, at 2:46 PM, Neil Gierman wrote:

>> This is already fixed, since commit ea914c8b a few days ago.
>> 
>> 
>> //Peter
> 
> Do we need to push another 1.2.3? This is the 3rd report I have seen with
> the Solaris bug that has already been fixed.

1.2.3 as it was released was also broken on Tru64 (DECunix), which has also been fixed.

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 11 21:18:28 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BKIN4J001440;
	Thu, 11 Feb 2010 21:18:26 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1BKILn4001431
	for <libssh2-devel@cool.haxx.se>; Thu, 11 Feb 2010 21:18:21 +0100
Received: (qmail 27429 invoked by uid 501); 11 Feb 2010 20:17:41 -0000
Message-ID: <20100211201741.27428.qmail@stuge.se>
Date: Thu, 11 Feb 2010 21:17:41 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: requested change for Sun/Solaris compatibility
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <20100211190746.GC29040@net.tufts.edu>
	<20100211191212.4336.qmail@stuge.se>
	<000001caab52$df669370$9e33ba50$@com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <000001caab52$df669370$9e33ba50$@com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Neil Gierman wrote:
> > This is already fixed, since commit ea914c8b a few days ago.
> 
> Do we need to push another 1.2.3?

I thought about another release too. Daniel, do you like a 1.2.4?


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 11 21:57:13 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BKv6Sn029907;
	Thu, 11 Feb 2010 21:57:10 +0100
Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com
	[71.74.56.123])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BKv3d9029838
	for <libssh2-devel@cool.haxx.se>; Thu, 11 Feb 2010 21:57:04 +0100
X-Authority-Analysis: v=1.0 c=1 a=s9_FGNSXz1ywvt0OCwgA:9
	a=YDrV0FEjVA8bzdWP4ojMZOvtSaAA:4 a=yMhMjlubAAAA:8
	a=SSmOFEACAAAA:8 a=25tJiSwMZxQHoYi7ZJ0A:9
	a=3tFiaxx8yYagpDs4LQUA:7 a=wtVE3nnoWjUwef76ZGW-04t2P4YA:4
X-Cloudmark-Score: 0
X-Originating-IP: 70.116.71.237
Received: from [70.116.71.237] ([70.116.71.237:59596] helo=dc7100.roadrunn.com)
	by hrndva-oedge02.mail.rr.com (envelope-from <ngierman@roadrunn.com>)
	(ecelerity 2.2.2.39 r()) with ESMTP
	id 2B/EE-24559-B1F647B4; Thu, 11 Feb 2010 20:56:59 +0000
Received: by dc7100.roadrunn.com (Postfix, from userid 501)
	id 5966F830A2B; Thu, 11 Feb 2010 15:50:43 -0600 (CST)
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on dc7100.roadrunn.com
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,
	HTML_MESSAGE autolearn=ham version=3.2.4
Received: from ngierman3 (dc7100 [192.168.1.6])
	by dc7100.roadrunn.com (Postfix) with ESMTP id 2C59D830A11
	for <libssh2-devel@cool.haxx.se>; Thu, 11 Feb 2010 15:50:39 -0600 (CST)
From: "Neil Gierman" <ngierman@roadrunn.com>
To: <libssh2-devel@cool.haxx.se>
Subject: NULL after *_free?
Date: Thu, 11 Feb 2010 14:56:54 -0600
Message-ID: <001401caab5c$be3fe5c0$3abfb140$@com>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AcqrXL4EoaDoAnyeTLCfDvb62mcdNw==
Content-Language: en-us
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0801266776=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

This is a multi-part message in MIME format.

--===============0801266776==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0015_01CAAB2A.73A575C0"
Content-Language: en-us

This is a multi-part message in MIME format.

------=_NextPart_000_0015_01CAAB2A.73A575C0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

I was running across some crashes in my code and while I think the original
crash was not due to libssh2, I saw some things in libssh2 that I don't know
are optimal. In libssh2_session_free and libssh2_channel_free, we do free()
the memory and then leave the pointer to whatever. In debug versions of VC++
binaries, free'd pointers are given a specific address (0xFEEEFEEE) to
signify to the debugger that the memory has been free()'d. The problem in my
code is I have a FREE macro that checks if a pointer is NULL and if not,
free()'s it. You can image the rest, a pointer of 0xFEEEFEEE is not NULL but
free()ing that will be bad. Should we set pointers to NULL after free()'ing
them, or is that the responsibility of the application?


------=_NextPart_000_0015_01CAAB2A.73A575C0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal>I was running across some crashes in my code and =
while I
think the original crash was not due to libssh2, I saw some things in =
libssh2
that I don&#8217;t know are optimal. In libssh2_session_free and =
libssh2_channel_free,
we do free() the memory and then leave the pointer to whatever. In debug
versions of VC++ binaries, free&#8217;d pointers are given a specific =
address (0xFEEEFEEE)
to signify to the debugger that the memory has been free()&#8217;d. The =
problem
in my code is I have a FREE macro that checks if a pointer is NULL and =
if not,
free()&#8217;s it. You can image the rest, a pointer of 0xFEEEFEEE is =
not NULL
but free()ing that will be bad. Should we set pointers to NULL after =
free()&#8217;ing
them, or is that the responsibility of the application?<o:p></o:p></p>

</div>

</body>

</html>

------=_NextPart_000_0015_01CAAB2A.73A575C0--


--===============0801266776==
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

--===============0801266776==--

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 11 22:02:14 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BL21RY002975;
	Thu, 11 Feb 2010 22:02:03 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1BL1x84002951
	for <libssh2-devel@cool.haxx.se>; Thu, 11 Feb 2010 22:01:59 +0100
Received: (qmail 2920 invoked by uid 501); 11 Feb 2010 21:01:21 -0000
Message-ID: <20100211210121.2919.qmail@stuge.se>
Date: Thu, 11 Feb 2010 22:01:20 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: NULL after *_free?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <001401caab5c$be3fe5c0$3abfb140$@com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <001401caab5c$be3fe5c0$3abfb140$@com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Neil Gierman wrote:
> in my code is I have a FREE macro that checks if a pointer is NULL
> and if not, free()'s it.
..
> Should we set pointers to NULL after free()'ing them, or is that
> the responsibility of the application?

That's in the app. Your macro, you have to make sure it's suitable.

I'm not strongly opposed to it but I do think the library should be
as thin as possible, so I do prefer not to add it.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 11 22:16:21 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BLG5k4014308;
	Thu, 11 Feb 2010 22:16:11 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BLG461014295
	for <libssh2-devel@cool.haxx.se>; Thu, 11 Feb 2010 22:16:04 +0100
Date: Thu, 11 Feb 2010 22:16:04 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: requested change for Sun/Solaris compatibility
In-Reply-To: <20100211201741.27428.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1002112214380.12881@tvnag.unkk.fr>
References: <20100211190746.GC29040@net.tufts.edu>
	<20100211191212.4336.qmail@stuge.se>
	<000001caab52$df669370$9e33ba50$@com>
	<20100211201741.27428.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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Thu, 11 Feb 2010, Peter Stuge wrote:

> I thought about another release too. Daniel, do you like a 1.2.4?

I don't mind a 1.2.4. If anyone have something additional to push in, please 
speak up! Or else I'll just build a new release tomorrow!

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 11 22:19:39 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BLJbGF015626;
	Thu, 11 Feb 2010 22:19:38 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1BLJZss015621
	for <libssh2-devel@cool.haxx.se>; Thu, 11 Feb 2010 22:19:35 +0100
Date: Thu, 11 Feb 2010 22:19:35 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: NULL after *_free?
In-Reply-To: <20100211210121.2919.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1002112217140.12881@tvnag.unkk.fr>
References: <001401caab5c$be3fe5c0$3abfb140$@com>
	<20100211210121.2919.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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Thu, 11 Feb 2010, Peter Stuge wrote:

> I'm not strongly opposed to it but I do think the library should be as thin 
> as possible, so I do prefer not to add it.

I agree. And we have tools like custom mallocs or valgrind to track memory 
errors that referring to already freed memory would cause.

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Sat Feb 13 07:45:14 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1D6iurP026212;
	Sat, 13 Feb 2010 07:45:07 +0100
Received: from mailserver3.caci.com (mailserver3.caci.com [204.194.79.134])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1CNkIJo013444
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Sat, 13 Feb 2010 00:46:21 +0100
Received: from excas-hub03.caci.com ([10.15.201.201])
	by mailserver3.caci.com with ESMTP/TLS/AES128-SHA;
	12 Feb 2010 18:29:21 -0500
Received: from exclu02.caci.com ([169.254.1.252]) by excas-hub03.caci.com
	([10.15.201.201]) with mapi; Fri, 12 Feb 2010 18:46:17 -0500
From: Yelin Chen <ychen@caci.com>
To: "libssh2-devel@lists.sourceforge.net"
	<libssh2-devel@lists.sourceforge.net>,
        "libssh2-devel@cool.haxx.se"
	<libssh2-devel@cool.haxx.se>
Date: Fri, 12 Feb 2010 18:49:48 -0500
Subject: Help - build libssh2  
Thread-Topic: Help - build libssh2  
Thread-Index: AcqsPg93Is7Zb5n7QmquotQK23Yu0w==
Message-ID: <F5C4471B6142FE48BFC5FE3ED7A53EB81670A14C8B@EXCLU02.caci.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
MIME-Version: 1.0
X-Mailman-Approved-At: Sat, 13 Feb 2010 07:44:55 +0100
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0049355240=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0049355240==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_F5C4471B6142FE48BFC5FE3ED7A53EB81670A14C8BEXCLU02cacico_"

--_000_F5C4471B6142FE48BFC5FE3ED7A53EB81670A14C8BEXCLU02cacico_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Dear Sir/Madam,

I've just downloaded libssh2.1-2.2.tar.gz from http://www.libssh2.org to bu=
ild it on Sun T5120 server running open Solaris 10 (u6). This lib is requir=
ed by my perl NET::SSH2 installation. Following instruction in the INSTALL =
file, I successfully ran the first command, 'configure CC=3D/usr/sfw/bin/gc=
c', however, got errors in the second command, 'gmake' as follows:

gmake[2]: Entering directory `/export/home/achen/perl/SSH2_dependency/libss=
h2-1.2.2/example/simple'
/bin/bash ../../libtool --tag=3DCC --mode=3Dlink /usr/sfw/bin/gcc  -g -O2  =
 -o ssh2  ssh2.o ../../src/libssh2.la -lnsl -lsocket
libtool: link: /usr/sfw/bin/gcc -g -O2 -o .libs/ssh2 ssh2.o  ../../src/.lib=
s/libssh2.so -lssl -lcrypto -lz -lnsl -lsocket -R/usr/local/lib
Undefined                       first referenced
 symbol                             in file
EVP_aes_192_cbc                     ../../src/.libs/libssh2.so
EVP_aes_256_cbc                     ../../src/.libs/libssh2.so

Couldn't figure out where to find EVP_aes_192_cbc, EVP_aes_256_cbc definiti=
on. Any suggestion?
Note that I'm running with the compilation environment:

PATH=3D/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/openwin/bin:/usr/ucb:/bin:/etc:=
/usr/perl5/5.8.4/bin:/usr/local/bin:/usr/sfw/bin:.
LD_LIBRARY_PATH=3D/ usr/openwin/lib:/usr/db/lib:/usr/sfw/lib:/usr/sfw/lib/s=
parcv9/libgcc_s.so.1

Please kindly lend me a hand with this issue. Appreciate your help.

Yelin.

--_000_F5C4471B6142FE48BFC5FE3ED7A53EB81670A14C8BEXCLU02cacico_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal>Dear Sir/Madam,<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>I&#8217;ve just downloaded libssh2.1-2.2.tar.gz from <=
a
href=3D"http://www.libssh2.org">http://www.libssh2.org</a> to build it on S=
un
T5120 server running open Solaris 10 (u6). This lib is required by my perl
NET::SSH2 installation. Following instruction in the INSTALL file, I succes=
sfully
ran the first command, &#8216;configure CC=3D/usr/sfw/bin/gcc&#8217;, howev=
er, got
errors in the second command, &#8216;gmake&#8217; as follows:<o:p></o:p></p=
>

<p class=3DMsoNormal style=3D'margin-left:.5in'><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'>gmake[2]: Entering director=
y
`/export/home/achen/perl/SSH2_dependency/libssh2-1.2.2/example/simple'<o:p>=
</o:p></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'>/bin/bash ../../libtool --t=
ag=3DCC
--mode=3Dlink /usr/sfw/bin/gcc&nbsp; -g -O2&nbsp;&nbsp; -o ssh2&nbsp; ssh2.=
o
../../src/libssh2.la -lnsl -lsocket<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'>libtool: link: /usr/sfw/bin=
/gcc -g
-O2 -o .libs/ssh2 ssh2.o&nbsp; ../../src/.libs/libssh2.so -lssl -lcrypto -l=
z
-lnsl -lsocket -R/usr/local/lib<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'>Undefined&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
first referenced<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'>&nbsp;symbol&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;
in file<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'>EVP_aes_192_cbc&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
../../src/.libs/libssh2.so<o:p></o:p></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'>EVP_aes_256_cbc&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
../../src/.libs/libssh2.so <o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>Couldn&#8217;t figure out where to find EVP_aes_192_cb=
c, EVP_aes_256_cbc
definition. Any suggestion?<o:p></o:p></p>

<p class=3DMsoNormal>Note that I&#8217;m running with the compilation envir=
onment:<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>PATH=3D/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/openwin/bi=
n:/usr/ucb:/bin:/etc:/usr/perl5/5.8.4/bin:/usr/local/bin:/usr/sfw/bin:.<o:p=
></o:p></p>

<p class=3DMsoNormal>LD_LIBRARY_PATH=3D/ usr/openwin/lib:/usr/db/lib:/usr/s=
fw/lib:/usr/sfw/lib/sparcv9/libgcc_s.so.1<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>Please kindly lend me a hand with this issue. Apprecia=
te your
help.<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>Yelin.<o:p></o:p></p>

</div>

</body>

</html>

--_000_F5C4471B6142FE48BFC5FE3ED7A53EB81670A14C8BEXCLU02cacico_--

--===============0049355240==
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

--===============0049355240==--

From libssh2-devel-bounces@cool.haxx.se  Sat Feb 13 08:44:34 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1D7iLK0024903;
	Sat, 13 Feb 2010 08:44:31 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1D7iIFD024863
	for <libssh2-devel@cool.haxx.se>; Sat, 13 Feb 2010 08:44:18 +0100
Received: (qmail 22881 invoked by uid 501); 13 Feb 2010 07:44:18 -0000
Message-ID: <20100213074418.22880.qmail@stuge.se>
Date: Sat, 13 Feb 2010 08:44:18 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se,
        "libssh2-devel@lists.sourceforge.net"
	<libssh2-devel@lists.sourceforge.net>
Subject: Re: Help - build libssh2
Mail-Followup-To: libssh2-devel@cool.haxx.se,
	"libssh2-devel@lists.sourceforge.net"
	<libssh2-devel@lists.sourceforge.net>
References: <F5C4471B6142FE48BFC5FE3ED7A53EB81670A14C8B@EXCLU02.caci.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <F5C4471B6142FE48BFC5FE3ED7A53EB81670A14C8B@EXCLU02.caci.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hello Yelin,

Yelin Chen wrote:
> I've just downloaded libssh2.1-2.2.tar.gz from
> http://www.libssh2.org to build it on Sun T5120 server running open
> Solaris 10 (u6).

Please note that version 1.2.2 is somewhat old. Version 1.2.3 was
released recently and fixes several known bugs, but unfortunately it
also introduced a build bug for Solaris, at least when using the Sun
compiler. The build bug is fixed already and version 1.2.4 will be
released very soon but if you need to proceed before it becomes
available I would recommend either downloading the source code from
our git repository or using a daily snapshot:

http://libssh2.org/snapshots/libssh2-1.2.4-20100213.tar.gz


> I successfully ran the first command, 'configure CC=/usr/sfw/bin/gcc',
> however, got errors in the second command, 'gmake' as follows:
> 
> gmake[2]: Entering directory `/export/home/achen/perl/SSH2_dependency/libssh2-1.2.2/example/simple'
> /bin/bash ../../libtool --tag=CC --mode=link /usr/sfw/bin/gcc  -g -O2   -o ssh2  ssh2.o ../../src/libssh2.la -lnsl -lsocket
> libtool: link: /usr/sfw/bin/gcc -g -O2 -o .libs/ssh2 ssh2.o  ../../src/.libs/libssh2.so -lssl -lcrypto -lz -lnsl -lsocket -R/usr/local/lib
> Undefined                       first referenced
>  symbol                             in file
> EVP_aes_192_cbc                     ../../src/.libs/libssh2.so
> EVP_aes_256_cbc                     ../../src/.libs/libssh2.so
> 
> Couldn't figure out where to find EVP_aes_192_cbc, EVP_aes_256_cbc
> definition. Any suggestion?

These are names of encryption algorithms in OpenSSL. The errors mean
that your installed version of OpenSSL does not support AES with 192
or 256 bit keys.

Would you like to use these key lengths? If so, you must install a
version of OpenSSL which supports them.

If not, you can either remove the encryption methods from the libssh2
source file src/crypt.c: (line number in brackets)

libssh2_crypt_method_aes192_ctr (131)
libssh2_crypt_method_aes256_ctr (143)
libssh2_crypt_method_aes192_cbc (169)
libssh2_crypt_method_aes256_cbc (181)

and in the list of all methods:

_libssh2_crypt_methods (298)


..or you could introduce new LIBSSH2_AES192 and LIBSSH2_AES256 flags
to be set in openssl.h and libgcrypt.h respectively.


In the long term I think it would be nice for libssh2 to just
autodetect which crypto capabilities are available and use what is
there - but there is no plan for implementing this at the moment.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Sat Feb 13 17:18:22 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1DGI99W027945;
	Sat, 13 Feb 2010 17:18:19 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1DGI8dN027940
	for <libssh2-devel@cool.haxx.se>; Sat, 13 Feb 2010 17:18:08 +0100
Date: Sat, 13 Feb 2010 17:18:08 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: ANNOUCE: libssh2 1.2.4
Message-ID: <alpine.DEB.2.00.1002131717170.10821@tvnag.unkk.fr>
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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi friends,

I've just packaged and uploaded another release: libssh2 1.2.4

This release includes the following bugfixes:

  o Resolve compile issues on Solaris x64 and UltraSPARC
  o Allow compiling with OpenSSL when AES isn't available
  o Fix Tru64 socklen_t compile issue with example/direct_tcpip.c

This release would not have looked like this without help, code, reports and
advice from friends like these:

  Dan Fandrich, Dave McCaldon, Peter Stuge

         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  Sun Feb 14 03:17:04 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1E2GnlN026807;
	Sun, 14 Feb 2010 03:16:59 +0100
Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com
	[71.74.56.122])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1E2Gl47026742
	for <libssh2-devel@cool.haxx.se>; Sun, 14 Feb 2010 03:16:47 +0100
X-Authority-Analysis: v=1.0 c=1 a=fNnIAmBTxwAA:10 a=hZyVJcBro7XsJxABoUgA:9
	a=xSZOgqrA7HJNgL6FS70A:7 a=qv1AtDHNRnnBxP4SQbIQ2MxZHIkA:4
X-Cloudmark-Score: 0
X-Originating-IP: 70.116.71.237
Received: from [70.116.71.237] ([70.116.71.237:36694] helo=dc7100.roadrunn.com)
	by hrndva-oedge02.mail.rr.com (envelope-from <ngierman@roadrunn.com>)
	(ecelerity 2.2.2.39 r()) with ESMTP
	id A9/37-13133-A0D577B4; Sun, 14 Feb 2010 02:16:42 +0000
Received: by dc7100.roadrunn.com (Postfix, from userid 501)
	id 9D5D0830A2D; Sat, 13 Feb 2010 21:10:27 -0600 (CST)
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on dc7100.roadrunn.com
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00
	autolearn=ham version=3.2.4
Received: from ngierman3 (dc7100 [192.168.1.6])
	by dc7100.roadrunn.com (Postfix) with ESMTP id 7F8CF830A2A
	for <libssh2-devel@cool.haxx.se>; Sat, 13 Feb 2010 21:10:23 -0600 (CST)
From: "Neil Gierman" <ngierman@roadrunn.com>
To: <libssh2-devel@cool.haxx.se>
Subject: Compiler warnings with VC++ and 1.2.4
Date: Sat, 13 Feb 2010 20:16:37 -0600
Message-ID: <000b01caad1b$bd357580$37a06080$@com>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AcqtG7uli4aQ8vCKRiixeNH8harUBQ==
Content-Language: en-us
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

I just grabbed the 1.2.4 source and compiled it. I am getting some compiler
warnings where I didn't use to. The patch below makes the warnings go away
(not sure about my scp changes).

Index: include/libssh2.h
===================================================================
--- include/libssh2.h	(revision 16504)
+++ include/libssh2.h	(working copy)
@@ -84,6 +84,13 @@
 typedef long long libssh2_int64_t;
 #endif
 
+#ifdef WIN32
+typedef SOCKET libssh2_socket_t;
+#else /* !WIN32 */
+typedef int libssh2_socket_t;
+#define INVALID_SOCKET -1
+#endif /* WIN32 */
+
 /* We use underscore instead of dash when appending DEV in dev versions
just
    to make the BANNER define (used by src/session.c) be a valid SSH
    banner. Release versions have no appended strings and may of course not
@@ -253,7 +260,7 @@
     unsigned char type; /* LIBSSH2_POLLFD_* below */
 
     union {
-        int socket; /* File descriptors -- examined with system select()
call */
+        libssh2_socket_t socket; /* File descriptors -- examined with
system select() call */
         LIBSSH2_CHANNEL *channel; /* Examined by checking internal state */
         LIBSSH2_LISTENER *listener; /* Read polls only -- are inbound
                                        connections waiting to be accepted?
*/
Index: src/libssh2_priv.h
===================================================================
--- src/libssh2_priv.h	(revision 16504)
+++ src/libssh2_priv.h	(working copy)
@@ -886,7 +886,7 @@
     unsigned long scpRecv_command_len;
     unsigned char scpRecv_response[LIBSSH2_SCP_RESPONSE_BUFLEN];
     unsigned long scpRecv_response_len;
-    long scpRecv_mode;
+    unsigned short scpRecv_mode;
 #if defined(HAVE_LONGLONG) && defined(HAVE_STRTOLL)
     /* we have the type and we can parse such numbers */
     long long scpRecv_size;
Index: src/scp.c
===================================================================
--- src/scp.c	(revision 16504)
+++ src/scp.c	(working copy)
@@ -686,7 +686,7 @@
                 *(p++) = '\0';
                 /* Make sure we don't get fooled by leftover values */
                 errno = 0;
-                session->scpRecv_mode = strtol(s, &e, 8);
+                session->scpRecv_mode = (unsigned short)strtol(s, &e, 8);
                 if ((e && *e) || errno) {
                     libssh2_error(session, LIBSSH2_ERROR_SCP_PROTOCOL,
                                   "Invalid response from SCP server,
invalid mode",

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Sun Feb 14 19:10:36 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1EIAEIJ000502;
	Sun, 14 Feb 2010 19:10:31 +0100
Received: from mail-fx0-f211.google.com (mail-fx0-f211.google.com
	[209.85.220.211])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1EHom0o016774
	for <libssh2-devel@cool.haxx.se>; Sun, 14 Feb 2010 18:50:48 +0100
Received: by fxm3 with SMTP id 3so4102788fxm.19
	for <libssh2-devel@cool.haxx.se>; Sun, 14 Feb 2010 09:50:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:date:message-id:subject
	:from:to:content-type;
	bh=BRZkzfdNWeNMcg2UN89XYBgu1J2TyMSlWlp5JXDu7L4=;
	b=BhuhqrRgHIp3+RiK7mETiN1Qia/zLCfgI9M1RAKKQFp/MQs9ekuzk1mc5P8ke+Ko3C
	qaWUCYRgRCMYFhPABthcdgo1zFUyvyjvpQxqSzrls6mCsiG5j13wAJHT7KMLnxQEHb13
	8UkuDm8MuXDtfGbCeX959wy9SWBBri/F+wGZI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	b=lizWdHtOFyNL0ocF1KBOSjZ44hXcBooPClSZkZaXTnvjkxdRIjojtKFbLdKVAiizVu
	InqgbUfod7d2fwspbc3FHem3Ciq7YMWczy9qyyrUT+7PsHz1R6dgAjYvmt0riYUowS5r
	HcloU/3rBNlfH8N83dGZJNLJIqlaeCmN9TQYk=
MIME-Version: 1.0
Received: by 10.103.79.28 with SMTP id g28mr3049840mul.67.1266169843879; Sun, 
	14 Feb 2010 09:50:43 -0800 (PST)
Date: Sun, 14 Feb 2010 18:50:43 +0100
Message-ID: <65800b2a1002140950g3a264468o228ee1fb00e6ece8@mail.gmail.com>
Subject: libssh2_channel_exec issue
From: vicent roca daniel <saptah@gmail.com>
To: libssh2-devel@cool.haxx.se
X-Mailman-Approved-At: Sun, 14 Feb 2010 19:10:13 +0100
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1775063074=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1775063074==
Content-Type: multipart/alternative; boundary=0016e65c7d7ec50f3b047f9323cc

--0016e65c7d7ec50f3b047f9323cc
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi guys,
I'm trying to write a simple ssh client that connects to a bunch of ssh
servers and issues some command and get some results.
The problem I have is that the first libssh2_channel_exec() works fine, but
the second, third, etc.. don't work.
It seems that for some reason the channel is closed. =BFI'm doing it wrong?
I know I can open a shell, but I'd like to do it this way, seems muchs
simpler for me.

Thanks you for your responses :)
bye!!!

--0016e65c7d7ec50f3b047f9323cc
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi guys,<br>I&#39;m trying to write a simple ssh client that connects to a =
bunch of ssh servers and issues some command and get some results.<br>The p=
roblem I have is that the first libssh2_channel_exec() works fine, but the =
second, third, etc.. don&#39;t work.<br>
It seems that for some reason the channel is closed. =BFI&#39;m doing it wr=
ong?<br>I know I can open a shell, but I&#39;d like to do it this way, seem=
s muchs simpler for me.<br><br>Thanks you for your responses :)<br>bye!!!<b=
r>

--0016e65c7d7ec50f3b047f9323cc--

--===============1775063074==
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

--===============1775063074==--

From libssh2-devel-bounces@cool.haxx.se  Sun Feb 14 19:13:52 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1EIDnqY002100;
	Sun, 14 Feb 2010 19:13:50 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1EIDlNo002086
	for <libssh2-devel@cool.haxx.se>; Sun, 14 Feb 2010 19:13:47 +0100
Received: (qmail 12553 invoked by uid 501); 14 Feb 2010 18:13:48 -0000
Message-ID: <20100214181348.12552.qmail@stuge.se>
Date: Sun, 14 Feb 2010 19:13:48 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2_channel_exec issue
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <65800b2a1002140950g3a264468o228ee1fb00e6ece8@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <65800b2a1002140950g3a264468o228ee1fb00e6ece8@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

dmljZW50IHJvY2EgZGFuaWVsIHdyb3RlOgo+IFRoZSBwcm9ibGVtIEkgaGF2ZSBpcyB0aGF0IHRo
ZSBmaXJzdCBsaWJzc2gyX2NoYW5uZWxfZXhlYygpIHdvcmtzCj4gZmluZSwgYnV0IHRoZSBzZWNv
bmQsIHRoaXJkLCBldGMuLiBkb24ndCB3b3JrLgoKUGxlYXNlIHNob3cgdXMgY29kZS4KCgo+IEl0
IHNlZW1zIHRoYXQgZm9yIHNvbWUgcmVhc29uIHRoZSBjaGFubmVsIGlzIGNsb3NlZC4KPiDCv0kn
bSBkb2luZyBpdCB3cm9uZz8KCkFuIGV4ZWMgY2hhbm5lbCBpcyBjbG9zZWQgd2hlbiB0aGUgZXhl
YzplZCBwcm9jZXNzIG9uIHRoZSBzZXJ2ZXIKdGVybWluYXRlcy4gSWYgeW91IHdhbnQgdG8gc3Rh
cnQgYW5vdGhlciBwcm9jZXNzIChpbiBzZXF1ZW5jZSwgb3IgaW4KcGFyYWxsZWxsKSB0aGVuIHlv
dSBoYXZlIHRvIGNyZWF0ZSBhbm90aGVyIGNoYW5uZWwuCgoKLy9QZXRlcgpfX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpsaWJzc2gyLWRldmVsIGh0dHA6Ly9j
b29sLmhheHguc2UvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL2xpYnNzaDItZGV2ZWwK

From libssh2-devel-bounces@cool.haxx.se  Sun Feb 14 19:46:28 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1EIkJL1022421;
	Sun, 14 Feb 2010 19:46:26 +0100
Received: from mail-qy0-f172.google.com (mail-qy0-f172.google.com
	[209.85.221.172])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1EIkHTt022373
	for <libssh2-devel@cool.haxx.se>; Sun, 14 Feb 2010 19:46:17 +0100
Received: by qyk2 with SMTP id 2so1807027qyk.20
	for <libssh2-devel@cool.haxx.se>; Sun, 14 Feb 2010 10:46:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=LloteYkZi4u4iHr1IFI5PMZNtCJZAkVdhF+9/lwZkRE=;
	b=NigyNz6NkQxTjEYEjGyegSo+TdubJhIvmi5jVYkkBYxpyiX06ClNaCF80Te+SoRR+c
	kTu+8pvhFVsLZZXm4tARTCrwHworYlvUiocuLLdEWcodHvooct31GSU4lNbZurFvdJfz
	Tw02agGQAJc9YoXtgDZPdjiRfjp8WxUaK3mJ0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=QhIYvsdxmmgLXfziWdo/Hp9FYvTLcmDTi9wjSvh1USkS0TQg0YFKWjxoqWidbpustL
	zANyTfJzA5rmFx0hyFGAlEqxgzaipOj14TrNLdwoWYkRUkbIvV9eQTwlO4J8sUEqYcDR
	c+a7GYTgiOgx/4KBWGuUhFDBiqJBXYyD67Bqo=
MIME-Version: 1.0
Received: by 10.229.218.204 with SMTP id hr12mr1630138qcb.101.1266173172224; 
	Sun, 14 Feb 2010 10:46:12 -0800 (PST)
In-Reply-To: <65800b2a1002140950g3a264468o228ee1fb00e6ece8@mail.gmail.com>
References: <65800b2a1002140950g3a264468o228ee1fb00e6ece8@mail.gmail.com>
Date: Sun, 14 Feb 2010 10:46:12 -0800
Message-ID: <603122d71002141046w3bd128eh9ed027d28852d787@mail.gmail.com>
Subject: Re: libssh2_channel_exec issue
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2056304034=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============2056304034==
Content-Type: multipart/alternative; boundary=00163630e88b27948b047f93ea64

--00163630e88b27948b047f93ea64
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

| It seems that for some reason the channel is closed. =BFI'm doing it wron=
g?

Yes, AFAIK the channel closes whenever your application (process)
terminates. If not want to have that happen try to exec a shell like
"/bin/sh" then just do channel writes.

A.M.

--00163630e88b27948b047f93ea64
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br>| It seems that for some reason the channel is closed. =BFI&#39;m doing=
 it wrong?<br><br>Yes, AFAIK the channel closes whenever your application (=
process) terminates. If not want to have that happen try to exec a shell li=
ke &quot;/bin/sh&quot; then just do channel writes.<br>
<br>A.M.<br>

--00163630e88b27948b047f93ea64--

--===============2056304034==
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

--===============2056304034==--

From libssh2-devel-bounces@cool.haxx.se  Sun Feb 14 20:09:54 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1EJ9kBM004289;
	Sun, 14 Feb 2010 20:09:51 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1EJ9ivA004284
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Sun, 14 Feb 2010 20:09:44 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	o1EJ9gIM008653
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Sun, 14 Feb 2010 20:09:44 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: ANNOUCE: libssh2 1.2.4
References: <alpine.DEB.2.00.1002131717170.10821@tvnag.unkk.fr>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100214:libssh2-devel@cool.haxx.se::QCz6Y+aeCDDyflMg:Xd5q
Date: Sun, 14 Feb 2010 20:09:42 +0100
In-Reply-To: <alpine.DEB.2.00.1002131717170.10821@tvnag.unkk.fr> (Daniel
	Stenberg's message of "Sat, 13 Feb 2010 17:18:08 +0100 (CET)")
Message-ID: <871vgneirt.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Spam-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_96_XX,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg <daniel@haxx.se> writes:

> Hi friends,
>
> I've just packaged and uploaded another release: libssh2 1.2.4

Windows binaries are available as usual from:

http://josefsson.org/gnutls4win/libssh2-1.2.4.zip
http://josefsson.org/gnutls4win/libssh2-1.2.4.zip.sig
http://josefsson.org/gnutls4win/mingw32-libssh2_1.2.4-1_all.deb

The build script for this is available from:
http://josefsson.org/gnutls4win/Makefile

/Simon
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 15 00:16:45 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ENGEp4017266;
	Mon, 15 Feb 2010 00:16:23 +0100
Received: from ch3.sourceforge.net (ch3.sourceforge.net [216.34.181.60])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ENGB1a017262
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 00:16:12 +0100
Received: from www by sfs-web-4.v29.ch3.sourceforge.com with local (Exim 4.69)
	(envelope-from <noreply@sourceforge.net>)
	id 1NgnhD-0002Yd-QK; Sun, 14 Feb 2010 23:16:11 +0000
To: noreply@sourceforge.net
From: "SourceForge.net" <noreply@sourceforge.net>
Subject: [ libssh2-Bugs-2929647 ] memory leak when connection is lost
Mime-Version: 1.0
X-SourceForge-Tracker-unixname: libssh2
X-SourceForge-Tracker-trackerid: 703942
X-SourceForge-Tracker-itemid: 2929647
X-SourceForge-Tracker-itemstatus: Closed
X-SourceForge-Tracker-itemassignee: bagder
X-SourceForge-Tracker-itemupdate-reason: Comment added
X-SourceForge-Tracker-itemupdate-username: bagder
Message-Id: <E1NgnhD-0002Yd-QK@sfs-web-4.v29.ch3.sourceforge.com>
Date: Sun, 14 Feb 2010 23:16:11 +0000
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Bugs item #2929647, was opened at 2010-01-11 08:38
Message generated for change (Comment added) made by bagder
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2929647&group_id=125852

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Yoichi Iwaki (yoichiwo7)
>Assigned to: Daniel Stenberg (bagder)
Summary: memory leak when connection is lost

Initial Comment:
Version: libssh2-1.2.2

Memory for outgoing packet buffer is allocated to (session->packet->outbuf) on transport.c:737.
When the connection is lost during the session, _libssh2_transport_write() will keep the data 
to send it after (transport.c:783-794).

The problem is,  when I call libssh2_session_free() to cleanup the resouces, it won't
cleanup the kept memory allocated to (session->packet->outbuf).

By cleaning up  (session->packet->outbuf) in session_free(), the problem could be fixed.
(Please see the diff file)

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2010-02-15 00:16

Message:
Thanks for your report and help in improving libssh2!

A fix has just been committed to the source code repo, this case is now
considered fixed and closed!

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2929647&group_id=125852
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 15 00:19:08 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ENJ5ag017940;
	Mon, 15 Feb 2010 00:19:06 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ENJ4El017933
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 00:19:04 +0100
Date: Mon, 15 Feb 2010 00:19:04 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2-devel@cool.haxx.se
Subject: git and author without email?
In-Reply-To: <20100214231550.23916.qmail@earth.stuge.se>
Message-ID: <alpine.DEB.2.00.1002150017370.10821@tvnag.unkk.fr>
References: <20100214231550.23916.qmail@earth.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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Mon, 14 Feb 2010, libssh2@git.stuge.se wrote:

>    Committed the patch by Yoichi Iwaki in bug #2929647

When committing a patch from a user without a known email address, just a 
name, how do projects tend to use the commit --author option? It doesn't like 
just a name with no email.

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 15 09:54:38 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1F8sQ2k029465;
	Mon, 15 Feb 2010 09:54:33 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1F8sOrh029456
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 09:54:25 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	o1F8sLZr024635
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 09:54:23 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: git and author without email?
References: <20100214231550.23916.qmail@earth.stuge.se>
	<alpine.DEB.2.00.1002150017370.10821@tvnag.unkk.fr>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100215:libssh2-devel@cool.haxx.se::1ElWOz3QCNkNsZ6G:I3F
Date: Mon, 15 Feb 2010 09:54:21 +0100
In-Reply-To: <alpine.DEB.2.00.1002150017370.10821@tvnag.unkk.fr> (Daniel
	Stenberg's message of "Mon, 15 Feb 2010 00:19:04 +0100 (CET)")
Message-ID: <878wauc20y.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg <daniel@haxx.se> writes:

> On Mon, 14 Feb 2010, libssh2@git.stuge.se wrote:
>
>>    Committed the patch by Yoichi Iwaki in bug #2929647
>
> When committing a patch from a user without a known email address,
> just a name, how do projects tend to use the commit --author option?

I try harder to get the e-mail address.  Isn't yoichiwo7@sf.net a valid
address for him, btw?

/Simon

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 15 12:57:41 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FBvUeJ015580;
	Mon, 15 Feb 2010 12:57:39 +0100
Received: from av7-2-sn3.vrr.skanova.net (av7-2-sn3.vrr.skanova.net
	[81.228.9.182])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FBuOIT015001
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 12:56:24 +0100
Received: by av7-2-sn3.vrr.skanova.net (Postfix, from userid 502)
	id 0F02B37ED9; Mon, 15 Feb 2010 12:54:21 +0100 (CET)
Received: from smtp3-1-sn3.vrr.skanova.net (smtp3-1-sn3.vrr.skanova.net
	[81.228.9.101])
	by av7-2-sn3.vrr.skanova.net (Postfix) with ESMTP id E4ABB37E61
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 12:54:20 +0100 (CET)
Received: from [192.168.20.161] (90-227-111-200-no53.business.telia.com
	[90.227.111.200])
	by smtp3-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 7060337E67
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 12:56:23 +0100 (CET)
Message-ID: <4B793663.20705@SDlabs.se>
Date: Mon, 15 Feb 2010 12:56:19 +0100
From: Lars Nordin <Lars.Nordin@SDlabs.se>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; sv-SE;
	rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: Adding OpenSSLengine support to libssh2
X-Mailman-Approved-At: Mon, 15 Feb 2010 12:57:29 +0100
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi,

I'm planning to use libssh2 for an SSH klient. I will use smartcards for 
the private keys, support for the SC is implemented as an OpenSSL engine.

Therefore I will add OpenSSL Engine support in libssh2 and also make 
some other changes, like support for an entrophy-file (like OpenSSH's 
.rnd file).

I have made the SC-ENGINE and some other OpenSSL related stuff.

My question is if there is anyone that have done any OpenSSL engine work 
previous in libssh2?

/Lars
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 15 13:19:55 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FCJm2H029583;
	Mon, 15 Feb 2010 13:19:52 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FCJkiT029564
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 13:19:46 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	o1FCJiWc028479
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 13:19:46 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Adding OpenSSLengine support to libssh2
References: <4B793663.20705@SDlabs.se>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100215:libssh2-devel@cool.haxx.se::BnkzT5KuzB4szUJD:jxsz
Date: Mon, 15 Feb 2010 13:19:45 +0100
In-Reply-To: <4B793663.20705@SDlabs.se> (Lars Nordin's message of "Mon, 15 Feb
	2010 12:56:19 +0100")
Message-ID: <87k4ue7kta.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Lars Nordin <Lars.Nordin@SDlabs.se> writes:

> Hi,
>
> I'm planning to use libssh2 for an SSH klient. I will use smartcards
> for the private keys, support for the SC is implemented as an OpenSSL
> engine.
>
> Therefore I will add OpenSSL Engine support in libssh2

Hi!  Why is that needed?  What's wrong with using the SSH agent
interface for dealing with smartcards?  That works today; I'm using my
OpenPGP smart-card with libssh2.  This design approach allows libssh2 to
be smaller, and that all smart card related machinery is isolated to the
ssh-agent implementation.

> and also make some other changes, like support for an entrophy-file
> (like OpenSSH's .rnd file).
>
> I have made the SC-ENGINE and some other OpenSSL related stuff.
>
> My question is if there is anyone that have done any OpenSSL engine
> work previous in libssh2?

I did the work to abstract the crypto backend so that libssh2 works with
both libgrypt and OpenSSL.  I don't want to see that ability go away, so
please design your interfaces in an abstract way so nothing is OpenSSL
specific.  Ideally, for smartcards, using SSH-Agent seems more robust,
but I may be missing something here.

/Simon
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 15 14:41:36 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FDfPqh025994;
	Mon, 15 Feb 2010 14:41:33 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1FDfOw0025991
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 14:41:24 +0100
Received: (qmail 9653 invoked by uid 501); 15 Feb 2010 13:41:24 -0000
Message-ID: <20100215134124.9652.qmail@stuge.se>
Date: Mon, 15 Feb 2010 14:41:24 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Adding OpenSSLengine support to libssh2
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <4B793663.20705@SDlabs.se> <87k4ue7kta.fsf@mocca.josefsson.org>
	<4B793663.20705@SDlabs.se>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <87k4ue7kta.fsf@mocca.josefsson.org> <4B793663.20705@SDlabs.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hej Lars,

Lars Nordin wrote:
> I'm planning to use libssh2 for an SSH klient. I will use
> smartcards for the private keys, support for the SC is implemented
> as an OpenSSL engine.

Have you taken a look at the OpenSC project?

http://opensc-project.org/

Please join the mailing list.


> Therefore I will add OpenSSL Engine support in libssh2 and also
> make some other changes, like support for an entrophy-file (like
> OpenSSH's .rnd file).
..
> My question is if there is anyone that have done any OpenSSL engine
> work previous in libssh2?

Not in libssh2, but I've been with the OpenSC project for some time,
and it has an engine.


Simon Josefsson wrote:
> > Therefore I will add OpenSSL Engine support in libssh2
> 
> Hi!  Why is that needed?  What's wrong with using the SSH agent
> interface for dealing with smartcards?

I agree with Simon. I think the best way would be to use the agent
interface, and adapt or create an SSH agent to support your cards.


OpenSC is basically a generic PKCS#11 driver for many different card
OSes. It also includes PKCS#15 emulation for many (most) cards, which
do not use that layout natively.

There have been patches for many years to add PKCS#11 support into
OpenSSH but there is not quite enough momentum for those patches to
become integrated. Only one hero (Alon Bar-Lev) is really pushing for
the integration and has produced the code although I am sure that
many people would appreciate if it was added.

I think it is slowly on it's way, but it would be good to have more
motivated developers help make it happen. The rabbit hole goes over
into OpenBSD also - which is the upstream for OpenSSH-portable which
is what most of us are running - and PKCS#11 acceptance is I guess
slow there.

Maybe you feel committed to *only* maintaining your card driver as an
OpenSSL engine, but I would like to suggest that you move it over
into OpenSC instead. There are already several glue packages to use
OpenSC as p11, engine, CSP, tokend, and more.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 15 17:11:32 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FGBM1D003715;
	Mon, 15 Feb 2010 17:11:29 +0100
Received: from ch3.sourceforge.net (ch3.sourceforge.net [216.34.181.60])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FGBKT8003711
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 17:11:21 +0100
Received: from www by sfs-web-5.v29.ch3.sourceforge.com with local (Exim 4.69)
	(envelope-from <noreply@sourceforge.net>)
	id 1Nh3Xa-0004IA-P9; Mon, 15 Feb 2010 16:11:18 +0000
To: noreply@sourceforge.net
From: "SourceForge.net" <noreply@sourceforge.net>
Subject: [ libssh2-Bugs-2952151 ] Sometimes ssh2 test fails on Solaris 8 Sparc
Mime-Version: 1.0
X-SourceForge-Tracker-unixname: libssh2
X-SourceForge-Tracker-trackerid: 703942
X-SourceForge-Tracker-itemid: 2952151
X-SourceForge-Tracker-itemstatus: Open
X-SourceForge-Tracker-itemassignee: nobody
X-SourceForge-Tracker-itemupdate-reason: Tracker Item Submitted
X-SourceForge-Tracker-itemupdate-username: dmichelsen
Message-Id: <E1Nh3Xa-0004IA-P9@sfs-web-5.v29.ch3.sourceforge.com>
Date: Mon, 15 Feb 2010 16:11:18 +0000
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Bugs item #2952151, was opened at 2010-02-15 17:11
Message generated for change (Tracker Item Submitted) made by dmichelsen
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2952151&group_id=125852

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: misc
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dagobert Michelsen (dmichelsen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Sometimes ssh2 test fails on Solaris 8 Sparc

Initial Comment:
Sometimes the ssh2 test failes on Solaris 8 Sparc w/Sun Studio 11:

gmake[4]: Entering directory `/home/dam/mgar/pkg/libssh2/trunk/work/solaris8-sparc/build-isa-sparcv8/libssh2-1.2.4/tests'
PASS: simple
Fingerprint: 86 AD B2 21 33 60 65 3D 9A 29 86 DE 22 99 DA 18 CC BA D3 AC 
Authentication methods: publickey,password,keyboard-interactive
        Authentication by public key succeeded.
^CFAIL: ssh2.sh
===========================================
1 of 2 tests failed
Please report to libssh2-devel@cool.haxx.se
===========================================
gmake[4]: *** [check-TESTS] Error 1



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2952151&group_id=125852
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 15 18:54:18 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FHs6tO013784;
	Mon, 15 Feb 2010 18:54:15 +0100
Received: from ch3.sourceforge.net (ch3.sourceforge.net [216.34.181.60])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FHs5gT013779
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 18:54:05 +0100
Received: from www by sfs-web-8.v29.ch3.sourceforge.com with local (Exim 4.69)
	(envelope-from <noreply@sourceforge.net>)
	id 1Nh591-0001kS-HT; Mon, 15 Feb 2010 17:54:03 +0000
To: noreply@sourceforge.net
From: "SourceForge.net" <noreply@sourceforge.net>
Subject: [ libssh2-Bugs-2952151 ] Sometimes ssh2 test fails on Solaris 8 Sparc
Mime-Version: 1.0
X-SourceForge-Tracker-unixname: libssh2
X-SourceForge-Tracker-trackerid: 703942
X-SourceForge-Tracker-itemid: 2952151
X-SourceForge-Tracker-itemstatus: Open
X-SourceForge-Tracker-itemassignee: nobody
X-SourceForge-Tracker-itemupdate-reason: Comment added
X-SourceForge-Tracker-itemupdate-username: jas4711
Message-Id: <E1Nh591-0001kS-HT@sfs-web-8.v29.ch3.sourceforge.com>
Date: Mon, 15 Feb 2010 17:54:03 +0000
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Bugs item #2952151, was opened at 2010-02-15 16:11
Message generated for change (Comment added) made by jas4711
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2952151&group_id=125852

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: misc
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dagobert Michelsen (dmichelsen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Sometimes ssh2 test fails on Solaris 8 Sparc

Initial Comment:
Sometimes the ssh2 test failes on Solaris 8 Sparc w/Sun Studio 11:

gmake[4]: Entering directory `/home/dam/mgar/pkg/libssh2/trunk/work/solaris8-sparc/build-isa-sparcv8/libssh2-1.2.4/tests'
PASS: simple
Fingerprint: 86 AD B2 21 33 60 65 3D 9A 29 86 DE 22 99 DA 18 CC BA D3 AC 
Authentication methods: publickey,password,keyboard-interactive
        Authentication by public key succeeded.
^CFAIL: ssh2.sh
===========================================
1 of 2 tests failed
Please report to libssh2-devel@cool.haxx.se
===========================================
gmake[4]: *** [check-TESTS] Error 1



----------------------------------------------------------------------

>Comment By: Simon Josefsson (jas4711)
Date: 2010-02-15 17:54

Message:
Hi.  What does "sometimes" mean?  Does it happen on first attempt only
(indicating a too small delay value), or does it happen on average every
1/128th time (indicating a cryptographic bit problem)?

Anyway, could you try and increase the sleep value in 'tests/ssh2.sh' from
3 seconds to, say, 10 seconds and re-run the tests?

/Simon

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2952151&group_id=125852
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 15 22:37:28 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FLbGkg022717;
	Mon, 15 Feb 2010 22:37:24 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FLbFXk022712
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 22:37:15 +0100
Received: (qmail 24292 invoked from network); 15 Feb 2010 21:37:15 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 15 Feb 2010 21:37:15 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Mon, 15 Feb 2010 21:37:15 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #146: ssh-agent authorization patch
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/146#comment:4
Message-ID: <053.db8c84f214f29333a2195b3a0f375256@libssh2.stuge.se>
References: <044.16472c886806c3747df5f87a0fd3b406@libssh2.stuge.se>
X-Trac-Ticket-ID: 146
In-Reply-To: <044.16472c886806c3747df5f87a0fd3b406@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#146: ssh-agent authorization patch
--------------------------+-------------------------------------------------
  Reporter:  tony2001     |       Owner:        
      Type:  enhancement  |      Status:  closed
  Priority:  normal       |   Milestone:        
 Component:  component1   |     Version:        
Resolution:  outdated     |    Keywords:        
 Blockedby:               |       Patch:  1     
  Blocking:               |  
--------------------------+-------------------------------------------------
Changes (by bagder):

  * status:  new => closed
  * resolution:  => outdated
  * component:  => component1
  * type:  => enhancement


Comment:

 Closing this as ssh agent support was added, but independently of this
 patch.

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/146#comment:4>
libssh2 <http://libssh2.stuge.se/>
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  Mon Feb 15 23:00:20 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FM0Dxt006271;
	Mon, 15 Feb 2010 23:00:19 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FM0CX4006225
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 23:00:12 +0100
Date: Mon, 15 Feb 2010 23:00:12 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: new issue tracker
Message-ID: <alpine.DEB.2.00.1002152257580.13315@tvnag.unkk.fr>
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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hello!

Peter Stuge kindly hosts the new bug and issue tracker for the libssh2 project 
over at:

 	http://libssh2.stuge.se/

All existing and older issues have been moved over and I've disabled the 
tracker on the sourceforge site. I don't think we now use any services from 
sourceforge in this project anymore.

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 15 23:03:29 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FM3P4R010931;
	Mon, 15 Feb 2010 23:03:27 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FM3Ovp010920
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 23:03:24 +0100
Received: (qmail 25359 invoked from network); 15 Feb 2010 22:03:25 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 15 Feb 2010 22:03:25 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Mon, 15 Feb 2010 22:03:25 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #148: pkgconfig
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/148#comment:1
Message-ID: <054.23a1a161db6cfd73a78aedd515ed8cca@libssh2.stuge.se>
References: <045.20d4777af4f99f1cc53fffefdd5796fb@libssh2.stuge.se>
X-Trac-Ticket-ID: 148
In-Reply-To: <045.20d4777af4f99f1cc53fffefdd5796fb@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#148: pkgconfig
--------------------------+-------------------------------------------------
  Reporter:  benkibbey    |       Owner:        
      Type:  build error  |      Status:  closed
  Priority:  normal       |   Milestone:        
 Component:               |     Version:        
Resolution:  outdated     |    Keywords:        
 Blockedby:               |       Patch:  1     
  Blocking:               |  
--------------------------+-------------------------------------------------
Changes (by bagder):

  * status:  new => closed
  * type:  => build error
  * resolution:  => outdated


Comment:

 We implemented pkg-config support independently of this patch.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/148#comment:1>
libssh2 <http://trac.libssh2.org/>
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  Mon Feb 15 23:06:24 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FM6C87014306;
	Mon, 15 Feb 2010 23:06:14 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FM6BKb014300
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 15 Feb 2010 23:06:11 +0100
Received: (qmail 25520 invoked from network); 15 Feb 2010 22:06:11 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 15 Feb 2010 22:06:11 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Mon, 15 Feb 2010 22:06:11 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #48: problems with remote forwarding
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/48#comment:1
Message-ID: <052.38ffe9c236f17348bad731d9562c03ab@libssh2.stuge.se>
References: <043.6946ff4e665224720cc9e67762e401cd@libssh2.stuge.se>
X-Trac-Ticket-ID: 48
In-Reply-To: <043.6946ff4e665224720cc9e67762e401cd@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#48: problems with remote forwarding
----------------------+-----------------------------------------------------
  Reporter:  evaldes  |       Owner:        
      Type:  defect   |      Status:  closed
  Priority:  normal   |   Milestone:        
 Component:           |     Version:        
Resolution:  wontfix  |    Keywords:        
 Blockedby:           |       Patch:  0     
  Blocking:           |  
----------------------+-----------------------------------------------------
Changes (by bagder):

  * status:  new => closed
  * resolution:  => wontfix


Comment:

 libssh2_poll() is deprecated. We don't work on fixing problems with it! If
 you can repeat a problem without it, we'll be interested. Please file a
 new report then!

-- 
Ticket URL: <http://trac.libssh2.org/ticket/48#comment:1>
libssh2 <http://trac.libssh2.org/>
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 Feb 16 00:27:31 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1FNRL93021955;
	Tue, 16 Feb 2010 00:27:28 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1FNRJja021925
	for <libssh2-devel@cool.haxx.se>; Tue, 16 Feb 2010 00:27:19 +0100
Received: (qmail 6713 invoked by uid 501); 15 Feb 2010 23:27:19 -0000
Message-ID: <20100215232719.6712.qmail@stuge.se>
Date: Tue, 16 Feb 2010 00:27:19 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: new issue tracker
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <alpine.DEB.2.00.1002152257580.13315@tvnag.unkk.fr>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.00.1002152257580.13315@tvnag.unkk.fr>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg wrote:
> http://libssh2.stuge.se/

Note that this URL is only temporary until we get the real one
working. It will be http://trac.libssh2.org/ but we're missing a DNS
entry for now. Please note that the URL in emails sent by trac are
wrong for now.

Also, I may still do some changes in the installation, so if
something looks broken then please retry again after a few seconds,
and if it still doesn't work for you just shoot me an email.

Thanks!


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Tue Feb 16 01:57:04 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1G0urBC011107;
	Tue, 16 Feb 2010 01:57:00 +0100
Received: from fluffy.macrabbit.com (fluffy.macrabbit.com [70.84.77.114])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1G0uFet010904
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 16 Feb 2010 01:56:16 +0100
Received: (qmail 22019 invoked from network); 16 Feb 2010 01:56:16 +0100
Received: from 78-20-244-86.access.telenet.be (HELO ?10.0.1.7?) (78.20.244.86)
	by fluffy.macrabbit.com with (AES128-SHA encrypted) SMTP;
	16 Feb 2010 01:56:15 +0100
From: Jan Van Boghout <lists@macrabbit.com>
Content-Type: multipart/mixed; boundary=Apple-Mail-2-211762864
Subject: [PATCH] Timeout support for blocking API
Date: Tue, 16 Feb 2010 01:56:11 +0100
Message-Id: <E68B7328-50DE-4010-93D2-BAB1BB37E15F@macrabbit.com>
To: libssh2-devel@cool.haxx.se
Mime-Version: 1.0 (Apple Message framework v1077)
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


--Apple-Mail-2-211762864
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Hello!

These patches are a proposal for a user-customizable timeout value when =
interacting with sessions in blocking mode. See the following comment in =
session.c:
/* Note that this COULD be made to use a timeout that perhaps could be =
customizable by the app or something... */

Best regards,
Jan


--Apple-Mail-2-211762864
Content-Disposition: attachment;
	filename=libssh2.h.patch
Content-Type: application/octet-stream;
	name="libssh2.h.patch"
Content-Transfer-Encoding: 7bit

--- libssh2-1.2.4/include/libssh2.h	1.2.4
+++ libssh2-1.2.4/include/libssh2.h	patched
@@ -637,6 +637,10 @@ LIBSSH2_API void libssh2_session_set_blo
                                               int blocking);
 LIBSSH2_API int libssh2_session_get_blocking(LIBSSH2_SESSION* session);
 
+LIBSSH2_API void libssh2_session_set_timeout(LIBSSH2_SESSION* session,
+                                             long timeout);
+LIBSSH2_API long libssh2_session_get_timeout(LIBSSH2_SESSION* session);
+
 LIBSSH2_API void libssh2_channel_set_blocking(LIBSSH2_CHANNEL *channel,
                                               int blocking);
 

--Apple-Mail-2-211762864
Content-Disposition: attachment;
	filename=libssh2_priv.h.patch
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="libssh2_priv.h.patch"
Content-Transfer-Encoding: 7bit

--- src/libssh2_priv.h	1.2.4
+++ src/libssh2_priv.h	patched
@@ -690,6 +690,9 @@ struct _LIBSSH2_SESSION
 
     /* this is set to TRUE if a blocking API behavior is requested */
     int api_block_mode;
+    
+    /* Timeout used when blocking API behavior is active */
+    long api_timeout;
 
     /* Server's public key */
     const LIBSSH2_HOSTKEY_METHOD *hostkey;

--Apple-Mail-2-211762864
Content-Disposition: attachment;
	filename=session.c.patch
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="session.c.patch"
Content-Transfer-Encoding: 7bit

--- src/session.c	1.2.4
+++ src/session.c	patched
@@ -538,7 +538,17 @@ int _libssh2_wait_socket(LIBSSH2_SESSION
 
     /* Note that this COULD be made to use a timeout that perhaps could be
        customizable by the app or something... */
-    rc = select(session->socket_fd + 1, readfd, writefd, NULL, NULL);
+    if (session->api_timeout > 0) {
+        struct timeval tv_timeout;
+        /* Seconds */
+        tv_timeout.tv_sec = session->api_timeout / 1000;
+        /* Microseconds */
+        tv_timeout.tv_usec = (session->api_timeout % 1000) * 1000;
+
+        rc = select(session->socket_fd + 1, readfd, writefd, NULL, &tv_timeout);
+    } else {
+        rc = select(session->socket_fd + 1, readfd, writefd, NULL, NULL);
+    }
 
     if(rc <= 0) {
         /* timeout (or error), bail out with a timeout error */
@@ -1234,6 +1244,27 @@ libssh2_session_get_blocking(LIBSSH2_SES
     return session->api_block_mode;
 }
 
+/* libssh2_session_set_timeout
+ *
+ * Set a session's timeout (in msec) for blocking mode, 
+ * or 0 to disable timeouts.
+ */
+LIBSSH2_API void
+libssh2_session_set_timeout(LIBSSH2_SESSION * session, long timeout)
+{
+    session->api_timeout = timeout;
+}
+
+/* libssh2_session_get_timeout
+ *
+ * Returns a session's timeout, or 0 if disabled
+ */
+LIBSSH2_API long
+libssh2_session_get_timeout(LIBSSH2_SESSION * session)
+{
+    return session->api_timeout;
+}
+
 /*
  * libssh2_poll_channel_read
  *

--Apple-Mail-2-211762864
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

--Apple-Mail-2-211762864--

From libssh2-devel-bounces@cool.haxx.se  Tue Feb 16 11:33:57 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GAXfTs012124;
	Tue, 16 Feb 2010 11:33:53 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GAXdHg012120
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 16 Feb 2010 11:33:39 +0100
Received: (qmail 26790 invoked from network); 16 Feb 2010 10:33:39 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 16 Feb 2010 10:33:39 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 16 Feb 2010 10:33:39 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #136: Sometimes ssh2 test fails on Solaris 8 Sparc
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/136#comment:2
Message-ID: <055.57e647e7170e4d764e8d2b62d9491420@libssh2.stuge.se>
References: <046.e5ba5d50c042eebe7e056cd6cc3ae74b@libssh2.stuge.se>
X-Trac-Ticket-ID: 136
In-Reply-To: <046.e5ba5d50c042eebe7e056cd6cc3ae74b@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#136: Sometimes ssh2 test fails on Solaris 8 Sparc
-------------------------+--------------------------------------------------
  Reporter:  dmichelsen  |       Owner:     
      Type:  defect      |      Status:  new
  Priority:  normal      |   Milestone:     
 Component:  misc        |     Version:     
Resolution:              |    Keywords:     
 Blockedby:              |       Patch:  0  
  Blocking:              |  
-------------------------+--------------------------------------------------

Comment(by sunjith):

 Still fails with 10 seconds for sleep value in tests/ssh2.sh

 Tested on FreeBSD 6.3-RELEASE-p6 and 7.2-RELEASE

-- 
Ticket URL: <http://trac.libssh2.org/ticket/136#comment:2>
libssh2 <http://trac.libssh2.org/>
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 Feb 16 12:28:36 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GBSU2U010409;
	Tue, 16 Feb 2010 12:28:34 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GBSSFu010406
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 16 Feb 2010 12:28:28 +0100
Received: (qmail 30118 invoked from network); 16 Feb 2010 11:28:28 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 16 Feb 2010 11:28:28 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 16 Feb 2010 11:28:28 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #157: Port Forwarding
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/157#comment:1
Message-ID: <051.562edcdfb0befd7dd549a8d4f4d3f6fc@libssh2.stuge.se>
References: <042.acb291e4e6c1e29712f0591066d12d6b@libssh2.stuge.se>
X-Trac-Ticket-ID: 157
In-Reply-To: <042.acb291e4e6c1e29712f0591066d12d6b@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

IzE1NzogUG9ydCBGb3J3YXJkaW5nCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSstLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t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byB3aGF0
ZXZlciBpdCB3YW50cy4NCg0KIEhhdmUgYSBsb29rIGF0IGV4YW1wbGVzL2RpcmVjdF90Y3BpcC5j
IGZvciBhIGRlbW9uc3RyYXRpb24gb2YgaG93IGRpcmVjdC0NCiB0Y3BpcCBjaGFubmVscyBjYW4g
YmUgdXNlZCB0byBpbXBsZW1lbnQgbG9jYWwgcG9ydCBmb3J3YXJkaW5nLg0KDQogRmVlbCBmcmVl
IHRvIHNlbmQgbWUgdGhhdCBib3VudHkga3RoeC4gOikKCi0tIApUaWNrZXQgVVJMOiA8aHR0cDov
L3RyYWMubGlic3NoMi5vcmcvdGlja2V0LzE1NyNjb21tZW50OjE+CmxpYnNzaDIgPGh0dHA6Ly90
cmFjLmxpYnNzaDIub3JnLz4KQyBsaWJyYXJ5IGZvciB3cml0aW5nIHBvcnRhYmxlIFNTSDIgY2xp
ZW50cwpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpsaWJz
c2gyLWRldmVsIGh0dHA6Ly9jb29sLmhheHguc2UvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL2xp
YnNzaDItZGV2ZWwK

From libssh2-devel-bounces@cool.haxx.se  Tue Feb 16 13:24:01 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GCNnhZ012959;
	Tue, 16 Feb 2010 13:23:57 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GCNmIc012948
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 16 Feb 2010 13:23:48 +0100
Received: (qmail 810 invoked from network); 16 Feb 2010 12:23:48 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 16 Feb 2010 12:23:48 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 16 Feb 2010 12:23:48 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #132: [cppcheck] found a few errors in example code
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/132#comment:1
Message-ID: <055.ff9b3d755950400d47f83885f285a966@libssh2.stuge.se>
References: <046.e0e6f4d5e403a8feeac4ff22ba33cd87@libssh2.stuge.se>
X-Trac-Ticket-ID: 132
In-Reply-To: <046.e0e6f4d5e403a8feeac4ff22ba33cd87@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#132: [cppcheck] found a few errors in example code
-------------------------+--------------------------------------------------
  Reporter:  ettlmartin  |       Owner:        
      Type:  defect      |      Status:  closed
  Priority:  normal      |   Milestone:        
 Component:  examples    |     Version:  1.2.5 
Resolution:  fixed       |    Keywords:        
  Blocking:              |   Blockedby:        
-------------------------+--------------------------------------------------
Changes (by stuge):

  * status:  new => closed
  * resolution:  => fixed
  * version:  => 1.2.5
  * component:  misc => examples


Old description:

> during a check with the static code analysis tool cppcheck
> (http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page)
> the tool found a few resource leaks and one memory leak
>
> Here the output of the tool
>
> [../example/sftp_RW_nonblock.c:287]: (Error) Resource leak: tempstorage
> [../example/x11.c:129]: (Error) Memory leak: temp_buff
> [../example/scp_write.c:201]: (Error) Resource leak: local
> [../example/sftp_write.c:203]: (Error) Resource leak: local
>
> Please refer the attached patch that fixes the issues
>
> Best regards
>
> Ettl Martin

New description:

 during a check with the static code analysis tool cppcheck
 (http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page)
 the tool found a few resource leaks and one memory leak

 Here the output of the tool

 [../example/sftp_RW_nonblock.c:287]: (Error) Resource leak: tempstorage
 [../example/x11.c:129]: (Error) Memory leak: temp_buff
 [../example/scp_write.c:201]: (Error) Resource leak: local
 [../example/sftp_write.c:203]: (Error) Resource leak: local

 Please refer the attached patch that fixes the issues

 Best regards

 Ettl Martin

--

Comment:

 Fixed in commit 2149244cfe21a612e2d2f7b568a29b8eb1b96a5d

-- 
Ticket URL: <http://trac.libssh2.org/ticket/132#comment:1>
libssh2 <http://trac.libssh2.org/>
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 Feb 16 13:26:18 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GCQFfK014454;
	Tue, 16 Feb 2010 13:26:16 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GCQEns014448
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 16 Feb 2010 13:26:14 +0100
Received: (qmail 897 invoked from network); 16 Feb 2010 12:26:14 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 16 Feb 2010 12:26:14 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 16 Feb 2010 12:26:14 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #132: [cppcheck] found a few errors in example code
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/132#comment:2
Message-ID: <055.e3970cd5811474e97ce2cc2a20f66667@libssh2.stuge.se>
References: <046.e0e6f4d5e403a8feeac4ff22ba33cd87@libssh2.stuge.se>
X-Trac-Ticket-ID: 132
In-Reply-To: <046.e0e6f4d5e403a8feeac4ff22ba33cd87@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#132: [cppcheck] found a few errors in example code
-------------------------+--------------------------------------------------
  Reporter:  ettlmartin  |       Owner:        
      Type:  defect      |      Status:  closed
  Priority:  normal      |   Milestone:        
 Component:  examples    |     Version:  1.2.5 
Resolution:  fixed       |    Keywords:        
  Blocking:              |   Blockedby:        
-------------------------+--------------------------------------------------
Description changed by stuge:

Old description:

> during a check with the static code analysis tool cppcheck
> (http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page)
> the tool found a few resource leaks and one memory leak
>
> Here the output of the tool
>
> [../example/sftp_RW_nonblock.c:287]: (Error) Resource leak: tempstorage
> [../example/x11.c:129]: (Error) Memory leak: temp_buff
> [../example/scp_write.c:201]: (Error) Resource leak: local
> [../example/sftp_write.c:203]: (Error) Resource leak: local
>
> Please refer the attached patch that fixes the issues
>
> Best regards
>
> Ettl Martin

New description:

 during a check with the static code analysis tool
 [http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page
 cppcheck]
 the tool found a few resource leaks and one memory leak

 Here the output of the tool

 [../example/sftp_RW_nonblock.c:287]: (Error) Resource leak: tempstorage
 [../example/x11.c:129]: (Error) Memory leak: temp_buff
 [../example/scp_write.c:201]: (Error) Resource leak: local
 [../example/sftp_write.c:203]: (Error) Resource leak: local

 Please refer the attached patch that fixes the issues

 Best regards

 Ettl Martin

--

-- 
Ticket URL: <http://trac.libssh2.org/ticket/132#comment:2>
libssh2 <http://trac.libssh2.org/>
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 Feb 16 13:27:50 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GCRmEW014828;
	Tue, 16 Feb 2010 13:27:49 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GCRkFW014825
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 16 Feb 2010 13:27:46 +0100
Received: (qmail 955 invoked from network); 16 Feb 2010 12:27:43 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 16 Feb 2010 12:27:43 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 16 Feb 2010 12:27:43 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #151: keepalive@openssh.com
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/151#comment:3
Message-ID: <054.d16cf6db034b4d29e3bbb35e581fc97a@libssh2.stuge.se>
References: <045.033166e2feb64145d82691ebb1c3a014@libssh2.stuge.se>
X-Trac-Ticket-ID: 151
In-Reply-To: <045.033166e2feb64145d82691ebb1c3a014@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#151: keepalive@openssh.com
--------------------------+-------------------------------------------------
  Reporter:  anonymous    |       Owner:     
      Type:  enhancement  |      Status:  new
  Priority:  normal       |   Milestone:     
 Component:  protocol     |     Version:     
Resolution:               |    Keywords:     
  Blocking:               |   Blockedby:     
--------------------------+-------------------------------------------------
Changes (by stuge):

  * component:  => protocol


-- 
Ticket URL: <http://trac.libssh2.org/ticket/151#comment:3>
libssh2 <http://trac.libssh2.org/>
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 Feb 16 13:30:18 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GCTFJt015326;
	Tue, 16 Feb 2010 13:29:18 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GCTEF5015322
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 16 Feb 2010 13:29:14 +0100
Received: (qmail 1070 invoked from network); 16 Feb 2010 12:29:14 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 16 Feb 2010 12:29:14 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 16 Feb 2010 12:29:14 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #117: crash with libgcrypt
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/117#comment:3
Message-ID: <052.38539e6f9db44f423484d843a51a6dbd@libssh2.stuge.se>
References: <043.f67bde26c29a687f6d7a024e59ba3799@libssh2.stuge.se>
X-Trac-Ticket-ID: 117
In-Reply-To: <043.f67bde26c29a687f6d7a024e59ba3799@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#117: crash with libgcrypt
----------------------+-----------------------------------------------------
  Reporter:  fdupoux  |       Owner:     
      Type:  defect   |      Status:  new
  Priority:  normal   |   Milestone:     
 Component:  crypto   |     Version:     
Resolution:           |    Keywords:     
  Blocking:           |   Blockedby:     
----------------------+-----------------------------------------------------

Old description:

> Hi,
>
> I am using libssh2-1.2 to get a shell through ssh connections and the
> program often crashes when libssh2-1.2 is using libgcrypt (there is a
> crash every few
> hours). The program is linked to libgcrypt.so.11 when it fails. The error
> message is always the same when it aborts:
> programname: ath.c:193: _gcry_ath_mutex_lock: Assertion `*lock ==
> ((ath_mutex_t) 0)' failed.
>
> I currently have this problem on a Debian Lenny-5.03-amd64 system. I have
> only installed "debian/stable" packages on my system except those which
> are in "debian/testing":
> libgcrypt11 1.4.4-4
> libgpg-error0 1.6-1
> libssh2-1 1.2-1
> libssh2-1-dbg 1.2-1
> libssh2-1-dev 1.2-1
>
> I recompiled libssh2-1.2 on other boxes using OpenSSL for crypto (using
> libcrypto.so.6) and there was no crash. Unfortunately the debian version
> of libssh2-1.2 is compiled against the libgcrypt implementation of
> crypto.
>
> I have reproduced this problem on multiple linux boxes (i686 and x86-64).
>
> I don't know if it's a problem in libssh2 or in libcrypto, but I hope
> these two backtraces below will help to fix it. Unfortunately there is no
> libgcrypt11-dbg
> package available for that version of libgcrypt, so the backtrace is
> incomplete.
>
> Thanks
>
> (gdb) bt
> #0  0x00007faa5bae8ed5 in raise () from /lib/libc.so.6
> #1  0x00007faa5baea3f3 in abort () from /lib/libc.so.6
> #2  0x00007faa5bae1dc9 in __assert_fail () from /lib/libc.so.6
> #3  0x00007faa5af67fcb in ?? () from /usr/lib/libgcrypt.so.11
> #4  0x00007faa5af9c5d0 in ?? () from /usr/lib/libgcrypt.so.11
> #5  0x00007faa5af9c71e in ?? () from /usr/lib/libgcrypt.so.11
> #6  0x00007faa5af9d72d in ?? () from /usr/lib/libgcrypt.so.11
> #7  0x00007faa5be26113 in _libssh2_transport_write (session=0x1c0cac0,
>                                 data=0x7faa540012a0 "^", data_len=69) at
> transport.c:758
> #8  0x00007faa5be0f48c in _libssh2_channel_write (channel=0x1bff560,
> stream_id=0,
>                                 buf=0x421e0bf0 "echo \"#{START}#$(echo
> '[*895346*]'
>                                 2>&1)#{RES}#${?}#{END}#\"\n", buflen=60)
> at channel.c:2114
> #9  0x00007faa5be0f721 in libssh2_channel_write_ex (channel=0x1bff560,
> stream_id=0,
>                                 buf=0x421e0bf0 "echo \"#{START}#$(echo
> '[*895346*]'
>                                 2>&1)#{RES}#${?}#{END}#\"\n", buflen=60)
> at channel.c:2161
>
> (gdb) bt
> #0  0x00007faa5bae8ed5 in raise () from /lib/libc.so.6
> #1  0x00007faa5baea3f3 in abort () from /lib/libc.so.6
> #2  0x00007faa5bae1dc9 in __assert_fail () from /lib/libc.so.6
> #3  0x00007faa5af67fcb in ?? () from /usr/lib/libgcrypt.so.11
> #4  0x00007faa5af9c5d0 in ?? () from /usr/lib/libgcrypt.so.11
> #5  0x00007faa5af9c71e in ?? () from /usr/lib/libgcrypt.so.11
> #6  0x00007faa5af9d72d in ?? () from /usr/lib/libgcrypt.so.11
> #7  0x00007faa5be26113 in _libssh2_transport_write
> (session=0x7faa54060fa0,
>                                 data=0x7faa54049e50 "^", data_len=69) at
> transport.c:758
> #8  0x00007faa5be0f48c in _libssh2_channel_write (channel=0x7faa54044c60,
> stream_id=0,
>                                 buf=0x41b6fbf0 "echo \"#{START}#$(echo
> '[*463794*]'
>                                 2>&1)#{RES}#${?}#{END}#\"\n", buflen=60)
> at channel.c:2114
> #9  0x00007faa5be0f721 in libssh2_channel_write_ex
> (channel=0x7faa54044c60, stream_id=0,
>                                 buf=0x41b6fbf0 "echo \"#{START}#$(echo
> '[*463794*]'
>                                 2>&1)#{RES}#${?}#{END}#\"\n", buflen=60)
> at channel.c:2161

New description:

 Hi,

 I am using libssh2-1.2 to get a shell through ssh connections and the
 program often crashes when libssh2-1.2 is using libgcrypt (there is a
 crash every few
 hours). The program is linked to libgcrypt.so.11 when it fails. The error
 message is always the same when it aborts:
 programname: ath.c:193: _gcry_ath_mutex_lock: Assertion `*lock ==
 ((ath_mutex_t) 0)' failed.

 I currently have this problem on a Debian Lenny-5.03-amd64 system. I have
 only installed "debian/stable" packages on my system except those which
 are in "debian/testing":
 libgcrypt11 1.4.4-4
 libgpg-error0 1.6-1
 libssh2-1 1.2-1
 libssh2-1-dbg 1.2-1
 libssh2-1-dev 1.2-1

 I recompiled libssh2-1.2 on other boxes using OpenSSL for crypto (using
 libcrypto.so.6) and there was no crash. Unfortunately the debian version
 of libssh2-1.2 is compiled against the libgcrypt implementation of crypto.

 I have reproduced this problem on multiple linux boxes (i686 and x86-64).

 I don't know if it's a problem in libssh2 or in libcrypto, but I hope
 these two backtraces below will help to fix it. Unfortunately there is no
 libgcrypt11-dbg
 package available for that version of libgcrypt, so the backtrace is
 incomplete.

 Thanks

 (gdb) bt
 #0  0x00007faa5bae8ed5 in raise () from /lib/libc.so.6
 #1  0x00007faa5baea3f3 in abort () from /lib/libc.so.6
 #2  0x00007faa5bae1dc9 in __assert_fail () from /lib/libc.so.6
 #3  0x00007faa5af67fcb in ?? () from /usr/lib/libgcrypt.so.11
 #4  0x00007faa5af9c5d0 in ?? () from /usr/lib/libgcrypt.so.11
 #5  0x00007faa5af9c71e in ?? () from /usr/lib/libgcrypt.so.11
 #6  0x00007faa5af9d72d in ?? () from /usr/lib/libgcrypt.so.11
 #7  0x00007faa5be26113 in _libssh2_transport_write (session=0x1c0cac0,
                                 data=0x7faa540012a0 "^", data_len=69) at
 transport.c:758
 #8  0x00007faa5be0f48c in _libssh2_channel_write (channel=0x1bff560,
 stream_id=0,
                                 buf=0x421e0bf0 "echo \"#{START}#$(echo
 '[*895346*]'
                                 2>&1)#{RES}#${?}#{END}#\"\n", buflen=60)
 at channel.c:2114
 #9  0x00007faa5be0f721 in libssh2_channel_write_ex (channel=0x1bff560,
 stream_id=0,
                                 buf=0x421e0bf0 "echo \"#{START}#$(echo
 '[*895346*]'
                                 2>&1)#{RES}#${?}#{END}#\"\n", buflen=60)
 at channel.c:2161

 (gdb) bt
 #0  0x00007faa5bae8ed5 in raise () from /lib/libc.so.6
 #1  0x00007faa5baea3f3 in abort () from /lib/libc.so.6
 #2  0x00007faa5bae1dc9 in __assert_fail () from /lib/libc.so.6
 #3  0x00007faa5af67fcb in ?? () from /usr/lib/libgcrypt.so.11
 #4  0x00007faa5af9c5d0 in ?? () from /usr/lib/libgcrypt.so.11
 #5  0x00007faa5af9c71e in ?? () from /usr/lib/libgcrypt.so.11
 #6  0x00007faa5af9d72d in ?? () from /usr/lib/libgcrypt.so.11
 #7  0x00007faa5be26113 in _libssh2_transport_write
 (session=0x7faa54060fa0,
                                 data=0x7faa54049e50 "^", data_len=69) at
 transport.c:758
 #8  0x00007faa5be0f48c in _libssh2_channel_write (channel=0x7faa54044c60,
 stream_id=0,
                                 buf=0x41b6fbf0 "echo \"#{START}#$(echo
 '[*463794*]'
                                 2>&1)#{RES}#${?}#{END}#\"\n", buflen=60)
 at channel.c:2114
 #9  0x00007faa5be0f721 in libssh2_channel_write_ex
 (channel=0x7faa54044c60, stream_id=0,
                                 buf=0x41b6fbf0 "echo \"#{START}#$(echo
 '[*463794*]'
                                 2>&1)#{RES}#${?}#{END}#\"\n", buflen=60)
 at channel.c:2161

--

Comment(by stuge):

 Can you reproduce with libssh2 version 1.2.4?

-- 
Ticket URL: <http://trac.libssh2.org/ticket/117#comment:3>
libssh2 <http://trac.libssh2.org/>
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 Feb 16 13:49:03 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GCmmPH024274;
	Tue, 16 Feb 2010 13:48:53 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GCmlr5024270
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 16 Feb 2010 13:48:47 +0100
Received: (qmail 1985 invoked from network); 16 Feb 2010 12:48:47 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 16 Feb 2010 12:48:47 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 16 Feb 2010 12:48:47 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #117: crash with libgcrypt
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/117#comment:4
Message-ID: <052.29d6cfb039a73ba00b5c6cfe8747efe9@libssh2.stuge.se>
References: <043.f67bde26c29a687f6d7a024e59ba3799@libssh2.stuge.se>
X-Trac-Ticket-ID: 117
In-Reply-To: <043.f67bde26c29a687f6d7a024e59ba3799@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#117: crash with libgcrypt
----------------------+-----------------------------------------------------
  Reporter:  fdupoux  |       Owner:        
      Type:  defect   |      Status:  closed
  Priority:  normal   |   Milestone:        
 Component:  crypto   |     Version:        
Resolution:  wontfix  |    Keywords:        
  Blocking:           |   Blockedby:        
----------------------+-----------------------------------------------------
Changes (by josefsson.org):

  * status:  new => closed
  * resolution:  => wontfix


Comment:

 Your application needs to set a libgcrypt mutex.  Unfortunately, libssh2
 cannot do this for you because libssh2 doesn't know which threading
 package you use.  This is the same for all applications using libraries
 that use libgcrypt.  For help, see for example the GnuTLS documentation on
 this:

 http://www.gnu.org/software/gnutls/manual/html_node/Multi_002dthreaded-
 applications.html

 Like GnuTLS, libssh2 is thread-safe internally.  I'm tagging this as
 wontfix because I don't see us being able to do anything more here.

 /Simon

-- 
Ticket URL: <http://trac.libssh2.org/ticket/117#comment:4>
libssh2 <http://trac.libssh2.org/>
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 Feb 16 14:18:36 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GDIU9a011574;
	Tue, 16 Feb 2010 14:18:34 +0100
Received: from mail18.ca.com (mail18.ca.com [155.35.46.20])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GDISJe011557
	for <libssh2-devel@cool.haxx.se>; Tue, 16 Feb 2010 14:18:28 +0100
Received: from INHYMS12.ca.com ([155.35.35.27]) by mail18.ca.com with
	Microsoft SMTPSVC(6.0.3790.3959); Tue, 16 Feb 2010 18:48:23 +0530
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: Help with libssh2_channel_direct_tcpip_ex
Date: Tue, 16 Feb 2010 18:48:23 +0530
Message-ID: <AD2F648DE9801443A9F5C40F342604698E6A4A@INHYMS12.ca.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Help with libssh2_channel_direct_tcpip_ex
Thread-Index: AcqvCoPdF5pMwzUQRdWL26DuLXmGyw==
From: "Kumar, Ashish" <Ashish.Kumar@ca.com>
To: <libssh2-devel@cool.haxx.se>
X-OriginalArrivalTime: 16 Feb 2010 13:18:23.0081 (UTC)
	FILETIME=[83E49590:01CAAF0A]
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1271110115=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

This is a multi-part message in MIME format.

--===============1271110115==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01CAAF0A.83D456CA"

This is a multi-part message in MIME format.

------_=_NextPart_001_01CAAF0A.83D456CA
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

In my code , libssh2_channel_direct_tcpip_ex successfully returns
channel .

=20

while( ( channel =3D libssh2_channel_direct_tcpip_ex(
session,targethostname , 22 , hostname, 22 ) ) =3D=3D NULL)

{

   rc =3D libssh2_session_last_error(session,NULL,NULL,0);

   if (rc =3D=3D LIBSSH2_ERROR_EAGAIN)

      waitsocket(ConnectSocket, session);

   else

      break;

}

=20

When I use the channel for below purpose=20

=20

while( (rc =3D libssh2_channel_exec(channel, commandline)) =3D=3D
LIBSSH2_ERROR_EAGAIN );

=20

I get the rc =3D -22 i.e. "LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED" .

=20

When I look further , the error is actually coming from packet.c file
from below method=20

=20

"_libssh2_packet_requirev" as the value of ret in below call is 100 i.e.
"d"

=20

int ret =3D _libssh2_transport_read(session);

=20

=20

Can you give me hint to explore further into where could I be going
wrong ?

=20

=20

Thanks & Regards,=20
Ashish Kumar

=20


------_=_NextPart_001_01CAAF0A.83D456CA
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"\@SimSun";
	panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal>In my code , <span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>libssh2_channel_direct_tcpip_ex
successfully returns channel .<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:blue'>while</span><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>( ( channel =3D =
libssh2_channel_direct_tcpip_ex(
session,targethostname , 22 , hostname, 22 ) ) =3D=3D =
NULL)<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>{<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp; rc =3D =
libssh2_session_last_error(session,NULL,NULL,0);<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp; <span =
style=3D'color:blue'>if</span> (rc
=3D=3D LIBSSH2_ERROR_EAGAIN)<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;waitsocket(ConnectSocket,
session);<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp; <span =
style=3D'color:blue'>else<o:p></o:p></span></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<span
style=3D'color:blue'>break</span>;<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>}<o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Courier New"'>When
I use the channel for below purpose <o:p></o:p></span></p>

<p class=3DMsoNormal><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:blue'>while</span><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>( (rc =3D libssh2_channel_exec(channel, =
commandline))
=3D=3D LIBSSH2_ERROR_EAGAIN );<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>I get the rc =3D -22 i.e. =
&#8220;<b>LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED</b>&#8221;
.<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>When I look further , the error is actually =
coming
from packet.c file from below method <o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>&#8220;_libssh2_packet_requirev&#8221; as the =
value
of ret in below call is 100 i.e. &#8220;d&#8221;<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New";color:blue'>int</span><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'> ret =3D =
_libssh2_transport_read(session);<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'>Can you give me hint to explore further into =
where
could I be going wrong ?<o:p></o:p></span></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><span =
style=3D'font-size:10.0pt;
font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal><b><span lang=3DEN-AU =
style=3D'font-size:10.0pt;font-family:
"Verdana","sans-serif";color:blue'>Thanks &amp; Regards,</span></b><span
style=3D'color:blue'> <br>
</span><b><span lang=3DEN-AU =
style=3D'font-size:10.0pt;font-family:"Verdana","sans-serif";
color:blue'>Ashish Kumar</span></b><o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>

------_=_NextPart_001_01CAAF0A.83D456CA--

--===============1271110115==
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

--===============1271110115==--

From libssh2-devel-bounces@cool.haxx.se  Tue Feb 16 19:12:48 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GICaYT023695;
	Tue, 16 Feb 2010 19:12:44 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1GICYtl023692
	for <libssh2-devel@cool.haxx.se>; Tue, 16 Feb 2010 19:12:34 +0100
Received: (qmail 23079 invoked by uid 501); 16 Feb 2010 18:12:34 -0000
Message-ID: <20100216181234.23078.qmail@stuge.se>
Date: Tue, 16 Feb 2010 19:12:34 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Help with libssh2_channel_direct_tcpip_ex
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <AD2F648DE9801443A9F5C40F342604698E6A4A@INHYMS12.ca.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <AD2F648DE9801443A9F5C40F342604698E6A4A@INHYMS12.ca.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Kumar, Ashish wrote:
> while( ( channel = libssh2_channel_direct_tcpip_ex(
> session,targethostname , 22 , hostname, 22 ) ) == NULL)
..
> When I use the channel for below purpose 
..
> while( (rc = libssh2_channel_exec(channel, commandline)) ==
> LIBSSH2_ERROR_EAGAIN );

> Can you give me hint to explore further into where could I be going
> wrong ?

You seem to be confusing the purpose of these function calls.

libssh2_channel_exec() can only be used with a channel that was
created by libssh2_channel_open_session().

libssh2_channel_direct_tcpip_ex() creates a different type of
channel. Please read RFC4254 to learn more about direct-tcpip
channels.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Tue Feb 16 20:57:51 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GJvfnI031603;
	Tue, 16 Feb 2010 20:57:49 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GJvcSU031586
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 16 Feb 2010 20:57:39 +0100
Received: (qmail 24410 invoked from network); 16 Feb 2010 19:57:38 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 16 Feb 2010 19:57:38 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 16 Feb 2010 19:57:38 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #51: Intermittent ssh-dss authentication failures
	(was: (Pseudo)random authentication failures with public key)
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/51#comment:7
Message-ID: <055.f0415ea244827b3a70b94068d4543b5f@libssh2.stuge.se>
References: <046.faddae2b149874c28ce53579474def39@libssh2.stuge.se>
X-Trac-Ticket-ID: 51
In-Reply-To: <046.faddae2b149874c28ce53579474def39@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#51: Intermittent ssh-dss authentication failures
-------------------------+--------------------------------------------------
  Reporter:  tonyspoken  |       Owner:  bagder
      Type:  defect      |      Status:  closed
  Priority:  normal      |   Milestone:        
 Component:  protocol    |     Version:  1.2.3 
Resolution:  fixed       |    Keywords:        
  Blocking:              |   Blockedby:        
-------------------------+--------------------------------------------------
Changes (by stuge):

  * status:  assigned => closed
  * component:  => protocol
  * version:  => 1.2.3
  * resolution:  => fixed


Old description:

> Hi there.
>
> Just to track down the problem of the libssh2 with public-key
> authorization that leads sometimes to a failure.
>
> [libssh2] Failure Event: -19 - Invalid signature for supplied public key,
> or bad username/public key combination
>
> It appears to be mentioned in libcurl but not here: it happens once every
> 100-150 retries.
> I've attached libssh2 logs for both successful and unsuccesful cases.
> Hope that someone with time/competence on this pieces of code could give
> a hand.
>
> Regards,
> Antonio

New description:

 Hi there.

 Just to track down the problem of the libssh2 with public-key
 authorization that leads sometimes to a failure.

 [libssh2] Failure Event: -19 - Invalid signature for supplied public key,
 or bad username/public key combination

 It appears to be mentioned in libcurl but not here: it happens once every
 100-150 retries.
 I've attached libssh2 logs for both successful and unsuccesful cases.
 Hope that someone with time/competence on this pieces of code could give a
 hand.

 Regards,
 Antonio

--

Comment:

 I believe this was fixed in commit
 1aba38cd7d2658146675ce1737e5090f879f3068 on Dec 6 2009, which is included
 in release 1.2.3. Please reopen if you can reproduce with a recent
 release.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/51#comment:7>
libssh2 <http://trac.libssh2.org/>
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 Feb 16 21:23:17 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GKMkbs019259;
	Tue, 16 Feb 2010 21:22:51 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1GKMinm019203
	for <libssh2-devel@cool.haxx.se>; Tue, 16 Feb 2010 21:22:44 +0100
Received: (qmail 23856 invoked by uid 501); 16 Feb 2010 20:22:45 -0000
Message-ID: <20100216202245.23855.qmail@stuge.se>
Date: Tue, 16 Feb 2010 21:22:45 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: [libssh2] #51: Intermittent ssh-dss authentication failures
	(was: (Pseudo)random authentication failures with public key)
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <046.faddae2b149874c28ce53579474def39@libssh2.stuge.se>
	<055.f0415ea244827b3a70b94068d4543b5f@libssh2.stuge.se>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <055.f0415ea244827b3a70b94068d4543b5f@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

libssh2 Trac wrote:
> Old description:
..
> > [libssh2] Failure Event: -19 - Invalid signature for supplied public key,
..
> New description:

Sorry about this noise about false description changes. It seems
there's a bug in Trac where it will always think the initial
description of a bug has changed if the text contains [] - the trac
wiki markup for links, and markup is allowed in descriptions. Very
annoying for us. I'm looking into it.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 17 00:07:55 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1GN7elo013801;
	Wed, 17 Feb 2010 00:07:50 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1GN7cnA013794
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 00:07:39 +0100
Received: (qmail 19630 invoked by uid 501); 16 Feb 2010 23:07:38 -0000
Message-ID: <20100216230738.19629.qmail@stuge.se>
Date: Wed, 17 Feb 2010 00:07:38 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: [libssh2] Trac spurious description changes
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <046.faddae2b149874c28ce53579474def39@libssh2.stuge.se>
	<055.f0415ea244827b3a70b94068d4543b5f@libssh2.stuge.se>
	<20100216202245.23855.qmail@stuge.se>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20100216202245.23855.qmail@stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Peter Stuge wrote:
> > New description:
> 
> Sorry about this noise about false description changes. It seems
> there's a bug in Trac where it will always think the initial
> description of a bug has changed if the text contains []

The problem turned out to be that all descriptions were imported with
LF line endings and when submitting a web form line endings are CRLF,
and that looked like the contens changed to Trac.

All descriptions have been changed to CRLF now, so it shouldn't
happen again.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 17 07:45:05 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1H6indG011474;
	Wed, 17 Feb 2010 07:44:59 +0100
Received: from mail18.ca.com (mail18.ca.com [155.35.46.20])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1H6ik3L011271
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 07:44:47 +0100
Received: from INHYMS12.ca.com ([155.35.35.27]) by mail18.ca.com with
	Microsoft SMTPSVC(6.0.3790.3959); Wed, 17 Feb 2010 12:14:41 +0530
X-MimeOLE: Produced By Microsoft Exchange V6.5
MIME-Version: 1.0
x-cr-hashedpuzzle: AOeN AQ09 BWWC DIjh Db62 DjAU EMPf Ec6I FjsA Fkgx GBn9 GhbC
	G+st HJ4/ IAcQ IvYZ; 1;
	bABpAGIAcwBzAGgAMgAtAGQAZQB2AGUAbABAAGMAbwBvAGwALgBoAGEAeAB4AC4AcwBlAA==;
	Sosha1_v1; 7; {1FD7F3C9-776A-4963-A0BA-E6D41DB7DECA};
	YQBzAGgAaQBzAGgALgBrAHUAbQBhAHIAQABjAGEALgBjAG8AbQA=;
	Wed, 17 Feb 2010 06:44:29 GMT;
	UgBFADoAIABIAGUAbABwACAAdwBpAHQAaAAgAGwAaQBiAHMAcwBoADIAXwBjAGgAYQBuAG4AZQBsAF8AZABpAHIAZQBjAHQAXwB0AGMAcABpAHAAXwBlAHgA
Content-class: urn:content-classes:message
x-cr-puzzleid: {1FD7F3C9-776A-4963-A0BA-E6D41DB7DECA}
Subject: RE: Help with libssh2_channel_direct_tcpip_ex
Date: Wed, 17 Feb 2010 12:14:29 +0530
Message-ID: <AD2F648DE9801443A9F5C40F342604698E6B07@INHYMS12.ca.com>
In-Reply-To: <20100216181234.23078.qmail@stuge.se>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Help with libssh2_channel_direct_tcpip_ex
Thread-Index: AcqvM7lqCscprWZ8Sw6GUaUkW0XPQAAZfPOA
References: <AD2F648DE9801443A9F5C40F342604698E6A4A@INHYMS12.ca.com>
	<20100216181234.23078.qmail@stuge.se>
From: "Kumar, Ashish" <Ashish.Kumar@ca.com>
To: "libssh2 development" <libssh2-devel@cool.haxx.se>
X-OriginalArrivalTime: 17 Feb 2010 06:44:41.0310 (UTC)
	FILETIME=[AEA21FE0:01CAAF9C]
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Yes I agree that in below case using " libssh2_channel_direct_tcpip_ex "
I would only get raw TCP connection to "calih1" port 22 .

Here is what I am tring to achieve which I can easily do through putty .

I want to make two SSH connections, one to "calis1", and another through
that to "calih1", which is presumably not 
directly reachable. But for that I would need two "plink" invocations,
as there is only ever at most one SSH connection per invocation of
"plink" .


I create a session called "calih1". It needs the following 
settings: 
  Host Name: calih1 
  Connection type: SSH 
  Proxy tab: 
    Proxy type: Local 
    Telnet command: "\path\to\plink.exe -pw %pass %user@%proxyhost -nc
%host:%port" 
    Proxy hostname: calis1 
    Proxy port: 22 
    Proxy username: root 
    Proxy password: <root@calis1's password> 


Having created this session, you should now be able to execute 
  plink calih1 "ls -l" 
and get the results of running "ls -l" on calih1. 


How do I accomplish this using libssh2 .

Thanks
Ashish

-----Original Message-----
From: libssh2-devel-bounces@cool.haxx.se
[mailto:libssh2-devel-bounces@cool.haxx.se] On Behalf Of Peter Stuge
Sent: Tuesday, February 16, 2010 11:43 PM
To: libssh2-devel@cool.haxx.se
Subject: Re: Help with libssh2_channel_direct_tcpip_ex

Kumar, Ashish wrote:
> while( ( channel = libssh2_channel_direct_tcpip_ex(
> session,targethostname , 22 , hostname, 22 ) ) == NULL)
..
> When I use the channel for below purpose 
..
> while( (rc = libssh2_channel_exec(channel, commandline)) ==
> LIBSSH2_ERROR_EAGAIN );

> Can you give me hint to explore further into where could I be going
> wrong ?

You seem to be confusing the purpose of these function calls.

libssh2_channel_exec() can only be used with a channel that was
created by libssh2_channel_open_session().

libssh2_channel_direct_tcpip_ex() creates a different type of
channel. Please read RFC4254 to learn more about direct-tcpip
channels.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 17 10:27:53 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1H9Ri3X028301;
	Wed, 17 Feb 2010 10:27:51 +0100
Received: from mo.mxl.2iij.net (mo501.mxl.2iij.net [210.149.48.19])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1H9RfUi028297
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 10:27:42 +0100
Received: by mo.mxl.2iij.net (mxl-mo501) id o1H9RfVO007077;
	Wed, 17 Feb 2010 18:27:41 +0900
Received: from unknown [192.26.96.20] (EHLO mx20.fujixerox.co.jp)
	by mas504a.mxl.2iij.net (mxl_mta-5.7.1-5) with ESMTP id
	d86bb7b4.3638451088.242209.00-078.215587.mas504a.mxl.2iij.net
	(envelope-from <qiang.xu@fujixerox.com>); 
	Wed, 17 Feb 2010 18:27:41 +0900 (JST)
Received: from isvw20.fujixerox.co.jp ([129.249.27.140])
	by mx20.fujixerox.co.jp  with ESMTP id o1H9Rewe017707
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 18:27:40 +0900 (JST)
Received: from ms21.fujixerox.co.jp (localhost [127.0.0.1])
	by isvw20.fujixerox.co.jp  with ESMTP id o1H9ReZt000675
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 18:27:40 +0900 (JST)
Received: from mailgw1.fujixerox.com ([13.198.8.180])
	by ms21.fujixerox.co.jp  with ESMTP id o1H9RdQ7015239
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 18:27:39 +0900 (JST)
X-IronPort-AV: E=Sophos;i="4.49,489,1262534400"; d="scan'208";a="119229632"
Received: from sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235])
	by mailgw1.fujixerox.com with ESMTP; 17 Feb 2010 17:27:25 +0800
Received: from SGPAPHQ-EXSCC01.dc01.fujixerox.net ([13.198.8.229]) by
	sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235]) with mapi;
	Wed, 17 Feb 2010 17:27:26 +0800
From: "Xu, Qiang (FXSGSC)" <Qiang.Xu@fujixerox.com>
To: "libssh2-devel@cool.haxx.se" <libssh2-devel@cool.haxx.se>
Date: Wed, 17 Feb 2010 17:27:25 +0800
Subject: libssh2 takes long time to connect to CoreFTP's SFTP service
Thread-Topic: libssh2 takes long time to connect to CoreFTP's SFTP service
Thread-Index: AcqvtDdCRYj6b939TCuSnmzGnoT5kQ==
Message-ID: <D8C9BC7FFCF8154FB7141EB8DB609C172F103D0706@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
MIME-Version: 1.0
X-Spam: exempt
X-MAIL-FROM: <qiang.xu@fujixerox.com>
X-SOURCE-IP: [192.26.96.20]
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi, list: 

Recently, I found a problem with libssh2, when it tries to connect to SFTP service provided by CoreFTP (http://www.coreftp.com/server/).

Please look at the following test.
=========================================
qxu@durian(pts/3):~/opensrc/libssh2-1.2/example/simple[150]$ date
Wed Feb 17 16:54:33 SGT 2010
qxu@durian(pts/3):~/opensrc/libssh2-1.2/example/simple[151]$ ./sftpdir 13.xxx.xxx.xxx <user> <pass> /
Fingerprint: 0B BF A1 84 3E B3 8C 1D 84 0A C5 C7 68 55 EE BC
libssh2_sftp_init()!
libssh2_sftp_opendir()!
libssh2_sftp_opendir() is done, now receive listing!
drw-rw-rw   1     root     root         0 Feb 17 15:39 .
drw-rw-rw   1     root     root         0 Feb 17 15:39 ..
-rw-rw-rw   1     root     root     14941 Jan 12 08:53 001AA0609710.pdf
-rw-rw-rw   1     root     root     14904 Jan 12 08:51 001AA0609728.pdf
...
/* everything above this line appears very quickly, but the following "all done" takes more than 10 mins to show */
all done
qxu@durian(pts/3):~/opensrc/libssh2-1.2/example/simple[152]$ date
Wed Feb 17 17:04:43 SGT 2010
=========================================
Is this a known issue? Can anyone download a CoreFTP server and do a local testing to see the problem? 

Just want to mention that libssh2 connects fast to SFTP service provided by OpenSSH (http://sshwindows.sourceforge.net/). So is it possibly a server's issue? Not likely, because FileZilla can connect to CoreFTP's SFTP server quickly.

Thanks,
Xu Qiang
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 17 11:02:51 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1HA2f0L017754;
	Wed, 17 Feb 2010 11:02:47 +0100
Received: from mail-ew0-f225.google.com (mail-ew0-f225.google.com
	[209.85.219.225])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1HA2efL017642
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 11:02:40 +0100
Received: by ewy25 with SMTP id 25so357775ewy.3
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 02:02:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type; bh=UukpSF2ACuXQxSJnOXCNseDKxKWEUqUz95y6WpaK5Bo=;
	b=YZ8pAJL3D9qFvwpShBvliigVeyQ3oaUa4DsNdBQus7SIib4ej6KFlyc4Bmx8hGbbev
	3m/VhkHuTVQcZRRa3VPqgd0mRfrQy1EFjGdZ1yaWaYrbm4/d/6ex4T3itV5vRD4uPTvr
	GoStogZmzAZUE8V8zN3zDqPG8oxdhspIsy650=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type;
	b=CLTVQWWNTHGVq1tQwwrK1Wzz+D7EmfhoEBmhTNELmNEqTB+ygUg9dolDxvHBJmoO87
	KYeNZx0pr9s+SEZlzhelN6wttKbPNTs8PBEoAA3GniB8OCTC9XjrHeXzoz9praQ0T8S2
	kZ+rbNT27QaMr7sbQxe2ZCHsugIQGmAlFYQz8=
MIME-Version: 1.0
Received: by 10.213.1.143 with SMTP id 15mr2631402ebf.42.1266400956007; Wed, 
	17 Feb 2010 02:02:36 -0800 (PST)
In-Reply-To: <AD2F648DE9801443A9F5C40F342604698E6B07@INHYMS12.ca.com>
References: <AD2F648DE9801443A9F5C40F342604698E6A4A@INHYMS12.ca.com>
	<20100216181234.23078.qmail@stuge.se>
	<AD2F648DE9801443A9F5C40F342604698E6B07@INHYMS12.ca.com>
Date: Wed, 17 Feb 2010 10:02:35 +0000
X-Google-Sender-Auth: 693f5b47d0095ea0
Message-ID: <9c3275a91002170202v2bba5965gb8fc258752fdb743@mail.gmail.com>
Subject: Re: Help with libssh2_channel_direct_tcpip_ex
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On 17 February 2010 06:44, Kumar, Ashish <Ashish.Kumar@ca.com> wrote:
> Yes I agree that in below case using " libssh2_channel_direct_tcpip_ex "
> I would only get raw TCP connection to "calih1" port 22 .

Please don't top-post.  It makes it very hard to follow the conversation.

Alex
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 17 11:03:51 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1HA3lHX019484;
	Wed, 17 Feb 2010 11:03:49 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1HA3kqq019470
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 11:03:46 +0100
Received: (qmail 20983 invoked by uid 501); 17 Feb 2010 10:03:47 -0000
Message-ID: <20100217100347.20982.qmail@stuge.se>
Date: Wed, 17 Feb 2010 11:03:47 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2 takes long time to connect to CoreFTP's SFTP service
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <D8C9BC7FFCF8154FB7141EB8DB609C172F103D0706@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <D8C9BC7FFCF8154FB7141EB8DB609C172F103D0706@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hello,

Xu, Qiang (FXSGSC) wrote:
> qxu@durian(pts/3):~/opensrc/libssh2-1.2/example/simple[151]$ ./sftpdir 13.xxx.xxx.xxx <user> <pass> /

Please note that version 1.2 is very old now, and several serious
problems have been fixed in later versions. I strongly recommend
upgrading to the latest version, which is 1.2.4.


> -rw-rw-rw   1     root     root     14904 Jan 12 08:51 001AA0609728.pdf
> ...
> /* everything above this line appears very quickly, but the
> following "all done" takes more than 10 mins to show */
> all done

Strange issue!


> Is this a known issue?

No.


> Can anyone download a CoreFTP server and do a local testing to see
> the problem?

I don't have a Windows system, and I think it is more appropriate for
you to instead supply debug logs to those you ask for help.

Please upgrade to libssh2-1.2.4 and repeat the test with full
debugging enabled. Use libssh2_trace(~0); Note that this only has an
effect when the library is built with debug support enabled, which
may not be the case if you install a package that someone else has
built. It would be best if you built your own version of the library,
to make sure that debugging is enabled, and to be able to test any
changes that we suggest in order to fix the problem.


> Just want to mention that libssh2 connects fast to SFTP service
> provided by OpenSSH (http://sshwindows.sourceforge.net/). So is it
> possibly a server's issue? Not likely, because FileZilla can
> connect to CoreFTP's SFTP server quickly.

It seems that the problem happens during disconnect rather than
during connect. It could also be interesting to test the SFTP client
from PuTTY which is called PSFTP.exe. In any case this long delay is
a problem and we should at least investigate why it happens and of
course fix it if we can.

Please upgrade and send debug log. Thanks!


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 17 11:13:58 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1HADqip024993;
	Wed, 17 Feb 2010 11:13:55 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1HADpg0024982
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 11:13:51 +0100
Received: (qmail 23252 invoked by uid 501); 17 Feb 2010 10:13:51 -0000
Message-ID: <20100217101351.23251.qmail@stuge.se>
Date: Wed, 17 Feb 2010 11:13:51 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Help with libssh2_channel_direct_tcpip_ex
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <AD2F648DE9801443A9F5C40F342604698E6A4A@INHYMS12.ca.com>
	<20100216181234.23078.qmail@stuge.se>
	<AD2F648DE9801443A9F5C40F342604698E6B07@INHYMS12.ca.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <AD2F648DE9801443A9F5C40F342604698E6B07@INHYMS12.ca.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Kumar, Ashish wrote:
> I want to make two SSH connections, one to "calis1", and another
> through that to "calih1", which is presumably not directly
> reachable.
..
> How do I accomplish this using libssh2 .

Please read this thread:

http://www.libssh2.org/mail/libssh2-devel-archive-2010-02/0026.shtml


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 17 11:44:04 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1HAhrLl008513;
	Wed, 17 Feb 2010 11:44:00 +0100
Received: from mo.mxl.2iij.net (mo502.mxl.2iij.net [210.149.48.20])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1HAhm6U008365
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 11:43:50 +0100
Received: by mo.mxl.2iij.net (mxl-mo502) id o1HAhlVF032049;
	Wed, 17 Feb 2010 19:43:48 +0900
Received: from unknown [192.26.96.20] (EHLO mx20.fujixerox.co.jp)
	by mas505a.mxl.2iij.net (mxl_mta-5.7.1-5) with ESMTP id
	468cb7b4.3825171344.14790.00-008.13261.mas505a.mxl.2iij.net
	(envelope-from <qiang.xu@fujixerox.com>); 
	Wed, 17 Feb 2010 19:43:48 +0900 (JST)
Received: from isvw20.fujixerox.co.jp ([129.249.27.140])
	by mx20.fujixerox.co.jp  with ESMTP id o1HAhlie026748
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 19:43:47 +0900 (JST)
Received: from ms21.fujixerox.co.jp (localhost [127.0.0.1])
	by isvw20.fujixerox.co.jp  with ESMTP id o1HAhlO6021278
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 19:43:47 +0900 (JST)
Received: from mailgw2.fujixerox.com ([13.198.8.181])
	by ms21.fujixerox.co.jp  with ESMTP id o1HAhkeo022147
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 19:43:46 +0900 (JST)
X-IronPort-AV: E=Sophos;i="4.49,489,1262534400"; 
	d="log'?zip'48?scan'48,208,48";a="81432485"
Received: from sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235])
	by mailgw2.fujixerox.com with ESMTP; 17 Feb 2010 18:43:45 +0800
Received: from SGPAPHQ-EXSCC01.dc01.fujixerox.net ([13.198.8.229]) by
	sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235]) with mapi;
	Wed, 17 Feb 2010 18:43:45 +0800
From: "Xu, Qiang (FXSGSC)" <Qiang.Xu@fujixerox.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Date: Wed, 17 Feb 2010 18:43:44 +0800
Subject: RE: libssh2 takes long time to connect to CoreFTP's SFTP service
Thread-Topic: libssh2 takes long time to connect to CoreFTP's SFTP service
Thread-Index: AcqvuI/RzY8gAETSRlmVUVXkN9b9JgABNtrw
Message-ID: <D8C9BC7FFCF8154FB7141EB8DB609C172F103D07E4@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
References: <D8C9BC7FFCF8154FB7141EB8DB609C172F103D0706@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100217100347.20982.qmail@stuge.se>
In-Reply-To: <20100217100347.20982.qmail@stuge.se>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: multipart/mixed;
	boundary="_002_D8C9BC7FFCF8154FB7141EB8DB609C172F103D07E4SGPAPHQEXSCC0_"
MIME-Version: 1.0
X-Spam: exempt
X-MAIL-FROM: <qiang.xu@fujixerox.com>
X-SOURCE-IP: [192.26.96.20]
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--_002_D8C9BC7FFCF8154FB7141EB8DB609C172F103D07E4SGPAPHQEXSCC0_
Content-Type: text/plain; charset="us-ascii"

> -----Original Message-----
> From: libssh2-devel-bounces@cool.haxx.se 
> [mailto:libssh2-devel-bounces@cool.haxx.se] On Behalf Of Peter Stuge
> Sent: Wednesday, February 17, 2010 6:04 PM
> To: libssh2-devel@cool.haxx.se
> Subject: Re: libssh2 takes long time to connect to CoreFTP's 
> SFTP service
> 
> Hello,
> 
> Please note that version 1.2 is very old now, and several 
> serious problems have been fixed in later versions. I 
> strongly recommend upgrading to the latest version, which is 1.2.4.

Sure. I've downloaded 1.2.4 release and compiled it successfully with debug option enabled.
 
> I don't have a Windows system, and I think it is more 
> appropriate for you to instead supply debug logs to those you 
> ask for help.

No problem.
 
> Please upgrade to libssh2-1.2.4 and repeat the test with full 
> debugging enabled. Use libssh2_trace(~0); Note that this only 
> has an effect when the library is built with debug support 
> enabled, which may not be the case if you install a package 
> that someone else has built. It would be best if you built 
> your own version of the library, to make sure that debugging 
> is enabled, and to be able to test any changes that we 
> suggest in order to fix the problem.

The log file is quite big, about 82KB in size. So I can only zip it and attach to the mail. The log is captured with the command "./sftpdir 13.xxx.xxx.xxx <user> <pass> /". And before this command and after it, I typed "date" command to indicate time difference. 

From the log, it can be seen that the biggest time gap happens at around:
======================================================
[libssh2] 1.229831 SFTP: Data begin - Packet Length: 24
[libssh2] 1.229837 Socket: Error recving 16384 bytes to 0x8b01648+0: 11
[libssh2] 1.229843 Conn: channel_read() got 24 of data from 0/0/0 [ul]
[libssh2] 1.229848 SFTP: Received packet 101 (len 24)
[libssh2] 1.229854 SFTP: Asking for 101 packet
[libssh2] 1.229859 SFTP: Got 101
[libssh2] 1.229869 Conn: Freeing channel 0/0 resources
[libssh2] 1.229874 Conn: Closing channel 0/0
=> libssh2_transport_write plain (5 bytes)
0000: 61 00 00 00 00                                   : a....
[libssh2] 1.229901 Socket: Sent 36/36 bytes at 0x8b014c0
=> libssh2_transport_write send() (36 bytes)
0000: AE FB 90 17 48 44 6D 9D  50 B5 4E 57 33 12 AE BF : ....HDm.P.NW3...
0010: 2D 7D 07 B4 CC C3 58 F6  B4 11 9A E2 2F 41 58 4C : -}....X...../AXL
0020: 98 77 2A 6B                                      : .w*k
[libssh2] 1.229925 Socket: Error recving 16384 bytes to 0x8b01648+0: 11
[libssh2] 605.366124 Socket: Recved 68/16384 bytes to 0x8b01648+0
=> libssh2_transport_read() raw (68 bytes)
0000: 58 2A 02 22 99 31 38 39  9E 9B F5 12 1D DE 52 43 : X*.".189......RC
0010: A8 6F 17 49 F3 A1 FB 42  6F 05 58 6E EC 15 8E 5F : .o.I...Bo.Xn..._
0020: 9F 2A C0 5B 34 21 42 7F  1D 92 E0 2A 37 E4 CB 38 : .*.[4!B....*7..8
0030: 30 84 5C 4D E3 8E 64 FB  A0 19 F4 E9 4D 18 D9 D4 : 0.\M..d.....M...
0040: 3E AA EA 32                                      : >..2
=> libssh2_transport_read() plain (26 bytes)
0000: 01 00 00 00 02 00 00 00  0D 44 69 73 63 6F 6E 6E : .........Disconn
0010: 65 63 74 69 6E 67 00 00  00 00                   : ecting....
[libssh2] 605.366201 Transport: Packet type 1 received, length=26
[libssh2] 605.366207 Transport: Disconnect(2): Disconnecting()
[libssh2] 605.366212 Failure Event: -13 - socket disconnect
[libssh2] 605.366223 Transport: Disconnecting: reason=11, desc=Normal Shutdown, 
Thank you for playing, lang=
=> libssh2_transport_write plain (51 bytes)
0000: 01 00 00 00 0B 00 00 00  26 4E 6F 72 6D 61 6C 20 : ........&Normal 
0010: 53 68 75 74 64 6F 77 6E  2C 20 54 68 61 6E 6B 20 : Shutdown, Thank 
0020: 79 6F 75 20 66 6F 72 20  70 6C 61 79 69 6E 67 00 : you for playing.
0030: 00 00 00                                         : ...
[libssh2] 605.366279 Socket: Sent 84/84 bytes at 0x8b01468
=> libssh2_transport_write send() (84 bytes)
0000: 97 84 9E 76 4A A9 C4 93  91 DA DB C4 9D F1 F3 9D : ...vJ...........
0010: C1 30 E0 E6 5D BF 27 45  AE 88 07 D6 26 B0 3D 00 : .0..].'E....&.=.
0020: 9F 0B B7 C2 C1 99 A2 3E  66 42 60 1E A5 3B DA 71 : .......>fB`..;.q
0030: 80 8E B9 4E EE 0B A5 A0  81 3D D4 57 16 45 7B DE : ...N.....=.W.E{.
0040: D5 55 ED 69 47 F3 DD C3  81 81 9C 22 5C 4F EC 9C : .U.iG......"\O..
0050: 4D DE 66 33                                      : M.f3
[libssh2] 605.366316 Transport: Freeing session resource
all done
======================================================
Please note the jump from 1.229925 to 605.366201.
 
> It seems that the problem happens during disconnect rather 
> than during connect. It could also be interesting to test the 
> SFTP client from PuTTY which is called PSFTP.exe. In any case 
> this long delay is a problem and we should at least 
> investigate why it happens and of course fix it if we can.

From the log, it seems that you are right, Peter! The delay happens in disconnecting from the server. CoreFTP allows me to observer server's log, which also indicates the problem:
======================================================
[#1] [20100217 18:27:58] [13.198.98.190] user 'qxu' sent
[#1] [20100217 18:27:58] [13.198.98.190] USER-PASS (qxu) success
[#1] [20100217 18:27:58] [13.198.98.190] LIST success - / 
[#1] [20100217 18:38:02] [13.198.98.190] disconnected (qxu)
======================================================
More than 10 minutes are spent on disconnecting from the server. Very strange.

Another word: FileZilla is using PSFTP.exe to do SFTP transactions, and it is fast. Hope this helps.

Thanks a lot,
Xu Qiang
--_002_D8C9BC7FFCF8154FB7141EB8DB609C172F103D07E4SGPAPHQEXSCC0_
Content-Type: application/x-zip-compressed; name="sftpdir.zip"
Content-Description: sftpdir.zip
Content-Disposition: attachment; filename="sftpdir.zip"; size=25711;
	creation-date="Wed, 17 Feb 2010 18:40:40 GMT";
	modification-date="Wed, 17 Feb 2010 18:40:40 GMT"
Content-Transfer-Encoding: base64

UEsDBBQAAAAIANSUUTxp4nKQ92MAANtHAQALAAAAc2Z0cGRpci5sb2fUXWl31Eaw/fpOzvF/UF42
SEBoX0w2rYEQAgSyEkKMPQYHYzteWALJb3/33m5JM9IYBsLbJsaZ8UilXqqrbi1dvbVxPFt758fZ
ltPO7jl+6vjZuu+tB55z86tbTuD53to7fz49+XLr5HBnY+/MwfHRhfDs+j8X9g9me0eHmxd2d+4d
HT0Izvtu4EYXZk83Hh3szm77eXLnfce9cLR9fOD8x9bOoeOHrp9nLn58z/lz7R3nP56eONsbO4d+
EDoX1t65bQndcTw3zrw0z51bhxt7Rwf7h8frztHs6Ghnf+/u0fHG4fHJgbO9f+gc7W8+nB074eTe
LPHn770529va2bvvlBt7e7NDfL556XzgeuftTXfV8imRLHVu8gmGwrEThBfQ0nvPjmdHzsax4z0N
/e3txP/Em9ya+2F/a3N4iKYezjYfswm+vf94H/ff296Kw/ReuO74/pRGGDrtxs7uyeHMaR7P9kDq
fJg65/VHTNb92fExKd5Tp8a3h3ES9E34Dg/HHUufPbkx8b03vDF80xuj7A1vTN/0idkbPjH1kje8
MYje8MboDecxTd5wcNL0TQcnf8PByfw3HJwsfMPByeI3HJwsecPBgTR5sxtzL37DG4PwDW+M/De8
Mc7f8Mb0TQcnf7MnRp6f9RrC3Dvbwd0TFVHtH87aW9fPey6UxIRK6CfOldkzp3lqVcSV5qd1Z2tn
e3tndv7BbHf30cb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Jxp73ILux8HfpljXwf2BZYdMFSPUAhzjDDEM0MIx0qUxfNM8
UY54kLGw5PGP8xGl/n42+CVfiMTHMYc7UOJ4NOL7hj43d+VhTBQLX5F3i50YtvIYwO6TW2L6W84O
0b89RBNfggZ7yGRCIphB8TslegvAeGfM9WH9J9/b6is9so9efGtN9goCJkIx806vY+/R4Fw20IcU
FWO1Uclowbfb1foyV8fI+jS/uPCW60v69Mv76y+X1xuKsrtztdseybvH/zlak5Vru1kcAXwegHaU
vZ+/ubrIfhBp/ONfWE2lu59ly3JIhjimATz96nsvICL432AnBPu/UEsBAhQAFAAAAAgA1JRRPGni
cpD3YwAA20cBAAsAAAAAAAAAAAAgAAAAAAAAAHNmdHBkaXIubG9nUEsFBgAAAAABAAEAOQAAACBk
AAAAAA==

--_002_D8C9BC7FFCF8154FB7141EB8DB609C172F103D07E4SGPAPHQEXSCC0_
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

--_002_D8C9BC7FFCF8154FB7141EB8DB609C172F103D07E4SGPAPHQEXSCC0_--

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 17 12:07:42 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1HB6r3J027017;
	Wed, 17 Feb 2010 12:06:58 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1HB6q0O027001
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 12:06:52 +0100
Received: (qmail 468 invoked by uid 501); 17 Feb 2010 11:06:53 -0000
Message-ID: <20100217110653.467.qmail@stuge.se>
Date: Wed, 17 Feb 2010 12:06:53 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2 takes long time to disconnect from CoreFTP's SFTP service
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <D8C9BC7FFCF8154FB7141EB8DB609C172F103D0706@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100217100347.20982.qmail@stuge.se>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F103D07E4@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <D8C9BC7FFCF8154FB7141EB8DB609C172F103D07E4@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hello,

Xu, Qiang (FXSGSC) wrote:
> Sure. I've downloaded 1.2.4 release and compiled it successfully
> with debug option enabled.

Great! This really helps.


> The log file is quite big, about 82KB in size. So I can only zip it
> and attach to the mail. The log is captured with the command
> "./sftpdir 13.xxx.xxx.xxx <user> <pass> /". And before this command
> and after it, I typed "date" command to indicate time difference. 

Thanks!


> Please note the jump from 1.229925 to 605.366201.

Your snippet shows that libssh2 has a problem when disconnecting.

It gets stuck just waiting and after a 10 minute delay the server
(not libssh2) closes the connection. A timeout is probably configured
in the server.

Your debug log is very valuable to find the problem within libssh2,
but I'm afraid that this problem will require some time to solve
because the protocol state within libssh2 may need to be traced
throughout the entire log in order to find the problem.

It would be good to have this in the bug tracker so that it is not
lost. Could you create a ticket for it? The component should probably
be "protocol" even though the problem is only seen with SFTP so far.


> Another word: FileZilla is using PSFTP.exe to do SFTP transactions,
> and it is fast. Hope this helps.

Yes that's right! There is no doubt that this is a problem in libssh2.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 17 12:36:28 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1HBaMBG013597;
	Wed, 17 Feb 2010 12:36:26 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1HBaI4p013564
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 12:36:18 +0100
Date: Wed, 17 Feb 2010 12:36:18 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: RE: libssh2 takes long time to connect to CoreFTP's SFTP service
In-Reply-To: <D8C9BC7FFCF8154FB7141EB8DB609C172F103D07E4@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
Message-ID: <alpine.DEB.2.00.1002171233440.15911@tvnag.unkk.fr>
References: <D8C9BC7FFCF8154FB7141EB8DB609C172F103D0706@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100217100347.20982.qmail@stuge.se>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F103D07E4@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Wed, 17 Feb 2010, Xu, Qiang (FXSGSC) wrote:

> => libssh2_transport_write send() (36 bytes)
> 0000: AE FB 90 17 48 44 6D 9D  50 B5 4E 57 33 12 AE BF : ....HDm.P.NW3...
> 0010: 2D 7D 07 B4 CC C3 58 F6  B4 11 9A E2 2F 41 58 4C : -}....X...../AXL
> 0020: 98 77 2A 6B                                      : .w*k
> [libssh2] 1.229925 Socket: Error recving 16384 bytes to 0x8b01648+0: 11
> [libssh2] 605.366124 Socket: Recved 68/16384 bytes to 0x8b01648+0

Does this problem occur every time you try to do an SFTP dir listing on this 
server?

Is there any chance you can run such a server in public for a while to allow 
us to debug libssh2 against one? Or anyone else who has a Windows machine up 
and facing the internet willing to help out here?

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 17 23:21:52 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1HMLb2x004397;
	Wed, 17 Feb 2010 23:21:47 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1HMLaeT004394
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 17 Feb 2010 23:21:36 +0100
Received: (qmail 5143 invoked from network); 17 Feb 2010 22:21:36 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 17 Feb 2010 22:21:36 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Wed, 17 Feb 2010 22:21:36 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #96: Problems with remote port forwarding
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/96#comment:8
Message-ID: <055.6dff4f372069fb3b2bfab220af039677@libssh2.stuge.se>
References: <046.534ae8080a4f51491aab17b4e05404e4@libssh2.stuge.se>
X-Trac-Ticket-ID: 96
In-Reply-To: <046.534ae8080a4f51491aab17b4e05404e4@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#96: Problems with remote port forwarding
-------------------------+--------------------------------------------------
  Reporter:  samikujala  |       Owner:  bagder
      Type:  defect      |      Status:  closed
  Priority:  normal      |   Milestone:        
 Component:  API         |     Version:        
Resolution:  fixed       |    Keywords:        
  Blocking:              |   Blockedby:        
-------------------------+--------------------------------------------------
Changes (by bagder):

  * status:  assigned => closed
  * resolution:  => fixed


Comment:

 No further reports in 9 months, I consider this case closed.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/96#comment:8>
libssh2 <http://trac.libssh2.org/>
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  Thu Feb 18 00:05:42 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1HN5awe030369;
	Thu, 18 Feb 2010 00:05:41 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1HN5YOm030328
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 18 Feb 2010 00:05:35 +0100
Received: (qmail 7973 invoked from network); 17 Feb 2010 23:05:35 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 17 Feb 2010 23:05:35 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Wed, 17 Feb 2010 23:05:35 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #128: Error message is not updated on failure
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/128#comment:2
Message-ID: <054.641efed9af210678f384ff6b91d0201b@libssh2.stuge.se>
References: <045.9f10d3124c704d694e92a3afc4f08db0@libssh2.stuge.se>
X-Trac-Ticket-ID: 128
In-Reply-To: <045.9f10d3124c704d694e92a3afc4f08db0@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#128: Error message is not updated on failure
------------------------+---------------------------------------------------
  Reporter:  anonymous  |       Owner:        
      Type:  defect     |      Status:  closed
  Priority:  normal     |   Milestone:  1.2.5 
 Component:  API        |     Version:  1.2.1 
Resolution:  fixed      |    Keywords:        
  Blocking:             |   Blockedby:        
------------------------+---------------------------------------------------
Changes (by bagder):

  * status:  new => closed
  * resolution:  => fixed
  * version:  => 1.2.1
  * component:  => API
  * milestone:  => 1.2.5


Comment:

 Thank you, this is now fixed in the current git repo!

-- 
Ticket URL: <http://trac.libssh2.org/ticket/128#comment:2>
libssh2 <http://trac.libssh2.org/>
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  Thu Feb 18 01:21:04 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1I0Kano016216;
	Thu, 18 Feb 2010 01:20:45 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1I0KYmc016175
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 18 Feb 2010 01:20:34 +0100
Received: (qmail 11143 invoked from network); 18 Feb 2010 00:20:34 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 18 Feb 2010 00:20:34 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 18 Feb 2010 00:20:34 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #51: Intermittent ssh-dss authentication failures
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/51#comment:8
Message-ID: <055.b08f6da1d32cf574e3b70e8e41a57f4f@libssh2.stuge.se>
References: <046.faddae2b149874c28ce53579474def39@libssh2.stuge.se>
X-Trac-Ticket-ID: 51
In-Reply-To: <046.faddae2b149874c28ce53579474def39@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#51: Intermittent ssh-dss authentication failures
-------------------------+--------------------------------------------------
  Reporter:  tonyspoken  |       Owner:  bagder
      Type:  defect      |      Status:  closed
  Priority:  normal      |   Milestone:        
 Component:  protocol    |     Version:  0.18  
Resolution:  fixed       |    Keywords:        
  Blocking:              |   Blockedby:        
-------------------------+--------------------------------------------------
Changes (by stuge):

  * version:  1.2.3 => 0.18


-- 
Ticket URL: <http://trac.libssh2.org/ticket/51#comment:8>
libssh2 <http://trac.libssh2.org/>
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  Thu Feb 18 01:21:53 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1I0LoA0018077;
	Thu, 18 Feb 2010 01:21:51 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1I0Lma4018009
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 18 Feb 2010 01:21:49 +0100
Received: (qmail 11211 invoked from network); 18 Feb 2010 00:21:49 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 18 Feb 2010 00:21:49 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 18 Feb 2010 00:21:49 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #83: Unable to exchange encryption keys
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/83#comment:2
Message-ID: <054.2aed9bd686a9fcd7dc34ee43d22c9582@libssh2.stuge.se>
References: <045.5265b03e0d2dcef7b05e3dec670e93e2@libssh2.stuge.se>
X-Trac-Ticket-ID: 83
In-Reply-To: <045.5265b03e0d2dcef7b05e3dec670e93e2@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#83: Unable to exchange encryption keys
------------------------+---------------------------------------------------
  Reporter:  anonymous  |       Owner:  bagder
      Type:  defect     |      Status:  closed
  Priority:  normal     |   Milestone:        
 Component:  crypto     |     Version:  1.0   
Resolution:  duplicate  |    Keywords:        
  Blocking:             |   Blockedby:        
------------------------+---------------------------------------------------
Changes (by stuge):

  * status:  assigned => closed
  * version:  => 1.0
  * resolution:  => duplicate


Comment:

 Duplicate of #51 so please see if you can reproduce with 1.2.3 or a later
 version, and reopen #51 in that case.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/83#comment:2>
libssh2 <http://trac.libssh2.org/>
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  Thu Feb 18 01:28:07 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1I0S3rb023946;
	Thu, 18 Feb 2010 01:28:06 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1I0S1oV023876
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 18 Feb 2010 01:28:02 +0100
Received: (qmail 11619 invoked from network); 18 Feb 2010 00:28:02 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 18 Feb 2010 00:28:02 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 18 Feb 2010 00:28:02 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #118: incorrect DSS signature length for packet type
	31(0x1f)
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/118#comment:6
Message-ID: <054.aff67f0c6e6bfe5678d2462932398ea5@libssh2.stuge.se>
References: <045.b5547a05cf5a2e5193b7a9b66acdbaf3@libssh2.stuge.se>
X-Trac-Ticket-ID: 118
In-Reply-To: <045.b5547a05cf5a2e5193b7a9b66acdbaf3@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#118: incorrect DSS signature length for packet type 31(0x1f)
------------------------+---------------------------------------------------
  Reporter:  anonymous  |       Owner:  bagder
      Type:  defect     |      Status:  closed
  Priority:  normal     |   Milestone:        
 Component:  crypto     |     Version:  1.2   
Resolution:  duplicate  |    Keywords:        
  Blocking:             |   Blockedby:        
------------------------+---------------------------------------------------
Changes (by stuge):

  * status:  assigned => closed
  * resolution:  => duplicate
  * version:  => 1.2
  * component:  API => crypto


Comment:

 Duplicate of #51 and #83 (artifact 2529398 mentioned in [#comment:2]) so
 please see if you can reproduce with at least version 1.2.3 and reopen #51
 in that case.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/118#comment:6>
libssh2 <http://trac.libssh2.org/>
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  Thu Feb 18 13:23:55 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ICNgFR023380;
	Thu, 18 Feb 2010 13:23:50 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ICNeIl023318
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 18 Feb 2010 13:23:40 +0100
Received: (qmail 22956 invoked from network); 18 Feb 2010 12:23:41 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 18 Feb 2010 12:23:41 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 18 Feb 2010 12:23:41 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #125: memory leak in function
	"userauth_keyboard_interactive"
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/125#comment:1
Message-ID: <054.545d90156299374ff8a5b384aac06704@libssh2.stuge.se>
References: <045.9774be188168c83b182137751446951d@libssh2.stuge.se>
X-Trac-Ticket-ID: 125
In-Reply-To: <045.9774be188168c83b182137751446951d@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#125: memory leak in function "userauth_keyboard_interactive"
------------------------+---------------------------------------------------
  Reporter:  anonymous  |       Owner:        
      Type:  defect     |      Status:  closed
  Priority:  normal     |   Milestone:  1.2.5 
 Component:  API        |     Version:        
Resolution:  fixed      |    Keywords:        
  Blocking:             |   Blockedby:        
------------------------+---------------------------------------------------
Changes (by bagder):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  => 1.2.5


Comment:

 Thank you, this is now fixed the git repo.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/125#comment:1>
libssh2 <http://trac.libssh2.org/>
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  Thu Feb 18 13:32:17 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ICVfZ2028677;
	Thu, 18 Feb 2010 13:31:44 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ICVdpd028660
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 18 Feb 2010 13:31:39 +0100
Received: (qmail 23697 invoked from network); 18 Feb 2010 12:31:39 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 18 Feb 2010 12:31:39 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 18 Feb 2010 12:31:39 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #125: memory leak in function
	"userauth_keyboard_interactive"
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/125#comment:2
Message-ID: <054.689ee148595adfabe5bf77fc2d677056@libssh2.stuge.se>
References: <045.9774be188168c83b182137751446951d@libssh2.stuge.se>
X-Trac-Ticket-ID: 125
In-Reply-To: <045.9774be188168c83b182137751446951d@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#125: memory leak in function "userauth_keyboard_interactive"
------------------------+---------------------------------------------------
  Reporter:  anonymous  |       Owner:        
      Type:  defect     |      Status:  closed
  Priority:  normal     |   Milestone:  1.2.5 
 Component:  API        |     Version:        
Resolution:  fixed      |    Keywords:        
  Blocking:             |   Blockedby:        
------------------------+---------------------------------------------------

Comment(by stuge):

 commit 37c08983a3f75ffc15b31608e728065d50f457bf

-- 
Ticket URL: <http://trac.libssh2.org/ticket/125#comment:2>
libssh2 <http://trac.libssh2.org/>
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  Thu Feb 18 13:33:36 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ICXXoo029264;
	Thu, 18 Feb 2010 13:33:35 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ICXXhE029259
	for <libssh2-devel@cool.haxx.se>; Thu, 18 Feb 2010 13:33:33 +0100
Date: Thu, 18 Feb 2010 13:33:33 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: [libssh2] #125: memory leak in function
	"userauth_keyboard_interactive"
In-Reply-To: <054.689ee148595adfabe5bf77fc2d677056@libssh2.stuge.se>
Message-ID: <alpine.DEB.2.00.1002181333180.2784@tvnag.unkk.fr>
References: <045.9774be188168c83b182137751446951d@libssh2.stuge.se>
	<054.689ee148595adfabe5bf77fc2d677056@libssh2.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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Thu, 18 Feb 2010, libssh2 Trac wrote:

> commit 37c08983a3f75ffc15b31608e728065d50f457bf

Right. Thanks for that!

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 18 14:06:58 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ID6oEl024575;
	Thu, 18 Feb 2010 14:06:56 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ID6mwv024565
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 18 Feb 2010 14:06:49 +0100
Received: (qmail 25771 invoked from network); 18 Feb 2010 13:06:48 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 18 Feb 2010 13:06:48 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 18 Feb 2010 13:06:48 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #115: remote host startup banner breaks sftp/scp
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/115#comment:4
Message-ID: <054.0aded9f6f37aedd992a48537ac80f47a@libssh2.stuge.se>
References: <045.49d06fd1723fa98a55681d2b200dc6f9@libssh2.stuge.se>
X-Trac-Ticket-ID: 115
In-Reply-To: <045.49d06fd1723fa98a55681d2b200dc6f9@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#115: remote host startup banner breaks sftp/scp
------------------------+---------------------------------------------------
  Reporter:  anonymous  |       Owner:  bagder
      Type:  defect     |      Status:  closed
  Priority:  normal     |   Milestone:        
 Component:  protocol   |     Version:        
Resolution:  invalid    |    Keywords:        
  Blocking:             |   Blockedby:        
------------------------+---------------------------------------------------
Changes (by stuge):

  * status:  assigned => closed
  * resolution:  => invalid
  * component:  SFTP => protocol


Comment:

 As already mentioned, this is quite likely a protocol error on the server
 side. Feel free to reopen this ticket, but please provide a full debug log
 from a failed connection attempt if you do, otherwise we can not look into
 this.

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/115#comment:4>
libssh2 <http://libssh2.stuge.se/>
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  Thu Feb 18 14:10:47 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1IDAiZC026461;
	Thu, 18 Feb 2010 14:10:45 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1IDAggQ026438
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 18 Feb 2010 14:10:42 +0100
Received: (qmail 25990 invoked from network); 18 Feb 2010 13:10:42 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 18 Feb 2010 13:10:42 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 18 Feb 2010 13:10:42 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #136: Sometimes ssh2 test fails on Solaris 8 Sparc
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/136#comment:3
Message-ID: <055.edd7212b8165930b2d2d2cc3c35b0911@libssh2.stuge.se>
References: <046.c3e2cacd43c67a429217ab8c453419eb@libssh2.stuge.se>
X-Trac-Ticket-ID: 136
In-Reply-To: <046.c3e2cacd43c67a429217ab8c453419eb@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#136: Sometimes ssh2 test fails on Solaris 8 Sparc
-------------------------+--------------------------------------------------
  Reporter:  dmichelsen  |       Owner:       
      Type:  defect      |      Status:  new  
  Priority:  normal      |   Milestone:       
 Component:  tests       |     Version:  1.2.4
Resolution:              |    Keywords:       
  Blocking:              |   Blockedby:       
-------------------------+--------------------------------------------------
Changes (by stuge):

  * version:  => 1.2.4
  * component:  misc => tests


-- 
Ticket URL: <http://libssh2.stuge.se/ticket/136#comment:3>
libssh2 <http://libssh2.stuge.se/>
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  Thu Feb 18 14:19:40 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1IDJYxU029919;
	Thu, 18 Feb 2010 14:19:38 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1IDJXTS029916
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 18 Feb 2010 14:19:34 +0100
Received: (qmail 26465 invoked from network); 18 Feb 2010 13:19:34 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 18 Feb 2010 13:19:34 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 18 Feb 2010 13:19:34 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #123: libssh2_channel_close() hangs in non blocking mode
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/123#comment:2
Message-ID: <054.23c9072a5a7bb9654a63b71d35a65452@libssh2.stuge.se>
References: <045.44caf8b8215f44f6756e43fff7ed8a8c@libssh2.stuge.se>
X-Trac-Ticket-ID: 123
In-Reply-To: <045.44caf8b8215f44f6756e43fff7ed8a8c@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#123: libssh2_channel_close() hangs in non blocking mode
------------------------+---------------------------------------------------
  Reporter:  anonymous  |       Owner:  bagder  
      Type:  defect     |      Status:  assigned
  Priority:  normal     |   Milestone:          
 Component:             |     Version:  1.2.1   
Resolution:             |    Keywords:          
  Blocking:             |   Blockedby:          
------------------------+---------------------------------------------------
Changes (by bagder):

  * version:  => 1.2.1


Comment:

 Can you still repeat this problem with libssh2 1.2.4?

 If so, can you please provide the source code to an application that
 repeats this problem?

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/123#comment:2>
libssh2 <http://libssh2.stuge.se/>
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  Thu Feb 18 14:21:50 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1IDLcs5000821;
	Thu, 18 Feb 2010 14:21:39 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1IDLbf9000793
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 18 Feb 2010 14:21:37 +0100
Received: (qmail 26627 invoked from network); 18 Feb 2010 13:21:37 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 18 Feb 2010 13:21:37 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 18 Feb 2010 13:21:37 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #114: libssh2_scp_send_ex in libssh2 1.2 doesn't work
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/114#comment:7
Message-ID: <054.731e57ef17f3425377aae2f9bf76f97e@libssh2.stuge.se>
References: <045.febe1b6c741233701c6b8a8da373ce93@libssh2.stuge.se>
X-Trac-Ticket-ID: 114
In-Reply-To: <045.febe1b6c741233701c6b8a8da373ce93@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#114: libssh2_scp_send_ex  in libssh2 1.2 doesn't work
------------------------+---------------------------------------------------
  Reporter:  anonymous  |       Owner:  bagder  
      Type:  defect     |      Status:  assigned
  Priority:  normal     |   Milestone:          
 Component:  SCP        |     Version:  1.2.2   
Resolution:             |    Keywords:          
  Blocking:             |   Blockedby:          
------------------------+---------------------------------------------------
Changes (by bagder):

  * version:  => 1.2.2


-- 
Ticket URL: <http://libssh2.stuge.se/ticket/114#comment:7>
libssh2 <http://libssh2.stuge.se/>
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  Thu Feb 18 14:22:19 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1IDMGem001863;
	Thu, 18 Feb 2010 14:22:17 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1IDMF4N001852
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 18 Feb 2010 14:22:15 +0100
Received: (qmail 26747 invoked from network); 18 Feb 2010 13:22:16 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 18 Feb 2010 13:22:16 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 18 Feb 2010 13:22:16 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #131: Error in sftp_readdir
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/131#comment:3
Message-ID: <054.8b20ffad1f4e57de371cc2f680fab7f1@libssh2.stuge.se>
References: <045.b06aa85e5eac8d610e8616bca36bfd98@libssh2.stuge.se>
X-Trac-Ticket-ID: 131
In-Reply-To: <045.b06aa85e5eac8d610e8616bca36bfd98@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#131: Error in sftp_readdir
------------------------+---------------------------------------------------
  Reporter:  dietmar10  |       Owner:  bagder  
      Type:  defect     |      Status:  assigned
  Priority:  normal     |   Milestone:          
 Component:  SFTP       |     Version:  1.2.2   
Resolution:             |    Keywords:          
  Blocking:             |   Blockedby:          
------------------------+---------------------------------------------------
Changes (by bagder):

  * version:  => 1.2.2


-- 
Ticket URL: <http://libssh2.stuge.se/ticket/131#comment:3>
libssh2 <http://libssh2.stuge.se/>
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  Thu Feb 18 14:27:17 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1IDR8bX007889;
	Thu, 18 Feb 2010 14:27:14 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1IDR6aE007884
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 18 Feb 2010 14:27:06 +0100
Received: (qmail 27285 invoked from network); 18 Feb 2010 13:27:06 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 18 Feb 2010 13:27:06 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 18 Feb 2010 13:27:06 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #149: Add libssh2_userauth_publickey from memory
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/149#comment:1
Message-ID: <050.8a7274bb9cafbd2fa70dbb97867a68c5@libssh2.stuge.se>
References: <041.88391cb925c793cf34d67c71e2968248@libssh2.stuge.se>
X-Trac-Ticket-ID: 149
In-Reply-To: <041.88391cb925c793cf34d67c71e2968248@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#149: Add libssh2_userauth_publickey from memory
--------------------------+-------------------------------------------------
  Reporter:  chaac        |       Owner:     
      Type:  enhancement  |      Status:  new
  Priority:  normal       |   Milestone:     
 Component:  API          |     Version:     
Resolution:               |    Keywords:     
  Blocking:               |   Blockedby:     
--------------------------+-------------------------------------------------
Changes (by stuge):

  * component:  => API


Comment:

 Maybe the SSH agent support can be used to do it? Please check.

 If not, I think this is an interesting idea and I would welcome a patch
 that implements it.

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/149#comment:1>
libssh2 <http://libssh2.stuge.se/>
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  Thu Feb 18 22:30:01 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ILTjWJ032598;
	Thu, 18 Feb 2010 22:29:57 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ILThkX032589
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 18 Feb 2010 22:29:43 +0100
Received: (qmail 19395 invoked from network); 18 Feb 2010 21:29:44 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 18 Feb 2010 21:29:44 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 18 Feb 2010 21:29:44 -0000
X-URL: http://libssh2.stuge.se/
Subject: [libssh2] #158: libssh2_sftp_write returns incorrect value
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/158
Message-ID: <042.cc741e9fa450ff795d5980e747278e75@libssh2.stuge.se>
X-Trac-Ticket-ID: 158
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#158: libssh2_sftp_write returns incorrect value
--------------------+-------------------------------------------------------
 Reporter:  mstrsn  |       Owner:       
     Type:  defect  |      Status:  new  
 Priority:  normal  |   Milestone:       
Component:  SFTP    |     Version:  1.2.4
 Keywords:          |    Blocking:       
Blockedby:          |  
--------------------+-------------------------------------------------------
 The function libssh2_sftp_write incorrectly returns
 LIBSSH2_ERROR_SOCKET_SEND when there is no room on the server. I believe
 the function should either block until there is room on the server, or it
 should return LIBSSH2_ERROR_EAGAIN.

 The following patch works for me, but that's just because I'm only worried
 about non-blocking mode. Someone more knowledgeable with the code should
 implement the proper fix:


 {{{
 diff sftp.c
 1469a1470,1472
 >             if(channel->local.window_size == 0) {
 >                 return LIBSSH2_ERROR_EAGAIN;
 >             }

 }}}

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/158>
libssh2 <http://libssh2.stuge.se/>
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  Thu Feb 18 22:42:31 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ILgQEl008024;
	Thu, 18 Feb 2010 22:42:29 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ILgPE8007992
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 18 Feb 2010 22:42:25 +0100
Received: (qmail 19960 invoked from network); 18 Feb 2010 21:42:25 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 18 Feb 2010 21:42:25 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 18 Feb 2010 21:42:25 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #158: libssh2_sftp_write returns incorrect value
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/158#comment:1
Message-ID: <051.42780f3947772daeec151be64c1cf3b2@libssh2.stuge.se>
References: <042.cc741e9fa450ff795d5980e747278e75@libssh2.stuge.se>
X-Trac-Ticket-ID: 158
In-Reply-To: <042.cc741e9fa450ff795d5980e747278e75@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#158: libssh2_sftp_write returns incorrect value
--------------------+-------------------------------------------------------
 Reporter:  mstrsn  |       Owner:  bagder  
     Type:  defect  |      Status:  assigned
 Priority:  normal  |   Milestone:          
Component:  SFTP    |     Version:  1.2.4   
 Keywords:          |    Blocking:          
Blockedby:          |  
--------------------+-------------------------------------------------------
Changes (by bagder):

  * owner:  => bagder
  * status:  new => assigned


Comment:

 Thanks, please provide diffs made with diff -u (or with git) !

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/158#comment:1>
libssh2 <http://libssh2.stuge.se/>
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  Fri Feb 19 03:31:25 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1J2V9oO023737;
	Fri, 19 Feb 2010 03:31:19 +0100
Received: from mo.mxl.2iij.net (mo503.mxl.2iij.net [210.149.48.21])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1J2V5Ln023732
	for <libssh2-devel@cool.haxx.se>; Fri, 19 Feb 2010 03:31:06 +0100
Received: by mo.mxl.2iij.net (mxl-mo503) id o1J2V4UT017811;
	Fri, 19 Feb 2010 11:31:04 +0900
Received: from unknown [192.26.96.21] (EHLO mx21.fujixerox.co.jp)
	by mas509a.mxl.2iij.net (mxl_mta-5.7.1-5) with ESMTP id
	8e7fd7b4.3867130768.113997.00-016.101423.mas509a.mxl.2iij.net
	(envelope-from <qiang.xu@fujixerox.com>); 
	Fri, 19 Feb 2010 11:31:04 +0900 (JST)
Received: from isvw21.fujixerox.co.jp ([129.249.27.141])
	by mx21.fujixerox.co.jp  with ESMTP id o1J2V4pL004185
	for <libssh2-devel@cool.haxx.se>; Fri, 19 Feb 2010 11:31:04 +0900 (JST)
Received: from ms20.fujixerox.co.jp (localhost [127.0.0.1])
	by isvw21.fujixerox.co.jp  with ESMTP id o1J2V3ui009067
	for <libssh2-devel@cool.haxx.se>; Fri, 19 Feb 2010 11:31:03 +0900 (JST)
Received: from mailgw1.fujixerox.com ([13.198.8.180])
	by ms20.fujixerox.co.jp  with ESMTP id o1J2V1br008550
	for <libssh2-devel@cool.haxx.se>; Fri, 19 Feb 2010 11:31:02 +0900 (JST)
X-IronPort-AV: E=Sophos;i="4.49,500,1262534400"; 
	d="jpg'145?scan'145,208,145";a="119347275"
Received: from sgpaphq-exhub02.dc01.fujixerox.net ([13.198.8.236])
	by mailgw1.fujixerox.com with ESMTP; 19 Feb 2010 10:31:00 +0800
Received: from SGPAPHQ-EXSCC01.dc01.fujixerox.net ([13.198.8.229]) by
	sgpaphq-exhub02.dc01.fujixerox.net ([13.198.8.236]) with mapi;
	Fri, 19 Feb 2010 10:30:56 +0800
From: "Xu, Qiang (FXSGSC)" <Qiang.Xu@fujixerox.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Date: Fri, 19 Feb 2010 10:30:56 +0800
Subject: RE: libssh2 takes long time to disconnect from CoreFTP's SFTP service
Thread-Topic: libssh2 takes long time to disconnect from CoreFTP's SFTP service
Thread-Index: AcqvwWfOglv+2nHORZmnJB89pmZhHABR9D0g
Message-ID: <D8C9BC7FFCF8154FB7141EB8DB609C172F1041C78D@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
References: <D8C9BC7FFCF8154FB7141EB8DB609C172F103D0706@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100217100347.20982.qmail@stuge.se>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F103D07E4@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100217110653.467.qmail@stuge.se>
In-Reply-To: <20100217110653.467.qmail@stuge.se>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: multipart/mixed;
	boundary="_002_D8C9BC7FFCF8154FB7141EB8DB609C172F1041C78DSGPAPHQEXSCC0_"
MIME-Version: 1.0
X-Spam: exempt
X-MAIL-FROM: <qiang.xu@fujixerox.com>
X-SOURCE-IP: [192.26.96.21]
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--_002_D8C9BC7FFCF8154FB7141EB8DB609C172F1041C78DSGPAPHQEXSCC0_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

> -----Original Message-----
> From: libssh2-devel-bounces@cool.haxx.se=20
> [mailto:libssh2-devel-bounces@cool.haxx.se] On Behalf Of Peter Stuge
> Sent: Wednesday, February 17, 2010 7:07 PM
> To: libssh2-devel@cool.haxx.se
> Subject: Re: libssh2 takes long time to disconnect from=20
> CoreFTP's SFTP service
>=20
> Your snippet shows that libssh2 has a problem when disconnecting.
>=20
> It gets stuck just waiting and after a 10 minute delay the=20
> server (not libssh2) closes the connection. A timeout is=20
> probably configured in the server.

Thank you, Peter! You are right, again! Just found out that there is a sett=
ing of "idle timeout" in CoreFTP server, and it is 600 seconds by default. =
Please look at the attached screenshot.=20

And when this timeout is set to 1 sec, it is much faster.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
qxu@durian(pts/3):~/opensrc/libssh2-1.2.4/example[119]$ ./sftpdir 13.xxx.xx=
x.xxx <user> <pass> /
...
[libssh2] 1.593013 SFTP: Data begin - Packet Length: 24
[libssh2] 1.593020 Socket: Error recving 16384 bytes to 0x843b648+0: 11
[libssh2] 1.593025 Conn: channel_read() got 24 of data from 0/0/0 [ul]
[libssh2] 1.593031 SFTP: Received packet 101 (len 24)
[libssh2] 1.593037 SFTP: Asking for 101 packet
[libssh2] 1.593042 SFTP: Got 101
[libssh2] 1.593054 Conn: Freeing channel 0/0 resources
[libssh2] 1.593060 Conn: Closing channel 0/0
=3D> libssh2_transport_write plain (5 bytes)
0000: 61 00 00 00 00                                   : a....
[libssh2] 1.593088 Socket: Sent 36/36 bytes at 0x843b4c0
=3D> libssh2_transport_write send() (36 bytes)
0000: 03 D3 A7 39 F5 63 94 10  E1 E9 21 14 70 F1 76 19 : ...9.c....!.p.v.
0010: DA 3E 49 9E 84 55 11 A2  D3 D8 8B DF 65 BB E6 3D : .>I..U......e..=3D
0020: C7 50 F6 A5                                      : .P..
[libssh2] 1.593112 Socket: Error recving 16384 bytes to 0x843b648+0: 11
[libssh2] 5.805839 Socket: Recved 68/16384 bytes to 0x843b648+0
=3D> libssh2_transport_read() raw (68 bytes)
0000: 73 C6 9B A4 32 E4 36 15  6A F1 BC 5F 64 8F 9C E3 : s...2.6.j.._d...
0010: B4 23 41 7D AE 41 D0 16  ED 99 7C 1A DA 3D 97 46 : .#A}.A....|..=3D.F
0020: B4 9B 63 4B A2 83 BB BD  4D 33 92 9C 26 00 71 2B : ..cK....M3..&.q+
0030: BB 48 53 04 50 B9 8E 2F  27 2C C2 90 38 81 00 C0 : .HS.P../',..8...
0040: FA E0 3C 66                                      : ..<f
=3D> libssh2_transport_read() plain (26 bytes)
0000: 01 00 00 00 02 00 00 00  0D 44 69 73 63 6F 6E 6E : .........Disconn
0010: 65 63 74 69 6E 67 00 00  00 00                   : ecting....
[libssh2] 5.805912 Transport: Packet type 1 received, length=3D26
[libssh2] 5.805918 Transport: Disconnect(2): Disconnecting()
[libssh2] 5.805924 Failure Event: -13 - socket disconnect
[libssh2] 5.805933 Transport: Disconnecting: reason=3D11, desc=3DNormal Shu=
tdown, Thank you for playing, lang=3D
=3D> libssh2_transport_write plain (51 bytes)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
Still, I am wondering how this 1 sec timeout setting translates into 5 sec =
in disconnection. :-(

Anyway, it looks like a server's issue, not the problem of libssh2. By the =
way, libssh2 works perfectly well with OpenSSH and FreeFTPd, the other two =
Windows application that can provide SFTP service.
=20
> Your debug log is very valuable to find the problem within=20
> libssh2, but I'm afraid that this problem will require some=20
> time to solve because the protocol state within libssh2 may=20
> need to be traced throughout the entire log in order to find=20
> the problem.
>=20
> It would be good to have this in the bug tracker so that it=20
> is not lost. Could you create a ticket for it? The component=20
> should probably be "protocol" even though the problem is only=20
> seen with SFTP so far.

Since it is due to the server's setting, I am not sure whether I shall cont=
inue to create a ticket for it.

> > Another word: FileZilla is using PSFTP.exe to do SFTP transactions,=20
> > and it is fast. Hope this helps.
>=20
> Yes that's right! There is no doubt that this is a problem in libssh2.

Just want to clarify that with the 600 sec idle timeout at the server's end=
, FileZilla connects fast, but the same delay appears when I tried to do an=
ything further. Sorry that I didn't do thorough testing on FileZilla.

Thanks a lot for the help provided, Peter!
Xu Qiang=

--_002_D8C9BC7FFCF8154FB7141EB8DB609C172F1041C78DSGPAPHQEXSCC0_
Content-Type: image/jpeg; name="coreftp_timeout.jpg"
Content-Description: coreftp_timeout.jpg
Content-Disposition: attachment; filename="coreftp_timeout.jpg"; size=59717;
	creation-date="Fri, 19 Feb 2010 10:12:48 GMT";
	modification-date="Fri, 19 Feb 2010 10:12:48 GMT"
Content-Transfer-Encoding: base64

/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0a
HBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIy
MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAJfAl0DASIA
AhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQA
AAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3
ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWm
p6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEA
AwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSEx
BhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5Ok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/36/8Ar0f8LI8P/wB+5/79f/XoswuddRXI/wDCyPD/APfuf+/X/wBej/hZHh/+/c/9+v8A69Fm
FzrqK5H/AIWR4f8A79z/AN+v/r0f8LI8P/37n/v1/wDXoswuddRXI/8ACyPD/wDfuf8Av1/9ej/h
ZHh/+/c/9+v/AK9FmFzrqK5H/hZHh/8Av3P/AH6/+vR/wsjw/wD37n/v1/8AXoswuddRXI/8LI8P
/wB+5/79f/Xo/wCFkeH/AO/c/wDfr/69FmFzrqK5H/hZHh/+/c/9+v8A69H/AAsjw/8A37n/AL9f
/XoswuddRXI/8LI8P/37n/v1/wDXo/4WR4f/AL9z/wB+v/r0WYXOuorkf+FkeH/79z/36/8Ar0f8
LI8P/wB+5/79f/XoswuddRXI/wDCyPD/APfuf+/X/wBej/hZHh/+/c/9+v8A69FmFzrqK5H/AIWR
4f8A79z/AN+v/r0f8LI8P/37n/v1/wDXoswuddRXI/8ACyPD/wDfuf8Av1/9ej/hZHh/+/c/9+v/
AK9FmFzrqK5H/hZHh/8Av3P/AH6/+vR/wsjw/wD37n/v1/8AXoswuddXlvxT/wCQrYf9cD/6FXSf
8LI8P/37n/v1/wDXriPHOvWOv3tpNYs5WOMowddpznNUlqDP/9k=

--_002_D8C9BC7FFCF8154FB7141EB8DB609C172F1041C78DSGPAPHQEXSCC0_
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

--_002_D8C9BC7FFCF8154FB7141EB8DB609C172F1041C78DSGPAPHQEXSCC0_--

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 19 03:56:12 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1J2u6JN022440;
	Fri, 19 Feb 2010 03:56:10 +0100
Received: from mo.mxl.2iij.net (mo503.mxl.2iij.net [210.149.48.21])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1J2u3ND022420
	for <libssh2-devel@cool.haxx.se>; Fri, 19 Feb 2010 03:56:05 +0100
Received: by mo.mxl.2iij.net (mxl-mo503) id o1J2u3eU005388;
	Fri, 19 Feb 2010 11:56:03 +0900
Received: from unknown [192.26.96.20] (EHLO mx20.fujixerox.co.jp)
	by mas504a.mxl.2iij.net (mxl_mta-5.7.1-5) with ESMTP id
	3cdfd7b4.3824708496.118563.00-003.104768.mas504a.mxl.2iij.net
	(envelope-from <qiang.xu@fujixerox.com>); 
	Fri, 19 Feb 2010 11:56:03 +0900 (JST)
Received: from isvw20.fujixerox.co.jp ([129.249.27.140])
	by mx20.fujixerox.co.jp  with ESMTP id o1J2u38m027266
	for <libssh2-devel@cool.haxx.se>; Fri, 19 Feb 2010 11:56:03 +0900 (JST)
Received: from ms21.fujixerox.co.jp (localhost [127.0.0.1])
	by isvw20.fujixerox.co.jp  with ESMTP id o1J2u2KJ022558
	for <libssh2-devel@cool.haxx.se>; Fri, 19 Feb 2010 11:56:02 +0900 (JST)
Received: from mailgw1.fujixerox.com ([13.198.8.180])
	by ms21.fujixerox.co.jp  with ESMTP id o1J2u1b3029863
	for <libssh2-devel@cool.haxx.se>; Fri, 19 Feb 2010 11:56:02 +0900 (JST)
X-IronPort-AV: E=Sophos;i="4.49,500,1262534400"; d="scan'208";a="119349700"
Received: from sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235])
	by mailgw1.fujixerox.com with ESMTP; 19 Feb 2010 10:56:01 +0800
Received: from SGPAPHQ-EXSCC01.dc01.fujixerox.net ([13.198.8.229]) by
	sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235]) with mapi;
	Fri, 19 Feb 2010 10:56:01 +0800
From: "Xu, Qiang (FXSGSC)" <Qiang.Xu@fujixerox.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Date: Fri, 19 Feb 2010 10:56:01 +0800
Subject: RE: libssh2 takes long time to disconnect to CoreFTP's SFTP service
Thread-Topic: libssh2 takes long time to disconnect to CoreFTP's SFTP service
Thread-Index: AcqvxYevJAsMbv8aTmmWOhQDAIITzgBShnWw
Message-ID: <D8C9BC7FFCF8154FB7141EB8DB609C172F1041C82A@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
References: <D8C9BC7FFCF8154FB7141EB8DB609C172F103D0706@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100217100347.20982.qmail@stuge.se>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F103D07E4@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<alpine.DEB.2.00.1002171233440.15911@tvnag.unkk.fr>
In-Reply-To: <alpine.DEB.2.00.1002171233440.15911@tvnag.unkk.fr>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
MIME-Version: 1.0
X-Spam: exempt
X-MAIL-FROM: <qiang.xu@fujixerox.com>
X-SOURCE-IP: [192.26.96.20]
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

> -----Original Message-----
> From: libssh2-devel-bounces@cool.haxx.se 
> [mailto:libssh2-devel-bounces@cool.haxx.se] On Behalf Of 
> Daniel Stenberg
> Sent: Wednesday, February 17, 2010 7:36 PM
> To: libssh2 development
> Subject: RE: libssh2 takes long time to connect to CoreFTP's 
> SFTP service
> 
> Does this problem occur every time you try to do an SFTP dir 
> listing on this server?

You are right, Daniel.
 
> Is there any chance you can run such a server in public for a 
> while to allow us to debug libssh2 against one? Or anyone 
> else who has a Windows machine up and facing the internet 
> willing to help out here?

Sorry, I am in the company domain, and I don't have previledge to set up a public server. Anyway, just as I wrote in the last mail, it seems a server's issue.

Thank you all,
Xu Qiang
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 19 09:42:34 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1J8gMi3027165;
	Fri, 19 Feb 2010 09:42:31 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1J8gKbp027109
	for <libssh2-devel@cool.haxx.se>; Fri, 19 Feb 2010 09:42:20 +0100
Received: (qmail 3850 invoked by uid 501); 19 Feb 2010 08:42:19 -0000
Message-ID: <20100219084219.3849.qmail@stuge.se>
Date: Fri, 19 Feb 2010 09:42:19 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2 takes long time to disconnect from CoreFTP's SFTP service
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <D8C9BC7FFCF8154FB7141EB8DB609C172F103D0706@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100217100347.20982.qmail@stuge.se>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F103D07E4@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100217110653.467.qmail@stuge.se>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F1041C78D@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <D8C9BC7FFCF8154FB7141EB8DB609C172F1041C78D@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Xu, Qiang (FXSGSC) wrote:
> > It gets stuck just waiting and after a 10 minute delay the 
> > server (not libssh2) closes the connection. A timeout is 
> > probably configured in the server.
> 
> Thank you, Peter! You are right, again! Just found out that there
> is a setting of "idle timeout" in CoreFTP server, and it is 600
> seconds by default. Please look at the attached screenshot. 
..
> Anyway, it looks like a server's issue, not the problem of libssh2.
> By the way, libssh2 works perfectly well with OpenSSH and FreeFTPd,
> the other two Windows application that can provide SFTP service.

Hmm.

Maybe this is a problem in libssh2 anyway. The library must be able
to close an SFTP connection without depending on a timeout or
configuration setting on the server side. Imagine what would happen
if the server is using an infinite timeout!

Of course - it is possible that the server is not behaving correctly,
but I would like it to be investigated further to be certain.

The question is if libssh2 is correct when it starts to wait, or if
it should actually continue to close the connection.


> > It would be good to have this in the bug tracker so that it 
> > is not lost. Could you create a ticket for it? The component 
> > should probably be "protocol" even though the problem is only 
> > seen with SFTP so far.
> 
> Since it is due to the server's setting, I am not sure whether I
> shall continue to create a ticket for it.

Please do, it is good also for documenting that we know about this
problem, even if it is not the fault of libssh2.


> > > Another word: FileZilla is using PSFTP.exe to do SFTP transactions, 
> > > and it is fast. Hope this helps.
> > 
> > Yes that's right! There is no doubt that this is a problem in libssh2.
> 
> Just want to clarify that with the 600 sec idle timeout at the server's
> end, FileZilla connects fast, but the same delay appears when I tried
> to do anything further.

Oh! That is interesting.


> Sorry that I didn't do thorough testing on FileZilla.

Hm. Is there any SFTP client (in Windows there is also WinSCP, and
maybe you or a co-worker can test Cyberduck on Mac OS X?) working
correctly with this server?


> Thanks a lot for the help provided, Peter!

Thanks for the report. I think it's a serious problem.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 19 10:26:07 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1J9Q17N026234;
	Fri, 19 Feb 2010 10:26:05 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1J9Q0tm026217
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 19 Feb 2010 10:26:00 +0100
Received: (qmail 17273 invoked from network); 19 Feb 2010 09:25:59 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 19 Feb 2010 09:25:59 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Fri, 19 Feb 2010 09:25:59 -0000
X-URL: http://libssh2.stuge.se/
Subject: [libssh2] #159: libssh2 takes long time to disconnect from
	CoreFTP's SFTP service
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/159
Message-ID: <039.c9b33f1492e7958089fb7727450037b1@libssh2.stuge.se>
X-Trac-Ticket-ID: 159
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#159: libssh2 takes long time to disconnect from CoreFTP's SFTP service
-----------------------------------------+----------------------------------
 Reporter:  qxu                          |       Owner:       
     Type:  defect                       |      Status:  new  
 Priority:  normal                       |   Milestone:  1.2.5
Component:  protocol                     |     Version:  1.2.4
 Keywords:  coreftp server idle timeout  |    Blocking:       
Blockedby:                               |  
-----------------------------------------+----------------------------------
 1. Download CoreFTP server from http://www.coreftp.com/server/. Install it
 on a Windows platform, and set up an SFTP server. Start the service, with
 the default idle timeout setting as 600 seconds.

 2. Download the latest libssh2 source package, say, libssh2-1.2.4.tar.gz
 into a Unix/Linux box.

 3. Compile it with debug option enabled, and you will get some binaries in
 "libssh2-1.2.4/example".

 4. In the above path, type the command "./sftpdir
 <coreftp_sftp_server_ip_address> <username> <password>
 <directory_to_be_listed>".

 5. Notice that the session will be finished after around 10 mins. This is
 unbearable.

 6. Even if the server's idle timeout value is reduced to 1 second, the
 sftpdir command will still take around 5 to 6 seconds to finish.

 7. FileZilla and WinSCP have the same problem.

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/159>
libssh2 <http://libssh2.stuge.se/>
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  Fri Feb 19 10:36:26 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1J9aDS3030781;
	Fri, 19 Feb 2010 10:36:15 +0100
Received: from mo.mxl.2iij.net (mo501.mxl.2iij.net [210.149.48.19])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1J9a9rr030772
	for <libssh2-devel@cool.haxx.se>; Fri, 19 Feb 2010 10:36:11 +0100
Received: by mo.mxl.2iij.net (mxl-mo501) id o1J9a7Kd020544;
	Fri, 19 Feb 2010 18:36:07 +0900
Received: from unknown [192.26.96.20] (EHLO mx20.fujixerox.co.jp)
	by mas502a.mxl.2iij.net (mxl_mta-5.7.1-5)
	with ESMTP id 78b5e7b4.3741252496.3187.00-015.2888.mas502a.mxl.2iij.net
	(envelope-from <qiang.xu@fujixerox.com>); 
	Fri, 19 Feb 2010 18:36:07 +0900 (JST)
Received: from isvw20.fujixerox.co.jp ([129.249.27.140])
	by mx20.fujixerox.co.jp  with ESMTP id o1J9a7Yg022014
	for <libssh2-devel@cool.haxx.se>; Fri, 19 Feb 2010 18:36:07 +0900 (JST)
Received: from ms21.fujixerox.co.jp (localhost [127.0.0.1])
	by isvw20.fujixerox.co.jp  with ESMTP id o1J9a7Rt012452
	for <libssh2-devel@cool.haxx.se>; Fri, 19 Feb 2010 18:36:07 +0900 (JST)
Received: from mailgw1.fujixerox.com ([13.198.8.180])
	by ms21.fujixerox.co.jp  with ESMTP id o1J9a6F1021657
	for <libssh2-devel@cool.haxx.se>; Fri, 19 Feb 2010 18:36:06 +0900 (JST)
X-IronPort-AV: E=Sophos;i="4.49,502,1262534400"; d="scan'208";a="119378858"
Received: from sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235])
	by mailgw1.fujixerox.com with ESMTP; 19 Feb 2010 17:36:05 +0800
Received: from SGPAPHQ-EXSCC01.dc01.fujixerox.net ([13.198.8.229]) by
	sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235]) with mapi;
	Fri, 19 Feb 2010 17:36:05 +0800
From: "Xu, Qiang (FXSGSC)" <Qiang.Xu@fujixerox.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Date: Fri, 19 Feb 2010 17:36:03 +0800
Subject: RE: libssh2 takes long time to disconnect from CoreFTP's SFTP service
Thread-Topic: libssh2 takes long time to disconnect from CoreFTP's SFTP service
Thread-Index: AcqxP47E7Q5juJ6QTou2i0nnMX+9mAABv9Ng
Message-ID: <D8C9BC7FFCF8154FB7141EB8DB609C172F1044BB2F@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
References: <D8C9BC7FFCF8154FB7141EB8DB609C172F103D0706@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100217100347.20982.qmail@stuge.se>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F103D07E4@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100217110653.467.qmail@stuge.se>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F1041C78D@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100219084219.3849.qmail@stuge.se>
In-Reply-To: <20100219084219.3849.qmail@stuge.se>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
MIME-Version: 1.0
X-Spam: exempt
X-MAIL-FROM: <qiang.xu@fujixerox.com>
X-SOURCE-IP: [192.26.96.20]
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

> -----Original Message-----
> From: libssh2-devel-bounces@cool.haxx.se 
> [mailto:libssh2-devel-bounces@cool.haxx.se] On Behalf Of Peter Stuge
> Sent: Friday, February 19, 2010 4:42 PM
> To: libssh2-devel@cool.haxx.se
> Subject: Re: libssh2 takes long time to disconnect from 
> CoreFTP's SFTP service
> 
> Hmm.
> 
> Maybe this is a problem in libssh2 anyway. The library must 
> be able to close an SFTP connection without depending on a 
> timeout or configuration setting on the server side. Imagine 
> what would happen if the server is using an infinite timeout!

Ahhh, yes, I didn't think of this. There is really a potential risk.
 
> Of course - it is possible that the server is not behaving 
> correctly, but I would like it to be investigated further to 
> be certain.
> 
> The question is if libssh2 is correct when it starts to wait, 
> or if it should actually continue to close the connection.
>
> [...] 
> Please do, it is good also for documenting that we know about 
> this problem, even if it is not the fault of libssh2.

The ticket has been created, with the link as http://libssh2.stuge.se/ticket/159.
 
> Hm. Is there any SFTP client (in Windows there is also 
> WinSCP, and maybe you or a co-worker can test Cyberduck on 
> Mac OS X?) working correctly with this server?

Just tried WinSCP. Yes, the problem is still there. I don't have access to Mac machines. :-(

Thanks for your help and investigation,
Xu Qiang
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 19 14:36:02 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1JDZnis001865;
	Fri, 19 Feb 2010 14:35:59 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1JDZmRk001861
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 19 Feb 2010 14:35:48 +0100
Received: (qmail 27683 invoked from network); 19 Feb 2010 13:35:48 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 19 Feb 2010 13:35:48 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Fri, 19 Feb 2010 13:35:48 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #158: libssh2_sftp_write returns incorrect value
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/158#comment:2
Message-ID: <051.cbcaa46fc2810e3d86f39d309495861e@libssh2.stuge.se>
References: <042.cc741e9fa450ff795d5980e747278e75@libssh2.stuge.se>
X-Trac-Ticket-ID: 158
In-Reply-To: <042.cc741e9fa450ff795d5980e747278e75@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#158: libssh2_sftp_write returns incorrect value
--------------------+-------------------------------------------------------
 Reporter:  mstrsn  |       Owner:  bagder  
     Type:  defect  |      Status:  assigned
 Priority:  normal  |   Milestone:          
Component:  SFTP    |     Version:  1.2.4   
 Keywords:          |    Blocking:          
Blockedby:          |  
--------------------+-------------------------------------------------------

Comment(by mstrsn):

 Here is the patch I used:


 {{{
 --- sftp.c.1.2  Thu Feb 18 17:05:46 2010
 +++ sftp.c      Thu Feb 18 17:09:10 2010
 @@ -1467,6 +1467,9 @@
              return rc;
          }
          else if(0 == rc) {
 +            if(channel->local.window_size == 0) {
 +                return LIBSSH2_ERROR_EAGAIN;
 +            }
              /* nothing sent is an error */
              return LIBSSH2_ERROR_SOCKET_SEND;
          }

 }}}

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/158#comment:2>
libssh2 <http://libssh2.stuge.se/>
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  Sun Feb 21 03:47:06 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1L2kmVr020630;
	Sun, 21 Feb 2010 03:47:01 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1L2kkTQ020627
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Sun, 21 Feb 2010 03:46:46 +0100
Received: (qmail 18853 invoked from network); 21 Feb 2010 02:46:47 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 21 Feb 2010 02:46:47 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Sun, 21 Feb 2010 02:46:47 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #114: libssh2_scp_send_ex in libssh2 1.2 doesn't work
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/114#comment:8
Message-ID: <054.0dcf249759ec234ca71939f55ebb25f8@libssh2.stuge.se>
References: <045.febe1b6c741233701c6b8a8da373ce93@libssh2.stuge.se>
X-Trac-Ticket-ID: 114
In-Reply-To: <045.febe1b6c741233701c6b8a8da373ce93@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#114: libssh2_scp_send_ex  in libssh2 1.2 doesn't work
------------------------+---------------------------------------------------
  Reporter:  anonymous  |       Owner:  bagder  
      Type:  defect     |      Status:  assigned
  Priority:  normal     |   Milestone:          
 Component:  SCP        |     Version:  1.2.2   
Resolution:             |    Keywords:          
  Blocking:             |   Blockedby:          
------------------------+---------------------------------------------------

Comment(by amiroot):

 Problem still existing in 1.2.4 centos 5.3.

 FYI the server is located in my office intranet and the programme try to
 access a server in public internet.

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/114#comment:8>
libssh2 <http://libssh2.stuge.se/>
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  Sun Feb 21 15:05:17 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1LE4rP9024822;
	Sun, 21 Feb 2010 15:05:04 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1LE4qs3024791
	for <libssh2-devel@cool.haxx.se>; Sun, 21 Feb 2010 15:04:52 +0100
Date: Sun, 21 Feb 2010 15:04:52 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: [PATCH] Timeout support for blocking API
In-Reply-To: <E68B7328-50DE-4010-93D2-BAB1BB37E15F@macrabbit.com>
Message-ID: <alpine.DEB.2.00.1002211503200.11401@tvnag.unkk.fr>
References: <E68B7328-50DE-4010-93D2-BAB1BB37E15F@macrabbit.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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Tue, 16 Feb 2010, Jan Van Boghout wrote:

> These patches are a proposal for a user-customizable timeout value when 
> interacting with sessions in blocking mode.

Thanks! I think this looks good. Any chance you can provide man pages as well 
for the two new functions? I think documentation is important when we add 
things so that people can actually figure out how to use the new stuff as 
well..

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Sun Feb 21 19:27:28 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1LIRD7F031970;
	Sun, 21 Feb 2010 19:27:25 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1LIRCbC031966
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Sun, 21 Feb 2010 19:27:12 +0100
Received: (qmail 25641 invoked from network); 21 Feb 2010 18:27:12 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 21 Feb 2010 18:27:12 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Sun, 21 Feb 2010 18:27:12 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #114: libssh2_scp_send_ex in libssh2 1.2 doesn't work
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/114#comment:9
Message-ID: <054.c00909b1aaca379200421b27d9339771@libssh2.stuge.se>
References: <045.febe1b6c741233701c6b8a8da373ce93@libssh2.stuge.se>
X-Trac-Ticket-ID: 114
In-Reply-To: <045.febe1b6c741233701c6b8a8da373ce93@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#114: libssh2_scp_send_ex  in libssh2 1.2 doesn't work
------------------------+---------------------------------------------------
  Reporter:  anonymous  |       Owner:  bagder  
      Type:  defect     |      Status:  assigned
  Priority:  normal     |   Milestone:          
 Component:  SCP        |     Version:  1.2.2   
Resolution:             |    Keywords:          
  Blocking:             |   Blockedby:          
------------------------+---------------------------------------------------

Comment(by bagder):

 Here's what I did to try to repeat it, only to see it working. Please be a
 lot more specific with details we NEED to repeat this problem.

 First, I made a symlink in my local tmp dir to another dir:

 $ ls -ld /home/daniel/tmp/upsymlink
 lrwxrwxrwx 1 daniel daniel 6 Feb 21 18:56 /home/daniel/tmp/upsymlink ->
 upload

 then I used the 'scp_write' example code to do an upload:
 $ ./scp_write 127.0.0.1 [user] [password] local-file
 /home/daniel/tmp/upsymlink/tags

 It said it worked, so I check the dir on the server:
 $ ls -l /home/daniel/tmp/upsymlink/
 total 4
 -rw-r--r-- 1 daniel daniel 3773 Feb 21 19:23 tags

 Now, please tell me what I need to adjust to make this fail the way you
 do?

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/114#comment:9>
libssh2 <http://libssh2.stuge.se/>
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  Sun Feb 21 20:52:37 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1LJqR4q028765;
	Sun, 21 Feb 2010 20:52:35 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1LJqPl8028753
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Sun, 21 Feb 2010 20:52:25 +0100
Received: (qmail 29006 invoked from network); 21 Feb 2010 19:52:25 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 21 Feb 2010 19:52:25 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Sun, 21 Feb 2010 19:52:25 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #114: libssh2_scp_send_ex in libssh2 1.2 doesn't work
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/114#comment:10
Message-ID: <054.a73917942af7ec09edfc7e157c39cc10@libssh2.stuge.se>
References: <045.febe1b6c741233701c6b8a8da373ce93@libssh2.stuge.se>
X-Trac-Ticket-ID: 114
In-Reply-To: <045.febe1b6c741233701c6b8a8da373ce93@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#114: libssh2_scp_send_ex  in libssh2 1.2 doesn't work
------------------------+---------------------------------------------------
  Reporter:  anonymous  |       Owner:  bagder  
      Type:  defect     |      Status:  assigned
  Priority:  normal     |   Milestone:          
 Component:  SCP        |     Version:  1.2.2   
Resolution:             |    Keywords:          
  Blocking:             |   Blockedby:          
------------------------+---------------------------------------------------

Comment(by stuge):

 It would also be helpful if you could attach a full debug log to this
 ticket. Create it by inserting libssh2_trace(session, ~0); into any
 program that shows the described problem.

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/114#comment:10>
libssh2 <http://libssh2.stuge.se/>
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  Sun Feb 21 20:58:53 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1LJwm8Q031123;
	Sun, 21 Feb 2010 20:58:50 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1LJwkoY031120
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Sun, 21 Feb 2010 20:58:47 +0100
Received: (qmail 29463 invoked from network); 21 Feb 2010 19:58:47 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 21 Feb 2010 19:58:47 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Sun, 21 Feb 2010 19:58:47 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #114: libssh2_scp_send_ex in libssh2 1.2 doesn't work
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/114#comment:11
Message-ID: <054.e82ead7a25c5d8bd2601d0f50b492363@libssh2.stuge.se>
References: <045.febe1b6c741233701c6b8a8da373ce93@libssh2.stuge.se>
X-Trac-Ticket-ID: 114
In-Reply-To: <045.febe1b6c741233701c6b8a8da373ce93@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#114: libssh2_scp_send_ex  in libssh2 1.2 doesn't work
------------------------+---------------------------------------------------
  Reporter:  anonymous  |       Owner:  bagder  
      Type:  defect     |      Status:  assigned
  Priority:  normal     |   Milestone:          
 Component:  SCP        |     Version:  1.2.2   
Resolution:             |    Keywords:          
  Blocking:             |   Blockedby:          
------------------------+---------------------------------------------------

Comment(by stuge):

 Replying to [comment:10 stuge]:
 > Create it by inserting libssh2_trace(session, ~0); into any program that
 shows the described problem.

 This requires libssh2 to be compiled with debugging enabled. Please
 configure libssh2 with --enable-debug and build yourself, if debugging is
 not enabled in the package in your distribution. Often it is not, so if
 calling libssh2_trace() does not lead to debug output please rebuild.

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/114#comment:11>
libssh2 <http://libssh2.stuge.se/>
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  Mon Feb 22 11:46:06 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MAjnFj001425;
	Mon, 22 Feb 2010 11:46:01 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MAjlx9001419
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 11:45:47 +0100
Received: (qmail 2000 invoked from network); 22 Feb 2010 10:45:47 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 22 Feb 2010 10:45:47 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Mon, 22 Feb 2010 10:45:47 -0000
X-URL: http://libssh2.stuge.se/
Subject: [libssh2] #160: Blocking indefinitely in _libssh2_wait_socket
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/160
Message-ID: <045.9aed6573ba6106633a0359a63c9b738c@libssh2.stuge.se>
X-Trac-Ticket-ID: 160
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#160: Blocking indefinitely in _libssh2_wait_socket
-------------------------+--------------------------------------------------
 Reporter:  dietmar11    |       Owner:       
     Type:  enhancement  |      Status:  new  
 Priority:  normal       |   Milestone:       
Component:  misc         |     Version:  1.2.4
 Keywords:               |    Blocking:       
Blockedby:               |  
-------------------------+--------------------------------------------------
 I would suggest a default timeout in the call to select
 in file session.c, line 526, as already indicated by the comment:
 {{{
     /* Note that this COULD be made to use a timeout that perhaps could be
        customizable by the app or something... */
     rc = select(session->socket_fd + 1, readfd, writefd, NULL, NULL);
 }}}
 as it is possible, that using this function will block api calls
 indefinitely, which renders them useless in practical implementations.
 (I am using libssh2 on about 150 Windows XP SP2 machines and encountered
 this issue several times within a few weeks).

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/160>
libssh2 <http://libssh2.stuge.se/>
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  Mon Feb 22 12:12:29 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MBCMDx017711;
	Mon, 22 Feb 2010 12:12:26 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MBCKWJ017660
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 12:12:21 +0100
Received: (qmail 3059 invoked from network); 22 Feb 2010 11:12:21 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 22 Feb 2010 11:12:21 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Mon, 22 Feb 2010 11:12:21 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #160: Blocking indefinitely in _libssh2_wait_socket
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/160#comment:1
Message-ID: <054.86303c7878fb880293aa7ef9f3170eef@libssh2.stuge.se>
References: <045.9aed6573ba6106633a0359a63c9b738c@libssh2.stuge.se>
X-Trac-Ticket-ID: 160
In-Reply-To: <045.9aed6573ba6106633a0359a63c9b738c@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#160: Blocking indefinitely in _libssh2_wait_socket
-------------------------+--------------------------------------------------
 Reporter:  dietmar11    |       Owner:       
     Type:  enhancement  |      Status:  new  
 Priority:  normal       |   Milestone:  1.2.5
Component:  API          |     Version:  1.2.4
 Keywords:               |    Blocking:       
Blockedby:               |  
-------------------------+--------------------------------------------------
Changes (by bagder):

  * component:  misc => API
  * milestone:  => 1.2.5


Comment:

 Jan Van Boghout posted a patch that introduces such a timeout:

 http://www.libssh2.org/mail/libssh2-devel-archive-2010-02/0073.shtml

 It is being worked on to get it merged into the sources.

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/160#comment:1>
libssh2 <http://libssh2.stuge.se/>
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  Mon Feb 22 16:16:39 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MFGPiu014177;
	Mon, 22 Feb 2010 16:16:36 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MFGOsw014172
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 16:16:24 +0100
Date: Mon, 22 Feb 2010 16:16:24 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2 HEAD 3e1a953... libssh2_knownhost_del: fix write to
	freed memory.
In-Reply-To: <20100222145232.13123.qmail@earth.stuge.se>
Message-ID: <alpine.DEB.2.00.1002221615000.17936@tvnag.unkk.fr>
References: <20100222145232.13123.qmail@earth.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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Mon, 22 Feb 2010, libssh2@git.stuge.se wrote:

> The branch, HEAD has been created
>        at  3e1a95392ef2a74471f9ce777dbb4f0bb90041b8 (commit)

Alexander, that was a mistake, or wasn't it?

Your commit was put into a branch named HEAD and not on master. I can view the 
diff fine with:

$ git diff master origin/HEAD

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 22 16:19:29 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MFJQgK015265;
	Mon, 22 Feb 2010 16:19:27 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1MFJOi2015256
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 16:19:24 +0100
Received: (qmail 28345 invoked by uid 501); 22 Feb 2010 15:19:25 -0000
Message-ID: <20100222151925.28344.qmail@stuge.se>
Date: Mon, 22 Feb 2010 16:19:25 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2 HEAD 3e1a953... libssh2_knownhost_del: fix write to
	freed memory.
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <20100222145232.13123.qmail@earth.stuge.se>
	<alpine.DEB.2.00.1002221615000.17936@tvnag.unkk.fr>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.00.1002221615000.17936@tvnag.unkk.fr>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg wrote:
>> The branch, HEAD has been created
>
> Alexander, that was a mistake, or wasn't it?

Already being taken care of. :)


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 22 16:34:39 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MFYXNl027472;
	Mon, 22 Feb 2010 16:34:37 +0100
Received: from mail-ew0-f225.google.com (mail-ew0-f225.google.com
	[209.85.219.225])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MFYVZo027456
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 16:34:31 +0100
Received: by ewy25 with SMTP id 25so1881515ewy.3
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 07:34:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type; bh=TRZdz0nvSv0Z/26b71fe8Mtx911cFPTmQcTBIAtb8Tc=;
	b=UKE2OvW5V+XydO+OKq9ivAVoxozK+DNc1W8o3dG6TL1B7s25s5+Irfz2U6Y3ugXZIM
	KlfnNpFnYmqMNO8HNMwxldx8Ll92iwn9R8EXyvcLFvV+9iu7sNz5RA9lMoHN9XCSND6X
	IBFuLf1UQqzeIOkMq66/PI+7U5bJ3CvRhXiug=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type;
	b=D2JaDHS2I21TwrPkhCe9VY6gZnZkcdAXcasRnXsdUaKaTVetSYXzTT01FsOZvlX7to
	pH/dBaXWsk6990qLkgDqMQLV/7EsoH8IduWWPi86eXoYtRaGWII9Y/Eg1neHQcG1QyyG
	2R7dBdfHq5Nlhn0+Ff/BiAiTPy72jNqf1xAis=
MIME-Version: 1.0
Received: by 10.213.100.226 with SMTP id z34mr4391667ebn.74.1266852867014; 
	Mon, 22 Feb 2010 07:34:27 -0800 (PST)
In-Reply-To: <20100222151925.28344.qmail@stuge.se>
References: <20100222145232.13123.qmail@earth.stuge.se>
	<alpine.DEB.2.00.1002221615000.17936@tvnag.unkk.fr>
	<20100222151925.28344.qmail@stuge.se>
Date: Mon, 22 Feb 2010 15:34:26 +0000
X-Google-Sender-Auth: 63ea6e53cdad39b7
Message-ID: <9c3275a91002220734y4f2a8bep22f7c7ee0bd4f308@mail.gmail.com>
Subject: Re: libssh2 HEAD 3e1a953... libssh2_knownhost_del: fix write to freed
	memory.
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On 22 February 2010 15:19, Peter Stuge <peter@stuge.se> wrote:
> Daniel Stenberg wrote:
>>> The branch, HEAD has been created
>>
>> Alexander, that was a mistake, or wasn't it?
>
> Already being taken care of. :)

Sorry, it was a mistake.  That'll teach me to use TortoiseGit.

Thanks for telling me how to fix it Peter.  Though it worries me that
I have no idea why those commands work, they just do.  That's git all
over.

Alex
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 22 16:51:17 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MFpBlY013878;
	Mon, 22 Feb 2010 16:51:15 +0100
Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o1MFp9cd013868
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 16:51:09 +0100
Received: by ey-out-2122.google.com with SMTP id 25so640685eya.31
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 07:51:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:date
	:x-google-sender-auth:message-id:subject:from:to:content-type;
	bh=A3yysX5C4wi0lHCHomwVVV1a81UDyd4BtjFHFXVTdSQ=;
	b=WYmD0UP4pjWJJ/0mYsKSsB1soiUqpT/zzzFcd9nv2dnBBttbzMCVCL5ok0UF2AjlRe
	dMHu/2XpARApYyyA3EYHYCqAgBYgEQInyjHSYxks0PRqP6qFAeK4vaeyjjk1suXl6VRA
	V8AH0oHr2as6Y18P3FuzaQKndQrjmINHoi1bs=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:date:x-google-sender-auth:message-id:subject
	:from:to:content-type;
	b=eUMF0TjY8SB6yLpUJRomG/nMpITUQa9hGYJyB4wCNuOsSC0OA99LsiYuPTW0ccdaxK
	AbnvydZehblGqliS5HCG7yB/1ARf+mPAxvAm/eUyLvuUKFRW0m7UNqVkkWqTUPJryBw2
	oP/3Ky3VMXMJEqrHijBTWEZjCH+mJqANbb31M=
MIME-Version: 1.0
Received: by 10.213.97.4 with SMTP id j4mr4486879ebn.9.1266853870465; Mon, 22 
	Feb 2010 07:51:10 -0800 (PST)
Date: Mon, 22 Feb 2010 15:51:10 +0000
X-Google-Sender-Auth: 73739aed6dcb8782
Message-ID: <9c3275a91002220751k600d0539x7bf962ec74525bba@mail.gmail.com>
Subject: libssh2_error
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

What is the policy on calling libssh2_error when returning a failure code?

I'm creating C++ bindings for libssh2 and, while working out the
exception strategy, I noticed that some API calls set an error message
using libssh2_error when they are about to return a failure code and
others don't.  Specifically, the knownhosts api never calls
libssh2_error.  I noticed that Daniel recently committed some changes
to userauth that made all API calls use libssh2_error but do we have a
coherent policy on this?

Alex
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 22 17:11:20 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MGBEED029324;
	Mon, 22 Feb 2010 17:11:18 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1MGBCh1029320
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 17:11:12 +0100
Received: (qmail 6857 invoked by uid 501); 22 Feb 2010 16:11:13 -0000
Message-ID: <20100222161113.6856.qmail@stuge.se>
Date: Mon, 22 Feb 2010 17:11:13 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: git branches remotes pushing master and origin :)
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <20100222145232.13123.qmail@earth.stuge.se>
	<alpine.DEB.2.00.1002221615000.17936@tvnag.unkk.fr>
	<20100222151925.28344.qmail@stuge.se>
	<9c3275a91002220734y4f2a8bep22f7c7ee0bd4f308@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <9c3275a91002220734y4f2a8bep22f7c7ee0bd4f308@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Alexander Lamaison wrote:
> >>> The branch, HEAD has been created
> >>
> >> Alexander, that was a mistake, or wasn't it?
> >
> > Already being taken care of. :)
> 
> Sorry, it was a mistake.  That'll teach me to use TortoiseGit.

Did this happen using TortoiseGit?


> Thanks for telling me how to fix it Peter.  Though it worries me
> that I have no idea why those commands work, they just do.  That's
> git all over.

It can be complex because of git's distributed nature, which is
what allows code to flow in and out of branches asymmectrically.


Some background that may explain what happened:

When using git clone, the default remote name is "origin" (but could
be anything) and the default branch name is "master" (but could also
be anything).

When pushing to a remote repo, git needs to know which remote to push
to, which local commits to push, and which branch it should be pushed
into at the remote.

If using HEAD where a commit id can be specified then git translates
it to the most recent commit on the currently checked out branch.
It's also possible to specify a branch name instead of a commit id,
then the last commit on that branch will be used regardless of what
is checked out.


Thus, the canonical "default" push command would be:

git push origin master:master

"origin" is the remote nickname
The first "master" is the local branch name
The second "master" is the branch name at the remote

This is tedious to type, so git has shortcuts.

git push origin master

When only one branch name is specified, git uses it for both local
commit id(s) and remote branch, so master == master:master.

So if running:

git push origin HEAD

Then "HEAD" is used both as the local id (meaning the last commit on
currently checked out branch) as well as the branch name on the
remote. Pushing creates branches as neccessary. This could explain
the HEAD branch.


It's annoying to deal with these branch relationships on every push,
so it's possible to use .git/config to specify how local branches
relate to remote branches. For example:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git://git.libssh2.org/var/lib/git/libssh2.git
	push = master

[branch "master"]
	remote = origin
	merge = refs/heads/master
	rebase = true

This explicitly says that when I try to pull when my local branch
named master ([branch "master"]) is checked out then I want stuff
from the libssh2.git repo (remote=origin) and specifically the branch
in that repo called master (merge=refs/heads/master) and finally that
any local changes should not be merged with what I fetch, but rather
"forward ported" or rebased (rebase=true).

When I try to push from my local branch master ([branch "master"]) I
will push my local branch named master into the branch named master
at the remote (push=master in the [remote] in remote=origin).

If more complex rules for what should be pushed to where is needed
then merge= together with [push] default=tracking can be used
instead, to specify that each of my local branches relate to a
particular remote branch with a different name. It should also be
possible to set [remote] push=local:remote in order to describe what
should go where.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 22 17:13:35 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MGDUp9030027;
	Mon, 22 Feb 2010 17:13:32 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1MGDTFi030023
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 17:13:29 +0100
Received: (qmail 7290 invoked by uid 501); 22 Feb 2010 16:13:30 -0000
Message-ID: <20100222161330.7289.qmail@stuge.se>
Date: Mon, 22 Feb 2010 17:13:30 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2_error
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <9c3275a91002220751k600d0539x7bf962ec74525bba@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <9c3275a91002220751k600d0539x7bf962ec74525bba@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Alexander Lamaison wrote:
> Specifically, the knownhosts api never calls libssh2_error.

It should, so that apps can get meaningful and correct error
messages. I consider this a bug.


> I noticed that Daniel recently committed some changes to userauth
> that made all API calls use libssh2_error but do we have a coherent
> policy on this?

Must. :)


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 22 17:17:44 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MGHabg031531;
	Mon, 22 Feb 2010 17:17:41 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MGHZtF031521
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 17:17:35 +0100
Date: Mon, 22 Feb 2010 17:17:35 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2_error
In-Reply-To: <9c3275a91002220751k600d0539x7bf962ec74525bba@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1002221713530.28358@tvnag.unkk.fr>
References: <9c3275a91002220751k600d0539x7bf962ec74525bba@mail.gmail.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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Mon, 22 Feb 2010, Alexander Lamaison wrote:

> I'm creating C++ bindings for libssh2 and, while working out the exception 
> strategy, I noticed that some API calls set an error message using 
> libssh2_error when they are about to return a failure code and others don't. 
> Specifically, the knownhosts api never calls libssh2_error.  I noticed that 
> Daniel recently committed some changes to userauth that made all API calls 
> use libssh2_error but do we have a coherent policy on this?

I agree that we need to make sure this is consistently done, and I think the 
only sensible thing to do here is to make us ALWAYS use libssh2_error() when 
we return errors.

(and yeah I did the knownhosts stuff so I am partly to blame for this...)

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 22 20:09:01 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MJ8mWE026484;
	Mon, 22 Feb 2010 20:08:56 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MJ8lJI026480
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 20:08:47 +0100
Received: (qmail 25096 invoked from network); 22 Feb 2010 19:08:47 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 22 Feb 2010 19:08:47 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Mon, 22 Feb 2010 19:08:47 -0000
X-URL: http://libssh2.stuge.se/
Subject: [libssh2] #161: Create API for socket I/O in application
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/161
Message-ID: <041.dca13e96ac5bd5d9dfb8c4a40f72b973@libssh2.stuge.se>
X-Trac-Ticket-ID: 161
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#161: Create API for socket I/O in application
-------------------------+--------------------------------------------------
 Reporter:  stuge        |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:     
Component:  API          |     Version:  1.1
 Keywords:               |    Blocking:     
Blockedby:               |  
-------------------------+--------------------------------------------------
 libssh2 always uses non-blocking I/O and creates blocking semantics
 internally, but it doesn't always work.

 #123, #160 and possibly also #159 are effects of this and
 [/browser/example/direct_tcpip.c examples/direct_tcpip.c] is also
 affected; it only works correctly because it uses libssh2 in non-blocking
 mode, thus bypassing the internal blocking in the library, but it must
 still wake up every 100ms and do polling, which is pretty ugly.

 This is an unfortunate problem, since select() could have been used to
 successfully handle all file descriptors if libssh2 relied on the
 operating system to operate correctly in blocking mode.

 I want an API that works with both blocking modes, meaning we either fix
 the current implementation to block according to operating system settings
 for the underlying socket, or create a new API that is blocking agnostic
 by definition.

 This ticket suggests an API that moves socket I/O out of libssh2 and lets
 applications give and get bytes for the sshd connection using new library
 functions. This shifts more work onto apps, but on the other hand it
 greatly simplifies proxying of SSH connections in direct-tcpip channels,
 since libssh2 currently requires a file descriptor for each sshd
 connection and a direct-tcpip connection only gets us a LIBSSH2_CHANNEL.
 (This can not be worked around in a portable manner using pipes, so
 portable apps must currently use a very inconvenient loopback TCP socket.)

 There could be helper functions in libssh2 to make the API as easy as
 possible to use in typical scenarios. It could even enable easy multihop
 proxying.

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/161>
libssh2 <http://libssh2.stuge.se/>
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  Mon Feb 22 20:12:45 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MJCga5028279;
	Mon, 22 Feb 2010 20:12:44 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MJCeiR028272
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 20:12:41 +0100
Received: (qmail 25363 invoked from network); 22 Feb 2010 19:12:41 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 22 Feb 2010 19:12:41 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Mon, 22 Feb 2010 19:12:41 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #160: Blocking indefinitely in _libssh2_wait_socket
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/160#comment:2
Message-ID: <054.41d3af48cba2463d12576c79c1446054@libssh2.stuge.se>
References: <045.9aed6573ba6106633a0359a63c9b738c@libssh2.stuge.se>
X-Trac-Ticket-ID: 160
In-Reply-To: <045.9aed6573ba6106633a0359a63c9b738c@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#160: Blocking indefinitely in _libssh2_wait_socket
-------------------------+--------------------------------------------------
 Reporter:  dietmar11    |       Owner:       
     Type:  enhancement  |      Status:  new  
 Priority:  normal       |   Milestone:  1.2.5
Component:  API          |     Version:  1.2.4
 Keywords:               |    Blocking:       
Blockedby:               |  
-------------------------+--------------------------------------------------

Comment(by stuge):

 A timeout shouldn't be needed in the first place, but I think that adding
 one is fine in the short term. Separately from Jan's patch we've also been
 discussing how to improve libssh2 to never risk blocking. See #161.

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/160#comment:2>
libssh2 <http://libssh2.stuge.se/>
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  Mon Feb 22 20:22:39 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MJMWMV003200;
	Mon, 22 Feb 2010 20:22:37 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MJMVno003156
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 20:22:31 +0100
Received: (qmail 26851 invoked from network); 22 Feb 2010 19:22:31 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 22 Feb 2010 19:22:31 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Mon, 22 Feb 2010 19:22:31 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #161: Create API for socket I/O in application
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/161#comment:1
Message-ID: <050.9798c4581ba393fe00a7a76c914ee13a@libssh2.stuge.se>
References: <041.dca13e96ac5bd5d9dfb8c4a40f72b973@libssh2.stuge.se>
X-Trac-Ticket-ID: 161
In-Reply-To: <041.dca13e96ac5bd5d9dfb8c4a40f72b973@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#161: Create API for socket I/O in application
-------------------------------------------------------------+--------------
 Reporter:  stuge                                            |       Owner:     
     Type:  enhancement                                      |      Status:  new
 Priority:  normal                                           |   Milestone:     
Component:  API                                              |     Version:  1.1
 Keywords:  blocking non-blocking timeout hang select proxy  |    Blocking:     
Blockedby:                                                   |  
-------------------------------------------------------------+--------------
Changes (by stuge):

  * keywords:  => blocking non-blocking timeout hang select proxy


-- 
Ticket URL: <http://libssh2.stuge.se/ticket/161#comment:1>
libssh2 <http://libssh2.stuge.se/>
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  Mon Feb 22 20:23:02 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MJN0wL003902;
	Mon, 22 Feb 2010 20:23:01 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MJMw5v003861
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 20:22:58 +0100
Received: (qmail 26934 invoked from network); 22 Feb 2010 19:22:59 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 22 Feb 2010 19:22:59 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Mon, 22 Feb 2010 19:22:59 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #159: libssh2 takes long time to disconnect from
	CoreFTP's SFTP service
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/159#comment:1
Message-ID: <048.c4239fd5897fc19b0b37acf2724030ce@libssh2.stuge.se>
References: <039.c9b33f1492e7958089fb7727450037b1@libssh2.stuge.se>
X-Trac-Ticket-ID: 159
In-Reply-To: <039.c9b33f1492e7958089fb7727450037b1@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#159: libssh2 takes long time to disconnect from CoreFTP's SFTP service
-----------------------------------------+----------------------------------
 Reporter:  qxu                          |       Owner:  stuge   
     Type:  defect                       |      Status:  accepted
 Priority:  normal                       |   Milestone:  1.2.5   
Component:  protocol                     |     Version:  1.2.4   
 Keywords:  coreftp server idle timeout  |    Blocking:          
Blockedby:                               |  
-----------------------------------------+----------------------------------
Changes (by stuge):

  * owner:  => stuge
  * status:  new => accepted


-- 
Ticket URL: <http://libssh2.stuge.se/ticket/159#comment:1>
libssh2 <http://libssh2.stuge.se/>
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  Mon Feb 22 20:56:27 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MJuKSN029274;
	Mon, 22 Feb 2010 20:56:25 +0100
Received: from mail-ew0-f225.google.com (mail-ew0-f225.google.com
	[209.85.219.225])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MJuJnc029260
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 20:56:19 +0100
Received: by ewy25 with SMTP id 25so2200010ewy.3
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 11:56:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type:content-transfer-encoding;
	bh=Uo9YykyxMISGKh9qyd4ep1Npg0nQIJYZL761FLZdqe4=;
	b=dZi6MyAjJQEjDWkViPz4PBgxXmDbmz2ZexdRx9b+A+KkmAphze/gdVSFyIOgVkHl1n
	lcG5+aKFLdtbB8MjdkL8NWQnn1Pk9J2weaelEWZrkSDv4rPphM+TU2UzhZybZ/V5DMWH
	JzS/6UEPDTassdawyN1gGDxWmi8OuRkEE0wWA=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type
	:content-transfer-encoding;
	b=sI3vthnWAR6B543LieA4jFKPNnL+h/XWjfOtdN0sG4Tsh6gDtkTkxSJ4vHqc+WRq0F
	Snfxd43Ao2SKjjy3tULN+aY6HYthyOFp/G3b46Q7wICDqBB1+W0AK6qnT8BwycmFn3MC
	0wA19EPyjmzU1NE91oq2RChCCsh5lEPGAfWjc=
MIME-Version: 1.0
Received: by 10.213.1.148 with SMTP id 20mr4770715ebf.89.1266868574915; Mon, 
	22 Feb 2010 11:56:14 -0800 (PST)
In-Reply-To: <20100222161113.6856.qmail@stuge.se>
References: <20100222145232.13123.qmail@earth.stuge.se>
	<alpine.DEB.2.00.1002221615000.17936@tvnag.unkk.fr>
	<20100222151925.28344.qmail@stuge.se>
	<9c3275a91002220734y4f2a8bep22f7c7ee0bd4f308@mail.gmail.com>
	<20100222161113.6856.qmail@stuge.se>
Date: Mon, 22 Feb 2010 19:56:14 +0000
X-Google-Sender-Auth: b6a35b081d2dd9c7
Message-ID: <9c3275a91002221156s2bdd2c37naf1f8fe3d446f652@mail.gmail.com>
Subject: Re: git branches remotes pushing master and origin :)
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On 22 February 2010 16:11, Peter Stuge <peter@stuge.se> wrote:
> Alexander Lamaison wrote:
>> >>> The branch, HEAD has been created
>>
>> Sorry, it was a mistake. =A0That'll teach me to use TortoiseGit.
>
> Did this happen using TortoiseGit?

Yes, though it was probably my fault.

>> Thanks for telling me how to fix it Peter. =A0Though it worries me
>> that I have no idea why those commands work, they just do. =A0That's
>> git all over.
>
> It can be complex because of git's distributed nature, which is
> what allows code to flow in and out of branches asymmectrically.

I'm familiar with and have no problems using Mercurial.  It's just Git
that confuses me completely.

> Some background that may explain what happened:

Thanks for the tips :)

I don't understand the need for all this complexity though.  Why is it
that Mercurial always seems to do what I expect while Git randomly
looks up an operation from its table of
things-a-user-would-never-possibly-want and applies that instead.

I realise that it's my own ignorance at fault here but, ultimately,
don't programmers have better things to be spending their time on than
the intricacies of the version control program.
</end rant at Git>

Alex
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 22 21:10:02 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MK9sVe009599;
	Mon, 22 Feb 2010 21:09:59 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1MK9qq6009550
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 21:09:52 +0100
Received: (qmail 14150 invoked by uid 501); 22 Feb 2010 20:09:52 -0000
Message-ID: <20100222200952.14149.qmail@stuge.se>
Date: Mon, 22 Feb 2010 21:09:52 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: git branches remotes pushing master and origin :)
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <20100222145232.13123.qmail@earth.stuge.se>
	<alpine.DEB.2.00.1002221615000.17936@tvnag.unkk.fr>
	<20100222151925.28344.qmail@stuge.se>
	<9c3275a91002220734y4f2a8bep22f7c7ee0bd4f308@mail.gmail.com>
	<20100222161113.6856.qmail@stuge.se>
	<9c3275a91002221156s2bdd2c37naf1f8fe3d446f652@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <9c3275a91002221156s2bdd2c37naf1f8fe3d446f652@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

QWxleGFuZGVyIExhbWFpc29uIHdyb3RlOgo+ID4+ID4+PiBUaGUgYnJhbmNoLCBIRUFEIGhhcyBi
ZWVuIGNyZWF0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oZXJlIGJ1dCwg
dWx0aW1hdGVseSwKPiBkb24ndCBwcm9ncmFtbWVycyBoYXZlIGJldHRlciB0aGluZ3MgdG8gYmUg
c3BlbmRpbmcgdGhlaXIgdGltZSBvbgo+IHRoYW4gdGhlIGludHJpY2FjaWVzIG9mIHRoZSB2ZXJz
aW9uIGNvbnRyb2wgcHJvZ3JhbS4KCkkgZmVsdCBhIHRyYWRlb2ZmIGJldHdlZW4gdW5uZWVkZWQg
Y29tcGxleGl0eSBhbmQgdXRpbGl0eSB3aGVuCnN0YXJ0aW5nIG91dCB3aXRoIGdpdCBidXQgbm90
IHNvIG11Y2ggYWZ0ZXIgdGhhdCwgYW5kIHRoZSBtb3JlIEkgdXNlCml0IHRoZSBlYXNpZXIgaXQg
c2VlbXMgdG8gZ2V0LgoKCi8vUGV0ZXIKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX18KbGlic3NoMi1kZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4v
bWFpbG1hbi9saXN0aW5mby9saWJzc2gyLWRldmVsCg==

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 22 22:53:06 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MLqmR5032757;
	Mon, 22 Feb 2010 22:52:55 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MLqkbX032715
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 22:52:46 +0100
Received: (qmail 2642 invoked from network); 22 Feb 2010 21:52:46 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 22 Feb 2010 21:52:46 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Mon, 22 Feb 2010 21:52:46 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #160: Blocking indefinitely in _libssh2_wait_socket
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/160#comment:3
Message-ID: <054.4f15e8588511ad9cfc5af40d8a8dee05@libssh2.stuge.se>
References: <045.9aed6573ba6106633a0359a63c9b738c@libssh2.stuge.se>
X-Trac-Ticket-ID: 160
In-Reply-To: <045.9aed6573ba6106633a0359a63c9b738c@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#160: Blocking indefinitely in _libssh2_wait_socket
-------------------------+--------------------------------------------------
 Reporter:  dietmar11    |       Owner:  bagder  
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  1.2.5   
Component:  API          |     Version:  1.2.4   
 Keywords:               |    Blocking:          
Blockedby:               |  
-------------------------+--------------------------------------------------
Changes (by bagder):

  * owner:  => bagder
  * status:  new => assigned


Comment:

 I disagree. A timeout might always be wanted no matter what, as we can't
 assume that the server-side will always play nice.

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/160#comment:3>
libssh2 <http://libssh2.stuge.se/>
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  Mon Feb 22 22:54:56 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MLsrWE001234;
	Mon, 22 Feb 2010 22:54:54 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1MLsrXY001189
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 22 Feb 2010 22:54:53 +0100
Received: (qmail 2751 invoked from network); 22 Feb 2010 21:54:53 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 22 Feb 2010 21:54:53 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Mon, 22 Feb 2010 21:54:53 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #161: Create API for socket I/O in application
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/161#comment:2
Message-ID: <050.61d8286503f5f0ba4e893bb69185cdd6@libssh2.stuge.se>
References: <041.dca13e96ac5bd5d9dfb8c4a40f72b973@libssh2.stuge.se>
X-Trac-Ticket-ID: 161
In-Reply-To: <041.dca13e96ac5bd5d9dfb8c4a40f72b973@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#161: Create API for socket I/O in application
-------------------------------------------------------------+--------------
 Reporter:  stuge                                            |       Owner:     
     Type:  enhancement                                      |      Status:  new
 Priority:  normal                                           |   Milestone:     
Component:  API                                              |     Version:  1.1
 Keywords:  blocking non-blocking timeout hang select proxy  |    Blocking:     
Blockedby:                                                   |  
-------------------------------------------------------------+--------------

Comment(by bagder):

 Just let me clarify that libssh2 always had this problem, even before when
 it didn't use the non-blocking approach with an internal wait, although
 then it was due to multiple socket-operations within libssh2 but it
 would/could lead to more or less the same effect.

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/161#comment:2>
libssh2 <http://libssh2.stuge.se/>
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 Feb 23 15:45:01 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1NEiiJZ027922;
	Tue, 23 Feb 2010 15:44:55 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1NEiggq027886
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 23 Feb 2010 15:44:43 +0100
Received: (qmail 14038 invoked from network); 23 Feb 2010 14:44:43 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 23 Feb 2010 14:44:43 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 23 Feb 2010 14:44:43 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #158: libssh2_sftp_write returns incorrect value
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/158#comment:3
Message-ID: <051.12ae09a416d96f0d3ce29e76cf73d858@libssh2.stuge.se>
References: <042.cc741e9fa450ff795d5980e747278e75@libssh2.stuge.se>
X-Trac-Ticket-ID: 158
In-Reply-To: <042.cc741e9fa450ff795d5980e747278e75@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#158: libssh2_sftp_write returns incorrect value
--------------------+-------------------------------------------------------
 Reporter:  mstrsn  |       Owner:  bagder  
     Type:  defect  |      Status:  assigned
 Priority:  normal  |   Milestone:          
Component:  SFTP    |     Version:  1.2.4   
 Keywords:          |    Blocking:          
Blockedby:          |  
--------------------+-------------------------------------------------------

Comment(by mstrsn):

 Please ignore my previous patch suggestion. While it did allow my program
 to complete, the file sent is corrupted. I now see that my problem is also
 related to bug #126. I agree with dseanressell's suggestion that
 _libssh2_channel_write should return channel->write_bufwrote, not wrote.
 The SSH server that I am communicating with is very limited and the local
 window will often become very small, sometimes reaching zero length. The
 following two patch fixes the problem for me:

 {{{
 >diff -u channel.c.orig channel.c
 --- channel.c.orig      Fri Feb 19 16:30:03 2010
 +++ channel.c   Fri Feb 19 16:45:45 2010
 @@ -2001,7 +2001,8 @@
      /* Deduct the amount that has already been sent, and set buf
 accordingly. */
      buflen -= channel->write_bufwrote;
      buf += channel->write_bufwrote;
 -
 +    wrote = channel->write_bufwrote;
 +
      while (buflen > 0) {
          if (channel->write_state == libssh2_NB_state_allocated) {
              channel->write_bufwrite = buflen;
 @@ -2024,7 +2025,10 @@

              if(channel->local.window_size <= 0) {
                  /* there's no more room for data so we stop sending now
 */
 -                break;
 +                rc = PACKET_EAGAIN;
 +                libssh2_error(session, rc,
 +                              "Unable to send channel data", 0);
 +                return rc;
              }

              /* Don't exceed the remote end's limits */
 }}}

 {{{
 gedms3gmg:dhm>diff -u sftp.c.orig sftp.c
 --- sftp.c.orig Fri Feb 19 10:20:09 2010
 +++ sftp.c      Fri Feb 19 16:52:57 2010
 @@ -1460,6 +1460,7 @@
      }

      if (sftp->write_state == libssh2_NB_state_created) {
 +    again:
          rc = _libssh2_channel_write(channel, 0, (char
 *)sftp->write_packet,
                                      packet_len);
          if(rc < 0) {
 @@ -1467,11 +1468,14 @@
              return rc;
          }
          else if(0 == rc) {
 +            if(channel->local.window_size == 0) {
 +                goto again;
 +            }
              /* nothing sent is an error */
              return LIBSSH2_ERROR_SOCKET_SEND;
          }
          else if (packet_len != rc) {
 -            return rc;
 +            goto again;
          }
          LIBSSH2_FREE(session, sftp->write_packet);
          sftp->write_packet = NULL;

 }}}

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/158#comment:3>
libssh2 <http://libssh2.stuge.se/>
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 Feb 23 16:32:50 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1NFWi0S028661;
	Tue, 23 Feb 2010 16:32:48 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1NFWgRO028657
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 23 Feb 2010 16:32:43 +0100
Received: (qmail 18556 invoked from network); 23 Feb 2010 15:32:43 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 23 Feb 2010 15:32:43 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 23 Feb 2010 15:32:43 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #160: Blocking indefinitely in _libssh2_wait_socket
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/160#comment:4
Message-ID: <054.47c7b19009d940078306a4c6d0294cba@libssh2.stuge.se>
References: <045.9aed6573ba6106633a0359a63c9b738c@libssh2.stuge.se>
X-Trac-Ticket-ID: 160
In-Reply-To: <045.9aed6573ba6106633a0359a63c9b738c@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#160: Blocking indefinitely in _libssh2_wait_socket
-------------------------+--------------------------------------------------
 Reporter:  dietmar11    |       Owner:  bagder  
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  1.2.5   
Component:  API          |     Version:  1.2.4   
 Keywords:               |    Blocking:          
Blockedby:               |  
-------------------------+--------------------------------------------------

Comment(by josefsson.org):

 This relates to some keepalive changes I'm working on.  I'd appreciate if
 we didn't push the proposed patch without further discussion.  I believe a
 better approach here is to let libssh2 not only have a configurable
 timeout, but for libssh2 to send keepalive messages after the timeout, to
 make sure the other end is still alive.

 /Simon

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/160#comment:4>
libssh2 <http://libssh2.stuge.se/>
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 Feb 23 23:42:27 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1NMgEO7014530;
	Tue, 23 Feb 2010 23:42:23 +0100
Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o1NMgCf8014499
	for <libssh2-devel@cool.haxx.se>; Tue, 23 Feb 2010 23:42:12 +0100
Received: by ey-out-2122.google.com with SMTP id 25so52513eya.31
	for <libssh2-devel@cool.haxx.se>; Tue, 23 Feb 2010 14:42:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type; bh=ctHRah/n5A3SyYcZgRMR15VDlHUEOyeGYgXs8zn9CoQ=;
	b=HawYH7gR0bJCvu7sRLxc+dYwtokQfiixZocxO23sHM5qCrTxMlwY3+2JVp9pNgSFAv
	Y2R5z6uitalPiVbJB0H6sk+z5uAhEpnTeYJ6r472JlPcXXhMpMClJhCcM4ETXHDT80z7
	AAmISyDwSLdm4aySQWluLJJFj5yTwUTpHQ/WM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type;
	b=TnkCusuvTT165HEkGAkFSKBhgvCLEK+lcpT//0fml52qhTzr9BZktt4zHe/AZIMoxY
	IrgXUhbAps6v3pBWRWm+9GAWfk04xePg1t58ayG2AsAjslqmIz2F0J1i4sLjW1cawMR+
	TdQnqov6GdyCrSepkPkj7Ph9zsLkEOmQAiwuU=
MIME-Version: 1.0
Received: by 10.213.48.74 with SMTP id q10mr243142ebf.0.1266964933884; Tue, 23 
	Feb 2010 14:42:13 -0800 (PST)
In-Reply-To: <alpine.DEB.2.00.1002221713530.28358@tvnag.unkk.fr>
References: <9c3275a91002220751k600d0539x7bf962ec74525bba@mail.gmail.com>
	<alpine.DEB.2.00.1002221713530.28358@tvnag.unkk.fr>
Date: Tue, 23 Feb 2010 22:42:13 +0000
X-Google-Sender-Auth: 8abf2b533d554bec
Message-ID: <9c3275a91002231442vaa73a2dh766a96c2ad552952@mail.gmail.com>
Subject: Re: libssh2_error
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary=00163600d5e2d3bb9f04804c429b
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--00163600d5e2d3bb9f04804c429b
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 22 February 2010 16:17, Daniel Stenberg <daniel@haxx.se> wrote:
> On Mon, 22 Feb 2010, Alexander Lamaison wrote:
>
>> I'm creating C++ bindings for libssh2 and, while working out the excepti=
on
>> strategy, I noticed that some API calls set an error message using
>> libssh2_error when they are about to return a failure code and others do=
n't.
>> Specifically, the knownhosts api never calls libssh2_error. =A0I noticed=
 that
>> Daniel recently committed some changes to userauth that made all API cal=
ls
>> use libssh2_error but do we have a coherent policy on this?
>
> I agree that we need to make sure this is consistently done, and I think =
the
> only sensible thing to do here is to make us ALWAYS use libssh2_error() w=
hen
> we return errors.

The attached patch adds libssh2_error calls to the knownhosts API.
Daniel, can you look at the error message text to make sure it matches
your intention?

The only other controversial thing about this patch is that it removes
the LIBSSH2_KNOWNHOST_CHECK_FAILURE result from
libssh2_knownhost_check.  Most other APIs return a negative value on
an unexpected failure (as opposed an expected negative result).
knownhost_check didn't so for consistent error handling I've changed
it here.  This may break existing code (though I'm not sure many
people use the knownhost API yet) so you may disagree with this.

Alex

--00163600d5e2d3bb9f04804c429b
Content-Type: application/octet-stream; 
	name="0001-Call-libssh2_error-for-ever-knownhost-API-failure.patch"
Content-Disposition: attachment; 
	filename="0001-Call-libssh2_error-for-ever-knownhost-API-failure.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g619zi2f0

RnJvbSAwMGFiZjQzZGRiOTBlMDk5ZGMzNDM2NDM5MzRiZjU1NjVkYTVjMGY0IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBBbGV4YW5kZXIgTGFtYWlzb24gPGF3bDAzQGRvYy5pYy5hYy51
az4KRGF0ZTogVHVlLCAyMyBGZWIgMjAxMCAyMTo1NToyNiArMDAwMApTdWJqZWN0OiBbUEFUQ0hd
IENhbGwgbGlic3NoMl9lcnJvciBmb3IgZXZlciBrbm93bmhvc3QgQVBJIGZhaWx1cmUuCgpUaGUg
bGlic3NoMiBBUEkgY2FsbHMgc2hvdWxkIHNldCB0aGUgbGFzdCBlcnJvciBjb2RlIGFuZCBhIG1l
c3NhZ2Ugd2hlbgpyZXR1cm5pbmcgYSBmYWlsdXJlIGJ5IGNhbGxpbmcgbGlic3NoMl9lcnJvci4g
IFRoaXMgY2hhbmdlc2V0IG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T1RfU1VQUE9SVEVELAor
ICAgICAgICAgICAgICAgICAgICAgICJVbmtub3duIGhvc3QgbmFtZSB0eXBlIiwgMCk7CiAgICAg
ICAgIHJjID0gTElCU1NIMl9FUlJPUl9NRVRIT0RfTk9UX1NVUFBPUlRFRDsKICAgICAgICAgZ290
byBlcnJvcjsKICAgICB9CkBAIC0xOTIsOCArMjA4LDEyIEBAIGxpYnNzaDJfa25vd25ob3N0X2Fk
ZChMSUJTU0gyX0tOT1dOSE9TVFMgKmhvc3RzLAogICAgICAgICBpZigha2V5bGVuKQogICAgICAg
ICAgICAga2V5bGVuID0gc3RybGVuKGtleSk7CiAgICAgICAgIGVudHJ5LT5rZXkgPSBMSUJTU0gy
X0FMTE9DKGhvc3RzLT5zZXNzaW9uLCBrZXlsZW4rMSk7Ci0gICAgICAgIGlmKCFlbnRyeS0+a2V5
KQorICAgICAgICBpZighZW50cnktPmtleSkgeworICAgICAgICAgICAgbGlic3NoMl9lcnJvciho
b3N0cy0+c2Vzc2lvbiwgTElCU1NIMl9FUlJPUl9BTExPQywKKyAgICAgICAgICAgICAgICAgICAg
ICAgICAgIlVuYWJsZSB0byBhbGxvY2F0ZSBtZW1vcnkgZm9yIGtleSIsIDApOworICAgICAgICAg
ICAgcmMgPSBMSUJTU0gyX0VSUk9SX0FMTE9DOwogICAgICAgICAgICAgZ290byBlcnJvcjsKKyAg
ICAgICAgfQogICAgICAgICBtZW1jcHkoZW50cnktPmtleSwga2V5LCBrZXlsZW4rMSk7CiAgICAg
ICAgIGVudHJ5LT5rZXlba2V5bGVuXT0wOyAvKiBmb3JjZSBhIHRlcm1pbmF0aW5nIHplcm8gdHJh
aWxlciAqLwogICAgIH0KQEAgLTIwMSw4ICsyMjEsMTMgQEAgbGlic3NoMl9rbm93bmhvc3RfYWRk
KExJQlNTSDJfS05PV05IT1NUUyAqaG9zdHMsCiAgICAgICAgIC8qIGtleSBpcyByYXcsIHdlIGJh
c2U2NCBlbmNvZGUgaXQgYW5kIHN0b3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
OCArMjgyLDEyIEBAIGxpYnNzaDJfa25vd25ob3N0X2NoZWNrKExJQlNTSDJfS05PV05IT1NUUyAq
aG9zdHMsCiAgICAgICAgIC8qIHdlIGdvdCBhIHJhdyBrZXkgaW5wdXQsIGNvbnZlcnQgaXQgdG8g
YmFzZTY0IGZvciB0aGUgY2hlY2tzIGJlbG93ICovCiAgICAgICAgIHNpemVfdCBubGVuID0gX2xp
YnNzaDJfYmFzZTY0X2VuY29kZShob3N0cy0+c2Vzc2lvbiwga2V5LCBrZXlsZW4sCiAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAma2V5YWxsb2MpOwotICAgICAg
ICBpZighbmxlbikKLSAgICAgICAgICAgIHJldHVybiBMSUJTU0gyX0tOT1dOSE9TVF9DSEVDS19G
QUlMVVJFOworICAgICAgICBpZighbmxlbikgeworICAgICAgICAgICAgbGlic3NoMl9lcnJvciho
b3N0cy0+c2Vzc2lvbiwgTElCU1NIMl9FUlJPUl9BTExPQywKKyAgICAgICAgICAgICAgICAgICAg
ICAgICAgIlVuYWJsZSB0byBhbGxvY2F0ZSBtZW1vcnkgZm9yIGJhc2U2NC1lbmNvZGVkICIKKyAg
ICAgICAgICAgICAgICAgICAgICAgICAgImtleSIsIDApOworICAgICAgICAgICAgcmV0dXJuIExJ
QlNTSDJfRVJST1JfQUxMT0M7CisgICAgICAgIH0KIAogICAgICAgICAvKiBtYWtlIHRoZSBrZXkg
cG9pbnQgdG8gdGhpcyAqLwogICAgICAgICBrZXkgPSBrZXlhbGxvYzsKQEAgLTM0NCw5ICszNzMs
MTMgQEAgbGlic3NoMl9rbm93bmhvc3RfZGVsKExJQlNTSDJfS05PV05IT1NUUyAqaG9zdHMsCiAg
ICAgICAgICAgICAgICAgICAgICAgc3RydWN0IGxpYnNzaDJfa25vd25ob3N0ICplbnRyeSkKIHsK
ICAgICBzdHJ1Y3Qga25vd25faG9zdCAqbm9kZTsKLSAgICBpZighZW50cnkgfHwgKGVud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1ZiktMSkp
IHsKKyAgICAgICAgICAgIGxpYnNzaDJfZXJyb3IoaG9zdHMtPnNlc3Npb24sCisgICAgICAgICAg
ICAgICAgICAgICAgICAgIExJQlNTSDJfRVJST1JfTUVUSE9EX05PVF9TVVBQT1JURUQsCisgICAg
ICAgICAgICAgICAgICAgICAgICAgICJGYWlsZWQgdG8gcGFyc2Uga25vd25faG9zdHMgbGluZSAo
dW5leHBlY3RlZCAiCisgICAgICAgICAgICAgICAgICAgICAgICAgICJsZW5ndGgpIiwgMCk7Cisg
ICAgICAgICAgICByZXR1cm4gTElCU1NIMl9FUlJPUl9NRVRIT0RfTk9UX1NVUFBPUlRFRDsKKyAg
ICAgICAgfQogCiAgICAgc3dpdGNoKGtleVswXSkgewogICAgIGNhc2UgJzAnOiBjYXNlICcxJzog
Y2FzZSAnMic6IGNhc2UgJzMnOiBjYXNlICc0JzoKQEAgLTQ4MCw4ICs1MjMsMTMgQEAgc3RhdGlj
IGludCBob3N0bGluZShMSUJTU0gyX0tOT1dOSE9TVFMgKmhvc3RzLAogICAgICAgICAgICAgdHlw
ZSB8PSBMSUJTU0gyX0tOT1dOSE9TVF9LRVlfU1NIRFNTOwogICAgICAgICBlbHNlIGlmKCFzdHJu
Y21wKGtleSwgInNzaC1yc2EiLCA3KSkKICAgICAgICAgICAgIHR5cGUgfD0gTElCU1NIMl9LTk9X
TkhPU1RfS0VZX1NTSFJTQTsKLSAgICAgICAgZWxzZQotICAgICAgICAgICAgcmV0dXJuIExJQlNT
SDJfRVJST1JfTUVUSE9EX05PVF9TVVBQT1JURUQ7IC8qIHVua25vd24ga2V5IHR5cGUgKi8KKyAg
ICAgICAgZWxzZSB7CisgICAgICAgICAgICAvKiB1bmtub3duIGtleSB0eXBlICovCisgICAgICAg
ICAgICBsaWJzc2gyX2Vycm9yKGhvc3RzLT5zZXNzaW9uLAorICAgICAgICAgICAgICAgICAgICAg
ICAgICBMSUJTU0gyX0VSUk9SX01FVEhPRF9OT1RfU1VQUE9SVEVELAorICAgICAgICAgICAgICAg
ICAgICAgICAgICAiVW5rbm93biBrZXkgdHlwZSIsIDApOworICAgICAgICAgICAgcmV0dXJuIExJ
QlNTSDJfRVJST1JfTUVUSE9EX05PVF9TVVBQT1JURUQ7CisgICAgICAgIH0KIAogICAgICAgICBr
ZXkgKz0gNzsKICAgICAgICAga2V5bGVuIC09IDc7CkBAIC00OTQsNiArNTQyLDkgQEAgc3RhdGlj
IGludCBob3N0bGluZShMSUJTU0gyX0tOT1dOSE9TVFMgKmhvc3RzLAogICAgICAgICBicmVhazsK
IAogICAgIGRlZmF1bHQ6IC8qIHVua25vd24ga2V5IGZvcm1hdCAqLworICAgICAgICBsaWJzc2gy
X2Vycm9yKGhvc3RzLT5zZXNzaW9uLAorICAgICAgICAgICAgICAgICAgICAgIExJQlNTSDJfRVJS
T1JfTUVUSE9EX05PVF9TVVBQT1JURUQsCisgICAgICAgICAgICAgICAgICAgICAgIlVua25vd24g
a2V5IGZvcm1hdCIsIDApOwogICAgICAgICByZXR1cm4gTElCU1NIMl9FUlJPUl9NRVRIT0RfTk9U
X1NVUFBPUlRFRDsKICAgICB9CiAKQEAgLTU2MCw4ICs2MTEsMTEgQEAgbGlic3NoMl9rbm93bmhv
c3RfcmVhZGxpbmUoTElCU1NIMl9LTk9XTkhPU1RTICpob3N0cywKICAgICBzaXplX3Qga2V5bGVu
OwogICAgIGludCByYzsKIAotICAgIGlmKHR5cGUgIT0gTElCU1NIMl9LTk9XTkhPU1RfRklMRV9P
UEVOU1NIKQorICAgIGlmKHR5cGUgIT0gTElCU1NIMl9LTk9XTkhPU1RfRklMRV9PUEVOU1NIKSB7
CisgICAgICAgIGxpYnNzaDJfZXJyb3IoaG9zdHMtPnNlc3Npb24sIExJQlNTSDJfRVJST1JfTUVU
SE9EX05PVF9TVVBQT1JURUQsCisgICAgICAgICAgICAgICAgICAgICAgIlVuc3VwcG9ydGVkIHR5
cGUgb2Yga25vd24taG9zdCBpbmZvcm1hdGlvbiBzdG9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gICAgICAgICAgIlVuc3VwcG9ydGVk
IHR5cGUgb2Yga25vd24taG9zdCBpbmZvcm1hdGlvbiBzdG9yZSIsIDApOwogICAgICAgICByZXR1
cm4gTElCU1NIMl9FUlJPUl9NRVRIT0RfTk9UX1NVUFBPUlRFRDsKKyAgICB9CiAKICAgICB0aW5k
ZXggPSAobm9kZS0+dHlwZW1hc2sgJiBMSUJTU0gyX0tOT1dOSE9TVF9LRVlfTUFTSykgPj4KICAg
ICAgICAgTElCU1NIMl9LTk9XTkhPU1RfS0VZX1NISUZUOwpAQCAtNjk2LDE0ICs3NjIsMjEgQEAg
a25vd25ob3N0X3dyaXRlbGluZShMSUJTU0gyX0tOT1dOSE9TVFMgKmhvc3RzLAogICAgICAgICBj
aGFyICpzYWx0YWxsb2M7CiAgICAgICAgIG5sZW4gPSBfbGlic3NoMl9iYXNlNjRfZW5jb2RlKGhv
c3RzLT5zZXNzaW9uLCBub2RlLT5uYW1lLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICBub2RlLT5uYW1lX2xlbiwgJm5hbWVhbGxvYyk7Ci0gICAgICAgIGlmKCFubGVuKQor
ICAgICAgICBpZighbmxlbikgeworICAgICAgICAgICAgbGlic3NoMl9lcnJvcihob3N0cy0+c2Vz
c2lvbiwgTElCU1NIMl9FUlJPUl9BTExPQywKKyAgICAgICAgICAgICAgICAgICAgICAgICAgIlVu
YWJsZSB0byBhbGxvY2F0ZSBtZW1vcnkgZm9yIGJhc2U2NC1lbmNvZGVkICIKKyAgICAgICAgICAg
ICAgICAgICAgICAgICAgImhvc3QgbmFtZSIsIDApOwogICAgICAgICAgICAgcmV0dXJuIExJQlNT
SDJfRVJST1JfQUxMT0M7CisgICAgICAgIH0KIAogICAgICAgICBubGVuID0gX2xpYnNzaDJfYmFz
ZTY0X2VuY29kZShob3N0cy0+c2Vzc2lvbiwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgbm9kZS0+c2FsdCwgbm9kZS0+c2FsdF9sZW4sCiAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICZzYWx0YWxsb2MpOwogICAgICAgICBpZighbmxlbikgewogICAg
ICAgICAgICAgZnJlZShuYW1lYWxsb2MpOworICAgICAgICAgICAgbGlic3NoMl9lcnJvcihob3N0
cy0+c2Vzc2lvbiwgTElCU1NIMl9FUlJPUl9BTExPQywKKyAgICAgICAgICAgICAgICAgICAgICAg
ICAgIlVuYWJsZSB0byBhbGxvY2F0ZSBtZW1vcnkgZm9yIGJhc2U2NC1lbmNvZGVkICIKKyAgICAg
ICAgICAgICAgICAgICAgICAgICAgInNhbHQiLCAwKTsKICAgICAgICAgICAgIHJldHVybiBMSUJT
U0gyX0VSUk9SX0FMTE9DOwogICAgICAgICB9CiAKQEAgLTcxMyw4ICs3ODYsMTEgQEAga25vd25o
b3N0X3dyaXRlbGluZShMSUJTU0gyX0tOT1dOSE9TVFMgKmhvc3RzLAogICAgICAgICBpZihubGVu
IDw9IGJ1ZmxlbikKICAgICAgICAgICAgIHNwcmludGYoYnVmLCAifDF8JXN8JXMlcyAlc1xuIiwg
c2FsdGFsbG9jLCBuYW1lYWxsb2MsIGtleXR5cGUsCiAgICAgICAgICAgICAgICAgICAgIG5vZGUt
PmtleSk7Ci0gICAgICAgIGVsc2UKKyAgICAgICAgZWxzZSB7CisgICAgICAgICAgICBsaWJzc2gy
X2Vycm9yKGhvc3RzLT5zZXNzaW9uLCBMSUJTU0gyX0VSUk9SX0JVRkZFUl9UT09fU01BTEwsCisg
ICAgICAgICAgICAgICAgICAgICAgICAgICJLbm93bi1ob3N0IHdyaXRlIGJ1ZmZlciB0b28gc21h
bGwiLCAwKTsKICAgICAgICAgICAgIHJjID0gTElCU1NIMl9FUlJPUl9CVUZGRVJfVE9PX1NNQUxM
OworICAgICAgICB9CiAKICAgICAgICAgZnJlZShuYW1lYWxsb2MpOwogICAgICAgICBmcmVlKHNh
bHRhbGxvYyk7CkBAIC03MjUsOCArOD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1lbW9yeSBmb3IgYmFz
ZTY0IGRlY29kaW5nIiwgMCk7CiAgICAgICAgIHJldHVybiAtMTsKICAgICB9CiAKQEAgLTIxNyw2
ICsyMTksOCBAQCBsaWJzc2gyX2Jhc2U2NF9kZWNvZGUoTElCU1NIMl9TRVNTSU9OICpzZXNzaW9u
LCBjaGFyICoqZGF0YSwKICAgICAgICAgLyogSW52YWxpZCAtLSBXZSBoYXZlIGEgYnl0ZSB3aGlj
aCBiZWxvbmdzIGV4Y2x1c2l2ZWx5IHRvIGEgcGFydGlhbAogICAgICAgICAgICBvY3RldCAqLwog
ICAgICAgICBMSUJTU0gyX0ZSRUUoc2Vzc2lvbiwgKmRhdGEpOworICAgICAgICBsaWJzc2gyX2Vy
cm9yKHNlc3Npb24sIExJQlNTSDJfRVJST1JfSU5WQUwsCisgICAgICAgICAgICAgICAgICAgICAg
IkludmFsaWQgZGF0YSAoYnl0ZSBiZWxvbmdpbmcgdG8gcGFydGlhbCBvY3RldCkiLCAwKTsKICAg
ICAgICAgcmV0dXJuIC0xOwogICAgIH0KIAotLSAKMS42LjUuMS4xMzY3LmdjZDQ4Cgo=
--00163600d5e2d3bb9f04804c429b
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

--00163600d5e2d3bb9f04804c429b--

From libssh2-devel-bounces@cool.haxx.se  Tue Feb 23 23:45:42 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1NMjdPp016220;
	Tue, 23 Feb 2010 23:45:40 +0100
Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o1NMjbHq016211
	for <libssh2-devel@cool.haxx.se>; Tue, 23 Feb 2010 23:45:37 +0100
Received: by ey-out-2122.google.com with SMTP id 25so52863eya.31
	for <libssh2-devel@cool.haxx.se>; Tue, 23 Feb 2010 14:45:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type; bh=EMahmRbuVvSnqzmUfxZBUXmkAdptGCiJXBsK0QFmFh4=;
	b=aP5LdwCQ7v10qh5pYl8Tb7K35G/waFGFQtqltQof95pie2nttApUiQkqZ4yTt2odwA
	QBgT0CRHRDf1h3NmTtPuxGFKkMELAlEADfJJP0cSAJV2u+0gdSj/9vKJAkeuX+cU5bwP
	8L8ogEnZsHiqP+qks6AFmMYCkplIOQNwKIs3s=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type;
	b=wnJ2PZC0RDDTeIH8GsIMpj21T9QkcPmUJtv9vZUTz8ncTWSOQXSkI+j7qSOb8wBx1u
	h5TIjrhCBtNfNr113pwrJjgJ1Bjtyl31E1JFr5FjmXHRW9auZ/lxphGbljKlWoV4sFDP
	PkCcM5p6sbRv4ZYhEvv1Xm1mfOuE8C9bcbBKc=
MIME-Version: 1.0
Received: by 10.213.2.75 with SMTP id 11mr413894ebi.14.1266965138666; Tue, 23 
	Feb 2010 14:45:38 -0800 (PST)
In-Reply-To: <9c3275a91002231442vaa73a2dh766a96c2ad552952@mail.gmail.com>
References: <9c3275a91002220751k600d0539x7bf962ec74525bba@mail.gmail.com>
	<alpine.DEB.2.00.1002221713530.28358@tvnag.unkk.fr>
	<9c3275a91002231442vaa73a2dh766a96c2ad552952@mail.gmail.com>
Date: Tue, 23 Feb 2010 22:45:38 +0000
X-Google-Sender-Auth: 9ac195f8f91a264e
Message-ID: <9c3275a91002231445w15e4e586hf62bc794b729cf88@mail.gmail.com>
Subject: Re: libssh2_error
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

While on the topic of libssh2_error, I have a few questions:

Why is it a macro rather than a function?

Can we make it a function that return the error code we pass it?  This
simplifies code like this:

    if(type != LIBSSH2_KNOWNHOST_FILE_OPENSSH) {
        libssh2_error(hosts->session, LIBSSH2_ERROR_METHOD_NOT_SUPPORTED,
                      "Unsupported type of known-host information store", 0);
        return LIBSSH2_ERROR_METHOD_NOT_SUPPORTED;
    }

to this:

    if(type != LIBSSH2_KNOWNHOST_FILE_OPENSSH)
        return libssh2_error(hosts->session, LIBSSH2_ERROR_METHOD_NOT_SUPPORTED,
                             "Unsupported type of known-host
information store", 0);

which is clearer and eliminates the source of error that comes from
having to duplicate the error code (very easy to forget to keep them
consistent).

Alex
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 24 04:02:27 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1O32Cdc009004;
	Wed, 24 Feb 2010 04:02:21 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1O32AJV008840
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 24 Feb 2010 04:02:10 +0100
Received: (qmail 17871 invoked from network); 24 Feb 2010 03:02:10 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 24 Feb 2010 03:02:10 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Wed, 24 Feb 2010 03:02:10 -0000
X-URL: http://libssh2.stuge.se/
Subject: [libssh2] #162: libssh2_userauth_password() returns undocument value
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/162
Message-ID: <108.4e0f40e03b91fc84fa1638fcc7b77b5c@libssh2.stuge.se>
X-Trac-Ticket-ID: 162
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#162: libssh2_userauth_password() returns undocument value
------------------------------------------------------------------------------------------------+
 Reporter:  www.google.com/accounts/o8/id?id=AItOawmzs-3wPv9jSuaL5w4D_yhF_mGYz_Zks6c            |       Owner:       
     Type:  defect                                                                              |      Status:  new  
 Priority:  normal                                                                              |   Milestone:       
Component:  API                                                                                 |     Version:  1.2.4
 Keywords:  libssh2_userauth_password, libssh2_userauth_password_ex, LIBSSH2_ERROR_SOCKET_NONE  |    Blocking:       
Blockedby:                                                                                      |  
------------------------------------------------------------------------------------------------+
 I think this is a bug.

 when I run the code below (the variable `password' is a wrong password and
 `username' is not empty), it outputs "1 - Authentication by password
 failed, rc = -1." this means libssh2_userauth_password() returns
 LIBSSH2_ERROR_SOCKET_NONE when authentication failed. But,
 LIBSSH2_ERROR_SOCKET_NONE is undocument on page
 http://www.libssh2.org/libssh2_userauth_password_ex.html ( there is
 another error on "Return Value" section on this page ):

 {{{
 LIBSSH2_ERROR_PASSWORD_EXPIRED -

 fLIBSSH2_ERROR_AUTHENTICATION_FAILED - failed, invalid username/password
 or public/private key.

 }}}

 Below is the code ( I modified it from the example ssh2_exec.c )
 {{{
     if ( password != 0 ) { // the password can be empty
         /* We could authenticate via password */
         while ((rc = libssh2_userauth_password(session, username,
 password)) ==
                LIBSSH2_ERROR_EAGAIN);
         if ( ( rc == LIBSSH2_ERROR_PASSWORD_EXPIRED || rc ==
 LIBSSH2_ERROR_AUTHENTICATION_FAILED ) && ( another_password != 0 ) ) {
             // try another password
             while ((rc = libssh2_userauth_password(session, username,
 another_password)) ==
                    LIBSSH2_ERROR_EAGAIN);
             if ( rc != 0 ) {
                 // really failed !
                 fprintf(stderr, "2 - Authentication by password
 failed.\n");
                 goto shutdown;
             }
         } else if ( rc != 0 ) {
             // other error
             fprintf(stderr, "1 - Authentication by password failed, rc =
 %d.\n", rc);
             goto shutdown;
         }
     }
 }}}


 Now I change the code above to below. When I run the code below with
 'password' is a wrong password, and 'another_password' is a correct
 password, it can run as I wish: when the first password authenticates
 failed, the second password can authenticates success.
  Because the bug is still there, so, when the second password is a wrong
 password, 'libssh2_userauth_password(session, username, another_password)'
 returns -1 (LIBSSH2_ERROR_SOCKET_NONE) again.
 {{{
     if ( password != 0 ) { // the password can be empty
         /* We could authenticate via password */
         while ((rc = libssh2_userauth_password(session, username,
 password)) ==
                LIBSSH2_ERROR_EAGAIN);
         if ( rc < 0 /* undocument errors may occurs here */ ) {
             if ( another_password != 0 ) {
                 // try another password
                 while ((rc = libssh2_userauth_password(session, username,
 another_password)) ==
                        LIBSSH2_ERROR_EAGAIN);
                 if ( rc < 0 ) {
                     // really failed !
                     fprintf(stderr, "2 - Authentication by password
 failed, return code: %d.\n", rc);
                     goto shutdown;
                 }
             } else {
                 fprintf(stderr, "1 - Authentication by password failed,
 return code: %d.\n", rc);
                 goto shutdown;
             }
         }
     }

 }}}

 I'm sorry for my English.

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/162>
libssh2 <http://libssh2.stuge.se/>
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 Feb 24 11:11:29 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1OAAqGn009762;
	Wed, 24 Feb 2010 11:11:02 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1OAAnXf009731
	for <libssh2-devel@cool.haxx.se>; Wed, 24 Feb 2010 11:10:49 +0100
Date: Wed, 24 Feb 2010 11:10:49 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2_error
In-Reply-To: <9c3275a91002231442vaa73a2dh766a96c2ad552952@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1002241106450.29398@tvnag.unkk.fr>
References: <9c3275a91002220751k600d0539x7bf962ec74525bba@mail.gmail.com>
	<alpine.DEB.2.00.1002221713530.28358@tvnag.unkk.fr>
	<9c3275a91002231442vaa73a2dh766a96c2ad552952@mail.gmail.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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Tue, 23 Feb 2010, Alexander Lamaison wrote:

> The attached patch adds libssh2_error calls to the knownhosts API. Daniel, 
> can you look at the error message text to make sure it matches your 
> intention?

I scanned over it quickly and it looked fine! To me the error code handling is 
more important than the exact wording in the string.

> The only other controversial thing about this patch is that it removes the 
> LIBSSH2_KNOWNHOST_CHECK_FAILURE result from libssh2_knownhost_check.  Most 
> other APIs return a negative value on an unexpected failure (as opposed an 
> expected negative result). knownhost_check didn't so for consistent error 
> handling I've changed it here.  This may break existing code (though I'm not 
> sure many people use the knownhost API yet) so you may disagree with this.

Sorry, but that would break API and ABI and I can't agree with that. libcurl 
is an example of something that will break on this suggested change.

I agree with the general spirit and I'll admit it was a bit sloppy of me to 
not pay attention to that detail when I added those functions. I think a 
better approach is to make a note about this in the TODO document and we'll 
instead address it in the future when we bump the soname.

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 24 11:12:36 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1OACYNt010319;
	Wed, 24 Feb 2010 11:12:35 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1OACXQT010306
	for <libssh2-devel@cool.haxx.se>; Wed, 24 Feb 2010 11:12:33 +0100
Date: Wed, 24 Feb 2010 11:12:33 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2_error
In-Reply-To: <9c3275a91002231445w15e4e586hf62bc794b729cf88@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1002241110590.29398@tvnag.unkk.fr>
References: <9c3275a91002220751k600d0539x7bf962ec74525bba@mail.gmail.com>
	<alpine.DEB.2.00.1002221713530.28358@tvnag.unkk.fr>
	<9c3275a91002231442vaa73a2dh766a96c2ad552952@mail.gmail.com>
	<9c3275a91002231445w15e4e586hf62bc794b729cf88@mail.gmail.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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Tue, 23 Feb 2010, Alexander Lamaison wrote:

> Why is it a macro rather than a function?
>
> Can we make it a function that return the error code we pass it?  This
> simplifies code like this:
>
>    if(type != LIBSSH2_KNOWNHOST_FILE_OPENSSH)
>        return libssh2_error(hosts->session, LIBSSH2_ERROR_METHOD_NOT_SUPPORTED,
>                             "Unsupported type of known-host
> information store", 0);
>
> which is clearer and eliminates the source of error that comes from having 
> to duplicate the error code (very easy to forget to keep them consistent).

Oh I'm all for that! It'll clean up things.

And it struck me that we can also probably (later on) add some debug code in 
that function (only present when built with some debug option switched on) 
that checks if the function is called multiple times before libssh2 returns, 
as that would be a hint that perhaps we've done something wrong internally.

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 24 14:53:28 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ODrEn7016000;
	Wed, 24 Feb 2010 14:53:24 +0100
Received: from mail-ew0-f225.google.com (mail-ew0-f225.google.com
	[209.85.219.225])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1ODrDBr015934
	for <libssh2-devel@cool.haxx.se>; Wed, 24 Feb 2010 14:53:13 +0100
Received: by ewy25 with SMTP id 25so385361ewy.3
	for <libssh2-devel@cool.haxx.se>; Wed, 24 Feb 2010 05:53:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type; bh=8LWvI8uOlQyVwYHKVXg1w5DH1cIRGFBbMlihItzqOaQ=;
	b=AizVsi+nnrewo+XJ9n1RA2pg0qdK9c8crXP/N26ZvEprGd42EB2yNpMIfDzeM4hR4P
	fXRJoX//smJq966K2dEsmWPrgFZRdMDMCJksuRD/YRiyPXn/ANHyK8t9arMGPUaLqglc
	42DLMmlGRvY695BmNPoiQ/6bUiGHww/4AfAxI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type;
	b=pmGM6V+1w+SQZ0PvkpFlqsv2HVjCzHz8jggQyXUwz1TdhhYBgwCzh/87f1yowiJO3f
	pwCNYiTGKGnvNtcMfhmEpmSF19IqPnd7COdc/Zz7xX3TzSiZVljATQeKhqieECYWXdpZ
	ORdLb8uRS9WgxM5oTsf44WFfP7LNM6esXpQhA=
MIME-Version: 1.0
Received: by 10.213.113.77 with SMTP id z13mr441007ebp.65.1267019588779; Wed, 
	24 Feb 2010 05:53:08 -0800 (PST)
In-Reply-To: <alpine.DEB.2.00.1002241110590.29398@tvnag.unkk.fr>
References: <9c3275a91002220751k600d0539x7bf962ec74525bba@mail.gmail.com>
	<alpine.DEB.2.00.1002221713530.28358@tvnag.unkk.fr>
	<9c3275a91002231442vaa73a2dh766a96c2ad552952@mail.gmail.com>
	<9c3275a91002231445w15e4e586hf62bc794b729cf88@mail.gmail.com>
	<alpine.DEB.2.00.1002241110590.29398@tvnag.unkk.fr>
Date: Wed, 24 Feb 2010 13:53:08 +0000
X-Google-Sender-Auth: 2507efeb9ec208d2
Message-ID: <9c3275a91002240553n28e940b8sa9de42d3dbafc288@mail.gmail.com>
Subject: Re: libssh2_error
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary=000feaf26727834b79048058fc62
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--000feaf26727834b79048058fc62
Content-Type: text/plain; charset=ISO-8859-1

On 24 February 2010 10:12, Daniel Stenberg <daniel@haxx.se> wrote:
> On Tue, 23 Feb 2010, Alexander Lamaison wrote:
>
>> Why is it a macro rather than a function?
>>
>> Can we make it a function that return the error code we pass it?
... snip
> Oh I'm all for that! It'll clean up things.

As well as changing the libssh2_knownhost_check error value back to
its original LIBSSH2_KNOWNHOST_FAILURE, this new patch changes
libssh2_error into a function and puts its implementation in misc.c.

Let me know what you think.

Alex

--000feaf26727834b79048058fc62
Content-Type: application/octet-stream; 
	name="0001-Call-libssh2_error-for-every-knownhost-API-failure.patch"
Content-Disposition: attachment; 
	filename="0001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KICAgICAgICAgTElCU1NIMl9BTExPQyhob3N0cy0+c2Vzc2lvbiwg
c2l6ZW9mKHN0cnVjdCBrbm93bl9ob3N0KSk7CiAgICAgc2l6ZV90IGhvc3RsZW4gPSBzdHJsZW4o
aG9zdCk7Ci0gICAgaW50IHJjID0gTElCU1NIMl9FUlJPUl9BTExPQzsKKyAgICBpbnQgcmM7CiAg
ICAgY2hhciAqcHRyOwogICAgIHVuc2lnbmVkIGludCBwdHJsZW47CiAKLSAgICBpZighZW50cnkp
Ci0gICAgICAgIHJldHVybiByYzsKKyAgICBpZighZW50cnkpIHsKKyAgICAgICAgcmV0dXJuIGxp
YnNzaDJfZXJyb3IoaG9zdHMtPnNlc3Npb24sIExJQlNTSDJfRVJST1JfQUxMT0MsCisgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICJVbmFibGUgdG8gYWxsb2NhdGUgbWVtb3J5IGZvciBrbm93
biBob3N0ICIKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImVudHJ5IiwgMCk7CisgICAg
fQogCi0gICAgaWYoISh0eXBlbWFzayAmIExJQlNTSDJfS05PV05IT1NUX0tFWV9NQVNLKSkKKyAg
ICBpZighKHR5cGVtYXNrICYgTElCU1NIMl9LTk9XTkhPU1RfS0VZX01BU0spKSB7CiAgICAgICAg
IC8qIG1ha2Ugc3VyZSB3ZSBoYXZlIGEga2V5IHR5cGUgc2V0ICovCi0gICAgICAgIHJldHVybiBM
SUJTU0gyX0VSUk9SX0lOVkFMOworICAgICAgICByZXR1cm4gbGlic3NoMl9lcnJvcihob3N0cy0+
c2Vzc2lvbiwgTElCU1NIMl9FUlJPUl9JTlZBTCwKKyAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgIk5vIGtleSB0eXBlIHNldCIsIDApOworICAgIH0KIAogICAgIG1lbXNldChlbnRyeSwgMCwg
c2l6ZW9mKHN0cnVjdCBrbm93bl9ob3N0KSk7CiAKQEAgLTE2Myw4ICsxNzIsMTEgQEAgbGlic3No
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3N0IG5hbWUgdHlwZSIsIDApOwogICAg
ICAgICBnb3RvIGVycm9yOwogICAgIH0KIApAQCAtMTkyLDggKzIwNSwxMSBAQCBsaWJzc2gyX2tu
b3duaG9zdF9hZGQoTElCU1NIMl9LTk9XTkhPU1RTICpob3N0cywKICAgICAgICAgaWYoIWtleWxl
bikKICAgICAgICAgICAgIGtleWxlbiA9IHN0cmxlbihrZXkpOwogICAgICAgICBlbnRyeS0+a2V5
ID0gTElCU1NIMl9BTExPQyhob3N0cy0+c2Vzc2lvbiwga2V5bGVuKzEpOwotICAgICAgICBpZigh
ZW50cnktPmtleSkKKyAgICAgICAgaWYoIWVudHJ5LT5rZXkpIHsKKyAgICAgICAgICAgIHJjID0g
bGlic3NoMl9lcnJvcihob3N0cy0+c2Vzc2lvbiwgTElCU1NIMl9FUlJPUl9BTExPQywKKyAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAiVW5hYmxlIHRvIGFsbG9jYXRlIG1lbW9yeSBmb3Ig
a2V5IiwgMCk7CiAgICAgICAgICAgICBnb3RvIGVycm9yOworICAgICAgICB9CiAgICAgICAgIG1l
bWNweShlbnRyeS0+a2V5LCBrZXksIGtleWxlbisxKTsKICAgICAgICAgZW50cnktPmtleVtrZXls
ZW5dPTA7IC8qIGZvcmNlIGEgdGVybWluYXRpbmcgemVybyB0cmFpbGVyICovCiAgICAgfQpAQCAt
MjAxLDggKzIxNywxMiBAQCBsaWJzc2gyX2tub3duaG9zdF9hZGQoTElCU1NIMl9LTk9XTkhPU1RT
ICpob3N0cywKICAgICAgICAgLyoga2V5IGlzIHJhdywgd2UgYmFzZTY0IGVuY29kZSBpdCBhbmQg
c3RvcmUgaXQgYXMgc3VjaCAqLwogICAgICAgICBzaXplX3QgbmxlbiA9IF9saWJzc2gyX2Jhc2U2
NF9lbmNvZGUoaG9zdHMtPnNlc3Npb24sIGtleSwga2V5bGVuLAogICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgJnB0cik7Ci0gICAgICAgIGlmKCFubGVuKQorICAg
ICAgICBpZighbmxlbikgeworICAgICAgICAgICAgcmMgPSBsaWJzc2gyX2Vycm9yKGhvc3RzLT5z
ZXNzaW9uLCBMSUJTU0gyX0VSUk9SX0FMTE9DLAorICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICJVbmFibGUgdG8gYWxsb2NhdGUgbWVtb3J5IGZvciAiCisgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgImJhc2U2NC1lbmNvZGVkIGtleSIsIDApOwogICAgICAgICAgICAgZ290byBl
cnJvcjsKKyAgICAgICAgfQogCiAgICAgICAgIGVudHJ5LT5rZXkgPSBwdHI7CiAgICAgfQpAQCAt
MjU3LDggKzI3NywxMiBAQCBsaWJzc2gyX2tub3duaG9zdF9jaGVjayhMSUJTU0gyX0tOT1dOSE9T
VFMgKmhvc3RzLAogICAgICAgICAvKiB3ZSBnb3QgYSByYXcga2V5IGlucHV0LCBjb252ZXJ0IGl0
IHRvIGJhc2U2NCBmb3IgdGhlIGNoZWNrcyBiZWxvdyAqLwogICAgICAgICBzaXplX3QgbmxlbiA9
IF9saWJzc2gyX2Jhc2U2NF9lbmNvZGUoaG9zdHMtPnNlc3Npb24sIGtleSwga2V5bGVuLAogICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJmtleWFsbG9jKTsKLSAg
ICAgICAgaWYoIW5sZW4pCisgICAgICAgIGlmKCFubGVuKSB7CisgICAgICAgICAgICBsaWJzc2gy
X2Vycm9yKGhvc3RzLT5zZXNzaW9uLCBMSUJTU0gyX0VSUk9SX0FMTE9DLAorICAgICAgICAgICAg
ICAgICAgICAgICAgICAiVW5hYmxlIHRvIGFsbG9jYXRlIG1lbW9yeSBmb3IgYmFzZTY0LWVuY29k
ZWQgIgorICAgICAgICAgICAgICAgICAgICAgICAgICAia2V5IiwgMCk7CiAgICAgICAgICAgICBy
ZXR1cm4gTElCU1NIMl9LTk9XTkhPU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aWYoKnA9PSd8
JykgewogICAgICAgICAgICAgY29uc3QgY2hhciAqaGFzaCA9IE5VTEw7CiAgICAgICAgICAgICBz
aXplX3Qgc2FsdGxlbiA9IHAgLSBzYWx0OwotICAgICAgICAgICAgaWYoc2FsdGxlbiA+PSAoc2l6
ZW9mKHNhbHRidWYpLTEpKQotICAgICAgICAgICAgICAgIHJldHVybiBMSUJTU0gyX0VSUk9SX01F
VEhPRF9OT1RfU1VQUE9SVEVEOyAvKiB3ZWlyZCBsZW5ndGggKi8KKyAgICAgICAgICAgIGlmKHNh
bHRsZW4gPj0gKHNpemVvZihzYWx0YnVmKS0xKSkgeyAvKiB3ZWlyZCBsZW5ndGggKi8KKyAgICAg
ICAgICAgICAgICByZXR1cm4gbGlic3NoMl9lcnJvcihob3N0cy0+c2Vzc2lvbiwKKyAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBMSUJTU0gyX0VSUk9SX01FVEhPRF9OT1RfU1VQ
UE9SVEVELAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJGYWlsZWQgdG8g
cGFyc2Uga25vd25faG9zdHMgbGluZSAiCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgIih1bmV4cGVjdGVkbHkgbG9uZyBzYWx0KSIsIDApOworICAgICAgICAgICAgfQogCiAg
ICAgICAgICAgICBtZW1jcHkoc2FsdGJ1Ziwgc2FsdCwgc2FsdGxlbik7CiAgICAgICAgICAgICBz
YWx0YnVmW3NhbHRsZW5dID0gMDsgLyogemVybyB0ZXJtaW5hdGUgKi8KQEAgLTQ1NywxMSArNDg4
LDE1IEBAIHN0YXRpYyBpbnQgaG9zdGxpbmUoTElCU1NIMl9LTk9XTkhPU1RTICpob3N0cywKICAg
ICAgICAgICAgIHJldHVybiAwOwogICAgIH0KIAotICAgIC8qIG1ha2Ugc29tZSBjaGVja3MgdGhh
dCB0aGUgbGVuZ2h0cyBzZWVtIHNlbnNpYmxlICovCisgICAgLy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FUlJPUl9NRVRIT0RfTk9UX1NVUFBPUlRFRDsgLyogdW5rbm93biBrZXkg
dHlwZSAqLworICAgICAgICBlbHNlIHsKKyAgICAgICAgICAgIC8qIHVua25vd24ga2V5IHR5cGUg
Ki8KKyAgICAgICAgICAgIHJldHVybiBsaWJzc2gyX2Vycm9yKGhvc3RzLT5zZXNzaW9uLAorICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgTElCU1NIMl9FUlJPUl9NRVRIT0RfTk9UX1NV
UFBPUlRFRCwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJVbmtub3duIGtleSB0
eXBlIiwgMCk7CisgICAgICAgIH0KIAogICAgICAgICBrZXkgKz0gNzsKICAgICAgICAga2V5bGVu
IC09IDc7CkBAIC00OTQsNyArNTMzLDkgQEAgc3RhdGljIGludCBob3N0bGluZShMSUJTU0gyX0tO
T1dOSE9TVFMgKmhvc3RzLAogICAgICAgICBicmVhazsKIAogICAgIGRlZmF1bHQ6IC8qIHVua25v
d24ga2V5IGZvcm1hdCAqLwotICAgICAgICByZXR1cm4gTElCU1NIMl9FUlJPUl9NRVRIT0RfTk9U
X1NVUFBPUlRFRDsKKyAgICAgICAgcmV0dXJuIGxpYnNzaDJfZXJyb3IoaG9zdHMtPnNlc3Npb24s
CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgIExJQlNTSDJfRVJST1JfTUVUSE9EX05PVF9T
VVBQT1JURUQsCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJVbmtub3duIGtleSBmb3Jt
YXQiLCAwKTsKICAgICB9CiAKICAgICBpZihzZXApIHsKQEAgLTU2MCw4ICs2MDEsMTIgQEAgbGli
c3NoMl9rbm93bmhvc3RfcmVhZGxpbmUoTElCU1NIMl9LTk9XTkhPU1RTICpob3N0cywKICAgICBz
aXplX3Qga2V5bGVuOwogICAgIGludCByYzsKIAotICAgIGlmKHR5cGUgIT0gTElCU1NIMl9LTk9X
TkhPU1RfRklMRV9PUEVOU1NIKQotICAgICAgICByZXR1cm4gTElCU1NIMl9FUlJPUl9NRVRIT0Rf
Tk9UX1NVUFBPUlRFRDsKKyAgICBpZih0eXBlICE9IExJQlNTSDJfS05PV05IT1NUX0ZJTEVfT1BF
TlNTSCkgeworICAgICAgICByZXR1cm4gbGlic3NoMl9lcnJvcihob3N0cy0+c2Vzc2lvbiwKKyAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgTElCU1NIMl9FUlJPUl9NRVRIT0RfTk9UX1NVUFBP
UlRFRCwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIlVuc3VwcG9ydGVkIHR5cGUgb2Yg
a25vd24taG9zdCBpbmZvcm1hdGlvbiAiCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJz
dG9yZSIsIDApOworICAgIH0KIAogICAgIGNwID0gbGluZTsKIApAQCAtNTkzLDggKzYzOCwxMSBA
QCBsaWJzc2gyX2tub3duaG9zdF9yZWFkbGluZShMSUJTU0gyX0tOT1dOSE9TVFMgKmhvc3RzLAog
ICAgIH0KIAogICAgIGlmKCEqY3AgfHwgIWxlbikKLSAgICAgICAgLyogaWxsZWdhbCBsaW5lICov
Ci0gICAgICAgIHJldHVybiBMSUJTU0gyX0VSUk9SX01FVEhPRF9OT1RfU1VQUE9SVEVEOworICAg
ICAgICAvKiBpbGxlZ2FsIGxpbmUgKi8geworICAgICAgICByZXR1cm4gbGlic3NoMl9lcnJvciho
b3N0cy0+c2Vzc2lvbiwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgTElCU1NIMl9FUlJP
Ul9NRVRIT0RfTk9UX1NVUFBPUlRFRCwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkZh
aWxlZCB0byBwYXJzZSBrbm93bl9ob3N0cyBsaW5lIiwgMCk7CisgICAgfQogCiAgICAga2V5cCA9
IGNwOyAvKiB0aGUga2V5IHN0YXJ0cyBoZXJlICovCiAgICAga2V5bGVuID0gbGVuOwpAQCAtNjM0
LDggKzY4MiwxMiBAQCBsaWJzc2gyX2tub3duaG9zdF9yZWFkZmlsZShMSUJTU0gyX0tOT1dOSE9T
VFMgKmhvc3RzLAogICAgIGludCBudW0gPSAwOwogICAgIGNoYXIgYnVmWzIwNDhdOwogCi0gICAg
aWYodHlwZSAhPSBMSUJTU0gyX0tOT1dOSE9TVF9GSUxFX09QRU5TU0gpCi0gICAgICAgIHJldHVy
biBMSUJTU0gyX0VSUk9SX01FVEhPRF9OT1RfU1VQUE9SVEVEOworICAgIGlmKHR5cGUgIT0gTElC
U1NIMl9LTk9XTkhPU1RfRklMRV9PUEVOU1NIKSB7CisgICAgICAgIHJldHVybiBsaWJzc2gyX2Vy
cm9yKGhvc3RzLT5zZXNzaW9uLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICBMSUJTU0gy
X0VSUk9SX01FVEhPRF9OT1RfU1VQUE9SVEVELAorICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAiVW5zdXBwb3J0ZWQgdHlwZSBvZiBrbm93bi1ob3N0IGluZm9ybWF0aW9uICIKKyAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgInN0b3JlIiwgMCk7CisgICAgfQogCiAgICAgZmlsZSA9IGZv
cGVuKGZpbGVuYW1lLCAiciIpOwogICAgIGlmKGZpbGUpIHsKQEAgLTY0Niw4ICs2OTgsMTAgQEAg
bGlic3NoMl9rbm93bmhvc3RfcmVhZGZpbGUoTElCU1NIMl9LTk9XTkhPU1RTICpob3N0cywKICAg
ICAgICAgfQogICAgICAgICBmY2xvc2UoZmlsZSk7CiAgICAgfQotICAgIGVsc2UKLSAgICAgICAg
cmV0dXJuIExJQlNTSDJfRVJST1JfRklMRTsKKyAgICBlbHNlIHsKKyAgICAgICAgcmV0dXJuIGxp
YnNzaDJfZXJyb3IoaG9zdHMtPnNlc3Npb24sIExJQlNTSDJfRVJST1JfRklMRSwKKyAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgIkZhaWxlZCB0byBvcGVuIGZpbGUiLCAw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0+c2Vzc2lvbiwgbm9kZS0+bmFtZSwKICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgbm9kZS0+bmFtZV9sZW4sICZuYW1lYWxsb2MpOwotICAg
ICAgICBpZighbmxlbikKLSAgICAgICAgICAgIHJldHVybiBMSUJTU0gyX0VSUk9SX0FMTE9DOwor
ICAgICAgICBpZighbmxlbikgeworICAgICAgICAgICAgcmV0dXJuIGxpYnNzaDJfZXJyb3IoaG9z
dHMtPnNlc3Npb24sIExJQlNTSDJfRVJST1JfQUxMT0MsCisgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAiVW5hYmxlIHRvIGFsbG9jYXRlIG1lbW9yeSBmb3IgIgorICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgImJhc2U2NC1lbmNvZGVkIGhvc3QgbmFtZSIsIDApOworICAg
ICAgICB9CiAKICAgICAgICAgbmxlbiA9IF9saWJzc2gyX2Jhc2U2NF9lbmNvZGUoaG9zdHMtPnNl
c3Npb24sCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5vZGUtPnNhbHQs
IG5vZGUtPnNhbHRfbGVuLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAm
c2FsdGFsbG9jKTsKICAgICAgICAgaWYoIW5sZW4pIHsKICAgICAgICAgICAgIGZyZWUobmFtZWFs
bG9jKTsKLSAgICAgICAgICAgIHJldHVybiBMSUJTU0gyX0VSUk9SX0FMTE9DOworICAgICAgICAg
ICAgcmV0dXJuIGxpYnNzaDJfZXJyb3IoaG9zdHMtPnNlc3Npb24sIExJQlNTSDJfRVJST1JfQUxM
T0MsCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiVW5hYmxlIHRvIGFsbG9jYXRl
IG1lbW9yeSBmb3IgIgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImJhc2U2NC1l
bmNvZGVkIHNhbHQiLCAwKTsKICAgICAgICAgfQogC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vdywgYmFpbCBvdXQgb24gYWxsIG90
aGVyCiAgICAgICAgYXR0ZW1wdHMgKi8KLSAgICBpZih0eXBlICE9IExJQlNTSDJfS05PV05IT1NU
X0ZJTEVfT1BFTlNTSCkKLSAgICAgICAgcmV0dXJuIExJQlNTSDJfRVJST1JfTUVUSE9EX05PVF9T
VVBQT1JURUQ7CisgICAgaWYodHlwZSAhPSBMSUJTU0gyX0tOT1dOSE9TVF9GSUxFX09QRU5TU0gp
IHsKKyAgICAgICAgcmV0dXJuIGxpYnNzaDJfZXJyb3IoaG9zdHMtPnNlc3Npb24sCisgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgIExJQlNTSDJfRVJST1JfTUVUSE9EX05PVF9TVVBQT1JURUQs
CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJVbnN1cHBvcnRlZCB0eXBlIG9mIGtub3du
LWhvc3QgaW5mb3JtYXRpb24gIgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAic3RvcmUi
LCAwKTsKKyAgICB9CiAKICAgICBmaWxlID0gZm9wZW4oZmlsZW5hbWUsICJ3Iik7Ci0gICAgaWYo
IWZpbGUpCi0gICAgICAgIHJldHVybiBMSUJTU0gyX0VSUk9SX0ZJTEU7CisgICAgaWYoIWZpbGUp
IHsKKyAgICAgICAgcmV0dXJuIGxpYnNzaDJfZXJyb3IoaG9zdHMtPnNlc3Npb24sIExJQlNTSDJf
RVJST1JfRklMRSwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIkZhaWxlZCB0byBvcGVu
IGZpbGUiLCAwKTsKKyAgICB9CiAKICAgICBmb3Iobm9kZSA9IF9saWJzc2gyX2xpc3RfZmlyc3Qo
Jmhvc3RzLT5oZWFkKTsKICAgICAgICAgbm9kZTsKQEAgLTc5Niw3ICs4NzEsOCBAQCBsaWJzc2gy
X2tub3duaG9zdF93cml0ZWZpbGUoTElCU1NIMl9LTk9XTkhPU1RTICpob3N0cywKICAgICAgICAg
bndyb3RlID0gZndyaXR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g
cmV0dXJuIC0xOwogICAgIH0KIApAQCAtMjE3LDYgKzI1NSw4IEBAIGxpYnNzaDJfYmFzZTY0X2Rl
Y29kZShMSUJTU0gyX1NFU1NJT04gKnNlc3Npb24sIGNoYXIgKipkYXRhLAogICAgICAgICAvKiBJ
bnZhbGlkIC0tIFdlIGhhdmUgYSBieXRlIHdoaWNoIGJlbG9uZ3MgZXhjbHVzaXZlbHkgdG8gYSBw
YXJ0aWFsCiAgICAgICAgICAgIG9jdGV0ICovCiAgICAgICAgIExJQlNTSDJfRlJFRShzZXNzaW9u
LCAqZGF0YSk7CisgICAgICAgIGxpYnNzaDJfZXJyb3Ioc2Vzc2lvbiwgTElCU1NIMl9FUlJPUl9J
TlZBTCwKKyAgICAgICAgICAgICAgICAgICAgICAiSW52YWxpZCBkYXRhIChieXRlIGJlbG9uZ2lu
ZyB0byBwYXJ0aWFsIG9jdGV0KSIsIDApOwogICAgICAgICByZXR1cm4gLTE7CiAgICAgfQogCi0t
IAoxLjYuNS4xLjEzNjcuZ2NkNDgKCg==
--000feaf26727834b79048058fc62
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

--000feaf26727834b79048058fc62--

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 24 16:35:59 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1OFZiVg029797;
	Wed, 24 Feb 2010 16:35:55 +0100
Received: from mail.intersystems.com (mail.intersys.com [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1OFZfG4029681
	for <libssh2-devel@cool.haxx.se>; Wed, 24 Feb 2010 16:35:42 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
From: Dave McCaldon <davem@intersystems.com>
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: [libssh2] #162: libssh2_userauth_password() returns undocument
	value
Date: Wed, 24 Feb 2010 10:35:36 -0500
In-Reply-To: <108.4e0f40e03b91fc84fa1638fcc7b77b5c@libssh2.stuge.se>
To: libssh2 development <libssh2-devel@cool.haxx.se>
References: <108.4e0f40e03b91fc84fa1638fcc7b77b5c@libssh2.stuge.se>
Message-Id: <839AF086-D009-4A16-950C-54093A34EFE3@intersystems.com>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0146408694=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


--===============0146408694==
Content-Type: multipart/alternative; boundary=Apple-Mail-424-955727342


--Apple-Mail-424-955727342
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


On Feb 23, 2010, at 10:02 PM, libssh2 Trac wrote:

> #162: libssh2_userauth_password() returns undocument value
> =
--------------------------------------------------------------------------=
----------------------+
> Reporter:  =
www.google.com/accounts/o8/id?id=3DAItOawmzs-3wPv9jSuaL5w4D_yhF_mGYz_Zks6c=
            |       Owner:      =20
>     Type:  defect                                                      =
                        |      Status:  new =20
> Priority:  normal                                                      =
                        |   Milestone:      =20
> Component:  API                                                        =
                         |     Version:  1.2.4
> Keywords:  libssh2_userauth_password, libssh2_userauth_password_ex, =
LIBSSH2_ERROR_SOCKET_NONE  |    Blocking:      =20
> Blockedby:                                                             =
                         | =20
> =
--------------------------------------------------------------------------=
----------------------+
> I think this is a bug.
>=20
> when I run the code below (the variable `password' is a wrong password =
and
> `username' is not empty), it outputs "1 - Authentication by password
> failed, rc =3D -1." this means libssh2_userauth_password() returns
> LIBSSH2_ERROR_SOCKET_NONE when authentication failed. But,
> LIBSSH2_ERROR_SOCKET_NONE is undocument on page
> http://www.libssh2.org/libssh2_userauth_password_ex.html ( there is
> another error on "Return Value" section on this page ):

Looking at userauth.c, all of the functions use libssh2_error() to store =
the error, but in fact return -1 on error.  The docs for =
libssh2_userauth_password_ex() are actually not that clear about what it =
should return.  It says:

"Return 0 on success or negative on failure. It returns =
LIBSSH2_ERROR_EAGAIN when it would otherwise block. While =
LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per =
se."

And then lists possible error codes -- this implies that it returns =
these error codes, but in fact it'll only ever return -1 or =
LIBSSH2_ERROR_EAGAIN.

So the question is, is this a documentation issue, or should these =
functions really be returning the error code -- as is being discussed in =
the libssh2_error() thread that's going on right now.

Thanks.



--Apple-Mail-424-955727342
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><br><div><div>On Feb 23, 2010, at 10:02 PM, libssh2 Trac =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div>#162: libssh2_userauth_password() returns undocument =
value<br>-----------------------------------------------------------------=
-------------------------------+<br> Reporter: &nbsp;<a =
href=3D"http://www.google.com/accounts/o8/id?id=3DAItOawmzs-3wPv9jSuaL5w4D=
_yhF_mGYz_Zks6c">www.google.com/accounts/o8/id?id=3DAItOawmzs-3wPv9jSuaL5w=
4D_yhF_mGY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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| =
&nbsp;<br>----------------------------------------------------------------=
--------------------------------+<br> I think this is a bug.<br><br> =
when I run the code below (the variable `password' is a wrong password =
and<br> `username' is not empty), it outputs "1 - Authentication by =
password<br> failed, rc =3D -1." this means libssh2_userauth_password() =
returns<br> LIBSSH2_ERROR_SOCKET_NONE when authentication failed. =
But,<br> LIBSSH2_ERROR_SOCKET_NONE is undocument on page<br> <a =
href=3D"http://www.libssh2.org/libssh2_userauth_password_ex.html">http://w=
ww.libssh2.org/libssh2_userauth_password_ex.html</a> ( there is<br> =
another error on "Return Value" section on this page =
):<br></div></blockquote></div><br><div>Looking at userauth.c, all of =
the functions&nbsp;use libssh2_error() to store the error, but in =
fact&nbsp;return -1 on error. &nbsp;The docs for =
libssh2_userauth_password_ex() are actually not that clear about what it =
should return. &nbsp;It says:</div><div><br></div><div><meta =
charset=3D"utf-8"><span class=3D"Apple-style-span" style=3D"font-family: =
sans-serif; -webkit-border-horizontal-spacing: 2px; =
-webkit-border-vertical-spacing: 2px; ">"Return 0 on success or negative =
on failure. It returns LIBSSH2_ERROR_EAGAIN when it would otherwise =
block. While LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really =
a failure per se."</span></div><div><font class=3D"Apple-style-span" =
face=3D"sans-serif"><span class=3D"Apple-style-span" =
style=3D"-webkit-border-horizontal-spacing: 2px; =
-webkit-border-vertical-spacing: =
2px;"><br></span></font></div><div><font class=3D"Apple-style-span" =
face=3D"sans-serif"><span class=3D"Apple-style-span" =
style=3D"-webkit-border-horizontal-spacing: 2px; =
-webkit-border-vertical-spacing: 2px;">And then lists possible error =
codes -- this implies that it returns these error codes, but in fact =
it'll only ever return -1 =
or&nbsp;LIBSSH2_ERROR_EAGAIN.</span></font></div><div><font =
class=3D"Apple-style-span" face=3D"sans-serif"><span =
class=3D"Apple-style-span" style=3D"-webkit-border-horizontal-spacing: =
2px; -webkit-border-vertical-spacing: =
2px;"><br></span></font></div><div><font class=3D"Apple-style-span" =
face=3D"sans-serif"><span class=3D"Apple-style-span" =
style=3D"-webkit-border-horizontal-spacing: 2px; =
-webkit-border-vertical-spacing: 2px;">So the question is, is this a =
documentation issue, or should these functions really be returning the =
error code -- as is being discussed in the libssh2_error() thread that's =
going on right now.</span></font></div><div><font =
class=3D"Apple-style-span" face=3D"sans-serif"><span =
class=3D"Apple-style-span" style=3D"-webkit-border-horizontal-spacing: =
2px; -webkit-border-vertical-spacing: =
2px;"><br></span></font></div><div><font class=3D"Apple-style-span" =
face=3D"sans-serif"><span class=3D"Apple-style-span" =
style=3D"-webkit-border-horizontal-spacing: 2px; =
-webkit-border-vertical-spacing: =
2px;">Thanks.</span></font></div><div><font class=3D"Apple-style-span" =
face=3D"sans-serif"><span class=3D"Apple-style-span" =
style=3D"-webkit-border-horizontal-spacing: 2px; =
-webkit-border-vertical-spacing: =
2px;"><br></span></font></div><div><font class=3D"Apple-style-span" =
face=3D"sans-serif"><span class=3D"Apple-style-span" =
style=3D"-webkit-border-horizontal-spacing: 2px; =
-webkit-border-vertical-spacing: =
2px;"><br></span></font></div></body></html>=

--Apple-Mail-424-955727342--

--===============0146408694==
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

--===============0146408694==--

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 24 18:37:45 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1OHbVd3026337;
	Wed, 24 Feb 2010 18:37:41 +0100
Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o1OHbUo0026318
	for <libssh2-devel@cool.haxx.se>; Wed, 24 Feb 2010 18:37:30 +0100
Received: by ey-out-2122.google.com with SMTP id 9so9276eyd.31
	for <libssh2-devel@cool.haxx.se>; Wed, 24 Feb 2010 09:37:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:date
	:x-google-sender-auth:message-id:subject:from:to:content-type;
	bh=sa2lVp45QACTIigoRXC2ypQhBiqfSM/hOCqkl7bMgJo=;
	b=QkbAeZj/0l0MFZ18qmHAlglNoMrZnS10KjyDHE6xIsNuT/VvoBmm77TDf4KlZTiTO4
	8sJOO/EnbESycV5cqX7cThZIlm6pIIymwliJwy5EFFfYci4pZ9u/qVlwVEOGLYMu9Qmj
	UDVHX6kX0RrJDptQT6saeeX+16hhs0bVHD9OI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:date:x-google-sender-auth:message-id:subject
	:from:to:content-type;
	b=gC+O6JMZREYyW/IHr777jjcvKiYvBwe7gCVjS6DVloYvEIwjdhz1kWLabmFRa5RYkM
	brm7vNmIR6X90Bk/ihBb/Nb58ROWNUHk4z0YMHZenngoLmc0hdYkLYU6vP1X0/UcF9ve
	KYTLTZmgoMDkaxPC8vWV3jZ/mLjG8+9ucT6xE=
MIME-Version: 1.0
Received: by 10.213.100.203 with SMTP id z11mr537649ebn.43.1267033050828; Wed, 
	24 Feb 2010 09:37:30 -0800 (PST)
Date: Wed, 24 Feb 2010 17:37:30 +0000
X-Google-Sender-Auth: 1fe382a8838fc07a
Message-ID: <9c3275a91002240937o4eb71ecdoaa475aee20f2aedf@mail.gmail.com>
Subject: knownhost_writeline buffer length
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Do we want libssh2_knownhost_writeline to NULL-terminate the line it
writes to the buffer?  I know what the code does at the moment (it
NULL-terminates) but I'm asking if that's what we want.

The reason I ask is that the documentation says the value put in the
outlen parameter when the buffer is too small is "the size libssh2
wanted to store, which then is the smallest sufficient buffer it would
require".  This isn't true as it doesn't include the NULL.  I want to
know which way to fix this bug: stop writing the NULL-terminator to
the buffer or start including it in the outlen count.  A third option
is to change the docs to say that outlen returns the count-1 of the
necessary buffer but this seems messy.

Opinions?

Alex
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 24 23:09:52 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1OM9eb7017199;
	Wed, 24 Feb 2010 23:09:48 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1OM9b9i017168
	for <libssh2-devel@cool.haxx.se>; Wed, 24 Feb 2010 23:09:37 +0100
Received: (qmail 31618 invoked by uid 501); 24 Feb 2010 22:09:38 -0000
Message-ID: <20100224220938.31617.qmail@stuge.se>
Date: Wed, 24 Feb 2010 23:09:37 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: knownhost_writeline buffer length
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <9c3275a91002240937o4eb71ecdoaa475aee20f2aedf@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <9c3275a91002240937o4eb71ecdoaa475aee20f2aedf@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Alexander Lamaison wrote:
> Do we want libssh2_knownhost_writeline to NULL-terminate the line
> it writes to the buffer?
..
> The reason I ask is that the documentation says the value put in the
> outlen parameter when the buffer is too small is "the size libssh2
> wanted to store, which then is the smallest sufficient buffer it would
> require".
..
> Opinions?

Compare snprintf(), I say make the code count every byte.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 25 04:13:17 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1P3D1W4002303;
	Thu, 25 Feb 2010 04:13:11 +0100
Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com
	[74.125.82.182])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1P3CxRa002286
	for <libssh2-devel@cool.haxx.se>; Thu, 25 Feb 2010 04:12:59 +0100
Received: by wyb40 with SMTP id 40so1517729wyb.41
	for <libssh2-devel@cool.haxx.se>; Wed, 24 Feb 2010 19:12:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type; bh=MYBmOjEGFR35JG/ikgeVhrVg2hTK5r1zYCBNIVe+Mck=;
	b=IkPwtPrkvNvLVnvYHcd5zaOxtCkMfECfJ9xYv9CupD6XHxajBaI5BSxVbX+nlf0V85
	vqeGTlmWSv8Duu7/VRa2LLLWX1kmBkXckEZpvdOoeWTITVd2k0t6s3rzlBucc73F2NtM
	srOO5yckBmKjm0dKHNkMEi8E7CIsuT8bUsbLY=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type;
	b=vbAEQrJxC4w3M4bss6uO+Kdr6CAJ2kAAsAOFE0LCFM7OL9V18kEfw79fcOHCf5mUm+
	PgxyZgRa2RG7uWuABqcXxoUkmyJIY/7gRt16VE459Xzk1GIvbmqzx5/lDPvQrC9KD5+H
	Ca1eetS3n40h0v7j/xLcqyh/oeYkwjOZlD9iA=
MIME-Version: 1.0
Received: by 10.213.109.214 with SMTP id k22mr938215ebp.83.1267067575037; Wed, 
	24 Feb 2010 19:12:55 -0800 (PST)
In-Reply-To: <20100224220938.31617.qmail@stuge.se>
References: <9c3275a91002240937o4eb71ecdoaa475aee20f2aedf@mail.gmail.com>
	<20100224220938.31617.qmail@stuge.se>
Date: Thu, 25 Feb 2010 03:12:54 +0000
X-Google-Sender-Auth: 2ccef29f1298e288
Message-ID: <9c3275a91002241912v27d12e15s39f5a29be7637043@mail.gmail.com>
Subject: Re: knownhost_writeline buffer length
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On 24 February 2010 22:09, Peter Stuge <peter@stuge.se> wrote:
> Alexander Lamaison wrote:
>> Do we want libssh2_knownhost_writeline to NULL-terminate the line
>> it writes to the buffer?
> ..
>> The reason I ask is that the documentation says the value put in the
>> outlen parameter when the buffer is too small is "the size libssh2
>> wanted to store, which then is the smallest sufficient buffer it would
>> require".
> ..
>> Opinions?
>
> Compare snprintf(), I say make the code count every byte.

By count every byte do you mean include the byte used by the NULL-terminator?

Alex
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 25 04:16:38 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1P3GP1w003906;
	Thu, 25 Feb 2010 04:16:28 +0100
Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com
	[74.125.82.182])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1P3GNcP003872
	for <libssh2-devel@cool.haxx.se>; Thu, 25 Feb 2010 04:16:23 +0100
Received: by wyb40 with SMTP id 40so1519150wyb.41
	for <libssh2-devel@cool.haxx.se>; Wed, 24 Feb 2010 19:16:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type; bh=GTlwGbdztq45jSm7YN8AemweHD03CoS2uBeCvXLBUlo=;
	b=qFEei8LbME5DSgdtJKV5ZY57Uwea2bRFqoovQnUvldgx/xh8IcY8kbCey4rrnB2vIB
	k2ycoXctXTCU08Ji45YqgBns63KL+aX7fQFyMH5YFyGTlB4IvxU0OeMgkUUvCBZGDcbk
	jnIZGo5hvWGjWc6p/77Z5uMJqI15cUjkUsFvU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type;
	b=FOLA1Kclh3QUFL3vJiDdkD+piEb0ZySZo+ZvVfQWjv5cPI0NmgZCtC+DKreJhKgK/h
	5y8HS3wc6l9E2UvcvD+I1AqGNK1eNCUGeb8kz3+W+nuKxFR8s8LO0ozSfoaWp9lv7WO+
	yLsZdhIfq0vtA/zqntFD7MEFuz/vzxjd96LP4=
MIME-Version: 1.0
Received: by 10.213.24.13 with SMTP id t13mr468923ebb.46.1267067778973; Wed, 
	24 Feb 2010 19:16:18 -0800 (PST)
In-Reply-To: <9c3275a91002241912v27d12e15s39f5a29be7637043@mail.gmail.com>
References: <9c3275a91002240937o4eb71ecdoaa475aee20f2aedf@mail.gmail.com>
	<20100224220938.31617.qmail@stuge.se>
	<9c3275a91002241912v27d12e15s39f5a29be7637043@mail.gmail.com>
Date: Thu, 25 Feb 2010 03:16:18 +0000
X-Google-Sender-Auth: 5167aa2cda54630c
Message-ID: <9c3275a91002241916te44c3fx119f5d1a533f1f8b@mail.gmail.com>
Subject: Re: knownhost_writeline buffer length
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

> On 24 February 2010 22:09, Peter Stuge <peter@stuge.se> wrote:
>
> Compare snprintf()

I notice that snprintf actually works in the slightly awkward way that
our code currently works: it returns one byte less than the number of
bytes needed in the output buffer as it excludes the NULL.  Maybe we
should just fix the comment and be consistent with snprintf.

Alex
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 25 14:19:18 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1PDJ6mZ032306;
	Thu, 25 Feb 2010 14:19:14 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1PDJ4hm032298
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 25 Feb 2010 14:19:04 +0100
Received: (qmail 19378 invoked from network); 25 Feb 2010 13:19:04 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 25 Feb 2010 13:19:04 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 25 Feb 2010 13:19:04 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #151: keepalive@openssh.com
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/151#comment:4
Message-ID: <054.9b2125766c2160bdc50b30157426edf1@libssh2.stuge.se>
References: <045.2042938e7f68c1821f1aa8ad854b028f@libssh2.stuge.se>
X-Trac-Ticket-ID: 151
In-Reply-To: <045.2042938e7f68c1821f1aa8ad854b028f@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#151: keepalive@openssh.com
--------------------------+-------------------------------------------------
  Reporter:  anonymous    |       Owner:        
      Type:  enhancement  |      Status:  closed
  Priority:  normal       |   Milestone:        
 Component:  protocol     |     Version:  1.2.3 
Resolution:  fixed        |    Keywords:        
  Blocking:               |   Blockedby:        
--------------------------+-------------------------------------------------
Changes (by josefsson.org):

  * status:  new => closed
  * version:  => 1.2.3
  * resolution:  => fixed


Comment:

 This was fixed in 1.2.3.  It was a bug in libssh2 to not send back packet
 type 100, that is required by the RFC for unknown requests.

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/151#comment:4>
libssh2 <http://libssh2.stuge.se/>
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  Thu Feb 25 15:16:11 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1PEG4ui009923;
	Thu, 25 Feb 2010 15:16:09 +0100
Received: from mail-fx0-f225.google.com (mail-fx0-f225.google.com
	[209.85.220.225])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1PEG3sx009848
	for <libssh2-devel@cool.haxx.se>; Thu, 25 Feb 2010 15:16:03 +0100
Received: by fxm25 with SMTP id 25so1514403fxm.7
	for <libssh2-devel@cool.haxx.se>; Thu, 25 Feb 2010 06:15:59 -0800 (PST)
MIME-Version: 1.0
Received: by 10.239.193.5 with SMTP id g5mr131485hbi.3.1267107359016; Thu, 25 
	Feb 2010 06:15:59 -0800 (PST)
Date: Thu, 25 Feb 2010 15:15:58 +0100
Message-ID: <50cb0cb61002250615q1cb5684pd7d6ab0f9b64e6cb@mail.gmail.com>
Subject: Port to VMS; how to get changes into the main code stream?
From: Jose Baars <peut@peut.org>
To: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi,

I'm at the moment testing libssh2 on VMS. I have most examples
working now.

As make/config tools are not widely available on VMS, I made
a simple build procedure for use on VMS. As VMS systems
look far more alike than the hundreds of flavours of *ix systems
this is not a big issue, in my opinion.

I can only test against 1 of the tcp/ip stacks available on VMS, although
this is the most commonly used one.

I still have to look in to what zlib I should use, and when testing
I found that the most common SSH server on VMS has a maximum
window size of 16 Mb, giving the (here well known) message
'Bad window size in WINDOW_ADJUST' causing libssh2
to bomb out. I am not brave enough to solve that in libssh2.

Could my changes eventually be included in the main stream,
and if so, how should that be accomplished?

Regards,
Jose Baars
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 25 15:34:40 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1PEYTbW018581;
	Thu, 25 Feb 2010 15:34:37 +0100
Received: from mail-fx0-f225.google.com (mail-fx0-f225.google.com
	[209.85.220.225])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1PEYRf4018559
	for <libssh2-devel@cool.haxx.se>; Thu, 25 Feb 2010 15:34:27 +0100
Received: by fxm25 with SMTP id 25so1535462fxm.7
	for <libssh2-devel@cool.haxx.se>; Thu, 25 Feb 2010 06:34:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type; bh=dBjYDryBgfdcGORvNGPuHw1Ly+vW5MvUd1TJw3xl7hM=;
	b=K1jrOHhlO17W8xDN785wNypAZwoSXZ7bGvfRrgSo73ek3j/GN3jpJDt6v/crEL0v7G
	IoYDUdlCyM06skJdgYZ4rwOG0w652uUevyZ54xrhD2iPSDJX3y1MAjAOoTC2FLhn31nn
	l0gbpz4MQv7tV9b7Dx5/FYRxKFAT5/3q2Fcmc=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type;
	b=QhGcO0mWV5bYZxxWJII4jpSm1lqwu8y3g9ZVomc4UF03251ttT4BMYz3Dac4IS+Kym
	gglza2tW9KuvPPqLd9pI0w3f4C4xd6U3vMJka1zAjgvHO3ggVsLUirrI6hutuWX9o4lH
	gw0oEQKx4GpRSHGDbx/qwbTLSr6Xqmk7ONNGk=
MIME-Version: 1.0
Received: by 10.239.193.144 with SMTP id j16mr94112hbi.45.1267108463524; Thu, 
	25 Feb 2010 06:34:23 -0800 (PST)
In-Reply-To: <50cb0cb61002250615q1cb5684pd7d6ab0f9b64e6cb@mail.gmail.com>
References: <50cb0cb61002250615q1cb5684pd7d6ab0f9b64e6cb@mail.gmail.com>
Date: Thu, 25 Feb 2010 15:34:23 +0100
X-Google-Sender-Auth: e63a4dfaa525d9d6
Message-ID: <d2d39d861002250634y6ea54d8dh8bbe9ea6659eecb8@mail.gmail.com>
Subject: Re: Port to VMS; how to get changes into the main code stream?
From: Tor Arntsen <tor@spacetec.no>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Thu, Feb 25, 2010 at 15:15, Jose Baars <peut@peut.org> wrote:

> Could my changes eventually be included in the main stream,
> and if so, how should that be accomplished?

You can post/attach your changes here on this list, as a diff (diff
-u, or from git), for review & discussion & inclusion. If you use git
you can also use git-format-patch to create the diff.

-Tor
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 25 16:31:48 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1PFVc9w011872;
	Thu, 25 Feb 2010 16:31:44 +0100
Received: from mail.intersystems.com (mail.intersys.COM [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1PFVaDO011817
	for <libssh2-devel@cool.haxx.se>; Thu, 25 Feb 2010 16:31:37 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
From: Dave McCaldon <davem@intersystems.com>
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: Port to VMS; how to get changes into the main code stream?
Date: Thu, 25 Feb 2010 10:30:53 -0500
In-Reply-To: <50cb0cb61002250615q1cb5684pd7d6ab0f9b64e6cb@mail.gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>,
        Jose Baars <peut@peut.org>
References: <50cb0cb61002250615q1cb5684pd7d6ab0f9b64e6cb@mail.gmail.com>
Message-Id: <0A050DAD-DF9D-458F-BE7D-831D8C3528B2@intersystems.com>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0556940122=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


--===============0556940122==
Content-Type: multipart/alternative; boundary=Apple-Mail-16-1041844385


--Apple-Mail-16-1041844385
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


On Feb 25, 2010, at 9:15 AM, Jose Baars wrote:

> I'm at the moment testing libssh2 on VMS. I have most examples
> working now.

Great, this is something I'd been looking into, but never gotten to.  =
Are you building libssh2 as a shared library (or whatever it's called on =
VMS), or linking it into the resulting EXE?

> As make/config tools are not widely available on VMS, I made
> a simple build procedure for use on VMS. As VMS systems
> look far more alike than the hundreds of flavours of *ix systems
> this is not a big issue, in my opinion.

I believe GNU make is available on VMS, but it's going to be an extra =
step to install, so yes, a simple (DCL?) script is probably best.

> I can only test against 1 of the tcp/ip stacks available on VMS, =
although
> this is the most commonly used one.

I have access to a several VMS systems for testing, although I don't =
know what TCP stacks they have.  I believe most of them are fairly =
recent versions of OpenVMS which I think has a "standard" TCP stack -- =
that's probably what you have.

> I still have to look in to what zlib I should use, and when testing
> I found that the most common SSH server on VMS has a maximum
> window size of 16 Mb, giving the (here well known) message
> 'Bad window size in WINDOW_ADJUST' causing libssh2
> to bomb out. I am not brave enough to solve that in libssh2.

zlib is apparently available for VMS:

http://www.openvms.org/stories.php?story=3D05/07/29/9386511

curl/libcurl uses it and is also available on VMS:

http://www.openvms.org/stories.php?story=3D09/08/15/0379754

> Could my changes eventually be included in the main stream,
> and if so, how should that be accomplished?


I'd look at how Windows is supported; there's a win32 subdirectory that =
contains the project files and some Windows specific header files.  If =
there are specific issues in the common code, then wrap them in an #if =
defined(__VMS)/#endif block, I guess if it requires more involved code =
changes, that might need to be abstracted out somehow.  I'd suggest =
creating a vms subdirectory and putting everything in there.  One you =
have all of that, then submit as a git patch.



--Apple-Mail-16-1041844385
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><br><div><div>On Feb 25, 2010, at 9:15 AM, Jose Baars wrote:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><div>I'm =
at the moment testing libssh2 on VMS. I have most examples<br>working =
now.<br></div></blockquote><div><br></div><div>Great, this is something =
I'd been looking into, but never gotten to. &nbsp;Are you building =
libssh2 as a shared library (or whatever it's called on VMS), or linking =
it into the resulting EXE?</div><br><blockquote type=3D"cite"><div>As =
make/config tools are not widely available on VMS, I made<br>a simple =
build procedure for use on VMS. As VMS systems<br>look far more alike =
than the hundreds of flavours of *ix systems<br>this is not a big issue, =
in my opinion.<br></div></blockquote><div><br></div><div>I believe GNU =
make is available on VMS, but it's going to be an extra step to install, =
so yes, a simple (DCL?) script is probably =
best.</div><div><br></div><blockquote type=3D"cite"><div>I can only test =
against 1 of the tcp/ip stacks available on VMS, although<br>this is the =
most commonly used one.<br></div></blockquote><div><br></div><div>I have =
access to a several VMS systems for testing, although I don't know what =
TCP stacks they have. &nbsp;I believe most of them are fairly recent =
versions of OpenVMS which I think has a "standard" TCP stack -- that's =
probably what you have.</div><br><blockquote type=3D"cite"><div>I still =
have to look in to what zlib I should use, and when testing<br>I found =
that the most common SSH server on VMS has a maximum<br>window size of =
16 Mb, giving the (here well known) message<br>'Bad window size in =
WINDOW_ADJUST' causing libssh2<br>to bomb out. I am not brave enough to =
solve that in libssh2.<br></div></blockquote><div><br></div><div>zlib is =
apparently available for VMS:</div><div><br></div><div><meta =
charset=3D"utf-8"><a =
href=3D"http://www.openvms.org/stories.php?story=3D05/07/29/9386511">http:=
//www.openvms.org/stories.php?story=3D05/07/29/9386511</a></div><div><br><=
/div><div>curl/libcurl uses it and is also available on =
VMS:</div><div><br></div><div><meta charset=3D"utf-8"><a =
href=3D"http://www.openvms.org/stories.php?story=3D09/08/15/0379754">http:=
//www.openvms.org/stories.php?story=3D09/08/15/0379754</a></div><br><block=
quote type=3D"cite"><div>Could my changes eventually be included in the =
main stream,<br>and if so, how should that be =
accomplished?<br></div></blockquote></div><div><br></div><div>I'd look =
at how Windows is supported; there's a win32 subdirectory that contains =
the project files and some Windows specific header files. &nbsp;If there =
are specific issues in the common code, then wrap them in an&nbsp;#if =
defined(__VMS)/#endif block, I guess if it requires more involved code =
changes, that might need to be abstracted out somehow. &nbsp;I'd suggest =
creating a&nbsp;vms subdirectory and putting everything in there. =
&nbsp;One you have all of that, then submit as a git =
patch.</div><div><br></div><div><br></div></body></html>=

--Apple-Mail-16-1041844385--

--===============0556940122==
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

--===============0556940122==--

From libssh2-devel-bounces@cool.haxx.se  Thu Feb 25 18:48:05 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1PHlrRO014572;
	Thu, 25 Feb 2010 18:48:02 +0100
Received: from earth.stuge.se (earth.stuge.se [213.88.146.15])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1PHlqKp014549
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 25 Feb 2010 18:47:52 +0100
Received: (qmail 32002 invoked from network); 25 Feb 2010 17:47:52 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 25 Feb 2010 17:47:52 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.11.6
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.11.6, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 25 Feb 2010 17:47:52 -0000
X-URL: http://libssh2.stuge.se/
Subject: Re: [libssh2] #159: libssh2 takes long time to disconnect from
	CoreFTP's SFTP service
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/159#comment:2
Message-ID: <048.8c39f8397663db4145a989b736ff0af8@libssh2.stuge.se>
References: <039.c9b33f1492e7958089fb7727450037b1@libssh2.stuge.se>
X-Trac-Ticket-ID: 159
In-Reply-To: <039.c9b33f1492e7958089fb7727450037b1@libssh2.stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Reply-To: trac@libssh2.stuge.se,
        libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

#159: libssh2 takes long time to disconnect from CoreFTP's SFTP service
-----------------------------------------+----------------------------------
 Reporter:  qxu                          |       Owner:  stuge   
     Type:  defect                       |      Status:  accepted
 Priority:  normal                       |   Milestone:  1.2.5   
Component:  protocol                     |     Version:  1.2.4   
 Keywords:  coreftp server idle timeout  |    Blocking:          
Blockedby:                               |  
-----------------------------------------+----------------------------------

Comment(by stuge):

 Comparing libssh2 behavior with OpenSSH I discovered that libssh2 sends
 SSH_MSG_CHANNEL_CLOSE without sending SSH_MSG_CHANNEL_EOF and waiting for
 the other end to also send SSH_MSG_CHANNEL_EOF. RFC4254 explicitly allows
 sending SSH_MSG_CHANNEL_CLOSE without first sending SSH_MSG_CHANNEL_EOF,
 but maybe CoreFTP does not support that part of the RFC.

 Please apply the patch that I just attached to this ticket and test if it
 solves the problem.

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/159#comment:2>
libssh2 <http://libssh2.stuge.se/>
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  Fri Feb 26 04:32:01 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1Q3ViuO018551;
	Fri, 26 Feb 2010 04:31:55 +0100
Received: from Encompasserve.org (Eisner.encompasserve.org [67.53.90.116])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1Q3VgPE018542
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 26 Feb 2010 04:31:43 +0100
Received: from CONVERSION-DAEMON.Encompasserve.org by Encompasserve.org
	(PMDF V6.3-x13 #31732) id <01NK3EL4JSV400V5U1@Encompasserve.org> for
	libssh2-devel@cool.haxx.se; Thu, 25 Feb 2010 21:31:39 -0600 (CST)
Received: from [192.168.0.31]
	(173-23-187-137.client.mchsi.com [173.23.187.137]) by Encompasserve.org
	(PMDF V6.3-x13 #31732) with ESMTPSA id
	<01NK3EL3J93C000PWQ@Encompasserve.org>; 
	Thu, 25 Feb 2010 21:31:39 -0600 (CST)
Date: Thu, 25 Feb 2010 21:31:44 -0600
From: "John E. Malmberg" <wb8tyw@qsl.net>
Subject: Re: Port to VMS; how to get changes into the main code stream?
In-reply-to: <0A050DAD-DF9D-458F-BE7D-831D8C3528B2@intersystems.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Message-id: <4B8740A0.2070409@qsl.net>
MIME-version: 1.0
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
References: <50cb0cb61002250615q1cb5684pd7d6ab0f9b64e6cb@mail.gmail.com>
	<0A050DAD-DF9D-458F-BE7D-831D8C3528B2@intersystems.com>
Cc: Jose Baars <peut@peut.org>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Dave McCaldon wrote:
> On Feb 25, 2010, at 9:15 AM, Jose Baars wrote:
> 
>> I'm at the moment testing libssh2 on VMS. I have most examples
>> working now.
> 
> Great, this is something I'd been looking into, but never gotten to.
> Are you building libssh2 as a shared library (or whatever it's called on
> VMS), or linking it into the resulting EXE?

It is usually called a shared image, but shared library can also be used.

>> As make/config tools are not widely available on VMS, I made
>> a simple build procedure for use on VMS. As VMS systems
>> look far more alike than the hundreds of flavours of *ix systems
>> this is not a big issue, in my opinion.
> 
> I believe GNU make is available on VMS, but it's going to be an extra
> step to install, so yes, a simple (DCL?) script is probably best.

I used to use DCL scripts, but in order to get Samba V4 to build on VMS, 
I had to fix issues with the GNV kit.

Step 1.  Telnet to Encompasserve.org with an ANSI terminal and sign up 
for an account.

Step 2.  Start reading the PORTING_TO_VMS notes conference, it can be 
access through NOTES after you read the introductory material on 
Encompasserve.

It can also be access via your web browser.

http://encompasserve.org/anon/htnotes/conf?f1=PORTING_TO_VMS

Step 3. Install GNV.

Step 4. Use the instructions in the notes conference and the existing 
startup files to fix the GNV installation as needed, including getting 
updates from the ftp://encompasserve.org/gnv directory.  At the present 
time, only Alpha binaries are available, but every thing there has the 
source and the instructions to be built on IA64.

Participate in the PORTING_TO_VMS conference there.  Encompasserve has 
everything needed to build most projects.

And we can help you build kits that look as good or better than 
commercial products and comply with VMS packaging standards.

>> I can only test against 1 of the tcp/ip stacks available on VMS, although
>> this is the most commonly used one.
> 
> I have access to a several VMS systems for testing, although I don't
> know what TCP stacks they have. I believe most of them are fairly recent
> versions of OpenVMS which I think has a "standard" TCP stack -- that's
> probably what you have.

There are 3 stacks in use on current versions of VMS.  For the purposes 
of most programs, you do not need to care.  The C runtime has wrappers 
and dynamically loads the TCP/IP library as needed.

Server applications need to know the difference as there are different 
startup scripts.

And it has been recently announced that HP has made some systems 
available for Open Source testing.

>> I still have to look in to what zlib I should use, and when testing
>> I found that the most common SSH server on VMS has a maximum
>> window size of 16 Mb, giving the (here well known) message
>> 'Bad window size in WINDOW_ADJUST' causing libssh2
>> to bomb out. I am not brave enough to solve that in libssh2.
> 
> zlib is apparently available for VMS:
> 
> http://www.openvms.org/stories.php?story=05/07/29/9386511
> 
> curl/libcurl uses it and is also available on VMS:
> 
> http://www.openvms.org/stories.php?story=09/08/15/0379754
> 
>> Could my changes eventually be included in the main stream,
>> and if so, how should that be accomplished?

What I would first recommend is refreshing the CURL/LIBCURL kit on 
Encompasserve to the the current release.  In the distribution kit there 
are two source save sets.  One of them is the VMS changes that have not 
yet been integrated into the mainstream curl.

You can also search the curl mailing list archives for discussions about 
what was wanted to get those changes in.

There are scripts and instructions in that kit on how you download and 
build the daily curl tarball to verify your changes.

Once you get the current curl building, you will know how to set up to 
build libssh2.

Then you can build libssh2 and re-run the configure script for curl to 
find it and build a curl binary that uses it.  The hardest part may be 
building the PCSI distribution kits.

There are some dragons to slay, but if you can get this far, you can 
help with making things better.

One of the biggest challenges is getting the configure script to produce 
the correct output.  This is from two main problems:

1. Finding the header files and shared images for layered products is 
too different on VMS for configure to deal with.

2. Configure is badly broken on all platforms that support backwards 
binary compatibility and this really is exposed on VMS and configure 
seems to be evolving to be worse in this area instead of better.

There is also a bug in the VMS port of bash that using ${ECHO} instead 
of echo causes internal corruption in BASH, so for building Curl, I am 
currently using an older configure script than what is in CVS.

> I'd look at how Windows is supported; there's a win32 subdirectory
> that contains the project files and some Windows specific header files.
> If there are specific issues in the common code, then wrap them in an
> #if defined(__VMS)/#endif block, I guess if it requires more involved
> code changes, that might need to be abstracted out somehow. 

When I refresh a port of an Open Source project to VMS, I search for 
those and try to eliminate them.  Many times I find that either they 
were never needed, or they were incorrect.  There are some in curl that 
can be removed by changing the os specific header files to create 
wrapper macros to redirect the routines to ones customized for VMS.

The main issue that would likely to show up for libssh2 is that VMS has 
a limit on how much it can read/write to a socket in one operation.

VMS also has problems with ".." in #include directives, and some of the 
shared images only have uppercase universal symbols.

 > I'd suggest creating a vms subdirectory and putting everything in
 > there. One you have all of that, then submit as a git patch.

I do not have git working well enough on VMS for submitting git patches. 
   NCURSES needs to be ported to fix LESS, which is needed for me to 
debug the next step and I am too short of time to work on that right now.
So right now, all git can do is fetch a complete copy of a repository, 
but not update it.

Using the 'diff -u' option with exact case UNIX style path names in 
quotes has been good enough for the projects that I have worked on.

-John
wb8tyw@qsl.network
Personal Opinion Only

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 26 15:25:34 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QEPKrX023217;
	Fri, 26 Feb 2010 15:25:30 +0100
Received: from mail-fx0-f225.google.com (mail-fx0-f225.google.com
	[209.85.220.225])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QEPInN023200
	for <libssh2-devel@cool.haxx.se>; Fri, 26 Feb 2010 15:25:19 +0100
Received: by fxm25 with SMTP id 25so138170fxm.7
	for <libssh2-devel@cool.haxx.se>; Fri, 26 Feb 2010 06:25:14 -0800 (PST)
MIME-Version: 1.0
Received: by 10.239.173.67 with SMTP id d3mr46712hbf.110.1267194314163; Fri, 
	26 Feb 2010 06:25:14 -0800 (PST)
In-Reply-To: <4B8740A0.2070409@qsl.net>
References: <50cb0cb61002250615q1cb5684pd7d6ab0f9b64e6cb@mail.gmail.com>
	<0A050DAD-DF9D-458F-BE7D-831D8C3528B2@intersystems.com>
	<4B8740A0.2070409@qsl.net>
Date: Fri, 26 Feb 2010 15:25:14 +0100
Message-ID: <50cb0cb61002260625m139ce81dpc36194c52fdaf7e@mail.gmail.com>
Subject: Re: Port to VMS; how to get changes into the main code stream?
From: Jose Baars <peut@peut.org>
To: "John E. Malmberg" <wb8tyw@qsl.net>
Cc: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Thanks for the guidance John. To be honest I don't want libssh2 for the sake
of curl, but for it's own sake. On the other hand it would probably be a us=
eful
exercise.I'll see how far I get.

libssh2 has only lowercase functions, no real problems there, some
functions exceed
the maximum lenght for the linker, though.

>There are 3 stacks in use on current versions of VMS.  For the purposes of=
 most
>programs, you do not need to care.  The C runtime has wrappers and dynamic=
ally
>loads the TCP/IP library as needed.

A test if a socket is blocking or non blocking in libssh2 is stack
specific I'm afraid.
I do a test on the definition  of SO_STATE to execute the TCP/IP
services specific
statement.

The setting a socket nonblocking might not be an issue, but of that
I'm not sure.

> 2. Configure is badly broken on all platforms that support backwards bina=
ry
> compatibility and this really is exposed on VMS and configure seems to be
> evolving to be worse in this area instead of better.
>

As far as I understand configure scripts are useful to discern between
the hundreds
of *ix implementations, and the complex versioning issues on these systems.
On VMS, I see hardly any added value. I'd rather stay clear of it, it solve=
s an
issue that hardly exists on VMS, but I understand that for conformity one w=
ould
go that way. I'll have a look.

> When I refresh a port of an Open Source project to VMS, I search for those
> and try to eliminate them. =A0Mnlbaajany times I find that either they we=
re never
> needed, or they were incorrect. =A0There are some in curl that can be rem=
oved
> by changing the os specific header files to create wrapper macros to
> redirect the routines to ones customized for VMS.
>

In a lot of projects, and partly so in libssh2, the test is on the availabi=
lity
of features, in stead of a platform test. In libssh2, some platform tests
exist already for WIN32, which would break the defining of macro's in the
os specific header files, without having to change the macro's for
Windows vs. Unix as well. I am reluctant to do that.

> The main issue that would likely to show up for libssh2 is that VMS has a
> limit on how much it can read/write to a socket in one operation.
>

No, that seems not a problem. The libssh2 developers have been very conserv=
ative
or rather prudent. Writes are limited to 16k, in my experience,
problems start to pop up
when reads and writes get > 32k. Anyway, I have most examples working.

> VMS also has problems with ".." in #include directives, and some of the
> shared images only have uppercase universal symbols.

No problems there either. libssh2 is only depending on OpenSSL (I use HP's,
for convenience) , and zlib. Zlib on encompasserve seems like the way to go.

> Using the 'diff -u' option with exact case UNIX style path names in quotes
> has been good enough for the projects that I have worked on.

That was also suggested by Thorvald. I like the idea of using git,
though, as it might
save me manual labour in the end.

Question: should I do that against a current tarball or the latest
stable release?

Jose
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 26 16:04:30 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QF4McW023851;
	Fri, 26 Feb 2010 16:04:27 +0100
Received: from Encompasserve.org (Eisner.encompasserve.org [67.53.90.116])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QF4IZK023737
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 26 Feb 2010 16:04:19 +0100
Received: from CONVERSION-DAEMON.Encompasserve.org by Encompasserve.org
	(PMDF V6.3-x13 #31732) id <01NK42RV8L1S0064XF@Encompasserve.org> for
	libssh2-devel@cool.haxx.se; Fri, 26 Feb 2010 09:04:17 -0600 (CST)
Received: from [10.37.80.21] (204-11-77-50.ip.ctc.biz [204.11.77.50])
	by Encompasserve.org (PMDF V6.3-x13 #31732)
	with ESMTPSA id <01NK42RUX7CS000PWQ@Encompasserve.org> for
	libssh2-devel@cool.haxx.se; Fri, 26 Feb 2010 09:04:17 -0600 (CST)
Date: Fri, 26 Feb 2010 09:04:16 -0600
From: "John E. Malmberg" <wb8tyw@qsl.net>
Subject: Re: Port to VMS; how to get changes into the main code stream?
In-reply-to: <50cb0cb61002260625m139ce81dpc36194c52fdaf7e@mail.gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Message-id: <4B87E2F0.8010401@qsl.net>
MIME-version: 1.0
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
References: <50cb0cb61002250615q1cb5684pd7d6ab0f9b64e6cb@mail.gmail.com>
	<0A050DAD-DF9D-458F-BE7D-831D8C3528B2@intersystems.com>
	<4B8740A0.2070409@qsl.net>
	<50cb0cb61002260625m139ce81dpc36194c52fdaf7e@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Jose Baars wrote:
> Thanks for the guidance John. To be honest I don't want libssh2 for the sake
> of curl, but for it's own sake. On the other hand it would probably be a useful
> exercise.I'll see how far I get.

It gives you a program that you can use to sanity check the build of 
libssh2 that the libssh2 developers are familiar with to answer questions.

> libssh2 has only lowercase functions, no real problems there, some
> functions exceed the maximum lenght for the linker, though.

For the VMS, this should be handled the following way:

1. Set the compiler to use exact case and shortened names.  It generates 
a CRC for the internal name and creates an alias database.  The GNV 
curl/libcurl build instructions show how to set that up.

For Universal symbols longer than 31 characters in a new shared image, 
follow all 4 steps.  For less than 31 characters only 2 aliases are used.

1. Primary should be exact case CRC shortened.
2. First alias should be upper case CRC shortened, takes an additional 
compile step outside of the normal build.  Only needed once per module 
with Universal symbols.
3. Second alias should be exact case, but manually truncated if it will 
still be unique at 31 characters, if not, then come up with a new alias.
4. Third alias should be the same as the third, but upper case only.

If you are refreshing a port that has a shared image with the symbols 
only in upper case truncated, add the aliases to them to make things 
complete to the end of the transfer vector list.

This way the shared image can be usually be used no matter what the 
compile settings are.

>> There are 3 stacks in use on current versions of VMS.  For the purposes of most
>> programs, you do not need to care.  The C runtime has wrappers and dynamically
>> loads the TCP/IP library as needed.
> 
> A test if a socket is blocking or non blocking in libssh2 is stack
> specific I'm afraid.
> I do a test on the definition  of SO_STATE to execute the TCP/IP
> services specific statement.
> 
> The setting a socket nonblocking might not be an issue, but of that
> I'm not sure.

Linking against a specific TCP/IP stack should be avoided.  If it can 
not be avoided, I would recommend a VMS specific wrapper routine that 
dynamically loads the image/symbol just like the C runtime does.  That 
way if the other stacks ever add the same functionality, there is a 
chance that it will just work, because they will be anticipating the C 
library being extended to use that call.

If it does not, it is a place where a developer can put the code to 
detect which TCP/IP stack is present and dynamically load the right 
routine, or attempt to let the program know that the feature is not 
present, if there is a way to work around it.

It is also possible that people on Encompasserve may have useful 
suggestions for support of all three stacks.

>> 2. Configure is badly broken on all platforms that support backwards binary
>> compatibility and this really is exposed on VMS and configure seems to be
>> evolving to be worse in this area instead of better.
>> 
> As far as I understand configure scripts are useful to discern between
> the hundreds
> of *ix implementations, and the complex versioning issues on these systems.
> On VMS, I see hardly any added value. I'd rather stay clear of it, it solves an
> issue that hardly exists on VMS, but I understand that for conformity one would
> go that way. I'll have a look.

On the typical recent configure scripts that I have run, at least 1/3 of 
the tests have no value as a previous identical test already provide all 
the information needed, and most of the tests are done with out using 
the header files.  With out using the header files to define a routine, 
the tests are guaranteed to always give the wrong results on any 
platform that maintains backwards binary compatibility, and needed to 
make a change to better comply with the standards.

Configure runs very slowly on VMS, so those redundant tests hurt.

When a test incorrectly fails on VMS because of a past issue with the C 
library, the work around that Configure enables may have issues or not 
work at all, unlike on a real Unix, where the end program binary just 
ends up being slightly larger and possibly slower than it needs to be.

Somewhere, I also have a DCL script that will generate a pretty accurate 
config.h based on config.h.in.  It does not actually do anything but 
look up header files and universal symbols in shared images, and works 
on IA64 or Alpha.

I stopped using it because for SAMBA V4, the MMS equivalent of the 
makefile could not be derived from hand, which required me to solve the 
configure issues.  Once solved, it has been much easier to simply find 
out what it takes to get the Configure scripts to run.

> No problems there either. libssh2 is only depending on OpenSSL (I use HP's,
> for convenience) , and zlib. Zlib on encompasserve seems like the way to go.
> 
>> Using the 'diff -u' option with exact case UNIX style path names in quotes
>> has been good enough for the projects that I have worked on.
> 
> That was also suggested by Thorvald. I like the idea of using git,
> though, as it might save me manual labour in the end.

In that case, NFS mount an ODS-5 volume on a *Nix system and you will 
have all the *NIX tools to maintain a build tree.

> Question: should I do that against a current tarball or the latest
> stable release?

Until I get something working, I use the latest stable release. 
Building against the current tarball is useful for verifying that your 
changes actually work the way they were intended.

-John
wb8tyw@qsl.network
Personal Opinion Only
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 26 17:37:13 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QGaxKB029215;
	Fri, 26 Feb 2010 17:37:08 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1QGauP7029207
	for <libssh2-devel@cool.haxx.se>; Fri, 26 Feb 2010 17:36:57 +0100
Received: (qmail 20115 invoked by uid 501); 26 Feb 2010 16:36:57 -0000
Message-ID: <20100226163657.20114.qmail@stuge.se>
Date: Fri, 26 Feb 2010 17:36:57 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Port to VMS; how to get changes into the main code stream?
Mail-Followup-To: libssh2 development <libssh2-devel@cool.haxx.se>
References: <50cb0cb61002250615q1cb5684pd7d6ab0f9b64e6cb@mail.gmail.com>
	<0A050DAD-DF9D-458F-BE7D-831D8C3528B2@intersystems.com>
	<4B8740A0.2070409@qsl.net>
	<50cb0cb61002260625m139ce81dpc36194c52fdaf7e@mail.gmail.com>
	<4B87E2F0.8010401@qsl.net>
	<50cb0cb61002250615q1cb5684pd7d6ab0f9b64e6cb@mail.gmail.com>
	<0A050DAD-DF9D-458F-BE7D-831D8C3528B2@intersystems.com>
	<4B8740A0.2070409@qsl.net>
	<50cb0cb61002260625m139ce81dpc36194c52fdaf7e@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <4B87E2F0.8010401@qsl.net>
	<50cb0cb61002260625m139ce81dpc36194c52fdaf7e@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

John, Jose,

I think it's very exciting that you're making libssh2 run also on
VMS! :)

Jose Baars wrote:
> A test if a socket is blocking or non blocking in libssh2 is stack
> specific I'm afraid.

There are already various platform specific #ifdefs in
get_socket_nonblocking() so I think adding a few more for complete
support of TCP/IP options on VMS would not be a problem.


> > The main issue that would likely to show up for libssh2 is that
> > VMS has a limit on how much it can read/write to a socket in one
> > operation.

What is returned by send() or recv() when the limit is reached?

libssh2 should not have a problem with send() or recv() returning
short, meaning that not all of the desired bytes were accepted by the
operating system.

> No, that seems not a problem. The libssh2 developers have been very
> conservative or rather prudent. Writes are limited to 16k, in my
> experience, problems start to pop up when reads and writes get >
> 32k.

Using a buffer size in applications less than about 32500 bytes will
ensure correct operation with the latest few released versions of
libssh2. Unfortunately there are still known bugs in libssh2 when an
application likes to pass larger data buffers to the library.

In any case, libssh2 should handle short returns from send() and
recv() and ..


> Anyway, I have most examples working.

..if any example has a problem with buffer sizes then that is a bug
that we want to fix!

(Actually, any example not working is a bug we'd like to fix. :)


> > VMS also has problems with ".." in #include directives, and some
> > of the shared images only have uppercase universal symbols.
> 
> No problems there either. libssh2 is only depending on OpenSSL (I
> use HP's, for convenience) , and zlib. Zlib on encompasserve seems
> like the way to go.

Note that zlib is an optional dependency. It's possible to build
libssh2 without zlib support, in which case no compression will be
negotiated with the SSH server.


> > Using the 'diff -u' option with exact case UNIX style path names
> > in quotes has been good enough for the projects that I have
> > worked on.
> 
> That was also suggested by Thorvald. I like the idea of using git,
> though, as it might save me manual labour in the end.
> 
> Question: should I do that against a current tarball or the latest
> stable release?

Please send git patches against the latest source possible, ideally
an up to date clone of libssh2.git, second best would be a snapshot
tarball which is sometimes identical to libssh2.git when there is
limited activity.

Worst case we could also accept a patch against latest release, but
this requires (sometimes substantial) work by developers for
integration, so it may lead to the integration being delayed, or just
never happen.

Please try to send a git patch. If git doesn't work so well on VMS
then perhaps one option could be to take advantage of git running on
another system, in order to create the patch. Integration by libssh2
developers is greatly simplified by having a clean patch as produced
by git format-patch


John E. Malmberg wrote:
>> I don't want libssh2 for the sake of curl
>
> It gives you a program that you can use to sanity check the build
> of libssh2 that the libssh2 developers are familiar with to answer
> questions.

Some developers, but not all. I consider it far more important to
reproduce any problems using one of the examples, or with a new
minimal C program that can be sent to the community for review and
further testing.


> Linking against a specific TCP/IP stack should be avoided.

I don't know the linker details on VMS, but if libraries are
equivalent for all stacks and as long as there's a way to #ifdef the
code that may be stack-specific then I don't think this should be
neccessary.


> code to detect which TCP/IP stack is present and dynamically load
> the right routine, or attempt to let the program know that the
> feature is not present, if there is a way to work around it.

Is the detection at compile time or must it be at run time?


> Configure runs very slowly on VMS, so those redundant tests hurt.

If autotools (which produces the configure script) is awkward on VMS
then I am all for adding "native" build files into libssh2 just like
we have for Windows.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 26 18:55:35 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QHtFKD028150;
	Fri, 26 Feb 2010 18:55:23 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1QHtDn2028115
	for <libssh2-devel@cool.haxx.se>; Fri, 26 Feb 2010 18:55:13 +0100
Received: (qmail 1639 invoked by uid 501); 26 Feb 2010 17:55:13 -0000
Message-ID: <20100226175513.1638.qmail@stuge.se>
Date: Fri, 26 Feb 2010 18:55:13 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: RFC: Thread safety
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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Do we want to add locking within libssh2 so that different threads
can write to different channels in one session independent of each
other?


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 26 19:27:04 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QIQujh016281;
	Fri, 26 Feb 2010 19:27:02 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1QIQtIl016277
	for <libssh2-devel@cool.haxx.se>; Fri, 26 Feb 2010 19:26:55 +0100
Received: (qmail 6610 invoked by uid 501); 26 Feb 2010 18:26:55 -0000
Message-ID: <20100226182655.6609.qmail@stuge.se>
Date: Fri, 26 Feb 2010 19:26:55 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2 master 942a40b... Call libssh2_error for every
	knownhost API failure.
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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Overall this is a great improvement - thanks Alex!


> commit 942a40b48250c92eeb0cf620ded6e943a4de025a
..

> @@ -593,8 +638,11 @@ libssh2_knownhost_readline(LIBSSH2_KNOWNHOSTS *hosts,
>      }
>  
>      if(!*cp || !len)
> -        /* illegal line */
> -        return LIBSSH2_ERROR_METHOD_NOT_SUPPORTED;
> +        /* illegal line */ {
> +        return libssh2_error(hosts->session,
> +                             LIBSSH2_ERROR_METHOD_NOT_SUPPORTED,
> +                             "Failed to parse known_hosts line", 0);
> +    }

I'm unhappy with the proliferation of braces for single-statement
cases. The comment above is also not to well placed IMO, but I find
the many braces added in this commit to be a worse eyesore. :\
Is there a coding style rule for this or simply your preference?


> +++ b/src/misc.c
> @@ -49,6 +49,42 @@
>  
>  #include <errno.h>
>  
> +#ifdef LIBSSH2DEBUG
> +
> +int libssh2_error(LIBSSH2_SESSION* session, int errcode, char* errmsg,
> +                  int should_free)
> +{
> +    if (session->err_msg && session->err_should_free) {
> +        LIBSSH2_FREE(session, session->err_msg);
> +    }
> +    session->err_msg = errmsg;
> +    session->err_msglen = strlen(errmsg);
> +    session->err_should_free = should_free;
> +    session->err_code = errcode;
> +    _libssh2_debug(session, LIBSSH2_TRACE_ERROR, "%d - %s", session->err_code,
> +                   session->err_msg);
> +
> +    return errcode;
> +}
> +
> +#else /* ! LIBSSH2DEBUG */
> +
> +int libssh2_error(LIBSSH2_SESSION* session, int errcode, char* errmsg,
> +                  int should_free)
> +{
> +    if (session->err_msg && session->err_should_free) {
> +        LIBSSH2_FREE(session, session->err_msg);
> +    }
> +    session->err_msg = errmsg;
> +    session->err_msglen = strlen(errmsg);
> +    session->err_should_free = should_free;
> +    session->err_code = errcode;
> +
> +    return errcode;
> +}
> +
> +#endif /* ! LIBSSH2DEBUG */

The above is very redundant. Please fix it so #ifdef only guards the
_debug call inside a single copy of the function.


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 26 19:48:04 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QIlvt1031761;
	Fri, 26 Feb 2010 19:48:00 +0100
Received: from mail-fx0-f225.google.com (mail-fx0-f225.google.com
	[209.85.220.225])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QIltvj031713
	for <libssh2-devel@cool.haxx.se>; Fri, 26 Feb 2010 19:47:55 +0100
Received: by fxm25 with SMTP id 25so420146fxm.7
	for <libssh2-devel@cool.haxx.se>; Fri, 26 Feb 2010 10:47:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type; bh=ZM0WyRx4WQv9/LM8tFq2uzJcJh4BDVbfnPrE6hkA0x4=;
	b=PKiq9T2mD0czKp6eNtF8ANhKde92cnN81GpMFYQUxesuDp5x+nqIvu4CtR0WZTcJvQ
	kh53XDK/yp9Iz46oDrYgivhommKDQoW2DHidtEL6h215umaVjxtoEYlyu5kIsnP3Sowj
	M5TD9W4PDiEtYscfye9c4R2Bz5j64IXqAYBK4=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type;
	b=tJho7M8/L/EB45L5PeRu/DnlQ3GUG3t52L3jaq0ECtiyKdI6xSixssGXrXmRPaivWQ
	6rrRt6XlUGgEA5wvv3we9MGN0P4AH746d6em7Hb/NlKUlvDoIvz6eFOGb3EmDI9W6cSj
	SUv+A5tmBGUTyeXTJh1kMmSYBV94HvdTvzjF4=
MIME-Version: 1.0
Received: by 10.239.193.15 with SMTP id g15mr82142hbi.38.1267210070829; Fri, 
	26 Feb 2010 10:47:50 -0800 (PST)
In-Reply-To: <20100226182655.6609.qmail@stuge.se>
References: <20100226182655.6609.qmail@stuge.se>
Date: Fri, 26 Feb 2010 19:47:49 +0100
X-Google-Sender-Auth: e8c1a95eb2e27484
Message-ID: <d2d39d861002261047o2ba0670l977563eb950a685@mail.gmail.com>
Subject: Re: libssh2 master 942a40b... Call libssh2_error for every knownhost 
	API failure.
From: Tor Arntsen <tor@spacetec.no>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Fri, Feb 26, 2010 at 19:26, Peter Stuge <peter@stuge.se> wrote:
>
> I'm unhappy with the proliferation of braces for single-statement
> cases. The comment above is also not to well placed IMO, but I find
> the many braces added in this commit to be a worse eyesore. :\
> Is there a coding style rule for this or simply your preference?

I for one prefer braces also for single-statement cases. It's an old
practice for avoiding later coding errors (inserting a new statement
w/correct indentation, but only noticing the indentation and not
noticing that there are no braces there. And sometimes it's not
obvious that there's just a single-statement line there to start with
if the statement is a multi-line call or something).

I work in a software development company and I've seen errors like
just described, it can easily happen in shops where the developers
just have to get the job done, and fast. So we now have in our company
coding style description that we _always_ use braces, we don't bother
with checking if there's currently just a single statement there yet,
or not.

Obviously when I code for libcurl (haven't really provided anything
for libssh2 yet) I of course follow the project style, which is no
braces for single-statement cases. But for open-source projects we of
course spend a little bit more time to avoid the mistakes ;-)

-Tor
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 26 19:50:05 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QIo0Hp032360;
	Fri, 26 Feb 2010 19:50:02 +0100
Received: from mail-ew0-f224.google.com (mail-ew0-f224.google.com
	[209.85.219.224])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QInwHa032307
	for <libssh2-devel@cool.haxx.se>; Fri, 26 Feb 2010 19:49:58 +0100
Received: by ewy24 with SMTP id 24so247297ewy.7
	for <libssh2-devel@cool.haxx.se>; Fri, 26 Feb 2010 10:49:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type:content-transfer-encoding;
	bh=dJX8Kb6YMpK0YbdlRC9v10/dZvpQ8pieaZL2ai7nfu0=;
	b=NJoUs+6ilc0dzVX6PzHQ4GJ29yFFCwWF9QKgR/7R15ex3LUSug8sbfkMtcTOyLsX2W
	gP2WVHCKcklGwcAHmh1O+IUclUJFFqSjdm43IheswGlecczEkT7v3H6GzYhuvEjvHR0e
	R9IVKAj+cxZgP1i0ezlEv52mF2+MVMwCFZuuw=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type
	:content-transfer-encoding;
	b=QOY6OYGr8yKIQ7e2yoLPgidWmYeNT8SWTmBBysJkiOXvQ8uuGyVlPFDEh9m/6mG3Ga
	sIjeFlBQcmq4+XwOsqmwjKXsIPsi2YRxg7IjKw0HRSNp43rVKIQo/CzHmlfMnF2Ti3GA
	hfKO1UfhPnnqtrnGTcv8xETaO20ZMvAbM7GhI=
MIME-Version: 1.0
Received: by 10.213.109.86 with SMTP id i22mr380268ebp.51.1267210192785; Fri, 
	26 Feb 2010 10:49:52 -0800 (PST)
In-Reply-To: <20100226182655.6609.qmail@stuge.se>
References: <20100226182655.6609.qmail@stuge.se>
Date: Fri, 26 Feb 2010 18:49:52 +0000
X-Google-Sender-Auth: 6ad30d55e08de374
Message-ID: <9c3275a91002261049i55b4eef5ob7190a6498ea640a@mail.gmail.com>
Subject: Re: libssh2 master 942a40b... Call libssh2_error for every knownhost 
	API failure.
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On 26 February 2010 18:26, Peter Stuge <peter@stuge.se> wrote:
> Overall this is a great improvement - thanks Alex!

My pleasure.

> I'm unhappy with the proliferation of braces for single-statement
> cases. The comment above is also not to well placed IMO, but I find
> the many braces added in this commit to be a worse eyesore. :\
> Is there a coding style rule for this or simply your preference?

No preference.  The brackets were necessary before the changes to
libssh2_error and I forgot to take them out again afterwards.  The
latest commit changes this.

>> +#ifdef LIBSSH2DEBUG
>> +
>> +int libssh2_error(LIBSSH2_SESSION* session, int errcode, char* errmsg,
>> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0int should_free)
...
>> +
>> +#else /* ! LIBSSH2DEBUG */
>> +
>> +int libssh2_error(LIBSSH2_SESSION* session, int errcode, char* errmsg,
>> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0int should_free)
...
>> +
>> +#endif /* ! LIBSSH2DEBUG */
>
> The above is very redundant. Please fix it so #ifdef only guards the
> _debug call inside a single copy of the function.

It was copied directly from the original macro but, you're right, now
that it's a function the duplication is unnecessary.  The latest
commit fixes this too.

Alex
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 26 20:08:04 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QJ7t70016369;
	Fri, 26 Feb 2010 20:08:01 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1QJ7rIF016361
	for <libssh2-devel@cool.haxx.se>; Fri, 26 Feb 2010 20:07:53 +0100
Received: (qmail 13478 invoked by uid 501); 26 Feb 2010 19:07:54 -0000
Message-ID: <20100226190754.13477.qmail@stuge.se>
Date: Fri, 26 Feb 2010 20:07:54 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2 master 942a40b... Call libssh2_error for every
	knownhost API failure.
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <20100226182655.6609.qmail@stuge.se>
	<9c3275a91002261049i55b4eef5ob7190a6498ea640a@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <9c3275a91002261049i55b4eef5ob7190a6498ea640a@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Alexander Lamaison wrote:
> > braces
> 
> No preference.  The brackets were necessary before the changes to
> libssh2_error and I forgot to take them out again afterwards. 

Ahh.


> The latest commit changes this.

Sweet.


> > #ifdef only guards the _debug call
> 
> It was copied directly from the original macro but, you're right,
> now that it's a function the duplication is unnecessary. The
> latest commit fixes this too.

Awesome!


//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 26 20:13:54 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QJDn31019308;
	Fri, 26 Feb 2010 20:13:52 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QJDmnO019297
	for <libssh2-devel@cool.haxx.se>; Fri, 26 Feb 2010 20:13:48 +0100
Date: Fri, 26 Feb 2010 20:13:48 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2 master 942a40b... Call libssh2_error for every knownhost
	API failure.
In-Reply-To: <d2d39d861002261047o2ba0670l977563eb950a685@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1002262010190.24656@tvnag.unkk.fr>
References: <20100226182655.6609.qmail@stuge.se>
	<d2d39d861002261047o2ba0670l977563eb950a685@mail.gmail.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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Fri, 26 Feb 2010, Tor Arntsen wrote:

> I for one prefer braces also for single-statement cases. It's an old 
> practice for avoiding later coding errors

The libssh2 code originally had this always-braces practise all over, but I 
don't like it so I think I'm the primary person who has taken the code away 
from that path. To me, it makes the code less readable as it adds extra cruft 
to something that is meant to be simple.

It's not something I feel strongly about so I haven't tried to enforce this 
rule very hard.

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 26 20:49:48 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QJneJe016286;
	Fri, 26 Feb 2010 20:49:45 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1QJncu4016267
	for <libssh2-devel@cool.haxx.se>; Fri, 26 Feb 2010 20:49:38 +0100
Date: Fri, 26 Feb 2010 20:49:38 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: RFC: Thread safety
In-Reply-To: <20100226175513.1638.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1002262045080.24656@tvnag.unkk.fr>
References: <20100226175513.1638.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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Fri, 26 Feb 2010, Peter Stuge wrote:

> Do we want to add locking within libssh2 so that different threads can write 
> to different channels in one session independent of each other?

I wouldn't mind it, at least not if we make it done with a mutex-callback 
approach so that we don't do the actual locking ourselves.

There are many thread libs and ways to do this, and adding the checks for them 
and depending on them will lead to more work, and lots of apps won't even want 
the thread libs in the first place.

Having the mutexing done like this is also actually useful even when different 
threads are not using the same handles, as OpenSSL and gcrypt both need such 
provisions to work properly thread-safe. So it would help making apps more 
indepdendent of actual crypto lib in use.

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Sat Feb 27 01:31:21 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1R0V6vx011368;
	Sat, 27 Feb 2010 01:31:16 +0100
Received: from Encompasserve.org (Eisner.encompasserve.org [67.53.90.116])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1R0V3UC011311
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Sat, 27 Feb 2010 01:31:05 +0100
Received: from CONVERSION-DAEMON.Encompasserve.org by Encompasserve.org
	(PMDF V6.3-x13 #31732) id <01NK4MKJPW000167BO@Encompasserve.org> for
	libssh2-devel@cool.haxx.se; Fri, 26 Feb 2010 18:31:03 -0600 (CST)
Received: from [192.168.0.101]
	(173-23-187-137.client.mchsi.com [173.23.187.137])
	by Encompasserve.org (PMDF V6.3-x13 #31732)
	with ESMTPSA id <01NK4MKIMQZO00BSKF@Encompasserve.org> for
	libssh2-devel@cool.haxx.se; Fri, 26 Feb 2010 18:31:02 -0600 (CST)
Date: Fri, 26 Feb 2010 18:31:03 -0600
From: "John E. Malmberg" <wb8tyw@qsl.net>
Subject: Re: Port to VMS; how to get changes into the main code stream?
In-reply-to: <20100226163657.20114.qmail@stuge.se>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Message-id: <4B8867C7.6050807@qsl.net>
MIME-version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.8)
	Gecko/20100216 Thunderbird/3.0.2
References: <50cb0cb61002250615q1cb5684pd7d6ab0f9b64e6cb@mail.gmail.com>
	<0A050DAD-DF9D-458F-BE7D-831D8C3528B2@intersystems.com>
	<4B8740A0.2070409@qsl.net>
	<50cb0cb61002260625m139ce81dpc36194c52fdaf7e@mail.gmail.com>
	<4B87E2F0.8010401@qsl.net>
	<50cb0cb61002250615q1cb5684pd7d6ab0f9b64e6cb@mail.gmail.com>
	<0A050DAD-DF9D-458F-BE7D-831D8C3528B2@intersystems.com>
	<4B8740A0.2070409@qsl.net>
	<50cb0cb61002260625m139ce81dpc36194c52fdaf7e@mail.gmail.com>
	<20100226163657.20114.qmail@stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On 2/26/2010 10:36 AM, Peter Stuge wrote:
 > Jose Baars wrote:
 >> A test if a socket is blocking or non blocking in libssh2 is stack
 >> specific I'm afraid.
 >
 > There are already various platform specific #ifdefs in
 > get_socket_nonblocking() so I think adding a few more for complete
 > support of TCP/IP options on VMS would not be a problem.

I would rather hide the sausage that goes into supporting multiple 
TCP/IP stacks on VMS from the common code as much as possible.

Dynamically loading on VMS is best done with native OS calls, not dlload().

 >>> The main issue that would likely to show up for libssh2 is that
 >>> VMS has a limit on how much it can read/write to a socket in one
 >>> operation.
 >
 > What is returned by send() or recv() when the limit is reached?
 >
 > libssh2 should not have a problem with send() or recv() returning
 > short, meaning that not all of the desired bytes were accepted by the
 > operating system.

The routines return the number of bytes transferred.  As I recall the 
limit is 65535 bytes.

The other thing I just remembered is that writev() and readv() on VMS 
should be avoided.  It may be better to trick configure that they are 
not present.  They have worse performance than just using read() and 
write() multiple times.

 >> Question: should I do that against a current tarball or the latest
 >> stable release?

I mis-understood the original question as to doing the port, not 
submitting the patches.  Of course patches are best submitted against 
the current tarball.

 > Please try to send a git patch. If git doesn't work so well on VMS
 > then perhaps one option could be to take advantage of git running on
 > another system, in order to create the patch. Integration by libssh2
 > developers is greatly simplified by having a clean patch as produced
 > by git format-patch

That would be using NFS to share the file system.  This is described in 
the file unix_portability.pdf at ftp://encompasserve.org/gnv/

 > John E. Malmberg wrote:

 >> Linking against a specific TCP/IP stack should be avoided.
 >
 > I don't know the linker details on VMS, but if libraries are
 > equivalent for all stacks and as long as there's a way to #ifdef the
 > code that may be stack-specific then I don't think this should be
 > neccessary.

A large subset of the libraries for each stack are equivalent and the C 
runtime will dynamically load them to get this with out the programmer 
having to know this.  In the distant pass this was not the case, but 
some programmers never updated their scripts, and others have copied 
them, continuing a belief that there are differences in all cases.  In 
general when I update a port, one of the things that I do is remove that 
unneeded complexity.

Each of the TCP/IP stacks does have some unique features that the C 
library is not yet handling.  But eventually they may achieve parity.

 >> code to detect which TCP/IP stack is present and dynamically load
 >> the right routine, or attempt to let the program know that the
 >> feature is not present, if there is a way to work around it.
 >
 > Is the detection at compile time or must it be at run time?

Having the detection at run-time allows one binary to be distributed on 
VMS.  So only one package per CPU type instead of 3.

 >> Configure runs very slowly on VMS, so those redundant tests hurt.
 >
 > If autotools (which produces the configure script) is awkward on VMS
 > then I am all for adding "native" build files into libssh2 just like
 > we have for Windows.

There are chicken and egg issues with getting autotools to work on VMS. 
  I have most of the changes needed in the current shipping Perl, but 
need to put in some fixes to the port of Bash, and then Perl will need 
more changes.

Currently the work around is to have Linux NFS mount the VMS disk and 
have it do the repository fetch and then generate the configure script.

But autotools is not the issue.  The issue is simply that the tests 
generated in configure are not really testing what they should be for 
the most efficient code to be generated on a platform.

The best example is exit().  The GNV environment predefines a macro to 
have exit() encode UNIX style exit status codes into the VMS standard 
exit values.

That macro changes which link time symbol is used for exit() in the 
header files.

With out the header files, exit() assumes that it is being passed a VMS 
style exit code, except that it translates the 0 to the VMS status of 1.

So this means with out the hacks described on the Encompasserve.org 
forums, configure will never see a test exit a code of 0.

The only way for configure to not require hacks on VMS is for it to do 
the tests with the ANSI or X/OPEN headers first before probing for the 
behavior with out headers.  With out those header files, the routines 
may have no UNIX/POSIX compatibility or have bugs in that compatibility 
that existing programs depend on.

And I would not be surprised to find some *NIX systems out there with 
the same issues where configure incorrectly diagnoses that a routine is 
broken, where if it had used the header files, it would have obtained 
the correct answer.

-John
wb8tyw@qsl.network
Personal Opinion Only
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Sat Feb 27 05:08:46 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1R48V1F013756;
	Sat, 27 Feb 2010 05:08:42 +0100
Received: from mailgw10.se.ericsson.net (mailgw10.se.ericsson.net
	[193.180.251.61])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1R48ULB013752
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Sat, 27 Feb 2010 05:08:31 +0100
X-AuditID: c1b4fb3d-b7c72ae00000040e-78-4b889abe5d15
Received: from esessmw0237.eemea.ericsson.se (Unknown_Domain [153.88.253.125])
	by mailgw10.se.ericsson.net (Symantec Brightmail Gateway) with SMTP
	id EC.D1.01038.EBA988B4; Sat, 27 Feb 2010 05:08:31 +0100 (CET)
Received: from esessmw0191.eemea.ericsson.se (153.88.115.84) by
	esessmw0237.eemea.ericsson.se (153.88.115.90) with Microsoft SMTP
	Server (TLS) id 8.1.375.2; Sat, 27 Feb 2010 05:08:30 +0100
Received: from esgscmw0009.eapac.ericsson.se (146.11.115.34) by
	esessmw0191.eemea.ericsson.se (153.88.115.84) with Microsoft SMTP
	Server (TLS) id 8.1.375.2; Sat, 27 Feb 2010 05:08:30 +0100
Received: from ESGSCCMS0001.eapac.ericsson.se ([146.11.115.27]) by
	esgscmw0009.eapac.ericsson.se ([146.11.115.34]) with mapi;
	Sat, 27 Feb 2010 12:08:15 +0800
From: Michael Harris <michael.harris@ericsson.com>
To: "libssh2-devel@cool.haxx.se" <libssh2-devel@cool.haxx.se>
Date: Sat, 27 Feb 2010 12:08:14 +0800
Subject: libssh2_sftp_write with count=32768
Thread-Topic: libssh2_sftp_write with count=32768
Thread-Index: Acq3YnvPdVc3j5FNSfqaSKvlZzmUqg==
Message-ID: <B0F87A6BC671B249AD1C6F7DF8ACA86C28B5372F8D@ESGSCCMS0001.eapac.ericsson.se>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
MIME-Version: 1.0
X-Brightmail-Tracker: AAAAAA==
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi,

I discovered what I think might be a bug in sftp.c; I thought I would canvas it here before putting it into the bug tracker to make sure it is not just a misunderstanding on my part.

The API for libssh2_sftp_write says that if the return value is positive, it is the number of bytes actually written. If I feed it a write of exactly 32768 bytes it returns 32768 - but the data is not actually written (which you can see by calling libssh2_sftp_tell afterwards - you always get back 0).

I think the problem is in the following part of sftp.c (lines 1462 .. 1475):

1462     if (sftp->write_state == libssh2_NB_state_created) {
1463         rc = _libssh2_channel_write(channel, 0, (char *)sftp->write_packet,
1464                                     packet_len);
1465         if(rc < 0) {
1466             /* error */
1467             return rc;
1468         }
1469         else if(0 == rc) {
1470             /* nothing sent is an error */
1471             return LIBSSH2_ERROR_SOCKET_SEND;
1472         }
1473         else if (packet_len != rc) {
1474             return rc;
1475         }

My packet_len is 32768+handle_len(4)+25 = 32797, and _libssh2_channel_write can only write 32768 bytes at a time, so rc is 32768 (the actual amount of the packet written so far). Line 1474 returns the amount of the packet written so far - and the calling application things it has managed to write it's whole buffer, but in fact the returned value represents the amount of the packet sent so far - this is the bug I think.

But anyway, until the whole packet is sent, we probably can't conclude that any of the file is written anyway? By my reading of the sftp spec, I can't see that there is any scope for the result of an sftp write to be anything less than the full amount requested. It is not until you have received back SSH_FXP_STATUS that you know of the write worked at all.

So maybe line 1474 should return EAGAIN instead? That way if in blocking mode it sftp_write will be repeatedly called, and if not then the calling application can handle calling again when it wants to.

Unless of course I misunderstood the way the API should be used!

BR // Mike

MICHAEL HARRIS 

Ericsson Australia Pty Ltd
www.ericsson.com 

This Communication is Confidential. We only send and receive email on the basis of the terms set out at www.ericsson.com/email_disclaimer 

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Sat Feb 27 14:31:56 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1RDVgJS010631;
	Sat, 27 Feb 2010 14:31:52 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o1RDVfUE010626
	for <libssh2-devel@cool.haxx.se>; Sat, 27 Feb 2010 14:31:41 +0100
Received: (qmail 31375 invoked by uid 501); 27 Feb 2010 13:31:41 -0000
Message-ID: <20100227133141.31374.qmail@stuge.se>
Date: Sat, 27 Feb 2010 14:31:41 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2_sftp_write with count=32768
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <B0F87A6BC671B249AD1C6F7DF8ACA86C28B5372F8D@ESGSCCMS0001.eapac.ericsson.se>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <B0F87A6BC671B249AD1C6F7DF8ACA86C28B5372F8D@ESGSCCMS0001.eapac.ericsson.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

SGkgTWljaGFlbCwKCk1pY2hhZWwgSGFycmlzIHdyb3RlOgo+IEkgZGlzY292ZXJlZCB3aGF0IEkg
dGhpbmsgbWlnaHQgYmUgYSBidWcgaW4gc2Z0cC5jOwoKVW5mb3J0dW5hdGVseSBpdCdzIGEgcHJv
YmxlbSBpbiBsaWJzc2gyIGRlc2lnbiBhbmQgaW1wbGVtZW50YXRpb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gc2VjdXJpdHkgb2ZmaWNlciB3aXRoIHRoZQppbXBvcnRh
bmNlIG9mIGNvcnJlY3RseSBjbGFzc2lmeWluZyBjb25maWRlbnRpYWwgYW5kIHB1YmxpYwpjb21t
dW5pY2F0aW9uIHdpdGhpbiBlbWFpbC4gSSB3b3VsZCBzdWdnZXN0IGF1dG9tYXRpYyBlbmNyeXB0
aW9uIGZvcgpjb25maWRlbnRpYWwgY29tbXVuaWNhdGlvbiAtIGEgcG9saWN5IEkgaGF2ZSBzZWVu
IGluIG90aGVyIGNvbXBhbmllcwotIHJhdGhlciB0aGFuIHJlbHlpbmcgb24gdGhpcmQgcGFydHkg
YWRoZXJlbmNlIHRvIHNvbWUgZGlzY2xhaW1lci4KCgpLaW5kIHJlZ2FyZHMgZnJvbSBNYWxtw7Yg
U3dlZGVuLCBhIHN0b25lJ3MgdGhyb3cgZnJvbSBMdW5kIDopCgovL1BldGVyCl9fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCmxpYnNzaDItZGV2ZWwgaHR0cDov
L2Nvb2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbGlic3NoMi1kZXZlbAo=

From libssh2-devel-bounces@cool.haxx.se  Sun Feb 28 19:40:38 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1SIeJTP018810;
	Sun, 28 Feb 2010 19:40:32 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1SIeHwN018758
	for <libssh2-devel@cool.haxx.se>; Sun, 28 Feb 2010 19:40:17 +0100
Date: Sun, 28 Feb 2010 19:40:17 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2_sftp_write with count=32768
In-Reply-To: <20100227133141.31374.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1002281923150.6417@tvnag.unkk.fr>
References: <B0F87A6BC671B249AD1C6F7DF8ACA86C28B5372F8D@ESGSCCMS0001.eapac.ericsson.se>
	<20100227133141.31374.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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Sat, 27 Feb 2010, Peter Stuge wrote:

>> The API for libssh2_sftp_write says that if the return value is
>> positive, it is the number of bytes actually written.
>
> Your understanding of the API is correct, but the implementation is only 
> correct if you try to write less than 32768 - n bytes at a time, where n is 
> the bytes needed by libssh2 internally to create the actual packets that 
> will be sent to the kernel.

What's making that restriction? I'm quite sure I've done larger chunks than so 
in the past. (Which made me introduce the count > (MAX_SSH_PACKET_LEN*4)) 
logic...)

> This is indeed a serious bug, and there doesn't seem to be a simple
> fix for it.

Sorry, can you elaborate on what this problem is in the code? Why would 
libssh2 have any problem with large buffer sizes (or small) that's very hard 
to fix?

> The current recommendation for a workaround is to never give libssh2 more 
> than 32500 bytes to send out, through any function. Then the implementation 
> should not exhibit any problem.

Right, but the fix is rather lame since we could easily just internally use 
the maximum limit we support and thus not expose the inability.

>> I think the problem is in the following part of sftp.c
> ..
>> My packet_len is 32768+handle_len(4)+25 = 32797, and
>> _libssh2_channel_write can only write 32768 bytes at a time,
>
> The transport layer (ie. _libssh2_channel_write) also suffers from
> the deficiency outlined above.

_libssh2_channel_write does not NEED to ever send anything more than 32768 
bytes at a time, so I disagree with this conclusion.

If that limitation causes a problem, the problem is in the surrounding code 
and not in the _libssh2_channel_write() function itself.

A different approach could possibly be to allow _libssh2_channel_write() to 
make multiple outgoing SSH transport packets when > 32768 bytes are passed to 
it and send them. Hm, that might in fact be a more attractive way to proceed.

>> so rc is 32768 (the actual amount of the packet written so far).
>
> This isn't true unfortunately. The logic in _libssh2_channel_write simply 
> fails when more data is coming in from the application than there is room 
> for in buffers within the function. The fact that _write() doesn't have the 
> same type of API as system write() (return number of bytes consumed) further 
> complicates this for the implementation.

In what way doesn't it have that API? write() returns the number of payload 
data it sent, it does not tell anything about how much protocol metadata it 
dealt with. IMHO, that's what _libssh2_channel_write() does too. Doesn't it?

> There is a disconnect in API and in implementation between number of bytes 
> submitted by application, and number of bytes sent to operating system on 
> the socket.

But no ordinary application will have any idea how many bytes a message of N 
bytes will end up being sent to the socket, so I don't see how the number of 
bytes on the socket level is what an app wants to know.

> One idea to resolve this situation is described in 
> http://libssh2.stuge.se/ticket/161

Right, but that's a rather drastic rewrite of large parts of the library so 
it's not a small nor quick job.

> I also want to fix the current implementation so that the library actually 
> works correctly regardless of implementation details.

Me too. I'm convinced there's no major flaws in the way the API is designed 
that prevents it from working fine for SCP and SFTP transfers. I've played too 
little with other aspects of the SSH stuff to tell for sure about those. I'm 
aware we lack some SFTP stuff to make "perfect" SFTP transfers and I'll 
present a suggestion on how to improve that sometime in the future.

> I believe that passing 32768 bytes into libssh2 will derail the SSH protocol 
> communication and in effect make the library lock up at some point. (In 
> non-blocking mode it would just return EAGAIN ad infitium.)

I don't understand why it would end up in that situation. Can you elaborate?

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Sun Feb 28 19:44:21 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1SIiHYs024314;
	Sun, 28 Feb 2010 19:44:18 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o1SIiFxA024254
	for <libssh2-devel@cool.haxx.se>; Sun, 28 Feb 2010 19:44:15 +0100
Date: Sun, 28 Feb 2010 19:44:15 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2_sftp_write with count=32768
In-Reply-To: <alpine.DEB.2.00.1002281923150.6417@tvnag.unkk.fr>
Message-ID: <alpine.DEB.2.00.1002281942240.6417@tvnag.unkk.fr>
References: <B0F87A6BC671B249AD1C6F7DF8ACA86C28B5372F8D@ESGSCCMS0001.eapac.ericsson.se>
	<20100227133141.31374.qmail@stuge.se>
	<alpine.DEB.2.00.1002281923150.6417@tvnag.unkk.fr>
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.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Sun, 28 Feb 2010, Daniel Stenberg wrote:

> _libssh2_channel_write does not NEED to ever send anything more than 32768 
> bytes at a time, so I disagree with this conclusion.

Ugha, me is confused. I thought about _libssh2_transport_write() in that 
sentense...

-- 

  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

