From libssh2-devel-bounces@cool.haxx.se  Sun May  2 17:32: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 o42FVxI8005540;
	Sun, 2 May 2010 17:32:10 +0200
Received: from dottedmag.net (burger.dottedmag.net [212.75.37.82])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o42FVvOX005535
	for <libssh2-devel@cool.haxx.se>; Sun, 2 May 2010 17:31:57 +0200
Received: from leibnitz.dottedmag.net (unknown [94.251.81.125])
	by dottedmag.net (Postfix) with ESMTPSA id CB73E8C072
	for <libssh2-devel@cool.haxx.se>; Sun,  2 May 2010 17:32:01 +0200 (CEST)
Received: from dottedmag by leibnitz.dottedmag.net with local (Exim 4.71)
	(envelope-from <dottedmag@leibnitz.dottedmag.net>)
	id 1O8b9C-0004Ke-SI
	for libssh2-devel@cool.haxx.se; Sun, 02 May 2010 22:31:58 +0700
From: Mikhail Gusarov <dottedmag@dottedmag.net>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Adopt python bindings?
References: <20100429152802.16186.qmail@stuge.se>
Date: Sun, 02 May 2010 22:31:58 +0700
In-Reply-To: <20100429152802.16186.qmail@stuge.se> (Peter Stuge's message of
	"Thu, 29 Apr 2010 17:28:02 +0200")
Message-ID: <878w82gw0h.fsf@leibnitz.dottedmag.net>
User-Agent: Gnus/5.13 (Gnus v5.13) 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: multipart/mixed; boundary="===============0015637843=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0015637843==
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha1; protocol="application/pgp-signature"

--=-=-=
Content-Transfer-Encoding: quoted-printable


Twas brillig at 17:28:02 29.04.2010 UTC+02 when peter@stuge.se did gyre and=
 gimble:

 PS> Unfortunately Trac doesn't handle multiple repos, but maybe that's
 PS> not a big deal for now, and I'm also looking into the mtrack
 PS> project which may be a relevant replacement for Trac.  (Completely
 PS> inspired by Trac, but multirepo from the start.)

Multirepo is added to Trac 0.12, slated to be released at the end of
May.

=2D-=20
  http://fossarchy.blogspot.com/

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJL3ZruAAoJEJ0g9lA+M4iIgbIQAIlxZSUa3K+YvqpA38vuQYby
N2QhqZWFK3zasTA/RCIRYDfZmTJKIP+jRcXAmtfOX1m1g50nQ4LArauMs3VpGg1J
cdfoEIawUPyPPW7jHHBFiziWpsM3vR8Zd9v4rtW2Q2MJJpPAhstQiHTbPQwXLZYg
OSPbtVF4p8WtXm9c7mgDzADd67g+ZR0kwK5v2ds4CXMNN4wxAj9czq2eJd/Y7zf2
rBXZk7ZdNKDTKTPl9aZpU48Ymmz2YCoXbLSZF3pgU2kUY2tUnbdjKEhHabmhPAdE
/tEaPuHvdzQDrczEE7dsaWPzMdZoWJ2s2gSIPvHcIlsFHpBuNVkEGTYRCK68FTnu
ftafv9It7GQ5ZAQa2xQgJBeLKTtEdjSFtZn6ZkRHNIJ5oDIvNS1qJNGvwFykQLPl
Y77M3gfFAe2Duzntb0qDdGkbSrs7gFX8ThAAh//f1PK/cHEiqplR7YEEz75WOY1+
Jd4odm0iGmyUd+7drdWP2sylUZaJbYWVl7FBDaYj/7Es+XeHZb0mATj9G4rm5TSs
AG2LAcwLZWzL91/tVbM83B/lt/lH1waxfQJ9LgP+lPloIF4P1uTZoFF3eSVZXqQ0
1fuPnOIFg5mpAgWBGxS43+UaMX/8GR8DVP9dKxUuhxBns0qwdpYSJ5/mE89Tbye6
3nLsTniNNYzX+YYLPaoR
=mNiz
-----END PGP SIGNATURE-----
--=-=-=--

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

--===============0015637843==--

From libssh2-devel-bounces@cool.haxx.se  Mon May  3 08:30: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 o436UXlb021682;
	Mon, 3 May 2010 08:30:43 +0200
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 o436UUCw021662
	for <libssh2-devel@cool.haxx.se>; Mon, 3 May 2010 08:30:31 +0200
Received: by mo.mxl.2iij.net (mxl-mo503) id o436UTnl004734;
	Mon, 3 May 2010 15:30:29 +0900
Received: from unknown [192.26.96.21] (EHLO mx21.fujixerox.co.jp)
	by mas500a.mxl.2iij.net (mxl_mta-5.7.1-5) with ESMTP id
	58d6edb4.3604786064.69917.00-007.54556.mas500a.mxl.2iij.net
	(envelope-from <qiang.xu@fujixerox.com>); 
	Mon, 03 May 2010 15:30:29 +0900 (JST)
Received: from isvw21.fujixerox.co.jp ([129.249.27.141])
	by mx21.fujixerox.co.jp  with ESMTP id o436UTgW004812
	for <libssh2-devel@cool.haxx.se>; Mon, 3 May 2010 15:30:29 +0900 (JST)
Received: from ms21.fujixerox.co.jp (localhost [127.0.0.1])
	by isvw21.fujixerox.co.jp  with ESMTP id o436UTu1018471
	for <libssh2-devel@cool.haxx.se>; Mon, 3 May 2010 15:30:29 +0900 (JST)
Received: from mailgw2.fujixerox.com ([13.198.8.181])
	by ms21.fujixerox.co.jp  with ESMTP id o436US9x013460
	for <libssh2-devel@cool.haxx.se>; Mon, 3 May 2010 15:30:28 +0900 (JST)
X-IronPort-AV: E=Sophos;i="4.52,317,1270396800"; d="scan'208";a="84562461"
Received: from sgpaphq-exhub02.dc01.fujixerox.net ([13.198.8.236])
	by mailgw2.fujixerox.com with ESMTP; 03 May 2010 14:30:28 +0800
Received: from SGPAPHQ-EXSCC01.dc01.fujixerox.net ([13.198.8.229]) by
	sgpaphq-exhub02.dc01.fujixerox.net ([13.198.8.236]) with mapi;
	Mon, 3 May 2010 14:30:27 +0800
From: "Xu, Qiang (FXSGSC)" <Qiang.Xu@fujixerox.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Date: Mon, 3 May 2010 14:30:27 +0800
Subject: Reflection for Secure IT Server
Thread-Topic: Reflection for Secure IT Server
Thread-Index: AcqxP47E7Q5juJ6QTou2i0nnMX+9mAABv9NgDlDD4EA=
Message-ID: <D8C9BC7FFCF8154FB7141EB8DB609C172F135743AB@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>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F1044BB2F@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
In-Reply-To: <D8C9BC7FFCF8154FB7141EB8DB609C172F1044BB2F@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.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>
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 am hit with a problem of transfer to Reflection for Secure IT Server, which provides SFTP service (http://www.attachmate.com/Products/mft/Security/rist-winserver/tech-specs-win-server.htm).

This server allows users (same as Windows login accounts) to connect and transfer files, as is evidenced by FileZilla.

Yet, I can't connect to it with sftp command:
===============================================================
/* success with local sftp server, provided by OpenSSH */
qxu@durian(pts/1):~/opensrc/libssh2-1.2.4/example[124]$ ./sftp_write 13.198.98.xxx <user> <pass> test.pdf /home/qxu/scan/test.pdf
Fingerprint: 35 F5 9E 0A 8F 83 5F 9B 57 BC 07 3A 1B 38 7D C7 AF DD 94 67 
libssh2_sftp_init()!
libssh2_sftp_open()!
libssh2_sftp_open() is done, now send data!
all done

/* login error with remote sftp server, provided by Reflection for Secure IT Server */ 
qxu@durian(pts/1):~/opensrc/libssh2-1.2.4/example[125]$ ./sftp_write 13.121.8.xxx <user> <pass> test.pdf /Home/Scans/test.pdf
Fingerprint: 7B 98 19 12 F3 A2 14 93 3F 72 85 3C 43 DA 19 EF 7F 9A 3A 6B 
Authentication by password failed.
all done
===============================================================
Is there anyone in the list who has done any testing against Reflection for Secure IT Server? 

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

From libssh2-devel-bounces@cool.haxx.se  Mon May  3 08:48: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 o436m5QM002064;
	Mon, 3 May 2010 08:48:09 +0200
Received: from mo.mxl.2iij.net (mo500.mxl.2iij.net [210.149.48.18])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o436m2xO002037
	for <libssh2-devel@cool.haxx.se>; Mon, 3 May 2010 08:48:04 +0200
Received: by mo.mxl.2iij.net (mxl-mo500) id o436m3ca030172;
	Mon, 3 May 2010 15:48:03 +0900
Received: from unknown [192.26.96.20] (EHLO mx20.fujixerox.co.jp)
	by mas509a.mxl.2iij.net (mxl_mta-5.7.1-5) with ESMTP id
	3a17edb4.3751406480.218142.00-028.170879.mas509a.mxl.2iij.net
	(envelope-from <qiang.xu@fujixerox.com>); 
	Mon, 03 May 2010 15:48:03 +0900 (JST)
Received: from isvw20.fujixerox.co.jp ([129.249.27.140])
	by mx20.fujixerox.co.jp  with ESMTP id o436m2hB007839
	for <libssh2-devel@cool.haxx.se>; Mon, 3 May 2010 15:48:02 +0900 (JST)
Received: from ms20.fujixerox.co.jp (localhost [127.0.0.1])
	by isvw20.fujixerox.co.jp  with ESMTP id o436m20l029456
	for <libssh2-devel@cool.haxx.se>; Mon, 3 May 2010 15:48:02 +0900 (JST)
Received: from mailgw1.fujixerox.com ([13.198.8.180])
	by ms20.fujixerox.co.jp  with ESMTP id o436m1a9021044
	for <libssh2-devel@cool.haxx.se>; Mon, 3 May 2010 15:48:02 +0900 (JST)
X-IronPort-AV: E=Sophos;i="4.52,317,1270396800"; d="scan'208";a="124191390"
Received: from sgpaphq-exhub02.dc01.fujixerox.net ([13.198.8.236])
	by mailgw1.fujixerox.com with ESMTP; 03 May 2010 14:47:48 +0800
Received: from SGPAPHQ-EXSCC01.dc01.fujixerox.net ([13.198.8.229]) by
	sgpaphq-exhub02.dc01.fujixerox.net ([13.198.8.236]) with mapi;
	Mon, 3 May 2010 14:47:48 +0800
From: "Xu, Qiang (FXSGSC)" <Qiang.Xu@fujixerox.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Date: Mon, 3 May 2010 14:47:47 +0800
Subject: RE: Reflection for Secure IT Server
Thread-Topic: Reflection for Secure IT Server
Thread-Index: AcqxP47E7Q5juJ6QTou2i0nnMX+9mAABv9NgDlDD4EAAANen8A==
Message-ID: <D8C9BC7FFCF8154FB7141EB8DB609C172F135743E2@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>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F1044BB2F@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135743AB@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
In-Reply-To: <D8C9BC7FFCF8154FB7141EB8DB609C172F135743AB@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

> -----Original Message-----
> From: libssh2-devel-bounces@cool.haxx.se 
> [mailto:libssh2-devel-bounces@cool.haxx.se] On Behalf Of Xu, 
> Qiang (FXSGSC)
> Sent: Monday, May 03, 2010 2:30 PM
> To: libssh2 development
> Subject: Reflection for Secure IT Server
> 
> Recently, I am hit with a problem of transfer to Reflection 
> for Secure IT Server, which provides SFTP service 
> (http://www.attachmate.com/Products/mft/Security/rist-winserve
> r/tech-specs-win-server.htm).
> 
> This server allows users (same as Windows login accounts) to 
> connect and transfer files, as is evidenced by FileZilla.
> 
> Yet, I can't connect to it with sftp command:

Just found out that the problem is caused by a server setting "Password authentication using keyboard interactive". After it is disabled, sftp command can connect without any problem.

Sorry for wasting your time,
Xu Qiang
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon May  3 10:53: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 o438rd64014910;
	Mon, 3 May 2010 10:53:49 +0200
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 o438rZXI014905
	for <libssh2-devel@cool.haxx.se>; Mon, 3 May 2010 10:53:37 +0200
Received: by mo.mxl.2iij.net (mxl-mo503) id o438ra2i005017;
	Mon, 3 May 2010 17:53:37 +0900
Received: from unknown [192.26.96.20] (EHLO mx20.fujixerox.co.jp)
	by mas500a.mxl.2iij.net (mxl_mta-5.7.1-5) with ESMTP id
	11f8edb4.3804093328.129275.00-024.101768.mas500a.mxl.2iij.net
	(envelope-from <qiang.xu@fujixerox.com>); 
	Mon, 03 May 2010 17:53:37 +0900 (JST)
Received: from isvw20.fujixerox.co.jp ([129.249.27.140])
	by mx20.fujixerox.co.jp  with ESMTP id o438ra27020826
	for <libssh2-devel@cool.haxx.se>; Mon, 3 May 2010 17:53:36 +0900 (JST)
Received: from ms20.fujixerox.co.jp (localhost [127.0.0.1])
	by isvw20.fujixerox.co.jp  with ESMTP id o438raAJ002877
	for <libssh2-devel@cool.haxx.se>; Mon, 3 May 2010 17:53:36 +0900 (JST)
Received: from mailgw2.fujixerox.com ([13.198.8.181])
	by ms20.fujixerox.co.jp  with ESMTP id o438rZga011743
	for <libssh2-devel@cool.haxx.se>; Mon, 3 May 2010 17:53:36 +0900 (JST)
X-IronPort-AV: E=Sophos;i="4.52,318,1270396800"; d="scan'208";a="84569066"
Received: from sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235])
	by mailgw2.fujixerox.com with ESMTP; 03 May 2010 16:53:34 +0800
Received: from SGPAPHQ-EXSCC01.dc01.fujixerox.net ([13.198.8.229]) by
	sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235]) with mapi;
	Mon, 3 May 2010 16:53:35 +0800
From: "Xu, Qiang (FXSGSC)" <Qiang.Xu@fujixerox.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Date: Mon, 3 May 2010 16:53:33 +0800
Subject: RE: Reflection for Secure IT Server
Thread-Topic: Reflection for Secure IT Server
Thread-Index: AcqxP47E7Q5juJ6QTou2i0nnMX+9mAABv9NgDlDD4EAAANen8AAEKHPw
Message-ID: <D8C9BC7FFCF8154FB7141EB8DB609C172F13574699@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>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F1044BB2F@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135743AB@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135743E2@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
In-Reply-To: <D8C9BC7FFCF8154FB7141EB8DB609C172F135743E2@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

Still some problems with Reflection servers.

libssh2 itself seems innocent:
=============================================
qxu@durian(pts/3):~/opensrc/libssh2-1.2.4/example[236]$ ./sftp_write 13.xxx.xxx.xxx <user> <pass> test.pdf /Home/Scans/test.pdf
Fingerprint: 7B 98 19 12 F3 A2 14 93 3F 72 85 3C 43 DA 19 EF 7F 9A 3A 6B
libssh2_sftp_init()!
libssh2_sftp_open()!
libssh2_sftp_open() is done, now send data!
all done
=============================================
The file in the remote server is identical to the local one. 

However, libcurl doesn't work with the server:
=============================================
/* sample source code */
#include <stdio.h>
#include <sys/stat.h>
#include <curl/curl.h>

int main(int argc, char *argv[])
{
  CURLcode ret;
  CURL *hnd = curl_easy_init();
  char *localName = "./testSmall.pdf";
  FILE *localFile = NULL;
  struct stat localFileInfo = {0};

  curl_easy_setopt(hnd, CURLOPT_URL, "sftp://13.121.8.133/Home/Scans/testSmall.pdf");
  curl_easy_setopt(hnd, CURLOPT_USERPWD, "user:pass");
  curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1);
  curl_easy_setopt(hnd, CURLOPT_UPLOAD, 1);

  if ((localFile = fopen(localName, "r")) != NULL &&
      stat(localName, &localFileInfo) == 0)
  {
      curl_easy_setopt(hnd, CURLOPT_READDATA, localFile);
      curl_easy_setopt(hnd, CURLOPT_INFILESIZE_LARGE, (curl_off_t)localFileInfo.st_size);
      printf("local file size is [%d] bytes\n", (long)localFileInfo.st_size);
  }
  else
  {
      printf("either cannot open local file [%s] or cannot get its size", localName);
      return 1;
  }

  ret = curl_easy_perform(hnd);

  curl_easy_cleanup(hnd);
  return (int)ret;
}

/* result */
xu@durian(pts/1):~/opensrc/curl-7.19.6/example[151]$ ./sftp_reflection
local file size is [523340] bytes
* About to connect() to 13.121.8.133 port 22 (#0)
*   Trying 13.121.8.133... * connected
* Connected to 13.121.8.133 (13.121.8.133) port 22 (#0)
* SSH authentication methods available: password
* Initialized password authentication
* Authentication complete
=============================================
You can see it hangs there and never finishes after authentication is passed. The file size transferred to the remote server is only 16KB, while the local one is 523,340 bytes. Even VERBOSE flag is set, I still can't get more output info.

I wanted to use the command-line to do a double check, but it got worse:
=============================================
qxu@durian(pts/1):~/opensrc/curl-7.19.6/src[154]$ ./curl -v -u <user>:<pass> -T testSmall.pdf sftp://13.121.8.133/Home/Scans/testSmall.pdf
* About to connect() to 13.121.8.133 port 22 (#0)
*   Trying 13.121.8.133... connected
* Connected to 13.121.8.133 (13.121.8.133) port 22 (#0)
* Failed to read known hosts from /home/qxu/.ssh/known_hosts
* SSH host check: 2, key: <none>
* Closing connection #0
* SSL peer certificate or SSH remote key was not OK

curl: (51) SSL peer certificate or SSH remote key was not OK
=============================================
It just does not go on to do password authentication after failing to read the file "known_hosts".

Any help?

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

From libssh2-devel-bounces@cool.haxx.se  Mon May  3 10:59: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 o438xMQ0016971;
	Mon, 3 May 2010 10:59:24 +0200
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 o438xKJi016962
	for <libssh2-devel@cool.haxx.se>; Mon, 3 May 2010 10:59:20 +0200
Date: Mon, 3 May 2010 10:59:20 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: RE: Reflection for Secure IT Server
In-Reply-To: <D8C9BC7FFCF8154FB7141EB8DB609C172F13574699@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
Message-ID: <alpine.DEB.2.00.1005031057040.28570@tvnag.unkk.fr>
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>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F1044BB2F@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135743AB@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135743E2@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F13574699@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 Mon, 3 May 2010, Xu, Qiang (FXSGSC) wrote:

> However, libcurl doesn't work with the server:

Since this clearly isn't a libssh2 problem:

1. This is not the suitable list for discussing libcurl or its problems. Take 
that to the curl-library list.

2. There have been fixes in libcurl in how it uses libssh2 rather recently so 
I would recommend you first try the latest libcurl git version before you 
proceed.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Mon May  3 15:39: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 o43DcheU002764;
	Mon, 3 May 2010 15:39:53 +0200
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 o43DcgS5002757
	for <libssh2-devel@cool.haxx.se>; Mon, 3 May 2010 15:38:42 +0200
Received: (qmail 7103 invoked by uid 501); 3 May 2010 13:38:46 -0000
Message-ID: <20100503133846.7102.qmail@stuge.se>
Date: Mon, 3 May 2010 15:38:46 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Reflection for Secure IT Server
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>
	<20100219084219.3849.qmail@stuge.se>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F1044BB2F@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135743AB@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135743E2@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="TiqCXmo5T1hvSQQg"
Content-Disposition: inline
In-Reply-To: <D8C9BC7FFCF8154FB7141EB8DB609C172F135743E2@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>
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


--TiqCXmo5T1hvSQQg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hello Qiang,

Xu, Qiang (FXSGSC) wrote:
> > Recently, I am hit with a problem of transfer to Reflection 
> > for Secure IT Server, which provides SFTP service 
..
> > Yet, I can't connect to it with sftp command:
> 
> Just found out that the problem is caused by a server setting
> "Password authentication using keyboard interactive". After it
> is disabled, sftp command can connect without any problem.

The keyboard-interactive authentication method is used also on other
systems. It is supported by libssh2 but it must also be supported
explicitly by the application.

The full description of keyboard-interactive is in RFC 4256. I very
much recommend reading that, it is short at only 12 pages.

kbd-int is a generic method for dialog between the SSH/SFTP server
and the user. There is no standard for what this dialog contains -
it is a completely generic way for the server to send a question to
the user, and to receive a response back from the user.

Sometimes this method is unfortunately used to ask for a password.
That is the standard setting for both FreeBSD and Mac OS X. :(

This creates a problem for libssh2 because it can not reliably detect
that the server is asking for the user's password. The question from
the server can be localized to the user's prefered language, and it
can use any words, such as "Enter secret" that the user will
understand, but which is impossible to completely understand in
libssh2.

This means that the libssh2 application must allow the user to
participate in the kbd-int communication, in order to successfully
authenticate to the server. Depending on the application it can be
difficult. :\

The libssh2 example sftp.c demonstrates how libssh2 calls back into
the application in order to perform keyboard-interactive
authentication, but please note that the example kbd_callback()
implementation is very bad and must not be used in an end product!

In order to further investigate kbd-int please apply the attached
patch to sftp.c (or use very latest git) and then test the sftp.c
example with the same server to see more details.


//Peter

--TiqCXmo5T1hvSQQg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="0001-Do-proper-keyboard-interactive-user-dialog-in-the-sf.patch"

From 79b97c67c7b3290db95e6c7d02ddd5bcaa9a273a Mon Sep 17 00:00:00 2001
From: Peter Stuge <peter@stuge.se>
Date: Mon, 3 May 2010 15:36:16 +0200
Subject: [PATCH] Do proper keyboard-interactive user dialog in the sftp.c example

---
 example/sftp.c |   48 ++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 38 insertions(+), 10 deletions(-)

diff --git a/example/sftp.c b/example/sftp.c
index 7750d2f..ef8ede3 100644
--- a/example/sftp.c
+++ b/example/sftp.c
@@ -52,17 +52,45 @@ static void kbd_callback(const char *name, int name_len,
              LIBSSH2_USERAUTH_KBDINT_RESPONSE *responses,
              void **abstract)
 {
-    (void)name;
-    (void)name_len;
-    (void)instruction;
-    (void)instruction_len;
-    if (num_prompts == 1) {
-        responses[0].text = strdup(password);
-        responses[0].length = strlen(password);
-    }
-    (void)prompts;
     (void)abstract;
-} /* kbd_callback */
+    int i;
+    size_t n;
+    char buf[1024];
+
+    printf("Performing keyboard-interactive authentication.\n");
+
+    printf("Authentication name: '");
+    fwrite(name, 1, name_len, stdout);
+    printf("'\n");
+
+    printf("Authentication instruction: '");
+    fwrite(instruction, 1, instruction_len, stdout);
+    printf("'\n");
+
+    printf("Number of prompts: %d\n\n", num_prompts);
+
+    for (i = 0; i < num_prompts; i++) {
+        printf("Prompt %d from server: '", i);
+        fwrite(prompts[i].text, 1, prompts[i].length, stdout);
+        printf("'\n");
+
+        printf("Please type response: ");
+        fgets(buf, sizeof(buf), stdin);
+        n = strlen(buf);
+        while (n > 0 && strchr("\r\n", buf[n - 1]))
+          n--;
+        buf[n] = 0;
+
+        responses[i].text = strdup(buf);
+        responses[i].length = n;
+
+        printf("Response %d from user is '", i);
+        fwrite(responses[i].text, 1, responses[i].length, stdout);
+        printf("'\n\n");
+    }
+
+    printf("Done. Sending keyboard-interactive responses to server now.\n");
+}
 
 
 int main(int argc, char *argv[])
-- 
1.6.3.3


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

--TiqCXmo5T1hvSQQg--

From libssh2-devel-bounces@cool.haxx.se  Tue May  4 03:50: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 o441oPfi006677;
	Tue, 4 May 2010 03:50:37 +0200
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 o441oMtU006667
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 03:50:24 +0200
Received: by mo.mxl.2iij.net (mxl-mo503) id o441oTJC029634;
	Tue, 4 May 2010 10:50:29 +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
	56d7fdb4.3519974288.126344.00-006.106855.mas502a.mxl.2iij.net
	(envelope-from <qiang.xu@fujixerox.com>); 
	Tue, 04 May 2010 10:50:29 +0900 (JST)
Received: from isvw20.fujixerox.co.jp ([129.249.27.140])
	by mx20.fujixerox.co.jp  with ESMTP id o441oTKE018650
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 10:50:29 +0900 (JST)
Received: from ms20.fujixerox.co.jp (localhost [127.0.0.1])
	by isvw20.fujixerox.co.jp  with ESMTP id o441oSHj013406
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 10:50:28 +0900 (JST)
Received: from mailgw2.fujixerox.com ([13.198.8.181])
	by ms20.fujixerox.co.jp  with ESMTP id o441oSox006950
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 10:50:28 +0900 (JST)
X-IronPort-AV: E=Sophos;i="4.52,323,1270396800"; d="scan'208";a="84591730"
Received: from sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235])
	by mailgw2.fujixerox.com with ESMTP; 04 May 2010 09:50:27 +0800
Received: from SGPAPHQ-EXSCC01.dc01.fujixerox.net ([13.198.8.229]) by
	sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235]) with mapi;
	Tue, 4 May 2010 09:50:27 +0800
From: "Xu, Qiang (FXSGSC)" <Qiang.Xu@fujixerox.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Date: Tue, 4 May 2010 09:50:26 +0800
Subject: RE: Reflection for Secure IT Server
Thread-Topic: Reflection for Secure IT Server
Thread-Index: AcrqxkUc12nbUfxoQ76Ycw9j2THloAAZmWgg
Message-ID: <D8C9BC7FFCF8154FB7141EB8DB609C172F135E4F56@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>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F1044BB2F@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135743AB@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135743E2@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100503133846.7102.qmail@stuge.se>
In-Reply-To: <20100503133846.7102.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: Monday, May 03, 2010 9:39 PM
> To: libssh2-devel@cool.haxx.se
> Subject: Re: Reflection for Secure IT Server
> 
> Hello Qiang,
> 
> The keyboard-interactive authentication method is used also 
> on other systems. It is supported by libssh2 but it must also 
> be supported explicitly by the application.
> 
> The full description of keyboard-interactive is in RFC 4256. 
> I very much recommend reading that, it is short at only 12 pages.
> 
> kbd-int is a generic method for dialog between the SSH/SFTP 
> server and the user. There is no standard for what this 
> dialog contains - it is a completely generic way for the 
> server to send a question to the user, and to receive a 
> response back from the user.
> 
> Sometimes this method is unfortunately used to ask for a password.
> That is the standard setting for both FreeBSD and Mac OS X. :(
> 
> This creates a problem for libssh2 because it can not 
> reliably detect that the server is asking for the user's 
> password. The question from the server can be localized to 
> the user's prefered language, and it can use any words, such 
> as "Enter secret" that the user will understand, but which is 
> impossible to completely understand in libssh2.
> 
> This means that the libssh2 application must allow the user 
> to participate in the kbd-int communication, in order to 
> successfully authenticate to the server. Depending on the 
> application it can be difficult. :\
> 
> The libssh2 example sftp.c demonstrates how libssh2 calls 
> back into the application in order to perform 
> keyboard-interactive authentication, but please note that the 
> example kbd_callback() implementation is very bad and must 
> not be used in an end product!
> 
> In order to further investigate kbd-int please apply the 
> attached patch to sftp.c (or use very latest git) and then 
> test the sftp.c example with the same server to see more details.

Thanks, Peter!

Got to try the patch, but the source file rejected it:
============================================================
qxu@durian(pts/1):~/opensrc/libssh2-1.2.6-20100503/src[151]$ patch sftp.c < 0001-Do-proper-keyboard-interactive-user-dialog-in-the-sf.patch
(Stripping trailing CRs from patch.)
patching file sftp.c
Hunk #1 FAILED at 52.
1 out of 1 hunk FAILED -- saving rejects to file sftp.c.rej
============================================================
Is there anything wrong in my patching command?

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

From libssh2-devel-bounces@cool.haxx.se  Tue May  4 04:08: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 o4428hAk006648;
	Tue, 4 May 2010 04:08:47 +0200
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 o4428eUP006583
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 04:08:42 +0200
Received: by mo.mxl.2iij.net (mxl-mo503) id o4428e4P011412;
	Tue, 4 May 2010 11:08:40 +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
	8a18fdb4.3572423568.131977.00-020.111319.mas502a.mxl.2iij.net
	(envelope-from <qiang.xu@fujixerox.com>); 
	Tue, 04 May 2010 11:08:40 +0900 (JST)
Received: from isvw20.fujixerox.co.jp ([129.249.27.140])
	by mx20.fujixerox.co.jp  with ESMTP id o4428dWb022097
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 11:08:39 +0900 (JST)
Received: from ms20.fujixerox.co.jp (localhost [127.0.0.1])
	by isvw20.fujixerox.co.jp  with ESMTP id o4428dCh019813
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 11:08:39 +0900 (JST)
Received: from mailgw2.fujixerox.com ([13.198.8.181])
	by ms20.fujixerox.co.jp  with ESMTP id o4428cfI011799
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 11:08:39 +0900 (JST)
X-IronPort-AV: E=Sophos;i="4.52,323,1270396800"; d="scan'208";a="84593344"
Received: from sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235])
	by mailgw2.fujixerox.com with ESMTP; 04 May 2010 10:08:38 +0800
Received: from SGPAPHQ-EXSCC01.dc01.fujixerox.net ([13.198.8.229]) by
	sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235]) with mapi;
	Tue, 4 May 2010 10:08:38 +0800
From: "Xu, Qiang (FXSGSC)" <Qiang.Xu@fujixerox.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Date: Tue, 4 May 2010 10:08:37 +0800
Subject: RE: Reflection for Secure IT Server
Thread-Topic: Reflection for Secure IT Server
Thread-Index: AcrqxkUc12nbUfxoQ76Ycw9j2THloAAZ/16w
Message-ID: <D8C9BC7FFCF8154FB7141EB8DB609C172F135E4FE6@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>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F1044BB2F@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135743AB@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135743E2@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100503133846.7102.qmail@stuge.se>
In-Reply-To: <20100503133846.7102.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: Monday, May 03, 2010 9:39 PM
> To: libssh2-devel@cool.haxx.se
> Subject: Re: Reflection for Secure IT Server
> 
> Hello Qiang,
> 
> The keyboard-interactive authentication method is used also 
> on other systems. It is supported by libssh2 but it must also 
> be supported explicitly by the application.
> 
> The full description of keyboard-interactive is in RFC 4256. 
> I very much recommend reading that, it is short at only 12 pages.
> 
> kbd-int is a generic method for dialog between the SSH/SFTP 
> server and the user. There is no standard for what this 
> dialog contains - it is a completely generic way for the 
> server to send a question to the user, and to receive a 
> response back from the user.
> 
> Sometimes this method is unfortunately used to ask for a password.
> That is the standard setting for both FreeBSD and Mac OS X. :(
> 
> This creates a problem for libssh2 because it can not 
> reliably detect that the server is asking for the user's 
> password. The question from the server can be localized to 
> the user's prefered language, and it can use any words, such 
> as "Enter secret" that the user will understand, but which is 
> impossible to completely understand in libssh2.
> 
> This means that the libssh2 application must allow the user 
> to participate in the kbd-int communication, in order to 
> successfully authenticate to the server. Depending on the 
> application it can be difficult. :\
> 
> The libssh2 example sftp.c demonstrates how libssh2 calls 
> back into the application in order to perform 
> keyboard-interactive authentication, but please note that the 
> example kbd_callback() implementation is very bad and must 
> not be used in an end product!
> 
> In order to further investigate kbd-int please apply the 
> attached patch to sftp.c (or use very latest git) and then 
> test the sftp.c example with the same server to see more details.

Sorry, Peter! Last time I patched the wrong source file, "src/sftp.c", while it should be "example/sftp.c".

Yes, your patch is verified to work well. If the server enables "Password authentication using keyboard interactive", it will tell me the authentication mode is "Authentication methods: keyboard-interactive", and I'll be prompted to submit the password. If the same setting is disabled, it will tell me "Authentication methods: password" (public key authentication has been denied at the server's end), and the password must be provided together with the command.

The only shortcoming is that, the password I type is in clear-text mode. Wouldn't it be better if it shows something like "*********" when I am typing the password? 

By the way, in my testing, I am using "example/sftp_write.c". Could you provide a similar patch for sftp_write.c?

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

From libssh2-devel-bounces@cool.haxx.se  Tue May  4 05:07: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 o4437KkI008967;
	Tue, 4 May 2010 05:07:29 +0200
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 o4437JQZ008955
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 05:07:19 +0200
Received: (qmail 26994 invoked by uid 501); 4 May 2010 03:07:19 -0000
Message-ID: <20100504030719.26993.qmail@stuge.se>
Date: Tue, 4 May 2010 05:07:19 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Reflection for Secure IT Server
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <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>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F1044BB2F@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135743AB@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135743E2@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100503133846.7102.qmail@stuge.se>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135E4FE6@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <D8C9BC7FFCF8154FB7141EB8DB609C172F135E4FE6@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:
> Yes, your patch is verified to work well. If the server enables
> "Password authentication using keyboard interactive", it will tell
> me the authentication mode is
> "Authentication methods: keyboard-interactive", and I'll be
> prompted to submit the password.

Good that it works. It is important to remember that the password
prompt message is sent by the server, and not part of the example
program.

The libssh2 application can not know what prompt the server is
sending. The application would be exactly the same if the server
instead asked for a one-time-password, or asked the user a math
question like "What is the solution for 59 + 22", or something else.


> If the same setting is disabled, it will tell me
> "Authentication methods: password" (public key authentication has
> been denied at the server's end), and the password must be provided
> together with the command.
> 
> The only shortcoming is that, the password I type is in clear-text
> mode. Wouldn't it be better if it shows something like "*********"
> when I am typing the password?

I see your point, but all libssh2 examples are quite simple programs
with no other purpose than demonstrating how the library is used.

Hiding the user's response can be technically complicated, and is not
very portable among all systems that libssh2 runs on. Also, the
answer is not always something secret, such as in the case of OTP, or
a math problem. Finally, the examples do not hide the password when
it is entered on the command line (run ps www on the same system
while the example is running) so I think it is also not a high
priority to hide the responses during keyboard-interactive auth.


> By the way, in my testing, I am using "example/sftp_write.c". Could
> you provide a similar patch for sftp_write.c?

At some point I may add similar code to all examples, but meanwhile
please feel free to copy the code and the supporting code in main()
into any other examples where it is useful for you. And if you like
to also submit a patch that is of course most welcome! :)


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

From libssh2-devel-bounces@cool.haxx.se  Tue May  4 05:15: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 o443FUsn012546;
	Tue, 4 May 2010 05:15:34 +0200
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 o443FPgt012465
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 05:15:27 +0200
Received: by mo.mxl.2iij.net (mxl-mo503) id o443FOiI023062;
	Tue, 4 May 2010 12:15:25 +0900
Received: from unknown [192.26.96.21] (EHLO mx21.fujixerox.co.jp)
	by mas500a.mxl.2iij.net (mxl_mta-5.7.1-5) with ESMTP id
	d419fdb4.3615046544.153889.00-008.129203.mas500a.mxl.2iij.net
	(envelope-from <qiang.xu@fujixerox.com>); 
	Tue, 04 May 2010 12:15:25 +0900 (JST)
Received: from isvw21.fujixerox.co.jp ([129.249.27.141])
	by mx21.fujixerox.co.jp  with ESMTP id o443FNZu011071
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 12:15:23 +0900 (JST)
Received: from ms20.fujixerox.co.jp (localhost [127.0.0.1])
	by isvw21.fujixerox.co.jp  with ESMTP id o443FMg1003032
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 12:15:22 +0900 (JST)
Received: from mailgw1.fujixerox.com ([13.198.8.180])
	by ms20.fujixerox.co.jp  with ESMTP id o443FLcO000287
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 12:15:22 +0900 (JST)
X-IronPort-AV: E=Sophos;i="4.52,323,1270396800"; d="scan'208";a="124247615"
Received: from sgpaphq-exhub02.dc01.fujixerox.net ([13.198.8.236])
	by mailgw1.fujixerox.com with ESMTP; 04 May 2010 11:15:21 +0800
Received: from SGPAPHQ-EXSCC01.dc01.fujixerox.net ([13.198.8.229]) by
	sgpaphq-exhub02.dc01.fujixerox.net ([13.198.8.236]) with mapi;
	Tue, 4 May 2010 11:15:21 +0800
From: "Xu, Qiang (FXSGSC)" <Qiang.Xu@fujixerox.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Date: Tue, 4 May 2010 11:15:20 +0800
Subject: RE: Reflection for Secure IT Server
Thread-Topic: Reflection for Secure IT Server
Thread-Index: AcrrNyRdUzvqw2eMThOI1x5usSO0xAAASXzQ
Message-ID: <D8C9BC7FFCF8154FB7141EB8DB609C172F135E523E@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
References: <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>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F1044BB2F@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135743AB@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135743E2@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100503133846.7102.qmail@stuge.se>
	<D8C9BC7FFCF8154FB7141EB8DB609C172F135E4FE6@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
	<20100504030719.26993.qmail@stuge.se>
In-Reply-To: <20100504030719.26993.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.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>
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: Tuesday, May 04, 2010 11:07 AM
> To: libssh2-devel@cool.haxx.se
> Subject: Re: Reflection for Secure IT Server
> 
> Good that it works. It is important to remember that the 
> password prompt message is sent by the server, and not part 
> of the example program.
> 
> The libssh2 application can not know what prompt the server 
> is sending. The application would be exactly the same if the 
> server instead asked for a one-time-password, or asked the 
> user a math question like "What is the solution for 59 + 22", 
> or something else.

Got it, Peter! Now I see why it is in clear-text format. :-) 
 
> I see your point, but all libssh2 examples are quite simple 
> programs with no other purpose than demonstrating how the 
> library is used.
> 
> Hiding the user's response can be technically complicated, 
> and is not very portable among all systems that libssh2 runs 
> on. Also, the answer is not always something secret, such as 
> in the case of OTP, or a math problem. Finally, the examples 
> do not hide the password when it is entered on the command 
> line (run ps www on the same system while the example is 
> running) so I think it is also not a high priority to hide 
> the responses during keyboard-interactive auth.

No problem for me. :-)

> At some point I may add similar code to all examples, but 
> meanwhile please feel free to copy the code and the 
> supporting code in main() into any other examples where it is 
> useful for you. And if you like to also submit a patch that 
> is of course most welcome! :)

At the mean time, I am busy engaging the interaction between libcurl and another SFTP server (Reflection for Secure IT Server). I am using libcurl to do sftp transfer to the server. Are you also on the libcurl list? If yes, maybe you can help a bit. :-)

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

From libssh2-devel-bounces@cool.haxx.se  Tue May  4 14:47: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 o44Cl2B2004198;
	Tue, 4 May 2010 14:47:13 +0200
Received: from mx2.wallix.com (paris.office.wallix.com [82.238.42.70])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o44Cl0GZ004064
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 14:47:00 +0200
Received: from zimbra.ifr.lan (zimbra.ifr.lan [10.10.1.211])
	by mx2.wallix.com (Postfix) with ESMTP id 895181E341C6
	for <libssh2-devel@cool.haxx.se>; Tue,  4 May 2010 14:46:59 +0200 (CEST)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by zimbra.ifr.lan (Postfix) with ESMTP id BFE19EFBE2
	for <libssh2-devel@cool.haxx.se>; Tue,  4 May 2010 14:46:59 +0200 (CEST)
X-Virus-Scanned: amavisd-new at zimbra.ifr.lan
Received: from zimbra.ifr.lan ([127.0.0.1])
	by localhost (zimbra.ifr.lan [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 80d-azo+Dv8i; Tue,  4 May 2010 14:46:59 +0200 (CEST)
Received: from newaza (sbz.ifr.lan [10.10.4.3])
	by zimbra.ifr.lan (Postfix) with ESMTP id 51364EFBD7;
	Tue,  4 May 2010 14:46:59 +0200 (CEST)
Date: Tue, 4 May 2010 14:46:54 +0200
From: Sofian Brabez <sofian.brabez@wallix.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Adopt python bindings?
Message-ID: <20100504124653.GA31557@newaza>
References: <20100429152802.16186.qmail@stuge.se>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20100429152802.16186.qmail@stuge.se>
User-Agent: Mutt/1.5.20 (2009-06-14)
Cc: sbz@wallix.com, ohe@wallix.com, jft@wallix.com, jpa@wallix.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 list,

On Thu, Apr 29, 2010 at 05:28:02PM +0200, Peter Stuge wrote:
> Hi!
> 
> Sebastian (wallunit on IRC) has been making some nice improvements to
> the python bindings for libssh2, currently on github:
> 
> http://github.com/wallunit/ssh4py-wallunit/commits/master
> 
> I was thinking that maybe we want to adopt the bindings into the
> libssh2 project, since Sebastian is prepared to keep them up to date
> with the C library.
> 
> For now it would basically mean another git repo on the server and a
> new component in Trac. Unfortunately Trac doesn't handle multiple
> repos, but maybe that's not a big deal for now, and I'm also looking
> into the mtrack project which may be a relevant replacement for Trac.
> (Completely inspired by Trac, but multirepo from the start.)
> 
> (Or, of course, a multirepo TracHack would work, but that situation
> hasn't really changed much lately AFAIK, I guess it's just a bad fit
> for the design of Trac. :\)
> 
> Does anyone feel particularly strongly *against* having some official
> python bindings?
> 
> 
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

I will introduce to you the work we've done at my company on a python
bindings named "pylibssh2" that's fully respect the libssh2 API.

We've worked on it for 2 years ago, as you see me and my colleagues were
provided few patches on libssh2 code based (especially regarding X11
forwarding feature).

As I said, we used it in our company, so I expect it was more prolific
than Sebastian fork because it provide High Level API, documentation,
packaging (Python way and Debian archives) and examples !.

All the new work on this bindings is released on BSD license (the old
work from Vincent Jaulin still in LGPL) that's why it's a 2 license
project.

We want provided our new code into BSD License because libssh2 project
is released too on this license.

So, please prefer adopt our bindings as "official".

I've already talk with Daniel Stenberg (Bagder) on IRC in private message
to inform it about this, and now it's time for us to release it.

Of course, we are quite opened and want to provided the most clean and
robust code, so please contribute.

What I would like it's to integrate pylibssh2 in extra libssh2-bindings
repository in "python" directory, so we could merge our repository and
the official repository.

By the way, lots of works, need to be done to achieve a full compatible bindings
for libssh2 library, but it's our jobs to do it after all.

Also I'm the official libssh2 maintainer in FreeBSD ports, and I will
provide ports on this bindings asap. So we cover Debian and BSDLike
packaging distribution for the moment.

Regards

[1] http://github.com/wallix/pylibssh2
[2] http://pypi.python.org/pypi/pylibssh2/1.0.0

-- 
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  Tue May  4 14:54: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 o44CshnI007363;
	Tue, 4 May 2010 14:54:46 +0200
Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com
	[209.85.161.54])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o44Csgju007359
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 14:54:42 +0200
Received: by fxm15 with SMTP id 15so2963401fxm.41
	for <libssh2-devel@cool.haxx.se>; Tue, 04 May 2010 05:54:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:sender:received
	:in-reply-to:references:date:x-google-sender-auth:message-id:subject
	:from:to:cc:content-type;
	bh=rnJ72dhM9XL/osr3Ecj0lnko5ifjrfVdk+8sgzkre6Q=;
	b=JDP3SmKjsHgJnVNi8Mi5OVBijl0cZhft508DUWqOew3FYiVwhjeSsp2iEJF6WHhLxO
	E2n/Pg33odXtVn9ddrX8SPTu5GJ/B3aEbYIA9+C/vNbG7Ugc9bughLHGVke6aUVc3GMe
	akgMRHi6r0s+Y42pG9bAuo5CwhGgG0LzcADBw=
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:cc:content-type;
	b=LkaXjQiS+hLj7M/pry51FgcXKV7Qk5I5k0a4nOoPOFo2Em0YA/WaHhwBrG+eTvcv6M
	zybqvzt+HEuu2Ooh9Bq+7SbzQLzdtDkfXuWt+cTlW32WUgN2T2ELaaudliovIywrYSMs
	VEp2NhODWGIEH5W50RPsW8PUCl2FyGLS3p+7c=
MIME-Version: 1.0
Received: by 10.239.167.145 with SMTP id g17mr1581901hbe.123.1272977680717; 
	Tue, 04 May 2010 05:54:40 -0700 (PDT)
Received: by 10.239.179.197 with HTTP; Tue, 4 May 2010 05:54:40 -0700 (PDT)
In-Reply-To: <20100504124653.GA31557@newaza>
References: <20100429152802.16186.qmail@stuge.se>
	<20100504124653.GA31557@newaza>
Date: Tue, 4 May 2010 14:54:40 +0200
X-Google-Sender-Auth: ZSjrz4JDGL7hC2QPypWw7QCZgBw
Message-ID: <AANLkTil67BAd30AOTvMpvHFpuGUfOHkDuz5ORpONs3Ja@mail.gmail.com>
Subject: Re: Adopt python bindings?
From: Tor Arntsen <tor@spacetec.no>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Cc: sbz@wallix.com, ohe@wallix.com, jft@wallix.com, jpa@wallix.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

On Tue, May 4, 2010 at 14:46, Sofian Brabez <sofian.brabez@wallix.com> wrote:

> What I would like it's to integrate pylibssh2 in extra libssh2-bindings
> repository in "python" directory, so we could merge our repository and
> the official repository.

Maybe it would be possible to do a 'cross-project merge', aka 'The
coolest merge ever',
where Linus merged the separate gitk project with all its commits and
history into git proper (and it's even possible to continue to merge
with the original project).

Ref. commit 5569bf9 in the git project at git.kernel.org

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

From libssh2-devel-bounces@cool.haxx.se  Tue May  4 15:41: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 o44DfD42001336;
	Tue, 4 May 2010 15:41:18 +0200
Received: from m13-122.163.com (m13-122.163.com [220.181.13.122])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o44Df9tL001238
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 15:41:10 +0200
Received: from drswinghead (  [117.79.246.2] ) by ajax-webmail-wmsvr122
	(Coremail) ; Tue, 4 May 2010 21:41:04 +0800 (CST)
Date: Tue, 4 May 2010 21:41:04 +0800 (CST)
From: drswinghead <drswinghead@163.com>
To: "libssh2 development" <libssh2-devel@cool.haxx.se>
Message-ID: <1dfb45d.122df.128638c6526.Coremail.drswinghead@163.com>
In-Reply-To: <AANLkTil67BAd30AOTvMpvHFpuGUfOHkDuz5ORpONs3Ja@mail.gmail.com>
References: <AANLkTil67BAd30AOTvMpvHFpuGUfOHkDuz5ORpONs3Ja@mail.gmail.com>
	<20100429152802.16186.qmail@stuge.se> <20100504124653.GA31557@newaza>
Subject: _MSC_VER=1600 has the same poblem in libssh2.h
MIME-Version: 1.0
X-Originating-IP: [117.79.246.2]
X-Priority: 3
X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build
	100422(10419.3027.3028) Copyright (c) 2002-2010 www.mailtech.cn 163com
X-CM-CTRLDATA: SpRq9WZvb3Rlcl9odG09NDE0OjEzMA==
X-CM-TRANSID: esGowLDLHeLwI+BLcBsDAA--.123W
X-CM-SenderInfo: 5guv4x5qjkvtrg6rljoofrz/1tbiOwbGekuut4GadgADs9
X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU==
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="===============2071219327=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============2071219327==
Content-Type: multipart/alternative; 
	boundary="----=_Part_194443_26401993.1272980464933"

------=_Part_194443_26401993.1272980464933
Content-Type: text/plain; charset=gbk
Content-Transfer-Encoding: base64

b24gbGluZSA4MiBpbiBsaWJzc2gyLmgsIHRoZXJlIGlzIGEgI2lmIGNsYXVzZSBsaWtlIHRoaXMs
CgoKI2lmIGRlZmluZWQoTElCU1NIMl9XSU4zMikgJiYgZGVmaW5lZChfTVNDX1ZFUikgJiYgKF9N
U0NfVkVSIDw9IDE0MDApCgoKCndoZW4gY29tcGlsZSB3aXRoIHZjKysyMDEwLCB3aGljaCBfTVND
X1ZFUiBpcyAxNjAwLCBpdCB0aHJvdyBsb3RzIGVycm9yLAoKc28gaSBzZWUgYW5kIHRyeSBtb2Rp
ZnkgdGhlIGxpYnNzaDIuaCwgY2hhbmdlIGl0IGxhc3QgY2xhdXNlIHRvIF9NU0NfVkVSIDw9MTYw
MCwgaXQgd29ya3MgZmluZS4KCmlzIHRoYXQgdGhlIHJpZ2h0IG1ldGhvZCBmb3IgcmVzb2x2aW5n
IHRoaXMgcHJvYmxlbT8=
------=_Part_194443_26401993.1272980464933
Content-Type: text/html; charset=gbk
Content-Transfer-Encoding: base64

PFA+b24gbGluZSA4MiBpbiBsaWJzc2gyLmgsIHRoZXJlIGlzIGEgI2lmIGNsYXVzZSBsaWtlIHRo
aXMsPEJSPjwvUD48UD4jaWYgZGVmaW5lZChMSUJTU0gyX1dJTjMyKSAmYW1wOyZhbXA7IGRlZmlu
ZWQoX01TQ19WRVIpICZhbXA7JmFtcDsgKF9NU0NfVkVSICZsdDs9IDE0MDApPEJSPjxCUj48L1A+
PFA+d2hlbiBjb21waWxlIHdpdGggdmMrKzIwMTAsIHdoaWNoIF9NU0NfVkVSIGlzIDE2MDAsIGl0
IHRocm93IGxvdHMgZXJyb3IsPC9QPjxQPnNvIGkgc2VlIGFuZCB0cnkgbW9kaWZ5IHRoZSBsaWJz
c2gyLmgsIGNoYW5nZSBpdCBsYXN0IGNsYXVzZSB0byBfTVNDX1ZFUiAmbHQ7PTE2MDAsIGl0IHdv
cmtzIGZpbmUuPC9QPjxQPmlzIHRoYXQgdGhlIHJpZ2h0IG1ldGhvZCBmb3IgcmVzb2x2aW5nIHRo
aXMgcHJvYmxlbT88L1A+PGJyPjxicj48c3BhbiB0aXRsZT0ibmV0ZWFzZWZvb3RlciIvPjxoci8+
CjxhIGhyZWY9Imh0dHA6Ly95bS4xNjMuY29tLz9mcm9tPW9kMyIgdGFyZ2V0PSJfYmxhbmsiPs34
0tfOqtbQ0KHG89K1w+K30czhuanG89K108rP5KOo19TW99Pyw/ujqTwvYT4KPC9zcGFuPg==
------=_Part_194443_26401993.1272980464933--


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

--===============2071219327==--

From libssh2-devel-bounces@cool.haxx.se  Tue May  4 16:10: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 o44EAh0W026247;
	Tue, 4 May 2010 16:10:52 +0200
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 o44EAgnT026240; 
	Tue, 4 May 2010 16:10:42 +0200
Date: Tue, 4 May 2010 16:10:42 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Adopt python bindings?
In-Reply-To: <AANLkTil67BAd30AOTvMpvHFpuGUfOHkDuz5ORpONs3Ja@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1005041608390.19257@tvnag.unkk.fr>
References: <20100429152802.16186.qmail@stuge.se>
	<20100504124653.GA31557@newaza>
	<AANLkTil67BAd30AOTvMpvHFpuGUfOHkDuz5ORpONs3Ja@mail.gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
Cc: sbz@wallix.com, ohe@wallix.com, jft@wallix.com, jpa@wallix.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

On Tue, 4 May 2010, Tor Arntsen wrote:

> Maybe it would be possible to do a 'cross-project merge', aka 'The
> coolest merge ever',

Yes I think it does make sense to compare the projects and see how two can be 
made into one...

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Tue May  4 16:11: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 o44EBnsd026704;
	Tue, 4 May 2010 16:11:51 +0200
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 o44EBlFx026676
	for <libssh2-devel@cool.haxx.se>; Tue, 4 May 2010 16:11:47 +0200
X-Authority-Analysis: v=1.1 cv=nrqrmdtKPnrEe5McJVoaEKFzY/lexCxOe+Stj/aSkNs=
	c=1 sm=0 a=uUY82igYkxIA:10 a=O-pu0537hIgA:10 a=kj9zAlcOel0A:10
	a=9At4Jy2cJ7Ox3H4DxHCJAg==:17 a=yMhMjlubAAAA:8
	a=dTss3eLSBrzAKO0XqMMA:9 a=qAH6jfNiorbzgS2Rx7EA:7
	a=yQqFex43ianv4-KJrDYT3_Tb9IQA:4 a=CjuIK1q_8ugA:10
	a=ej2J3Wvw0XUA:10 a=9At4Jy2cJ7Ox3H4DxHCJAg==:117
X-Cloudmark-Score: 0
X-Originating-IP: 70.116.71.237
Received: from [70.116.71.237] ([70.116.71.237:39809] helo=dc7100.roadrunn.com)
	by hrndva-oedge04.mail.rr.com (envelope-from <ngierman@roadrunn.com>)
	(ecelerity 2.2.2.39 r()) with ESMTP
	id 4F/8A-25008-22B20EB4; Tue, 04 May 2010 14:11:47 +0000
Received: by dc7100.roadrunn.com (Postfix, from userid 501)
	id E072E830A2E; Tue,  4 May 2010 09:11:06 -0500 (CDT)
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on dc7100.roadrunn.com
X-Spam-Level: 
X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00
	autolearn=ham version=3.2.5
Received: from ngierman3 (dc7100 [192.168.1.6])
	by dc7100.roadrunn.com (Postfix) with ESMTP id 0D10B830A2E
	for <libssh2-devel@cool.haxx.se>; Tue,  4 May 2010 09:11:05 -0500 (CDT)
From: "Neil Gierman" <ngierman@roadrunn.com>
To: "'libssh2 development'" <libssh2-devel@cool.haxx.se>
References: <AANLkTil67BAd30AOTvMpvHFpuGUfOHkDuz5ORpONs3Ja@mail.gmail.com>	<20100429152802.16186.qmail@stuge.se>
	<20100504124653.GA31557@newaza>
	<1dfb45d.122df.128638c6526.Coremail.drswinghead@163.com>
In-Reply-To: <1dfb45d.122df.128638c6526.Coremail.drswinghead@163.com>
Subject: RE: _MSC_VER=1600 has the same poblem in libssh2.h
Date: Tue, 4 May 2010 09:11:45 -0500
Message-ID: <000901caeb93$baab2a60$30017f20$@com>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AcrrkLNVLq0Jfo8tQ2qEQJTaAnQqtQAAkG1A
Content-Language: en-us
x-cr-hashedpuzzle: AE68 AORV AwSL Ax4t BJ/4 BbWe BslF CXma GfsI GjKO G6Cj HSM+
	H3Fg Ic5H I7lh JZZv; 1;
	bABpAGIAcwBzAGgAMgAtAGQAZQB2AGUAbABAAGMAbwBvAGwALgBoAGEAeAB4AC4AcwBlAA==;
	Sosha1_v1; 7; {30A7077A-9AC1-4255-92AF-3DDC8A7EEDEA};
	bgBnAGkAZQByAG0AYQBuAEAAcgBvAGEAZAByAHUAbgBuAC4AYwBvAG0A;
	Tue, 04 May 2010 14:11:42 GMT;
	UgBFADoAIABfAE0AUwBDAF8AVgBFAFIAPQAxADYAMAAwACAAaABhAHMAIAB0AGgAZQAgAHMAYQBtAGUAIABwAG8AYgBsAGUAbQAgAGkAbgAgAGwAaQBiAHMAcwBoADIALgBoAA==
x-cr-puzzleid: {30A7077A-9AC1-4255-92AF-3DDC8A7EEDEA}
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 line 82 in libssh2.h, there is a #if clause like this,
> #if defined(LIBSSH2_WIN32) && defined(_MSC_VER) && (_MSC_VER <= 1400)
> when compile with vc++2010, which _MSC_VER is 1600, it throw lots error,
> so i see and try modify the libssh2.h, change it last clause to _MSC_VER
<=1600, it works fine.
> is that the right method for resolving this problem?


Can you send an example of which errors? I compiled another version of my
project recently with VS 2010 and saw a bunch of errors that were in fact
related to a bug in the MS C++ Headers from the 6.0A SDK. Please see this
forum posting and see if it is related to your error.
http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/9f8bfaae-fce0
-4878-ae47-ca553ddb3d0f. The version of my project I tried to compile is an
older version and uses libssh2 0.18 which did compile fine after I fixed one
of my headers in the way suggested by the link above. I have not tried to
compile the newer versions of libssh2 in VS 2010.

Neil

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

From libssh2-devel-bounces@cool.haxx.se  Thu May  6 09:13: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 o467D3fM015145;
	Thu, 6 May 2010 09:13:15 +0200
Received: from web33803.mail.mud.yahoo.com (web33803.mail.mud.yahoo.com
	[209.191.69.166])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o465M8M9004249
	for <libssh2-devel@cool.haxx.se>; Thu, 6 May 2010 07:22:09 +0200
Received: (qmail 30989 invoked by uid 60001); 6 May 2010 05:22:04 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s1024;
	t=1273123324; bh=0Hx3DYDS6vA90UNj72b/VtrPGaFc6ITz2C1F5BXyc8g=;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type;
	b=z1m6VyskrfVBgM2s/fNoqwdw/G+oyDONZI917Wly0AAEjx56PweknDJqKCd9JdBeOSj46SUMOYYnxgg/yKma6P6MLIiytUHJk3K1m7EA/CtCu2IijTJUy/ZtiDCteRwlNqu7LJw7d4TLSTbHy2fgJctEv0sKOJrzd1GuHmcivNM=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type;
	b=aNJqapsdpYHmXpNitLJnC4GZr5zE+KHF+ngre59fI26YAQLH8GVeUWfuzDOs7xio6hl0NOU6WV0SGsq7uTlErhVitbIxQJoqNeFFnqePCicaB6XdRANY1PIR79ptAxiyugrIZZW03xxhz8G133XtG9oq9kTI8koELUSVhH4ARmk=;
Message-ID: <643193.30325.qm@web33803.mail.mud.yahoo.com>
X-YMail-OSG: BGE.Z4UVM1kK3W4IpFw6R24YIy3kB1Fl49XiCAuUBfRoaqN
	lOqWt8EIYFLX2LUPxHiFZvXrWLahzVsUn.tz7wxegbeg5f2GWY0uicwHEmgx
	zgM98om6ndy4zIuync3.5UTOn31O_G7DWZDgRaYAiJv7.GxdiSc8ZeabigsT
	nKy7ucO2booxpXlQ7KPE0PJi6MnGJmjTsegMHtfwwCOn29sBvcUdfCHlu_Gx
	NIqMR_R_tWlwVUZgatywr7yBGU7PXc9FRZnpIIRI52WQ7KVF40w--
Received: from [203.57.8.11] by web33803.mail.mud.yahoo.com via HTTP;
	Wed, 05 May 2010 22:22:04 PDT
X-Mailer: YahooMailRC/374.4 YahooMailWebService/0.8.103.269680
Date: Wed, 5 May 2010 22:22:04 -0700 (PDT)
From: Phillip Wu <phillipewu@yahoo.com.au>
Subject: sftp error - LIBSSH2_ERROR_SFTP_PROTOCOL
To: libssh2-devel@cool.haxx.se
MIME-Version: 1.0
X-Mailman-Approved-At: Thu, 06 May 2010 09:13:02 +0200
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="===============1265278827=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1265278827==
Content-Type: multipart/alternative; boundary="0-713947760-1273123324=:30325"

--0-713947760-1273123324=:30325
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Two questions please:=0A1) Is it true to say that LIBSSH2_ERROR_SFTP_PROTOC=
OL is not really an error as such and I should always call=0Alibssh2_sftp_l=
ast_error when ever I get=A0=A0LIBSSH2_ERROR_SFTP_PROTOCOL ?=0A=0A2) Where =
can I get a table of the codes returned by libssh2_sftp_last_error=A0 and t=
heir meanings?=0A=A0=0AThanks=0A=0A=0A      
--0-713947760-1273123324=:30325
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<html><head><style type=3D"text/css"><!-- DIV {margin:0px;} --></style></he=
ad><body><div style=3D"font-family:times new roman, new york, times, serif;=
font-size:12pt"><DIV>Two questions please:</DIV>=0A<DIV>1) Is it true to sa=
y that LIBSSH2_ERROR_SFTP_PROTOCOL is not really an error as such and I sho=
uld always call</DIV>=0A<DIV><SPAN style=3D"FONT-FAMILY: 'Calibri','sans-se=
rif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-=
font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-langua=
ge: EN-AU; mso-fareast-language: EN-AU; mso-bidi-language: AR-SA">libssh2_s=
ftp_last_error when ever I get&nbsp;</SPAN>&nbsp;LIBSSH2_ERROR_SFTP_PROTOCO=
L ?</DIV>=0A<DIV>&nbsp;</DIV>=0A<DIV>2) Where can I get a table of the code=
s returned by <SPAN style=3D"FONT-FAMILY: 'Calibri','sans-serif'; FONT-SIZE=
: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-lat=
in; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-AU; mso-=
fareast-language: EN-AU; mso-bidi-language: AR-SA">libssh2_sftp_last_error&=
nbsp; and their meanings?</SPAN></DIV>=0A<DIV><SPAN style=3D"FONT-FAMILY: '=
Calibri','sans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; m=
so-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'=
; mso-ansi-language: EN-AU; mso-fareast-language: EN-AU; mso-bidi-language:=
 AR-SA"></SPAN>&nbsp;</DIV>=0A<DIV><SPAN style=3D"FONT-FAMILY: 'Calibri','s=
ans-serif'; FONT-SIZE: 11pt; mso-fareast-font-family: Calibri; mso-fareast-=
theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-=
language: EN-AU; mso-fareast-language: EN-AU; mso-bidi-language: AR-SA">Tha=
nks</SPAN></DIV></div><br>=0A=0A=0A=0A      &nbsp;</body></html>
--0-713947760-1273123324=:30325--

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

--===============1265278827==--

From libssh2-devel-bounces@cool.haxx.se  Thu May  6 10:25: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 o468OnZM027032;
	Thu, 6 May 2010 10:24:59 +0200
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 o468OkOQ026905
	for <libssh2-devel@cool.haxx.se>; Thu, 6 May 2010 10:24:48 +0200
Received: by mo.mxl.2iij.net (mxl-mo502) id o468OkIr008678;
	Thu, 6 May 2010 17:24:47 +0900
Received: from unknown [192.26.96.20] (EHLO mx20.fujixerox.co.jp)
	by mas500a.mxl.2iij.net (mxl_mta-5.7.1-5) with ESMTP id
	fcc72eb4.3807021968.298425.00-029.247440.mas500a.mxl.2iij.net
	(envelope-from <qiang.xu@fujixerox.com>); 
	Thu, 06 May 2010 17:24:47 +0900 (JST)
Received: from isvw20.fujixerox.co.jp ([129.249.27.140])
	by mx20.fujixerox.co.jp  with ESMTP id o468Oktx016112
	for <libssh2-devel@cool.haxx.se>; Thu, 6 May 2010 17:24:46 +0900 (JST)
Received: from ms21.fujixerox.co.jp (localhost [127.0.0.1])
	by isvw20.fujixerox.co.jp  with ESMTP id o468OkNW000136
	for <libssh2-devel@cool.haxx.se>; Thu, 6 May 2010 17:24:46 +0900 (JST)
Received: from mailgw1.fujixerox.com ([13.198.8.180])
	by ms21.fujixerox.co.jp  with ESMTP id o468Oj1g000160
	for <libssh2-devel@cool.haxx.se>; Thu, 6 May 2010 17:24:45 +0900 (JST)
X-IronPort-AV: E=Sophos;i="4.52,339,1270396800"; d="scan'208";a="124453418"
Received: from sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235])
	by mailgw1.fujixerox.com with ESMTP; 06 May 2010 16:24:44 +0800
Received: from SGPAPHQ-EXSCC01.dc01.fujixerox.net ([13.198.8.229]) by
	sgpaphq-exhub01.dc01.fujixerox.net ([13.198.8.235]) with mapi;
	Thu, 6 May 2010 16:24:45 +0800
From: "Xu, Qiang (FXSGSC)" <Qiang.Xu@fujixerox.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Date: Thu, 6 May 2010 16:24:44 +0800
Subject: RE: sftp error - LIBSSH2_ERROR_SFTP_PROTOCOL
Thread-Topic: sftp error - LIBSSH2_ERROR_SFTP_PROTOCOL
Thread-Index: Acrs67rZ2RCBaLgGRfGhmY35Pwd16AACZKxA
Message-ID: <D8C9BC7FFCF8154FB7141EB8DB609C172F13674DAC@SGPAPHQ-EXSCC01.dc01.fujixerox.net>
References: <643193.30325.qm@web33803.mail.mud.yahoo.com>
In-Reply-To: <643193.30325.qm@web33803.mail.mud.yahoo.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-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 Phillip Wu
> Sent: Thursday, May 06, 2010 1:22 PM
> To: libssh2-devel@cool.haxx.se
> Subject: sftp error - LIBSSH2_ERROR_SFTP_PROTOCOL
> 
> Two questions please:
> 1) Is it true to say that LIBSSH2_ERROR_SFTP_PROTOCOL is not 
> really an error as such and I should always call 
> libssh2_sftp_last_error when ever I get  LIBSSH2_ERROR_SFTP_PROTOCOL ?

Let's take a look at the code of libcurl: 
================================================
/* from curl-7.20.1/lib/ssh.c */
          if(LIBSSH2_ERROR_SFTP_PROTOCOL == rc)
            /* only when there was an SFTP protocol error can we extract
               the sftp error! */
            err = (int)(libssh2_sftp_last_error(sshc->sftp_session));
          else
            err = -1; /* not an sftp error at all */
================================================
My understanding is that LIBSSH2_ERROR_SFTP_PROTOCOL shows the return code is kind of related to SFTP protocol. Only under this case, you can go on to decide what specific SFTP error it is by calling libssh2_sftp_last_error().
  
> 2) Where can I get a table of the codes returned by 
> libssh2_sftp_last_error  and their meanings?

You can get the whole set of error numbers in "libssh2-1.2.5/include/libssh2.h", from LIBSSH2_ERROR_NONE (0) to LIBSSH2_ERROR_AGENT_PROTOCOL (-42).

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

From libssh2-devel-bounces@cool.haxx.se  Thu May  6 13:24: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 o46BO9Vb014781;
	Thu, 6 May 2010 13:24:22 +0200
Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com
	[74.125.83.182])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o46BO7o4014595
	for <libssh2-devel@cool.haxx.se>; Thu, 6 May 2010 13:24:08 +0200
Received: by pvc30 with SMTP id 30so1413724pvc.41
	for <libssh2-devel@cool.haxx.se>; Thu, 06 May 2010 04:24:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:received:sender:received
	:in-reply-to:references:date:x-google-sender-auth:message-id:subject
	:from:to:content-type:content-transfer-encoding;
	bh=f4WCPAwrItHgnERqlykip7PK4NuHyKr/qejBtk0kHmE=;
	b=OZ/xN8Ubhwam2wNxTLSuLmGSYBkRusS9fsCyKin7ktmWWdKGH7ZW/R0co7JuXpWi+2
	ni/n3Pi5BJet4s1Qoq4qZG3nvljTMBne0rPgeK5aiUcsxtorE0kx9o3lrfeqUtpVjama
	2qXosoIeh2AlIwX6VzUwzKAsqGCt+wUBDQC7U=
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=oMn7SIAWuCpgyqiQBJWLogJ4lJNAzFDLI5un3S+iVwBVIAwhT5lPxNidWPD5XggTYS
	rTb+CDKYPCWA/x5yPAsCeRSO/zINTcLYpC1SsaSUhgb4XBfnhsRHlfabYxsSCNHxdugI
	FFCE4BwIgbC/Bwv30YBvVTGB3GitOHixtSMak=
MIME-Version: 1.0
Received: by 10.143.178.3 with SMTP id f3mr751695wfp.281.1273145041854; Thu, 
	06 May 2010 04:24:01 -0700 (PDT)
Received: by 10.142.191.4 with HTTP; Thu, 6 May 2010 04:24:01 -0700 (PDT)
In-Reply-To: <643193.30325.qm@web33803.mail.mud.yahoo.com>
References: <643193.30325.qm@web33803.mail.mud.yahoo.com>
Date: Thu, 6 May 2010 12:24:01 +0100
X-Google-Sender-Auth: e549451c80e3813e
Message-ID: <w2l9c3275a91005060424vda755db8kb0197cbc6ec376f1@mail.gmail.com>
Subject: Re: sftp error - LIBSSH2_ERROR_SFTP_PROTOCOL
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 6 May 2010 06:22, Phillip Wu <phillipewu@yahoo.com.au> wrote:
> Two questions please:
> 1) Is it true to say that LIBSSH2_ERROR_SFTP_PROTOCOL is not really an er=
ror
> as such and I should always call
> libssh2_sftp_last_error when ever I get=A0=A0LIBSSH2_ERROR_SFTP_PROTOCOL ?

Yes.

> 2) Where can I get a table of the codes returned by libssh2_sftp_last_err=
or
> and their meanings?

As Xu Qiang pointed out, you can find the list of error codes in
libssh2.h.  Their meaning, however, is not so clear cut.  The only
definitive way to determine this is to read the code yourself.  The
man pages and code comments tend to be incomplete regarding possible
errors for each function.

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

From libssh2-devel-bounces@cool.haxx.se  Thu May  6 13:36: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 o46Balj3022649;
	Thu, 6 May 2010 13:36:52 +0200
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 o46BajRK022643
	for <libssh2-devel@cool.haxx.se>; Thu, 6 May 2010 13:36:45 +0200
Date: Thu, 6 May 2010 13:36:45 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: sftp error - LIBSSH2_ERROR_SFTP_PROTOCOL
In-Reply-To: <643193.30325.qm@web33803.mail.mud.yahoo.com>
Message-ID: <alpine.DEB.2.00.1005061331570.8512@tvnag.unkk.fr>
References: <643193.30325.qm@web33803.mail.mud.yahoo.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
	BOUNDARY="-1470944514-780157909-1273145805=:8512"
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

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---1470944514-780157909-1273145805=:8512
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

On Wed, 5 May 2010, Phillip Wu wrote:

> 1) Is it true to say that LIBSSH2_ERROR_SFTP_PROTOCOL is not really an error 
> as such and I should always call libssh2_sftp_last_error when ever I 
> get  LIBSSH2_ERROR_SFTP_PROTOCOL ?

It really depends on what you're trying to find out. The 
LIBSSH2_ERROR_SFTP_PROTOCOL error means that libssh2 stopped because there was 
an error on SFTP level.

libssh2_sftp_last_error() is then your friend to extract the latest error that 
libssh2 received over SFTP.

> 2) Where can I get a table of the codes returned by libssh2_sftp_last_error  
> and their meanings?

The SFTP errors are straight from the SFTP protocol and are present in 
libssh2_sftp.h with the LIBSSH2_FX_ prefix. See line 171 and onwards.

-- 

  / daniel.haxx.se
---1470944514-780157909-1273145805=:8512
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

---1470944514-780157909-1273145805=:8512--

From libssh2-devel-bounces@cool.haxx.se  Thu May  6 13:47: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 o46Blaxv000939;
	Thu, 6 May 2010 13:47:40 +0200
Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com
	[74.125.83.182])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o46BlXWe000915
	for <libssh2-devel@cool.haxx.se>; Thu, 6 May 2010 13:47:34 +0200
Received: by pvc30 with SMTP id 30so1421645pvc.41
	for <libssh2-devel@cool.haxx.se>; Thu, 06 May 2010 04:47:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:received:sender:received
	:in-reply-to:references:date:x-google-sender-auth:message-id:subject
	:from:to:content-type:content-transfer-encoding;
	bh=ebif3bJjCe1Z4SLXIBfkYhLG0DNYXFvUiWgo4Xcv3vs=;
	b=B6pT2sn2KbcqfA95sB89bc13clU/SxGkGfS1AH39kcC6AekXMQXRTtHlFLMLVZCC1D
	YdxRM1G5wpkno8anTfWbEFewYhTlVzyjRYqRSaBjE2DNm0Aw80yexTz4WfFScblUx80P
	UpYsZKlXVfiHXRsIbZoQQGc+wqIvc7K9aVojI=
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=kkMvWZurQjF+7bcmFEOEwhzsw6AiMNoNuHtgy7isCmmhFYFUJlAex7dAtnjK82DlLZ
	Z50ZsjyzEJ14kcgmdcBSP3MnOvShgZyq92I5GgwXlL0Kb6GwmIsNNnNURkuLAG1xu7Rr
	Qy6ABC7BZWXOU7sHISMLrPmryeWDa9K9beSlw=
MIME-Version: 1.0
Received: by 10.142.119.10 with SMTP id r10mr8985835wfc.192.1273146449392; 
	Thu, 06 May 2010 04:47:29 -0700 (PDT)
Received: by 10.142.191.4 with HTTP; Thu, 6 May 2010 04:47:29 -0700 (PDT)
In-Reply-To: <alpine.DEB.2.00.1005061331570.8512@tvnag.unkk.fr>
References: <643193.30325.qm@web33803.mail.mud.yahoo.com>
	<alpine.DEB.2.00.1005061331570.8512@tvnag.unkk.fr>
Date: Thu, 6 May 2010 12:47:29 +0100
X-Google-Sender-Auth: 836a11734e37dfcb
Message-ID: <o2k9c3275a91005060447h4ed142b0r146c334526a082fb@mail.gmail.com>
Subject: Re: sftp error - LIBSSH2_ERROR_SFTP_PROTOCOL
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 6 May 2010 12:36, Daniel Stenberg <daniel@haxx.se> wrote:
> On Wed, 5 May 2010, Phillip Wu wrote:
>
>> 2) Where can I get a table of the codes returned by
>> libssh2_sftp_last_error=A0 and their meanings?
>
> The SFTP errors are straight from the SFTP protocol and are present in
> libssh2_sftp.h with the LIBSSH2_FX_ prefix. See line 171 and onwards.

Daniel is quite right.  My earlier answer was misleading and referred
to error codes in general rather than the SFTP subset.

One thing I will point out with regards to the SFTP errors is that
they are only theoretically possible.  The actual errors you encounter
depend entirely on the SFTP implementation on the server you are
connecting to.  For instance, you may get LIBSSH2_FX_PERMISSION_DENIED
instead of LIBSSH2_FX_FILE_ALREADY_EXISTS when creating a file that
already exists (IIRC this is what happens with OpenSSH).

Be flexible when handling the return codes.  Potentially, the server
could return almost any LIBSSH2_FX_* code for any particular SFTP
operation.

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

From libssh2-devel-bounces@cool.haxx.se  Tue May 11 10:29: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 o4B8T87g014020;
	Tue, 11 May 2010 10:29:20 +0200
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o4B8T5Og013945
	for <libssh2-devel@cool.haxx.se>; Tue, 11 May 2010 10:29:05 +0200
Received: (qmail invoked by alias); 11 May 2010 08:29:02 -0000
Received: from VPN-082-069.HS-Ulm.DE (EHLO [141.59.82.69]) [141.59.82.69]
	by mail.gmx.net (mp041) with SMTP; 11 May 2010 10:29:02 +0200
X-Authenticated: #13593680
X-Provags-ID: V01U2FsdGVkX1+LiQJxBYCL5Ygx4iFnlFyfwICPtRBl4W17Ks7Fjd
	L/9XsZgGFLWxbr
Message-ID: <4BE9154C.4080301@gmx.net>
Date: Tue, 11 May 2010 10:29:00 +0200
From: Bart Simpson <b_a_r_t@gmx.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de;
	rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: "Callback returned error" with public key authentication,
	under windows, linux works
X-Y-GMX-Trusted: 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 everybody,
at the moment i write my bachelor thesis and need libssh2 to connect to 
a linux machine to run some commands and download files.
The goal is to write a program which runs on a windows and linux system 
and it should use so many functions of the Qt lib as possible.

At this point my program runs perfectly on a linux system 
(authentication with public key and password only works).
But on a windows system only password authentication works. The problem 
is i need public key authentication for my project.

I get this error when i try to authenticate via public key under windows:
     error-code: -19
     error-text. Callback returned error

Can anybody tell me what is wrong in my code?

You can view the code of my test program here:
     http://jk-project.de/neu/main.cpp
     http://jk-project.de/neu/SshConnect.hh
     http://jk-project.de/neu/SshConnect.cc


regards

Thomas





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

From libssh2-devel-bounces@cool.haxx.se  Tue May 11 10:50: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 o4B8okcA030497;
	Tue, 11 May 2010 10:50:51 +0200
Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com
	[209.85.160.54])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o4B8oi1b030472
	for <libssh2-devel@cool.haxx.se>; Tue, 11 May 2010 10:50:45 +0200
Received: by pwi9 with SMTP id 9so2185261pwi.41
	for <libssh2-devel@cool.haxx.se>; Tue, 11 May 2010 01:50:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:received:sender:received
	:in-reply-to:references:date:x-google-sender-auth:message-id:subject
	:from:to:content-type:content-transfer-encoding;
	bh=2IwfnbWvhIMYJjk0X7JjC2e6JfcoCRwCImMEBcWyFlw=;
	b=YgTDOB42BjvppNLJHb3LSff/FPNkhqfTey/0JGN93v/4d6Z4xzC+x4FG+LXisb2WfT
	wGkzA+A0lkIlU9d7wD0S9xul8MeRuoSSsJyTpXNNfGX9sY1qvVtNagOdaQb0PJD8ZNh5
	LLW2nDrrRs4hfpW3fljpXk46aZY5bTw4G3UWc=
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=CZ7J+GE3qbRD3gbuESUrNCxtkc5o4nsoIW+ejEUhB79PdGV8uTHK+XAspJh77nHbQI
	tYeqWSk8JZgJ6APzVcThOpOsQxZx+bD3k/URSfrHaQorLiujWohvxRLeA3QV7sjtWWpT
	3psYSpxw4RWvioEGZ7i/PZKPCbU4+0qfWmWCg=
MIME-Version: 1.0
Received: by 10.143.24.6 with SMTP id b6mr3694296wfj.98.1273567840647; Tue, 11 
	May 2010 01:50:40 -0700 (PDT)
Received: by 10.142.191.4 with HTTP; Tue, 11 May 2010 01:50:40 -0700 (PDT)
In-Reply-To: <4BE9154C.4080301@gmx.net>
References: <4BE9154C.4080301@gmx.net>
Date: Tue, 11 May 2010 09:50:40 +0100
X-Google-Sender-Auth: mKXTWUVEzkxgLA_nJYQ2ckKVkR4
Message-ID: <AANLkTilZXDdHwsWOaPY6CPBwartgXTP9HCGqbQBpzWkQ@mail.gmail.com>
Subject: Re: "Callback returned error" with public key authentication, under 
	windows, linux works
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 11 May 2010 09:29, Bart Simpson <b_a_r_t@gmx.net> wrote:
> Hello everybody,
> at the moment i write my bachelor thesis and need libssh2 to connect to a
> linux machine to run some commands and download files.
> The goal is to write a program which runs on a windows and linux system a=
nd
> it should use so many functions of the Qt lib as possible.

Just out of interest, is there any reason you pass things around as a QStri=
ng?

> At this point my program runs perfectly on a linux system (authentication
> with public key and password only works).
> But on a windows system only password authentication works. The problem i=
s i
> need public key authentication for my project.
>
> I get this error when i try to authenticate via public key under windows:
> =A0 =A0error-code: -19
> =A0 =A0error-text. Callback returned error

-19 is LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED and the error text should be
"Invalid signature for supplied public key, or bad username/public key
combination" not "Callback returned error" (I have no idea where this
second string came from).

As for why, you're going to have to debug that one yourself.

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

From libssh2-devel-bounces@cool.haxx.se  Tue May 11 10:57: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 o4B8vhkp001089;
	Tue, 11 May 2010 10:57:46 +0200
Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com
	[209.85.219.226])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o4B8vfRq001044
	for <libssh2-devel@cool.haxx.se>; Tue, 11 May 2010 10:57:41 +0200
Received: by ewy26 with SMTP id 26so932609ewy.3
	for <libssh2-devel@cool.haxx.se>; Tue, 11 May 2010 01:57:38 -0700 (PDT)
Received: by 10.213.76.203 with SMTP id d11mr1894884ebk.90.1273568258763;
	Tue, 11 May 2010 01:57:38 -0700 (PDT)
Received: from [192.168.0.35] (96-160.ftth.onsbrabantnet.nl [88.159.160.96])
	by mx.google.com with ESMTPS id 15sm2981408ewy.8.2010.05.11.01.57.37
	(version=SSLv3 cipher=RC4-MD5); Tue, 11 May 2010 01:57:38 -0700 (PDT)
Message-ID: <4BE91BFD.8080900@peut.org>
Date: Tue, 11 May 2010 10:57:33 +0200
From: Jose Baars <peut@peut.org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl;
	rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: Re: "Callback returned error" with public key authentication, under
	windows, linux works
References: <4BE9154C.4080301@gmx.net>
In-Reply-To: <4BE9154C.4080301@gmx.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: multipart/mixed; boundary="===============0823375468=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

This is a cryptographically signed message in MIME format.

--===============0823375468==
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms040406000005030602030707"

This is a cryptographically signed message in MIME format.

--------------ms040406000005030602030707
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Op 5/11/2010 10:29 AM, Bart Simpson schreef:
> At this point my program runs perfectly on a linux system=20
> (authentication with public key and password only works).
> But on a windows system only password authentication works. The=20
> problem is i need public key authentication for my project.
>

Stupid suggestion maybe: Did you try to log in to the Windows system=20
with the same user and keys with another ssh
(OpenSSH ? ) client? Does that work?

Regards,
Jose Baars


--------------ms040406000005030602030707
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIPWjCC
BMwwggQ1oAMCAQICEByunWua9OYvIoqj2nRhbB4wDQYJKoZIhvcNAQEFBQAwXzELMAkGA1UE
BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAxIFB1Ymxp
YyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA1MTAyODAwMDAwMFoXDTE1
MTAyNzIzNTk1OVowgd0xCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEf
MB0GA1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazE7MDkGA1UECxMyVGVybXMgb2YgdXNl
IGF0IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9ycGEgKGMpMDUxHjAcBgNVBAsTFVBlcnNv
bmEgTm90IFZhbGlkYXRlZDE3MDUGA1UEAxMuVmVyaVNpZ24gQ2xhc3MgMSBJbmRpdmlkdWFs
IFN1YnNjcmliZXIgQ0EgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMnf
rOfq+PgDFMQAktXBfjbCPO98chXLwKuMPRyVzm8eECw/AO2XJua2x+atQx0/pIdHR0w+VPhs
+Mf8sZ69MHC8l7EDBeqV8a1AxUR6SwWi8mD81zplYu//EHuiVrvFTnAt1qIfPO2wQuhejVch
rKaZ2RHp0hoHwHRHQgv8xTTq/ea6JNEdCBU3otdzzwFBL2OyOj++pRpu9MlKWz2VphW7NQIZ
+dTvvI8OcXZZu0u2Ptb8Whb01g6J8kn+bAztFenZiHW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WYWxpZGF0ZWQxNzA1BgNVBAMTLlZl
cmlTaWduIENsYXNzIDEgSW5kaXZpZHVhbCBTdWJzY3JpYmVyIENBIC0gRzICEEJLgZ2m/5im
8G2Mp6IuBpMwggEFBgsqhkiG9w0BCRACCzGB9aCB8jCB3TELMAkGA1UEBhMCVVMxFzAVBgNV
BAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTsw
OQYDVQQLEzJUZXJtcyBvZiB1c2UgYXQgaHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL3JwYSAo
YykwNTEeMBwGA1UECxMVUGVyc29uYSBOb3QgVmFsaWRhdGVkMTcwNQYDVQQDEy5WZXJpU2ln
biBDbGFzcyAxIEluZGl2aWR1YWwgU3Vic2NyaWJlciBDQSAtIEcyAhBCS4Gdpv+YpvBtjKei
LgaTMA0GCSqGSIb3DQEBAQUABIIBAC8wj1K2LAMN0edMz39e6bR8Fd5GA038aNeFV7tO8L3J
UjsTUzYOEUoB1ZE/uNVss+HcbInTOuLpN7vB0jHbUdU+LScHx0Hdx6FSbh2pGL4my4NWJSWq
uu5hHzFB9BZvm71jbHrdMFdPR/pBOHQ+OgauIK30UurHDdgapx+CQvMEyrvjyFu6XG1Jpbf5
oLmftmPFhwE7y0vQyhGRFAfTAUBTe4usFceflp7bhZM/UNKBTlaz0jT8ZqSFDLeBSKrsORIh
z5hMOFz4D8dNSjyO+UAOqv5d1jqkPUEsMaPCSlOTO1+ecW4p+m6axV6wThCVktYt3urrq/BD
Jf0tSib+av4AAAAAAAA=
--------------ms040406000005030602030707--

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

--===============0823375468==--

From libssh2-devel-bounces@cool.haxx.se  Tue May 11 11:22: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 o4B9Lrgp021022;
	Tue, 11 May 2010 11:22:00 +0200
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o4B9Lqj1020894
	for <libssh2-devel@cool.haxx.se>; Tue, 11 May 2010 11:21:52 +0200
Received: (qmail invoked by alias); 11 May 2010 09:21:47 -0000
Received: from VPN-082-069.HS-Ulm.DE (EHLO [141.59.82.69]) [141.59.82.69]
	by mail.gmx.net (mp013) with SMTP; 11 May 2010 11:21:47 +0200
X-Authenticated: #13593680
X-Provags-ID: V01U2FsdGVkX18RxHN8xokReLMgvHTOpBkPUVz1myOH1Y5OrQJvkH
	jPxopFwmlGpYr+
Message-ID: <4BE921AB.6060302@gmx.net>
Date: Tue, 11 May 2010 11:21:47 +0200
From: Bart Simpson <b_a_r_t@gmx.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de;
	rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: "Callback returned error" with public key authentication, under
	windows, linux works
References: <4BE9154C.4080301@gmx.net> <4BE91BFD.8080900@peut.org>
In-Reply-To: <4BE91BFD.8080900@peut.org>
X-Y-GMX-Trusted: 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: multipart/mixed; boundary="===============2098962653=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

This is a multi-part message in MIME format.
--===============2098962653==
Content-Type: multipart/alternative;
 boundary="------------000804070705030408060303"

This is a multi-part message in MIME format.
--------------000804070705030408060303
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Yes I tested it with putty (had to convert the keyfile to putty format) 
--> that works.

Regards,
Thomas

Am 11.05.2010 10:57, schrieb Jose Baars:
> Op 5/11/2010 10:29 AM, Bart Simpson schreef:
>> At this point my program runs perfectly on a linux system 
>> (authentication with public key and password only works).
>> But on a windows system only password authentication works. The 
>> problem is i need public key authentication for my project.
>>
> Stupid suggestion maybe: Did you try to log in to the Windows system 
> with the same user and keys with another ssh
> (OpenSSH ? ) client? Does that work?
>
> Regards,
> Jose Baars
>
>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>    


--------------000804070705030408060303
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Yes I tested it with putty (had to convert the keyfile to putty format)
--&gt; that works.<br>
<br>
Regards,<br>
Thomas<br>
<br>
Am 11.05.2010 10:57, schrieb Jose Baars:
<blockquote cite="mid:4BE91BFD.8080900@peut.org" type="cite">Op
5/11/2010 10:29 AM, Bart Simpson schreef:
  <br>
  <blockquote type="cite">At this point my program runs perfectly on a
linux system (authentication with public key and password only works).
    <br>
But on a windows system only password authentication works. The problem
is i need public key authentication for my project.
    <br>
    <br>
  </blockquote>
</blockquote>
<blockquote cite="mid:4BE91BFD.8080900@peut.org" type="cite">Stupid
suggestion maybe: Did you try to log in to the Windows system with the
same user and keys with another ssh
  <br>
(OpenSSH ? ) client? Does that work?
  <br>
  <br>
Regards,
  <br>
Jose Baars
  <br>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
libssh2-devel <a class="moz-txt-link-freetext" href="http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel">http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel</a>
  </pre>
</blockquote>
<br>
</body>
</html>

--------------000804070705030408060303--

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

--===============2098962653==--

From libssh2-devel-bounces@cool.haxx.se  Tue May 11 11:52: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 o4B9qdTO012489;
	Tue, 11 May 2010 11:52:51 +0200
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o4B9qcJ1012443
	for <libssh2-devel@cool.haxx.se>; Tue, 11 May 2010 11:52:38 +0200
Received: (qmail invoked by alias); 11 May 2010 09:52:35 -0000
Received: from VPN-082-069.HS-Ulm.DE (EHLO [141.59.82.69]) [141.59.82.69]
	by mail.gmx.net (mp068) with SMTP; 11 May 2010 11:52:35 +0200
X-Authenticated: #13593680
X-Provags-ID: V01U2FsdGVkX1+789p0XsS7A2VmOBReaqeO6JHi+oIbA9TRbIpIoC
	Qzew1LhWR942rt
Message-ID: <4BE928E2.7020205@gmx.net>
Date: Tue, 11 May 2010 11:52:34 +0200
From: Bart Simpson <b_a_r_t@gmx.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de;
	rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: "Callback returned error" with public key authentication, under
	windows, linux works
References: <4BE9154C.4080301@gmx.net>
	<AANLkTilZXDdHwsWOaPY6CPBwartgXTP9HCGqbQBpzWkQ@mail.gmail.com>
In-Reply-To: <AANLkTilZXDdHwsWOaPY6CPBwartgXTP9HCGqbQBpzWkQ@mail.gmail.com>
X-Y-GMX-Trusted: 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

> Just out of interest, is there any reason you pass things around as a QString?
Yes there is, the class SshConnect is only a little part of a bigger Qt gui software.
And somewhere i have to convert QString-->char or char-->QString so i decide to do it here.


> -19 is LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED and the error text should be
> "Invalid signature for supplied public key, or bad username/public key
> combination" not "Callback returned error" (I have no idea where this
> second string came from).
That is a good point, i think in my function "lastError()" is some mistake. But when i take
the return value of "libssh2_userauth_publickey_fromfile" it is:

	-19 -->  LIBSSH2_ERROR_PUBLICKEY_INVERIFIED

But i do not understand the difference between linux and windows.
I have exactly the same code and the same keyfile in both versions.



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

From libssh2-devel-bounces@cool.haxx.se  Tue May 11 16:03: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 o4BE2fHS020224;
	Tue, 11 May 2010 16:02:56 +0200
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 o4BE2dtC020192
	for <libssh2-devel@cool.haxx.se>; Tue, 11 May 2010 16:02:39 +0200
Received: (qmail 9175 invoked by uid 501); 11 May 2010 14:02:43 -0000
Message-ID: <20100511140243.9174.qmail@stuge.se>
Date: Tue, 11 May 2010 16:02:43 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: "Callback returned error" with public key authentication,
	under windows, linux works
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <4BE9154C.4080301@gmx.net>
	<AANLkTilZXDdHwsWOaPY6CPBwartgXTP9HCGqbQBpzWkQ@mail.gmail.com>
	<4BE928E2.7020205@gmx.net> <4BE9154C.4080301@gmx.net>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <4BE928E2.7020205@gmx.net> <4BE9154C.4080301@gmx.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

Bart Simpson wrote:
> But on a windows system only password authentication works. The
> problem is i need public key authentication for my project.

I suggest that you use the agent support. Use libssh2-1.2.4 or later.

The agent support uses ssh-agent on Linux and Pageant on Windows.


Bart Simpson wrote:
> But i do not understand the difference between linux and windows.
> I have exactly the same code and the same keyfile in both versions.

src/userauth.c file_read_publickey() has this code:

    /* Read Public Key */
    fd = fopen(pubkeyfile, "r");
    if (!fd) {
        return _libssh2_error(session, LIBSSH2_ERROR_FILE,
                              "Unable to open public key file");
    }
    while (!feof(fd) && (c = fgetc(fd)) != '\r' && c != '\n')
        pubkey_len++;

You could try to change "r" in the call to fopen() into "rb" instead.

If you're not comfortable recompiling libssh2 then run unix2dos or
something similar on the key files, to convert their line endings.

I think we should be line ending agnostic in libssh2, so the code
above should be fixed. I'll have a look.


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

From libssh2-devel-bounces@cool.haxx.se  Wed May 12 00:40: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 o4BMdlDR032106;
	Wed, 12 May 2010 00:40:46 +0200
Received: from qmta13.westchester.pa.mail.comcast.net
	(qmta13.westchester.pa.mail.comcast.net [76.96.59.243])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o4BMdkwC032067
	for <libssh2-devel@cool.haxx.se>; Wed, 12 May 2010 00:39:46 +0200
Received: from omta04.westchester.pa.mail.comcast.net ([76.96.62.35])
	by qmta13.westchester.pa.mail.comcast.net with comcast
	id GChX1e0090ldTLk5DNfXC2; Tue, 11 May 2010 22:39:31 +0000
Received: from dc1.freimer.org ([76.108.252.101])
	by omta04.westchester.pa.mail.comcast.net with comcast
	id GNfX1e0022C1VLC3QNfXgh; Tue, 11 May 2010 22:39:31 +0000
Received: from [172.17.180.87] ([172.17.180.87]) by dc1.freimer.org with
	Microsoft SMTPSVC(6.0.3790.4675); Tue, 11 May 2010 07:45:24 -0400
From: Frederick Reimer <freimer@freimer.org>
Mime-Version: 1.0 (Apple Message framework v1078)
Subject: Re: "Callback returned error" with public key authentication,
	under windows, linux works
Date: Tue, 11 May 2010 07:45:05 -0400
In-Reply-To: <4BE928E2.7020205@gmx.net>
To: libssh2 development <libssh2-devel@cool.haxx.se>
References: <4BE9154C.4080301@gmx.net>
	<AANLkTilZXDdHwsWOaPY6CPBwartgXTP9HCGqbQBpzWkQ@mail.gmail.com>
	<4BE928E2.7020205@gmx.net>
Message-Id: <BBB286BA-94ED-498C-B23D-EBA22477F5AA@freimer.org>
X-Mailer: Apple Mail (2.1078)
X-OriginalArrivalTime: 11 May 2010 11:45:24.0332 (UTC)
	FILETIME=[71660AC0:01CAF0FF]
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="===============0881391771=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


--===============0881391771==
Content-Type: multipart/signed; boundary=Apple-Mail-39-1065845472; protocol="application/pkcs7-signature"; micalg=sha1


--Apple-Mail-39-1065845472
Content-Type: multipart/alternative;
	boundary=Apple-Mail-38-1065845435


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

Hmm.  I don't know the details of SSH, but based on the text of the =
message and knowledge of PKI I can take a wild guess.  Perhaps the =
Windows box does not trust the root cert that signed the public key, =
while the Linux box does trust the cert that signed the public key?  =
That's what it sounds like to me...  How else would you "verify" a =
public key other than checking the signature on that against trusted =
root certs?

HTH,

Fred Reimer, CCIE 23812 CISSP 107125
mailto:freimer@freimer.org



On May 11, 2010, at 5:52 AM, Bart Simpson wrote:

>> Just out of interest, is there any reason you pass things around as a =
QString?
> Yes there is, the class SshConnect is only a little part of a bigger =
Qt gui software.
> And somewhere i have to convert QString-->char or char-->QString so i =
decide to do it here.
>=20
>=20
>> -19 is LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED and the error text should =
be
>> "Invalid signature for supplied public key, or bad username/public =
key
>> combination" not "Callback returned error" (I have no idea where this
>> second string came from).
> That is a good point, i think in my function "lastError()" is some =
mistake. But when i take
> the return value of "libssh2_userauth_publickey_fromfile" it is:
>=20
> 	-19 -->  LIBSSH2_ERROR_PUBLICKEY_INVERIFIED
>=20
> But i do not understand the difference between linux and windows.
> I have exactly the same code and the same keyfile in both versions.
>=20
>=20
>=20
> Regards,
> Thomas
> _______________________________________________
> libssh2-devel =
http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>=20


--Apple-Mail-38-1065845435
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; ">Hmm. =
&nbsp;I don't know the details of SSH, but based on the text of the =
message and knowledge of PKI I can take a wild guess. &nbsp;Perhaps the =
Windows box does not trust the root cert that signed the public key, =
while the Linux box does trust the cert that signed the public key? =
&nbsp;That's what it sounds like to me... &nbsp;How else would you =
"verify" a public key other than checking the signature on that against =
trusted root certs?<div><br></div><div>HTH,<br><div><br><div>
<span class=3D"Apple-style-span" style=3D"border-collapse: separate; =
color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; =
font-style: normal; font-variant: normal; font-weight: normal; =
letter-spacing: normal; line-height: normal; orphans: 2; text-align: =
auto; text-indent: 0px; text-transform: none; white-space: normal; =
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; =
-webkit-border-vertical-spacing: 0px; =
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; "><div><div style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: =
normal normal normal 7.5px/normal Verdana; color: rgb(146, 146, 146); =
"><b>Fred Reimer,&nbsp;CCIE 23812 CISSP 107125</b></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; font: normal normal normal 7.5px/normal Verdana; =
color: rgb(146, 146, 146); "><b><a =
href=3D"mailto:freimer@freimer.org">mailto:freimer@freimer.org</a></b></di=
v><div><font class=3D"Apple-style-span" color=3D"#929292" face=3D"Verdana"=
 size=3D"1"><span class=3D"Apple-style-span" style=3D"font-size: 9px; =
"><b><br></b></span></font></div></div></span><br =
class=3D"Apple-interchange-newline">
</div>
<br><div><div>On May 11, 2010, at 5:52 AM, Bart Simpson wrote:</div><br =
class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div><blockquote type=3D"cite">Just out of interest, is =
there any reason you pass things around as a =
QString?<br></blockquote>Yes there is, the class SshConnect is only a =
little part of a bigger Qt gui software.<br>And somewhere i have to =
convert QString--&gt;char or char--&gt;QString so i decide to do it =
here.<br><br><br><blockquote type=3D"cite">-19 is =
LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED and the error text should =
be<br></blockquote><blockquote type=3D"cite">"Invalid signature for =
supplied public key, or bad username/public =
key<br></blockquote><blockquote type=3D"cite">combination" not "Callback =
returned error" (I have no idea where this<br></blockquote><blockquote =
type=3D"cite">second string came from).<br></blockquote>That is a good =
point, i think in my function "lastError()" is some mistake. But when i =
take<br>the return value of "libssh2_userauth_publickey_fromfile" it =
is:<br><br><span class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</span>-19 --&gt; &nbsp;LIBSSH2_ERROR_PUBLICKEY_INVERIFIED<br><br>But i =
do not understand the difference between linux and windows.<br>I have =
exactly the same code and the same keyfile in both =
versions.<br><br><br><br>Regards,<br>Thomas<br>___________________________=
____________________<br>libssh2-devel <a =
href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel">http:/=
/cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel</a><br><br></div></bl=
ockquote></div><br></div></div></body></html>=

--Apple-Mail-38-1065845435--

--Apple-Mail-39-1065845472
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIF8zCCBe8w
ggTXoAMCAQICCi1j534AAAAAAAIwDQYJKoZIhvcNAQEFBQAwRjETMBEGCgmSJomT8ixkARkWA29y
ZzEXMBUGCgmSJomT8ixkARkWB2ZyZWltZXIxFjAUBgNVBAMTDWZyZWltZXItREMtQ0EwHhcNMTAw
NTA4MDIyNDM4WhcNMTEwNTA4MDIyNDM4WjB4MRMwEQYKCZImiZPyLGQBGRYDb3JnMRcwFQYKCZIm
iZPyLGQBGRYHZnJlaW1lcjEOMAwGA1UEAxMFVXNlcnMxFDASBgNVBAMTC0ZyZWQgUmVpbWVyMSIw
IAYJKoZIhvcNAQkBFhNmcmVpbWVyQGZyZWltZXIub3JnMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
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ZImiZPyLGQBGRYDb3JnMRcwFQYKCZImiZPyLGQB
GRYHZnJlaW1lcjEWMBQGA1UEAxMNZnJlaW1lci1EQy1DQQIKLWPnfgAAAAAAAjANBgkqhkiG9w0B
AQEFAASCAQBZ6/vHkowpUezPq9HIKF83OO4ZwitujvxF+Qs4N2iFkVZTcJeKvf7UNONfq/8CAT5F
v7Z27r+YEIgfa377UWsQiuW8q2ZVOuhlkGZSv5TE3zU6VM5NWmg146eBTAonU+rpDomfNE8CWD4S
NupUOic3Inf04PEuafD6/FY2+28nNBqQ9iO2DhudNDuv1QybVCH3flGEyLZYd1lm6AKW5REsnPW5
IHxYk/GKg4HiTjOw07hJnqnlZYNEwq4r5UjZAqUt7mSRysmY9RWP4xPgktfbujv/JASK/iTCQUMf
Ip0f8e3pgQssq64ClYZJAaeMfTymwuoE850VJZnq4Ivr6Xr4AAAAAAAA

--Apple-Mail-39-1065845472--

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

--===============0881391771==--

From libssh2-devel-bounces@cool.haxx.se  Wed May 12 01:19: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 o4BNJ7T1019041;
	Wed, 12 May 2010 01:19:12 +0200
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 o4BNJ6sX019036
	for <libssh2-devel@cool.haxx.se>; Wed, 12 May 2010 01:19:06 +0200
Received: (qmail 3194 invoked by uid 501); 11 May 2010 23:19:12 -0000
Message-ID: <20100511231912.3193.qmail@stuge.se>
Date: Wed, 12 May 2010 01:19:12 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: "Callback returned error" with public key authentication,
	under windows, linux works
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <4BE9154C.4080301@gmx.net>
	<AANLkTilZXDdHwsWOaPY6CPBwartgXTP9HCGqbQBpzWkQ@mail.gmail.com>
	<4BE928E2.7020205@gmx.net>
	<BBB286BA-94ED-498C-B23D-EBA22477F5AA@freimer.org>
MIME-Version: 1.0
In-Reply-To: <BBB286BA-94ED-498C-B23D-EBA22477F5AA@freimer.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: multipart/mixed; boundary="===============0250020300=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


--===============0250020300==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy"
Content-Disposition: inline


--gBBFr7Ir9EOA20Yy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Frederick Reimer wrote:
> Hmm.  I don't know the details of SSH, but based on the text of the
> message and knowledge of PKI I can take a wild guess.  Perhaps the
> Windows box does not trust the root cert that signed the public
> key, while the Linux box does trust the cert that signed the public
> key?

Please note that public key auth in SSH is quite different from PKI.

Recent OpenSSH also implements a PKI, using nothing but the native
key format, but in any case that is not relevant for the public key
authentication in SSH.

The error can be explained by using "r" instead of "rb" in fopen().
It would be great if that could be verified.


//Peter

--gBBFr7Ir9EOA20Yy
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFL6eXwhR3Q0dhIfEgRAqq/AKCWp8MxlW8Z5b3Wrgl6u6Cx79/bkACgz/RV
WTgQx4iimNsfrZO8gNKQX48=
=AAaI
-----END PGP SIGNATURE-----

--gBBFr7Ir9EOA20Yy--

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

--===============0250020300==--

From libssh2-devel-bounces@cool.haxx.se  Wed May 12 09:00: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 o4C70HNY008347;
	Wed, 12 May 2010 09:00:29 +0200
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o4C70Gdq008178
	for <libssh2-devel@cool.haxx.se>; Wed, 12 May 2010 09:00:16 +0200
Received: (qmail invoked by alias); 12 May 2010 07:00:11 -0000
Received: from VPN-082-106.HS-Ulm.DE (EHLO [141.59.82.106]) [141.59.82.106]
	by mail.gmx.net (mp061) with SMTP; 12 May 2010 09:00:11 +0200
X-Authenticated: #13593680
X-Provags-ID: V01U2FsdGVkX19zexwuVnJz73qPpGQLFRvb1UpVG4b+daNQsMxCa7
	vPorMu/gOsbdVv
Message-ID: <4BEA51FB.8000908@gmx.net>
Date: Wed, 12 May 2010 09:00:11 +0200
From: Bart Simpson <b_a_r_t@gmx.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de;
	rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: "Callback returned error" with public key authentication,	under
	windows, linux works
References: <4BE9154C.4080301@gmx.net>	<AANLkTilZXDdHwsWOaPY6CPBwartgXTP9HCGqbQBpzWkQ@mail.gmail.com>	<4BE928E2.7020205@gmx.net>
	<4BE9154C.4080301@gmx.net> <20100511140243.9174.qmail@stuge.se>
In-Reply-To: <20100511140243.9174.qmail@stuge.se>
X-Y-GMX-Trusted: 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

> I suggest that you use the agent support. Use libssh2-1.2.4 or later.
>
> The agent support uses ssh-agent on Linux and Pageant on Windows.

I think that is no option for me, because my chief will be not happy if
I use a extra program which is show as tray icon at task bar.
By the way I use libssh2-1.2.5

> src/userauth.c file_read_publickey() has this code:
>
>      /* Read Public Key */
>      fd = fopen(pubkeyfile, "r");
>      if (!fd) {
>          return _libssh2_error(session, LIBSSH2_ERROR_FILE,
>                                "Unable to open public key file");
>      }
>      while (!feof(fd)&&  (c = fgetc(fd)) != '\r'&&  c != '\n')
>          pubkey_len++;
>
> You could try to change "r" in the call to fopen() into "rb" instead.
>
> If you're not comfortable recompiling libssh2 then run unix2dos or
> something similar on the key files, to convert their line endings.
>
> I think we should be line ending agnostic in libssh2, so the code
> above should be fixed. I'll have a look.

I tried it with three different unix2dos tools and it makes no 
difference, the function returned always
the same error code.
At the moment I use a precompilied windows version of libss2 from 
"http://josefsson.org/gnutls4win/",
because last week I try to compile my own version, but it failed. I will 
try this again today.


Regards,
Thomas

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

From libssh2-devel-bounces@cool.haxx.se  Wed May 12 17:32: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 o4CFWPYX019056;
	Wed, 12 May 2010 17:32:40 +0200
Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com
	[209.85.219.226])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o4CFWNZg018998
	for <libssh2-devel@cool.haxx.se>; Wed, 12 May 2010 17:32:24 +0200
Received: by ewy26 with SMTP id 26so92538ewy.3
	for <libssh2-devel@cool.haxx.se>; Wed, 12 May 2010 08:32:23 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.239.185.72 with SMTP id b8mr719965hbh.99.1273678343130; Wed, 
	12 May 2010 08:32:23 -0700 (PDT)
Received: by 10.239.161.16 with HTTP; Wed, 12 May 2010 08:32:20 -0700 (PDT)
Date: Wed, 12 May 2010 17:32:20 +0200
Message-ID: <r2x50cb0cb61005120832z2f39ac0an991e933210ad45cf@mail.gmail.com>
Subject: man2help utilities
From: Jose Baars <peut@peut.org>
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="===============0387412201=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0387412201==
Content-Type: multipart/alternative; boundary=001485f81426334ccb04866759f2

--001485f81426334ccb04866759f2
Content-Type: text/plain; charset=ISO-8859-1

Hi,

Attached a small VMS specific patch to improve the usability of the
help library generated by the man2help tool. It adds () to the every
function description, making the function names unique.
Found out while writing the ultimate SFTP client :-).

Thanks and good luck,
Jose

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

Hi,<br><br>Attached a small VMS specific patch to improve the usability of =
the <br>help library generated by the man2help tool. It adds () to the ever=
y <br>function description, making the function names unique.<br>Found out =
while writing the ultimate SFTP client :-).<br>
<br>Thanks and good luck, <br>Jose<br>

--001485f81426334ccb04866759f2--

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

--===============0387412201==--

From libssh2-devel-bounces@cool.haxx.se  Wed May 12 17:33: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 o4CFXV2x019453;
	Wed, 12 May 2010 17:33:32 +0200
Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com
	[209.85.219.226])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o4CFXTd9019400
	for <libssh2-devel@cool.haxx.se>; Wed, 12 May 2010 17:33:29 +0200
Received: by ewy26 with SMTP id 26so93427ewy.3
	for <libssh2-devel@cool.haxx.se>; Wed, 12 May 2010 08:33:29 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.239.151.78 with SMTP id q14mr667516hbb.152.1273678408838; Wed, 
	12 May 2010 08:33:28 -0700 (PDT)
Received: by 10.239.161.16 with HTTP; Wed, 12 May 2010 08:33:28 -0700 (PDT)
In-Reply-To: <r2x50cb0cb61005120832z2f39ac0an991e933210ad45cf@mail.gmail.com>
References: <r2x50cb0cb61005120832z2f39ac0an991e933210ad45cf@mail.gmail.com>
Date: Wed, 12 May 2010 17:33:28 +0200
Message-ID: <w2g50cb0cb61005120833t67649c20u4d32c8f20810e918@mail.gmail.com>
Subject: Re: man2help utilities
From: Jose Baars <peut@peut.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary=001485f1dc141def220486675da5
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

--001485f1dc141def220486675da5
Content-Type: multipart/alternative; boundary=001485f1dc141def160486675da3

--001485f1dc141def160486675da3
Content-Type: text/plain; charset=ISO-8859-1

Sorry, now with attachment.
Jose

--001485f1dc141def160486675da3
Content-Type: text/html; charset=ISO-8859-1

Sorry, now with attachment.<br>Jose<br>

--001485f1dc141def160486675da3--
--001485f1dc141def220486675da5
Content-Type: application/octet-stream; 
	name="0001-VMS-small-improvement-to-the-man2help-utilities.patch"
Content-Disposition: attachment; 
	filename="0001-VMS-small-improvement-to-the-man2help-utilities.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_g94b9mqr0

RnJvbSA2MTEyNTJhZDkzNjg5MzBkMzkwZjMwZjc4OWE4MGNiNjhiMDFhYzQ0IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQ0KRnJvbTogSm9zZSBCYWFycyA8cGV1dEBwZXV0Lm9yZz4NCkRhdGU6IFdl
ZCwgMTIgTWF5IDIwMTAgMTE6MjQ6MjggLTA0MDANClN1YmplY3Q6IFtQQVRDSF0gVk1TOiBzbWFs
bCBpbXByb3ZlbWVudCB0byB0aGUgbWFuMmhlbHAgdXRpbGl0aWVzDQoKLS0tDQogdm1zL2xpYnNz
aDJfbWFrZV9oZWxwLmRjbCB8ICAgIDIgKy0NCiB2bXMvbWFuMmhlbHAuYyAgICAgICAgICAgIHwg
ICAyMiArKysrKysrKysrKysrKysrLS0tLS0tDQogMiBmaWxlcyBjaGFuZ2VkLCAxNyBpbnNlcnRp
b25zKCspLCA3IGRlbGV0aW9ucygtKQ0KCmRpZmYgLS1naXQgYS92bXMvbGlic3NoMl9tYWtlX2hl
bHAuZGNsIGIvdm1zL2xpYnNzaDJfbWFrZV9oZWxwLmRjbA0KaW5kZXggMTNiMjA2Ni4uYjI4MjY1
ZCAxMDA2NDQNCi0tLSBhL3Ztcy9saWJzc2gyX21ha2VfaGVscC5kY2wNCisrKyBiL3Ztcy9saWJz
c2gyX21ha2VfaGVscC5kY2wNCkBAIC0zNyw3ICszNyw3IEBAIFJlZmVyZW5jZSBvZiBhbGwgaW1w
bGVtZW50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YmFzZV9sZXZl
bCwgYXBwZW5kICk7DQorc3RhdHVzID0gY29udmVydG1hbnMoIG1hbmZpbGUsIGhlbHBmaWxlLCBi
YXNlX2xldmVsLCBhcHBlbmQsIGFkZF9wYXJlbnRoZXNlcyApOw0KIA0KIGZyZWUoIG1hbmZpbGUg
KTsNCiBmcmVlKCBoZWxwZmlsZSApOw0KLS0gDQoxLjYuNi4xDQoK
--001485f1dc141def220486675da5
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

--001485f1dc141def220486675da5--

From libssh2-devel-bounces@cool.haxx.se  Thu May 13 14:47: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 o4DClJag026299;
	Thu, 13 May 2010 14:47:30 +0200
Received: from ispsystem.com (ispsystem.com [82.146.40.41])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o4DClIVv026296
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 13 May 2010 14:47:18 +0200
Received: from vian.ispsystem.com (93-94-180-103.irkcity.ru [93.94.180.103]
	(may be forged)) (authenticated bits=0)
	by ispsystem.com (8.14.3/8.14.4) with ESMTP id o4DClJC0022394
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <libssh2-devel@cool.haxx.se>; Thu, 13 May 2010 13:47:21 +0100 (BST)
	(envelope-from ivan@ispsystem.com)
Message-ID: <4BEBF4D7.2070102@ispsystem.com>
Date: Thu, 13 May 2010 21:47:19 +0900
From: Ivan Kruglov <ivan@ispsystem.com>
Organization: ISPSystem
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Thunderbird/3.0.4
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: ssh-agent forwarding?
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.3
	(ispsystem.com [82.146.40.41]);
	Thu, 13 May 2010 13:47:21 +0100 (BST)
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 everybody,

I'm quite new with libssh2 so i'm sorry if my question is obvious:
Is it possible to forward ssh-agent information using libssh2 like 'ssh 
-A' does?

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

From libssh2-devel-bounces@cool.haxx.se  Thu May 13 19:01: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 o4DH0m0p022808;
	Thu, 13 May 2010 19:01:05 +0200
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 o4DH0l6n022754
	for <libssh2-devel@cool.haxx.se>; Thu, 13 May 2010 19:00:47 +0200
Received: (qmail 15466 invoked by uid 501); 13 May 2010 17:00:49 -0000
Message-ID: <20100513170049.15465.qmail@stuge.se>
Date: Thu, 13 May 2010 19:00:49 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: ssh-agent forwarding?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <4BEBF4D7.2070102@ispsystem.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <4BEBF4D7.2070102@ispsystem.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 Ivan,

Ivan Kruglov wrote:
> I'm quite new with libssh2 so i'm sorry if my question is obvious:
> Is it possible to forward ssh-agent information using libssh2 like
> 'ssh -A' does?

No, that's not supported yet. Patches to implement it would be
welcome of course. :)

But I also guess that agent forwarding isn't quite as useful in a
libssh2 app as in the OpenSSH client. libssh2 is maybe most useful
for making custom apps that use SSH, not so much a remote login
program that allows a user to do a second remote login from the
remote host.


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

From libssh2-devel-bounces@cool.haxx.se  Mon May 17 06:02: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 o4H42Ufu019672;
	Mon, 17 May 2010 06:02:45 +0200
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 o4H42SlI019528
	for <libssh2-devel@cool.haxx.se>; Mon, 17 May 2010 06:02:28 +0200
Received: by wyg36 with SMTP id 36so2902781wyg.41
	for <libssh2-devel@cool.haxx.se>; Sun, 16 May 2010 21:02:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:mime-version:received:from:date
	:message-id:subject:to:content-type;
	bh=xEQTLZKN4UOWPLjTi8edUp3YbC1+rSPxWqLhzcsFfvk=;
	b=eE2/UEZ4u3i5AeJ8eXqxq8ZsVSFu16eq6zpnwcSGES2XtstoCz88wdY0lc5JEpxzR1
	BjCsVMD55YwH0BQMWMzMIiuhSPm46utZ7ER7lGqYYXo/ZSNXhRGf2LSGsiJ5FZXZW0lc
	PUHJpYib/MU3ah8D6RgZn2Qbq3i2kdlgjB48Y=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:from:date:message-id:subject:to:content-type;
	b=dXmq1LMV7lbBZo54ZS62iprBwemZWOxCeVQflnI6Q4zLuOfyUR4WHC8kuOcdq8aX9O
	kW2w5UJjuuji+E2d+KWSGnsIN/pXyAZq/IFD2DWJpYwPGbpDSMkBhnmeohyEunpmbhCO
	ARCIjP7zBXX9n7/ns25XrJTM/y57ckTbzGXCA=
Received: by 10.216.86.16 with SMTP id v16mr2725611wee.111.1274068943118; Sun, 
	16 May 2010 21:02:23 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.169.145 with HTTP; Sun, 16 May 2010 21:02:03 -0700 (PDT)
From: Ishaan Gulrajani <igul222@gmail.com>
Date: Mon, 17 May 2010 00:02:03 -0400
Message-ID: <AANLkTikKJPRz77oypyRysjIwohqDVdnRRMz_CwIMURUh@mail.gmail.com>
Subject: libssh2_poll_channel_read() is deprecated?
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: multipart/mixed; boundary="===============0772981492=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0772981492==
Content-Type: multipart/alternative; boundary=0016e6d588b9c622090486c24a5d

--0016e6d588b9c622090486c24a5d
Content-Type: text/plain; charset=ISO-8859-1

Hi everyone,

I'm building an SSH client and am trying to get data from the read buffer. I
was originally going to do something like this:

while(libssh2_poll_channel_read(my_channel)) {
  // read some more data to stdout
}

... but the documentation here:
http://www.libssh2.org/libssh2_poll_channel_read.html

... says that this function is deprecated. Is there any replacement? How
should I go about getting the data from the read buffer?

Thanks!

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

Hi everyone,<div><br></div><div>I&#39;m building an SSH client and am tryin=
g to get data from the read buffer. I was originally going to do something =
like this:</div><div><br></div><div>while(libssh2_poll_channel_read(my_chan=
nel)) {</div>

<div>=A0=A0// read some more data to stdout</div><div>}</div><div><br></div=
><div>... but the documentation here:</div><div><a href=3D"http://www.libss=
h2.org/libssh2_poll_channel_read.html">http://www.libssh2.org/libssh2_poll_=
channel_read.html</a></div>

<div><br></div><div>... says that this function is deprecated. Is there any=
 replacement? How should I go about getting the data from the read buffer?<=
/div><div><br></div><div>Thanks!</div><div><br></div>

--0016e6d588b9c622090486c24a5d--

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

--===============0772981492==--

From libssh2-devel-bounces@cool.haxx.se  Mon May 17 07:00: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 o4H505vl023498;
	Mon, 17 May 2010 07:00:11 +0200
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 o4H503s8023377
	for <libssh2-devel@cool.haxx.se>; Mon, 17 May 2010 07:00:04 +0200
Received: (qmail 11497 invoked by uid 501); 17 May 2010 05:00:05 -0000
Message-ID: <20100517050005.11496.qmail@stuge.se>
Date: Mon, 17 May 2010 07:00:05 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2_poll_channel_read() is deprecated?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <AANLkTikKJPRz77oypyRysjIwohqDVdnRRMz_CwIMURUh@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <AANLkTikKJPRz77oypyRysjIwohqDVdnRRMz_CwIMURUh@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

Ishaan Gulrajani wrote:
> How should I go about getting the data from the read buffer?

Look at the examples. Your snippet of code suggests that you want
blocking behavior, so just skip the nonblock ones.


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

From libssh2-devel-bounces@cool.haxx.se  Mon May 17 12:55: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 o4HAsu9X016315;
	Mon, 17 May 2010 12:55:09 +0200
Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o4HAst0E016311
	for <libssh2-devel@cool.haxx.se>; Mon, 17 May 2010 12:54:55 +0200
Received: by wwb34 with SMTP id 34so863929wwb.41
	for <libssh2-devel@cool.haxx.se>; Mon, 17 May 2010 03:54:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:from:in-reply-to:mime-version
	:references:date:message-id:subject:to:content-type;
	bh=kkYtwz2c0c6ZJs8fz1nsoX7UvT0YYuxpaVqC0sMY/NA=;
	b=GXYUzmIHSEbYe7MVKRHlsQcpSxxTdprjmQovVf6i58roTsLayULlWsOkc/bduRhT/p
	WSIuvzcHgtYE8/Q2dAqaJFv6TcpbpPjI0pKmon+8CDfQgcCjpoFfVlH+yv2wHzXgkhQ5
	yCr/mptWscSLN3v9kwraUlHePqfA5CT5pxRo4=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=from:in-reply-to:mime-version:references:date:message-id:subject:to
	:content-type;
	b=MoMacVIYNpUXJC9OX0n6ISQbp7I5LP/pTAvdGJMHEuM1o0V4x/DJ5AaiSBy6ozvIPe
	6eTfetFYzfGcvPKzyj7LBKxAnhNuS1YGCd5SnjXtcKooLCiF3y68oibFfQbw9+CYpxen
	keCnglGUOfF6ok2gkpmxAX/7LAMSUV4t7eIdI=
Received: by 10.216.180.198 with SMTP id j48mr2819401wem.108.1274093693012; 
	Mon, 17 May 2010 03:54:53 -0700 (PDT)
From: Ishaan Gulrajani <igul222@gmail.com>
In-Reply-To: <20100517050005.11496.qmail@stuge.se>
Mime-Version: 1.0 (iPad Mail 7B367)
References: <AANLkTikKJPRz77oypyRysjIwohqDVdnRRMz_CwIMURUh@mail.gmail.com> 
	<20100517050005.11496.qmail@stuge.se>
Date: Mon, 17 May 2010 06:54:47 -0400
Message-ID: <-2793205357690011199@unknownmsgid>
Subject: Re: libssh2_poll_channel_read() is deprecated?
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

Thanks, but I was unable to find any example demonstrating this. In
ssh2.c, I found this comment:

/* At this point the shell can be interacted with using
     * libssh2_channel_read()
     * libssh2_channel_read_stderr()
     * libssh2_channel_write()
     * libssh2_channel_write_stderr()
     *
     * Blocking mode may be (en|dis)abled with: libssh2_channel_set_blocking()
     * If the server send EOF, libssh2_channel_eof() will return non-0
     * To send EOF to the server use: libssh2_channel_send_eof()
     * A channel can be closed with: libssh2_channel_close()
     * A channel can be freed with: libssh2_channel_free()
     */

But It doesn't really explain the difference between blocking and
non-blocking mode. Could you please explain or point me to the right
example? Thanks!

On May 17, 2010, at 1:00 AM, Peter Stuge <peter@stuge.se> wrote:

> Ishaan Gulrajani wrote:
>> How should I go about getting the data from the read buffer?
>
> Look at the examples. Your snippet of code suggests that you want
> blocking behavior, so just skip the nonblock ones.
>
>
> //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  Mon May 17 13:21: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 o4HBLQL0002672;
	Mon, 17 May 2010 13:21:32 +0200
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 o4HBLOnK002655
	for <libssh2-devel@cool.haxx.se>; Mon, 17 May 2010 13:21:24 +0200
Received: (qmail 13065 invoked by uid 501); 17 May 2010 11:21:27 -0000
Message-ID: <20100517112127.13064.qmail@stuge.se>
Date: Mon, 17 May 2010 13:21:27 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2_poll_channel_read() is deprecated?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <AANLkTikKJPRz77oypyRysjIwohqDVdnRRMz_CwIMURUh@mail.gmail.com>
	<20100517050005.11496.qmail@stuge.se>
	<-2793205357690011199@unknownmsgid>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <-2793205357690011199@unknownmsgid>
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

Ishaan Gulrajani wrote:
> But It doesn't really explain the difference between blocking and
> non-blocking mode.

Blocking and non-blocking behaves exactly the same as blocking and
non-blocking I/O normally does on a socket or file descriptor.

If you are not familiar with these concepts then you need to show the
courtesy of spending some time with your favorite search engine to
learn about them. Some of the first hits on Google are:

http://en.wikipedia.org/wiki/Asynchronous_I/O
http://www.developerfusion.com/article/28/introduction-to-tcpip/8/
http://www.kegel.com/dkftpbench/nonblocking.html

..and there are of course many more good pages on the topic, along
with any and all references that are listed on those pages.


> Could you please explain or point me to the right example?

No. You did not explain one single thing about what you want so you
have made it impossible for anyone to help you.

Since your fake code (show *the actual* code that you use) did not
clearly demonstrate what your assumptions and preferences with regard
to the use of libssh2 are, I guessed that you want blocking behavior.

I said that you should look at *any* example to find out how to read
data, but that since you seem to want blocking behavior you should
not pick any of the _nonblock examples.

You have provided no new information but only asked me again to point
to an example, so I will answer exactly the same as before:

Look at any example except the _nonblock ones.

I would pick the smallest one. I would experiment, and I would try to
learn. If you have tried that and run into some trouble, then you
need to explain what you tried, what you expected, what happened, and
your idea about why it did not work as you expected if you want any
help.


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

From libssh2-devel-bounces@cool.haxx.se  Wed May 19 00:11: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 o4IMAmJJ003990;
	Wed, 19 May 2010 00:11:01 +0200
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 o4IMAlbO003985
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 19 May 2010 00:10:47 +0200
Received: (qmail 5425 invoked from network); 18 May 2010 22:10:52 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 18 May 2010 22:10:52 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.12b1
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12b1, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 18 May 2010 22:10:52 -0000
X-URL: http://libssh2.stuge.se/
Subject: [libssh2] #171: test program ssh2.c fails to compile under Windows XP
X-Trac-Ticket-URL: http://libssh2.stuge.se/ticket/171
Message-ID: <047.35063abfc30fa5e5a5485a742f296de3@libssh2.stuge.se>
X-Trac-Ticket-ID: 171
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

#171: test program ssh2.c fails to compile under Windows XP
-------------------------+--------------------------------------------------
 Reporter:  dchang92606  |       Owner:       
     Type:  defect       |      Status:  new  
 Priority:  normal       |   Milestone:  1.2.6
Component:  tests        |     Version:  1.2.4
 Keywords:               |      Blocks:       
Blocked By:               |  
-------------------------+--------------------------------------------------
 When compiling ssh2.c using Visual Studio 2005, I get this error...

 ssh2.c
 ssh2.c(60) : error C2220: warning treated as error - no 'object' file
 generated
 ssh2.c(60) : warning C4996: 'strdup' was declared deprecated
         c:\Program Files\Microsoft Visual Studio
 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
         Message: 'The POSIX name for this item is deprecated. Instead, use
 the ISO C++ conformant name: _strdup. See online help for details.'

 Looking on line 60, here is the code:

         responses[0].text = strdup(password);

 It's the only occurrence of strdup() in this program.  Thus, I recommend
 something like this in a header file...

 #ifdef _WIN32
 #define strdup _strdup
 #endif

 DC

-- 
Ticket URL: <http://libssh2.stuge.se/ticket/171>
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 May 19 01:25: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 o4INPPUq014683;
	Wed, 19 May 2010 01:25:36 +0200
Received: from mail-pz0-f185.google.com (mail-pz0-f185.google.com
	[209.85.222.185])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o4INPNq2014677
	for <libssh2-devel@cool.haxx.se>; Wed, 19 May 2010 01:25:24 +0200
Received: by pzk15 with SMTP id 15so3278368pzk.15
	for <libssh2-devel@cool.haxx.se>; Tue, 18 May 2010 16:25:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:received:sender:received:date
	:x-google-sender-auth:message-id:subject:from:to:content-type
	:content-transfer-encoding;
	bh=VwHcyOZaUreLJlZzcmhlBNBb0cuC2XaCEbSCPpkyyys=;
	b=Vd7mY2D6TwvUmeOqJME86APHgmYXZ40rrgILuVr8BoU3edzQyYeyj8jpGxZjE/Pviv
	G8xl7NNBc6ophv0Myxp0UQhgMUCMWj9OV+7TWq++JgJAe9Kq8jEzmfZJ82GeASNC/QOv
	N43/1pcVhPJXD5WYmMqY0y5nUwt9ccSjKsXNY=
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:content-transfer-encoding;
	b=kiiv3EykJIImxJomwe2VjCONG9MX7Aq3Pf/kdTpNTRIgUuTEapM+EU3q3M+MrtPVfT
	E7dZQmVnXC0RvDDa/Dn58tPIifn7V9yC/HYUPkejYZQUBUyy7+XvGFNNXEsZjQWzlFip
	ptc9Ja9dxSFfxvogz7fYruLBT31DBP675BfEs=
MIME-Version: 1.0
Received: by 10.142.1.9 with SMTP id 9mr5029953wfa.279.1274225124141; Tue, 18 
	May 2010 16:25:24 -0700 (PDT)
Received: by 10.142.154.16 with HTTP; Tue, 18 May 2010 16:25:23 -0700 (PDT)
Date: Wed, 19 May 2010 00:25:23 +0100
X-Google-Sender-Auth: ZhdKeMIpW5qLTVj065APcc1fEVk
Message-ID: <AANLkTimKPC6Q64OZeZRj58g1wSvfzf14pTaORIufgBch@mail.gmail.com>
Subject: 'Generic' port number used by libssh2_knownhost_checkp()
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

Currently=A0libssh2_knownhost_checkp() uses the magic value 0 in the
port number argument to indicate that the port number should be
ignored and generic checking should take place.  However, 0 is a valid
port number in its own right [1]

Therefore, I suggest changing the magic value to -1 before we make the
first release of libssh2 that includes this new API function.

Alex

[1] http://en.wikipedia.org/wiki/TCP_and_UDP_port
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed May 19 08:51: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 o4J6pO4m028390;
	Wed, 19 May 2010 08:51:39 +0200
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 o4J6pMWB028377
	for <libssh2-devel@cool.haxx.se>; Wed, 19 May 2010 08:51:22 +0200
Date: Wed, 19 May 2010 08:51:22 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: 'Generic' port number used by libssh2_knownhost_checkp()
In-Reply-To: <AANLkTimKPC6Q64OZeZRj58g1wSvfzf14pTaORIufgBch@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1005190850080.2783@tvnag.unkk.fr>
References: <AANLkTimKPC6Q64OZeZRj58g1wSvfzf14pTaORIufgBch@mail.gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
	BOUNDARY="-1470944514-339990059-1274251882=:2783"
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

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---1470944514-339990059-1274251882=:2783
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

On Wed, 19 May 2010, Alexander Lamaison wrote:

> Currently libssh2_knownhost_checkp() uses the magic value 0 in the port 
> number argument to indicate that the port number should be ignored and 
> generic checking should take place.  However, 0 is a valid port number in 
> its own right [1]
>
> Therefore, I suggest changing the magic value to -1 before we make the first 
> release of libssh2 that includes this new API function.

I have no objections. Port 0 is "magic" to lots of apps and system calls even, 
but that doesn't mean we shouldn't work to do it right!

-- 

  / daniel.haxx.se
---1470944514-339990059-1274251882=:2783
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

---1470944514-339990059-1274251882=:2783--

From libssh2-devel-bounces@cool.haxx.se  Wed May 19 17:55: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 o4JFtJGf008537;
	Wed, 19 May 2010 17:55:32 +0200
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 o4JFtHCa008523
	for <libssh2-devel@cool.haxx.se>; Wed, 19 May 2010 17:55:17 +0200
Received: (qmail 30874 invoked by uid 501); 19 May 2010 15:55:18 -0000
Message-ID: <20100519155518.30873.qmail@stuge.se>
Date: Wed, 19 May 2010 17:55:18 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: 'Generic' port number used by libssh2_knownhost_checkp()
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <AANLkTimKPC6Q64OZeZRj58g1wSvfzf14pTaORIufgBch@mail.gmail.com>
	<alpine.DEB.2.00.1005190850080.2783@tvnag.unkk.fr>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.00.1005190850080.2783@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:
>> changing the magic value to -1
>
> I have no objections.

Go from me too!


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

From libssh2-devel-bounces@cool.haxx.se  Fri May 21 14:27: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 o4LCRILs003891;
	Fri, 21 May 2010 14:27:31 +0200
Received: from samir.ibcsolutions.de (samir.ibcsolutions.de [78.47.90.66])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o4LCRFr8003797
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 21 May 2010 14:27:16 +0200
Received: from g229108076.adsl.alicedsl.de ([92.229.108.76] helo=barf)
	by samir.ibcsolutions.de with esmtpa (Exim 4.69)
	(envelope-from <aep@exys.org>) id 1OFRPw-0007BI-P0
	for libssh2-devel@cool.haxx.se; Fri, 21 May 2010 14:33:32 +0200
From: Arvid Picciani <aep@exys.org>
To: libssh2-devel@cool.haxx.se
Subject: [Patch] add read/write user callbacks
Date: Fri, 21 May 2010 14:27:00 +0200
Message-ID: <87zkzttp7v.fsf@exys.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
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

--=-=-=


Greetings.

the attached patch adds callbacks for recv/send to session, allowing
libssh2 to be integrated with high level socket tools  (in my case Qt).
--
Arvid


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline; filename=libssh2_rw_callbacks.patch

diff --git a/include/libssh2.h b/include/libssh2.h
index 6440001..3e4c01f 100644
--- a/include/libssh2.h
+++ b/include/libssh2.h
@@ -166,6 +166,15 @@ typedef long long libssh2_int64_t;
                                               void **abstract)
 #define LIBSSH2_FREE_FUNC(name)    void name(void *ptr, void **abstract)
 
+/* custom i/o  callbacks */
+#define LIBSSH2_RECV_FUNC(name)  ssize_t name(int socket, \
+                                              void *buffer, size_t length, \
+                                              int flags, void **abstract);
+#define LIBSSH2_SEND_FUNC(name)  ssize_t name(int socket, \
+                                              const void *buffer, size_t length,\
+                                              int flags, void **abstract);
+
+
 typedef struct _LIBSSH2_USERAUTH_KBDINT_PROMPT
 {
     char* text;
@@ -228,6 +237,8 @@ typedef struct _LIBSSH2_USERAUTH_KBDINT_RESPONSE
 #define LIBSSH2_CALLBACK_DISCONNECT         2
 #define LIBSSH2_CALLBACK_MACERROR           3
 #define LIBSSH2_CALLBACK_X11                4
+#define LIBSSH2_CALLBACK_SEND               5
+#define LIBSSH2_CALLBACK_RECV               6
 
 /* libssh2_session_method_pref() constants */
 #define LIBSSH2_METHOD_KEX          0
diff --git a/src/libssh2_priv.h b/src/libssh2_priv.h
index c50fa8c..f2359f3 100644
--- a/src/libssh2_priv.h
+++ b/src/libssh2_priv.h
@@ -675,6 +675,8 @@ struct _LIBSSH2_SESSION
       LIBSSH2_DISCONNECT_FUNC((*ssh_msg_disconnect));
       LIBSSH2_MACERROR_FUNC((*macerror));
       LIBSSH2_X11_OPEN_FUNC((*x11));
+      LIBSSH2_SEND_FUNC((*send));
+      LIBSSH2_RECV_FUNC((*recv));
 
     /* Method preferences -- NULL yields "load order" */
     char *kex_prefs;
diff --git a/src/session.c b/src/session.c
index f6498e4..3c4b5a9 100644
--- a/src/session.c
+++ b/src/session.c
@@ -112,9 +112,15 @@ banner_receive(LIBSSH2_SESSION * session)
         /* no incoming block yet! */
         session->socket_block_directions &= ~LIBSSH2_SESSION_BLOCK_INBOUND;
 
-        ret = _libssh2_recv(session->socket_fd, &c, 1,
-                            LIBSSH2_SOCKET_RECV_FLAGS(session));
-        if (ret < 0)
+        if(session->recv){
+            ret = session->recv(session->socket_fd, &c, 1,
+                                LIBSSH2_SOCKET_RECV_FLAGS(session),
+                                &session->abstract);
+        }else{
+            ret = _libssh2_recv(session->socket_fd, &c, 1,
+                                LIBSSH2_SOCKET_RECV_FLAGS(session));
+        }
+        if (ret < 0 && (!session->recv || ret!=-EAGAIN))
             _libssh2_debug(session, LIBSSH2_TRACE_SOCKET,
                            "Error recving %d bytes to %p: %d", 1, &c, errno);
         else
@@ -122,7 +128,7 @@ banner_receive(LIBSSH2_SESSION * session)
                            "Recved %d bytes to %p", ret, &c);
 
         if (ret < 0) {
-            if (errno == EAGAIN) {
+            if (errno == EAGAIN || (session->recv && ret==-EAGAIN)) {
                 session->socket_block_directions =
                     LIBSSH2_SESSION_BLOCK_INBOUND;
                 session->banner_TxRx_total_send = banner_len;
@@ -221,11 +227,19 @@ banner_send(LIBSSH2_SESSION * session)
     /* no outgoing block yet! */
     session->socket_block_directions &= ~LIBSSH2_SESSION_BLOCK_OUTBOUND;
 
-    ret = _libssh2_send(session->socket_fd,
-                        banner + session->banner_TxRx_total_send,
-                        banner_len - session->banner_TxRx_total_send,
-                        LIBSSH2_SOCKET_SEND_FLAGS(session));
-    if (ret < 0)
+    if(session->send){
+        ret = session->send(session->socket_fd,
+                            banner + session->banner_TxRx_total_send,
+                            banner_len - session->banner_TxRx_total_send,
+                            LIBSSH2_SOCKET_SEND_FLAGS(session),
+                            &session->abstract);
+    }else{
+        ret = _libssh2_send(session->socket_fd,
+                            banner + session->banner_TxRx_total_send,
+                            banner_len - session->banner_TxRx_total_send,
+                            LIBSSH2_SOCKET_SEND_FLAGS(session));
+    }
+    if (ret < 0 && (!session->send || ret!=-EAGAIN))
         _libssh2_debug(session, LIBSSH2_TRACE_SOCKET,
                        "Error sending %d bytes: %d",
                        banner_len - session->banner_TxRx_total_send, errno);
@@ -236,7 +250,8 @@ banner_send(LIBSSH2_SESSION * session)
                        banner, session->banner_TxRx_total_send);
 
     if (ret != (banner_len - session->banner_TxRx_total_send)) {
-        if ((ret > 0) || ((ret == -1) && (errno == EAGAIN))) {
+        if ((ret > 0) || ((ret == -1) && (errno == EAGAIN)) ||
+            (session->send && ret==-EAGAIN)) {
             /* the whole packet could not be sent, save the what was */
             session->socket_block_directions =
                 LIBSSH2_SESSION_BLOCK_OUTBOUND;
@@ -525,6 +540,15 @@ libssh2_session_callback_set(LIBSSH2_SESSION * session,
         session->x11 = callback;
         return oldcb;
 
+    case LIBSSH2_CALLBACK_SEND:
+        oldcb = session->send;
+        session->send = callback;
+        return oldcb;
+
+    case LIBSSH2_CALLBACK_RECV:
+        oldcb = session->recv;
+        session->recv = callback;
+        return oldcb;
     }
     _libssh2_debug(session, LIBSSH2_TRACE_TRANS, "Setting Callback %d", cbtype);
 
diff --git a/src/transport.c b/src/transport.c
index 374c09b..4338066 100644
--- a/src/transport.c
+++ b/src/transport.c
@@ -372,10 +372,19 @@ int _libssh2_transport_read(LIBSSH2_SESSION * session)
             }
 
             /* now read a big chunk from the network into the temp buffer */
-            nread =
-                _libssh2_recv(session->socket_fd, &p->buf[remainbuf],
-                              PACKETBUFSIZE - remainbuf,
-                              LIBSSH2_SOCKET_RECV_FLAGS(session));
+            if(session->recv){
+                nread =
+                    session->recv(session->socket_fd, &p->buf[remainbuf],
+                                  PACKETBUFSIZE - remainbuf,
+                                  LIBSSH2_SOCKET_RECV_FLAGS(session),
+                                  &session->abstract);
+
+            }else {
+                nread =
+                    _libssh2_recv(session->socket_fd, &p->buf[remainbuf],
+                                  PACKETBUFSIZE - remainbuf,
+                                  LIBSSH2_SOCKET_RECV_FLAGS(session));
+            }
             if (nread < 0)
                 _libssh2_debug(session, LIBSSH2_TRACE_SOCKET,
                                "Error recving %d bytes to %p+%d: %d",
@@ -388,7 +397,8 @@ int _libssh2_transport_read(LIBSSH2_SESSION * session)
             if (nread <= 0) {
                 /* check if this is due to EAGAIN and return the special
                    return code if so, error out normally otherwise */
-                if ((nread < 0) && (errno == EAGAIN)) {
+                if (((nread < 0) && ((errno == EAGAIN)))
+                    || ( session->recv && nread== -EAGAIN )){
                     session->socket_block_directions |=
                         LIBSSH2_SESSION_BLOCK_INBOUND;
                     return LIBSSH2_ERROR_EAGAIN;
@@ -642,9 +652,14 @@ send_existing(LIBSSH2_SESSION * session, unsigned char *data,
     /* number of bytes left to send */
     length = p->ototal_num - p->osent;
 
-    rc = _libssh2_send(session->socket_fd, &p->outbuf[p->osent], length,
-                       LIBSSH2_SOCKET_SEND_FLAGS(session));
-    if (rc < 0)
+    if(session->send){
+        rc = session->send(session->socket_fd, &p->outbuf[p->osent], length,
+                           LIBSSH2_SOCKET_SEND_FLAGS(session),&session->abstract);
+    }else{
+        rc = _libssh2_send(session->socket_fd, &p->outbuf[p->osent], length,
+                           LIBSSH2_SOCKET_SEND_FLAGS(session));
+    }
+    if (rc < 0 && (!session->send || rc!=-EAGAIN))
         _libssh2_debug(session, LIBSSH2_TRACE_SOCKET,
                        "Error sending %d bytes: %d", length, errno);
     else
@@ -665,7 +680,7 @@ send_existing(LIBSSH2_SESSION * session, unsigned char *data,
     }
     else if (rc < 0) {
         /* nothing was sent */
-        if (errno != EAGAIN) {
+        if (errno != EAGAIN && ( !session->send || rc!=-EAGAIN )) {
             /* send failure! */
             return LIBSSH2_ERROR_SOCKET_NONE;
         }
@@ -824,9 +839,14 @@ _libssh2_transport_write(LIBSSH2_SESSION * session, unsigned char *data,
 
     session->local.seqno++;
 
-    ret = _libssh2_send(session->socket_fd, p->outbuf, total_length,
-                        LIBSSH2_SOCKET_SEND_FLAGS(session));
-    if (ret < 0)
+    if(session->send){
+        ret = session->send(session->socket_fd, p->outbuf, total_length,
+                            LIBSSH2_SOCKET_SEND_FLAGS(session),&session->abstract);
+    }else{
+        ret = _libssh2_send(session->socket_fd, p->outbuf, total_length,
+                            LIBSSH2_SOCKET_SEND_FLAGS(session));
+    }
+    if (ret < 0 && (!session->send || ret!=-EAGAIN))
         _libssh2_debug(session, LIBSSH2_TRACE_SOCKET,
                        "Error sending %d bytes: %d", total_length, errno);
     else
@@ -837,7 +857,8 @@ _libssh2_transport_write(LIBSSH2_SESSION * session, unsigned char *data,
         debugdump(session, "libssh2_transport_write send()", p->outbuf, ret);
     }
     if (ret != total_length) {
-        if ((ret > 0) || ((ret == -1) && (errno == EAGAIN))) {
+        if ((ret > 0) || ((ret == -1) && (errno == EAGAIN)) ||
+            (session->send && ret==-EAGAIN)) {
             /* the whole packet could not be sent, save the rest */
             session->socket_block_directions |= LIBSSH2_SESSION_BLOCK_OUTBOUND;
             p->odata = orgdata;

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

--=-=-=--

From libssh2-devel-bounces@cool.haxx.se  Fri May 21 15:53: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 o4LDrYvQ023559;
	Fri, 21 May 2010 15:53:46 +0200
Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com
	[209.85.160.182])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o4LDrW4r023467
	for <libssh2-devel@cool.haxx.se>; Fri, 21 May 2010 15:53:32 +0200
Received: by gyh20 with SMTP id 20so552793gyh.41
	for <libssh2-devel@cool.haxx.se>; Fri, 21 May 2010 06:53:29 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.101.155.14 with SMTP id h14mr2169508ano.206.1274450008809; 
	Fri, 21 May 2010 06:53:28 -0700 (PDT)
Received: by 10.100.42.15 with HTTP; Fri, 21 May 2010 06:53:28 -0700 (PDT)
Date: Fri, 21 May 2010 15:53:28 +0200
Message-ID: <AANLkTimt0vN2R5hboFp5vI4_1Jgwj8YKPNhIuNDDrAEh@mail.gmail.com>
Subject: VMS specific patch to kit build procedure
From: Jose Baars <peut@peut.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary=0016e68e7f6d0f1fa004871b0451
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

--0016e68e7f6d0f1fa004871b0451
Content-Type: multipart/alternative; boundary=0016e68e7f6d0f1f9604871b044f

--0016e68e7f6d0f1f9604871b044f
Content-Type: text/plain; charset=ISO-8859-1

Hi,

Attached a small patch that solves a bug in the kit build procedure: final
builds would not
install over daily builds.

John Malmberg kindly pointed me to the problem, thanks John.

Btw, if you find the time, could you push the other VMS specific patch I
sent
May 12 as well?

Regards,
Jose

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

Hi,<br><br>Attached a small patch that solves a bug in the kit build proced=
ure: final builds would not<br>install over daily builds.<br><br>John Malmb=
erg kindly pointed me to the problem, thanks John.<br><br>Btw, if you find =
the time, could you push the other VMS specific patch I sent=A0 <br>
May 12 as well?<br><br>Regards,<br>Jose<br>

--0016e68e7f6d0f1f9604871b044f--
--0016e68e7f6d0f1fa004871b0451
Content-Type: application/octet-stream; 
	name="0002-VMS-specific-make-sure-final-release-can-be-installe.patch"
Content-Disposition: attachment; 
	filename="0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RkYXNoKzEs
OCxyZXN0ZGlyKSAgIA0KICQgZW5kaWYNCkBAIC0xMTMsNyArMTEzLDcgQEAgJCBpZiBkYWlseQ0K
ICQgdGhlbg0KICQgICBwcm9kdWN0bmFtZSA9ICJKQ0IgJydhcmNoJyBMSUJTU0gyIFYnJ3Ztc19t
YWpvcnYnLicnbWlub3J2Jy0nJ3BhdGNodicnJ2RhdGVuYW1lJyINCiAkIGVsc2UNCi0kICAgcHJv
ZHVjdG5hbWUgPSAiSkNCICcnYXJjaCcgTElCU1NIMiBWJyd2bXNfbWFqb3J2Jy4nJ21pbm9ydict
JydwYXRjaHYnIg0KKyQgICBwcm9kdWN0bmFtZSA9ICJKQ0IgJydhcmNoJyBMSUJTU0gyIFYnJ3Zt
c19tYWpvcnYnLicnbWlub3J2Jy0nJ3BhdGNodicnJ2RhdGVuYW1lJyINCiAkIGVuZGlmDQogJCEN
CiAkIHByb2R1Y3RmaWxlbmFtZSAgPSAiSkNCLScnYXJjaCctTElCU1NIMi0iICsgZiRmYW8oIlYh
MlpMITJaTC0hMlpMIUFTLTEiLCBmJGludGVnZXIodm1zX21ham9ydiksbWlub3J2LHBhdGNodixk
YXRlbmFtZSkNCi0tIA0KMS42LjYuMQ0KCg==
--0016e68e7f6d0f1fa004871b0451
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

--0016e68e7f6d0f1fa004871b0451--

From libssh2-devel-bounces@cool.haxx.se  Fri May 21 19:06: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 o4LH6KtI018725;
	Fri, 21 May 2010 19:06:35 +0200
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 o4LH6Dd5018518
	for <libssh2-devel@cool.haxx.se>; Fri, 21 May 2010 19:06:13 +0200
Received: (qmail 5818 invoked by uid 501); 21 May 2010 17:06:15 -0000
Message-ID: <20100521170615.5817.qmail@stuge.se>
Date: Fri, 21 May 2010 19:06:15 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: [Patch] add read/write user callbacks
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <87zkzttp7v.fsf@exys.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <87zkzttp7v.fsf@exys.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

Hi Arvid,

Arvid Picciani wrote:
> the attached patch adds callbacks for recv/send to session, allowing
> libssh2 to be integrated with high level socket tools  (in my case Qt).

I have two objections.

The first is minor and is about the unclean whitespace. See below.

The second is that the callbacks should probably be called by
_libssh2_send() and _recv() rather than at every call site. Your
patch duplicates a whole lot of ugly parameters that could instead be
just in one place. Also doing the calls in the lower layer allows
errno fixup in a single location.

This means changing _libssh2_send() and _recv() to take session as a
parameter, which I like because two of their parameters are already
struct members.

Finally I'd like some documentation about the send and recv callbacks
to explain what they can do and what they can not do.


> +++ b/include/libssh2.h
> @@ -166,6 +166,15 @@ typedef long long libssh2_int64_t;
>                                                void **abstract)
>  #define LIBSSH2_FREE_FUNC(name)    void name(void *ptr, void **abstract)
>  
> +/* custom i/o  callbacks */
> +#define LIBSSH2_RECV_FUNC(name)  ssize_t name(int socket, \
> +                                              void *buffer, size_t length, \
> +                                              int flags, void **abstract);
> +#define LIBSSH2_SEND_FUNC(name)  ssize_t name(int socket, \
> +                                              const void *buffer, size_t length,\
> +                                              int flags, void **abstract);
> +
> +

Please make that "Custom I/O callbacks" and I think you added one
blank line too many.


> +++ b/src/session.c
..
> -        if (ret < 0)
> +        if(session->recv){
..
> +        }else{

Please make all your ifs and elses look like the rest of libssh2.


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

From libssh2-devel-bounces@cool.haxx.se  Mon May 24 09:57: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 o4O7v3NP030968;
	Mon, 24 May 2010 09:57:18 +0200
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 o4O7v1n6030948
	for <libssh2-devel@cool.haxx.se>; Mon, 24 May 2010 09:57:01 +0200
Date: Mon, 24 May 2010 09:57:01 +0200 (CEST)
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 ed526a0 Add libssh2_sftp_statvfs() and
	libssh2_sftp_fstatvfs()
In-Reply-To: <20100524050631.16777.qmail@earth.stuge.se>
Message-ID: <alpine.DEB.2.00.1005240953580.3577@tvnag.unkk.fr>
References: <20100524050631.16777.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, 24 May 2010, libssh2@git.stuge.se wrote:

> +	libssh2_sftp_statvfs_ex.3 \

-1 on this.

I'm very much against the _ex() functions we have all over and I'm working 
hard towards removing the extensive use of macros instead of real functions in 
our API.

New functions and new things we add do not have to make the pains worse. We 
should add sensible functions without "_ex" and that we use directly without 
macros. Please.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Mon May 24 09:58:10 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 o4O7w9jL032163;
	Mon, 24 May 2010 09:58:10 +0200
Received: from itna.infosec.ru (itna.infosec.ru [82.198.190.199])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o4O7uBff030438
	for <libssh2-devel@cool.haxx.se>; Mon, 24 May 2010 09:56:12 +0200
X-IronPort-AV: E=Sophos;i="4.53,283,1272830400"; 
   d="scan'208";a="5505057"
Received: from SRV-MAILC.infosec.ru ([fe80::e16e:d8:32f4:e1aa]) by
	SRV-MAILA.infosec.ru ([::1]) with mapi; Sun, 23 May 2010 03:22:22 +0400
From: Grubsky Grigory <g.grubsky@securitycode.ru>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Date: Sun, 23 May 2010 03:22:17 +0400
Subject: win32 buid issue
Thread-Topic: win32 buid issue
Thread-Index: Acr5CEpnEElPUPLZTIiuGVWfU/T5zgA/UhXQ
Message-ID: <A79145721BEE274A9BE6DFCDE427BFCA017CEC20600B@SRV-MAILC.infosec.ru>
References: <87zkzttp7v.fsf@exys.org> <20100521170615.5817.qmail@stuge.se>
In-Reply-To: <20100521170615.5817.qmail@stuge.se>
Accept-Language: en-US, ru-RU
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-cr-puzzleid: {F1685578-D491-4BAF-B0A2-7A0018A76778}
x-cr-hashedpuzzle: OTw= BRIF BdjJ CdAg FYN3 GWhN HAMX HakL IAkw IMfg Isu9
	K7aL LCPo LFbK LL7C LXHj; 1;
	bABpAGIAcwBzAGgAMgAtAGQAZQB2AGUAbABAAGMAbwBvAGwALgBoAGEAeAB4AC4AcwBlAA==;
	Sosha1_v1; 7; {F1685578-D491-4BAF-B0A2-7A0018A76778};
	ZwAuAGcAcgB1AGIAcwBrAHkAQABzAGUAYwB1AHIAaQB0AHkAYwBvAGQAZQAuAHIAdQA=;
	Sat,
	22 May 2010 23:22:17 GMT;dwBpAG4AMwAyACAAYgB1AGkAZAAgAGkAcwBzAHUAZQA=
acceptlanguage: en-US, ru-RU
MIME-Version: 1.0
X-Mailman-Approved-At: Mon, 24 May 2010 09:58:07 +0200
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 everyone,

I would like to offer some patches.

1. VC swears at uint8_t (libssh2_priv.h line 492)
8<------------------------------------------------------
--- 00/libssh2_priv.h   2010-04-30 08:06:04 +0400
+++ 01/libssh2_priv.h   2010-05-23 03:06:34 +0400
@@ -41,6 +41,7 @@
 #define LIBSSH2_PRIV_H 1
 
 #ifdef _WIN32
+  typedef unsigned __int8 uint8_t;
   #ifndef _CRT_SECURE_NO_DEPRECATE
     #define _CRT_SECURE_NO_DEPRECATE 1
   #endif /* _CRT_SECURE_NO_DEPRECATE */
8<------------------------------------------------------

2. Incorrect _libssh2_store_str call (agent.c line 288)
8<------------------------------------------------------
--- 00/agent.c  2010-04-26 08:06:04 +0400
+++ 01/agent.c  2010-05-23 03:03:02 +0400
@@ -268,6 +268,7 @@
     char mapname[23];
     HANDLE filemap;
     unsigned char *p;
+    unsigned char *pbuff;
     int id;
     COPYDATASTRUCT cds;
 
@@ -285,7 +286,8 @@
        return -1;
     }
     p = MapViewOfFile(filemap, FILE_MAP_WRITE, 0, 0, 0);
-    _libssh2_store_str(p, transctx->request, transctx->request_len);
+    pbuff = p;
+    _libssh2_store_str(&pbuff, transctx->request, transctx->request_len);
 
     cds.dwData = PAGEANT_COPYDATA_ID;
     cds.cbData = 1 + strlen(mapname);
8<------------------------------------------------------

Am I right?

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

From libssh2-devel-bounces@cool.haxx.se  Mon May 24 09:58: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 o4O7wAo7032185;
	Mon, 24 May 2010 09:58:10 +0200
Received: from itna.infosec.ru (itna.infosec.ru [82.198.190.199])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o4O7uBfg030438
	for <libssh2-devel@cool.haxx.se>; Mon, 24 May 2010 09:56:12 +0200
X-IronPort-AV: E=Sophos;i="4.53,283,1272830400"; 
   d="scan'208";a="5505088"
Received: from SRV-MAILC.infosec.ru ([fe80::e16e:d8:32f4:e1aa]) by
	SRV-MAILB.infosec.ru ([::1]) with mapi; Sun, 23 May 2010 03:44:29 +0400
From: Grubsky Grigory <g.grubsky@securitycode.ru>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Date: Sun, 23 May 2010 03:44:28 +0400
Subject: win32 buid issue 2
Thread-Topic: win32 buid issue 2
Thread-Index: Acr1syNTyuq8wbUjT2S6NgNqrDwbVQEVMptQ
Message-ID: <A79145721BEE274A9BE6DFCDE427BFCA017CEC20600D@SRV-MAILC.infosec.ru>
References: <AANLkTikKJPRz77oypyRysjIwohqDVdnRRMz_CwIMURUh@mail.gmail.com>
	<20100517050005.11496.qmail@stuge.se>	<-2793205357690011199@unknownmsgid>
	<20100517112127.13064.qmail@stuge.se>
In-Reply-To: <20100517112127.13064.qmail@stuge.se>
Accept-Language: en-US, ru-RU
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US, ru-RU
MIME-Version: 1.0
X-Mailman-Approved-At: Mon, 24 May 2010 09:58:07 +0200
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

and more
8<-----------------------------------------
--- 00/libssh2.dsw      2009-05-20 17:08:44 +0400
+++ 01/libssh2.dsw      2009-10-05 20:30:50 +0400
@@ -3,19 +3,7 @@
 
 ###############################################################################
 
-Project: "libssh2_dll"=".\libssh2_dll.dsp" - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "libssh2_lib"=".\libssh2_lib.dsp" - Package Owner=<4>
+Project: "libssh2"=".\libssh2.dsp" - Package Owner=<4>
 
 Package=<5>
 {{{
8<-----------------------------------------
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon May 24 09:58: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 o4O7wBUx032216;
	Mon, 24 May 2010 09:58:11 +0200
Received: from itna.infosec.ru (itna.infosec.ru [82.198.190.199])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o4O7uBfh030438
	for <libssh2-devel@cool.haxx.se>; Mon, 24 May 2010 09:56:12 +0200
X-IronPort-AV: E=Sophos;i="4.53,283,1272830400"; 
   d="scan'208";a="5505093"
Received: from SRV-MAILC.infosec.ru ([fe80::e16e:d8:32f4:e1aa]) by
	SRV-MAILA.infosec.ru ([::1]) with mapi; Sun, 23 May 2010 03:50:45 +0400
From: Grubsky Grigory <g.grubsky@securitycode.ru>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Date: Sun, 23 May 2010 03:50:44 +0400
Subject: win32 buid issue 3
Thread-Topic: win32 buid issue 3
Thread-Index: Acr5CEpnEElPUPLZTIiuGVWfU/T5zgBAPwYw
Message-ID: <A79145721BEE274A9BE6DFCDE427BFCA017CEC20600E@SRV-MAILC.infosec.ru>
References: <87zkzttp7v.fsf@exys.org> <20100521170615.5817.qmail@stuge.se>
In-Reply-To: <20100521170615.5817.qmail@stuge.se>
Accept-Language: en-US, ru-RU
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US, ru-RU
MIME-Version: 1.0
X-Mailman-Approved-At: Mon, 24 May 2010 09:58:07 +0200
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

Oh, sorry. Last time.

8<--------------------------------------------
--- 00/libssh2.dsp      2010-05-21 08:08:20 +0400
+++ 01/libssh2.dsp      2010-05-23 03:47:35 +0400
@@ -109,7 +109,7 @@
 LIB32=link.exe -lib
 # ADD BASE LIB32 /nologo
 # ADD LIB32 /nologo
-# ADD LIB32 /nologo /out:"Release_lib\libssh.lib"
+# ADD LIB32 /nologo /out:"Release_lib\libssh2.lib"
 
 !ELSEIF  "$(CFG)" == "libssh2 - Win32 LIB Debug"
 8<--------------------------------------------


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

From libssh2-devel-bounces@cool.haxx.se  Mon May 24 10:30: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 o4O8U71O025065;
	Mon, 24 May 2010 10:30:14 +0200
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 o4O8U5dS024966
	for <libssh2-devel@cool.haxx.se>; Mon, 24 May 2010 10:30:05 +0200
Received: (qmail 25160 invoked by uid 501); 22 May 2010 02:43:25 -0000
Message-ID: <20100522024325.25159.qmail@stuge.se>
Date: Sat, 22 May 2010 04:43:25 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: [Patch] add read/write user callbacks
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <87zkzttp7v.fsf@exys.org> <20100521170615.5817.qmail@stuge.se>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20100521170615.5817.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:
> > the attached patch adds callbacks for recv/send to session, allowing
> > libssh2 to be integrated with high level socket tools  (in my case Qt).
> 
> I have two objections.

Maybe I should clarify that I think this is a very desirable
improvement when the small things are fixed! It would also fix a
ticket pretty neatly. :)

http://libssh2.stuge.se/ticket/161


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

From libssh2-devel-bounces@cool.haxx.se  Mon May 24 13:03: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 o4OB33CU016623;
	Mon, 24 May 2010 13:03:15 +0200
Received: from mail-px0-f182.google.com (mail-px0-f182.google.com
	[209.85.212.182])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o4OB313L016482
	for <libssh2-devel@cool.haxx.se>; Mon, 24 May 2010 13:03:02 +0200
Received: by pxi7 with SMTP id 7so1655364pxi.41
	for <libssh2-devel@cool.haxx.se>; Mon, 24 May 2010 04:02:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:received:sender:received
	:in-reply-to:references:date:x-google-sender-auth:message-id:subject
	:from:to:content-type:content-transfer-encoding;
	bh=MirAGkVmBIbkgf8NUG3ziNuAUtoeQ2q4Ey/jM01bWJM=;
	b=Ekk2pdege/e26Ffy0J7ke0AIO1wrd/S/cvaX5ScGZSlHRjtQ4IN9UFCvH6686cgu5q
	lJtH/icu+AAlQxbb5hbabt33eK3bbgJuyURkJjcKD9MiXik3pvgXOweH2v3ltz3YgYd3
	08bi5Dw0ziGRjy7s97M1uWLipRu17vAPxxgR0=
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=FBpdVn6qM96KNGxnnQq632ajCtWAocy9Dlk2qWAFmJsTGO5TbN6wASLsA+VMDmpi/c
	7g6n+B8TYDW7goqEdGu9No/jlBSF3ZLPjNafk9sCzDb5bbfn0LS65FWUIBoGLUOyn7JM
	MuBKkAo4Cwpx134jkbMkOc9H6oRSVF4EVQDQc=
MIME-Version: 1.0
Received: by 10.143.24.11 with SMTP id b11mr1832929wfj.215.1274522970380; Sat, 
	22 May 2010 03:09:30 -0700 (PDT)
Received: by 10.142.154.16 with HTTP; Sat, 22 May 2010 03:09:30 -0700 (PDT)
In-Reply-To: <AANLkTimt0vN2R5hboFp5vI4_1Jgwj8YKPNhIuNDDrAEh@mail.gmail.com>
References: <AANLkTimt0vN2R5hboFp5vI4_1Jgwj8YKPNhIuNDDrAEh@mail.gmail.com>
Date: Sat, 22 May 2010 11:09:30 +0100
X-Google-Sender-Auth: fLTgQ4G_2nNXi_4Nba8SxtMML-U
Message-ID: <AANLkTikFq7QbJmriqcvuAjSXIVHL0kCdBiQ8ooPLVmfM@mail.gmail.com>
Subject: Re: VMS specific patch to kit build procedure
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 21 May 2010 14:53, Jose Baars <peut@peut.org> wrote:
>
> Attached a small patch that solves a bug in the kit build procedure: final
> builds would not install over daily builds.
>
> Btw, if you find the time, could you push the other VMS specific patch I
> sent=A0May 12 as well?

Done.  Sorry for the delay.  Just keep poking us when that happens.

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

From libssh2-devel-bounces@cool.haxx.se  Mon May 24 13:43: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 o4OBhOs5018525;
	Mon, 24 May 2010 13:43:30 +0200
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 o4OBhNtW018499
	for <libssh2-devel@cool.haxx.se>; Mon, 24 May 2010 13:43:24 +0200
Received: (qmail 21775 invoked by uid 501); 24 May 2010 11:43:25 -0000
Message-ID: <20100524114325.21774.qmail@stuge.se>
Date: Mon, 24 May 2010 13:43:25 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2 master ed526a0 Add libssh2_sftp_statvfs() and
	libssh2_sftp_fstatvfs()
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <20100524050631.16777.qmail@earth.stuge.se>
	<alpine.DEB.2.00.1005240953580.3577@tvnag.unkk.fr>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.00.1005240953580.3577@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:
> I'm very much against the _ex() functions we have all over

I agree for some or even many calls.


> and I'm working hard towards removing the extensive use of macros
> instead of real functions in our API.

Yes, the macros kinda suck, but would a function doing the same thing
be much better?


> New functions and new things we add do not have to make the pains
> worse. We should add sensible functions without "_ex" and that we
> use directly without macros. Please.

Sure! Please suggest an improved API for these functions?

The difference between _ex and non-_ex here is that the macro calls
strlen(). Although not likely to be so common SSH does support
character sets with 0 bytes in them, and even though libssh2 is a C
API I hope you agree that it's not sensible to not be 8-bit clean.
Bindings for higher level language usually like data+length too.

I would be fine with removing the macro and giving the function the
same name as the macro has now, basically remove the convenience
strlen() from libssh2.

But I'd like to hear other suggestions too!

I didn't really have any good suggestion for how to make the API
better, so I pushed what was similar to the code we have.

(I found some other, perhaps even more important, issues throughout
the SFTP code too, it basically doesn't handle short writes correctly
in very many places.) Joey half-promised to look into it. :)


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

From libssh2-devel-bounces@cool.haxx.se  Mon May 24 16:51: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 o4OEpa3E014677;
	Mon, 24 May 2010 16:51:51 +0200
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 o4OEpY3t014667
	for <libssh2-devel@cool.haxx.se>; Mon, 24 May 2010 16:51:34 +0200
Date: Mon, 24 May 2010 16:51:34 +0200 (CEST)
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 ed526a0 Add libssh2_sftp_statvfs() and
	libssh2_sftp_fstatvfs()
In-Reply-To: <20100524114325.21774.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1005241636570.21480@tvnag.unkk.fr>
References: <20100524050631.16777.qmail@earth.stuge.se>
	<alpine.DEB.2.00.1005240953580.3577@tvnag.unkk.fr>
	<20100524114325.21774.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, 24 May 2010, Peter Stuge wrote:

>> and I'm working hard towards removing the extensive use of macros instead 
>> of real functions in our API.
>
> Yes, the macros kinda suck, but would a function doing the same thing be 
> much better?

Yes. But when it comes to just doing a strlen() I don't see why we need to 
"hide" it at all.

>> New functions and new things we add do not have to make the pains worse. We 
>> should add sensible functions without "_ex" and that we use directly 
>> without macros. Please.
>
> Sure! Please suggest an improved API for these functions?

Cut off _ex, remove the macro. That's better in my eys.

And I would much rather support -1 as a magic length to tell libssh2 to run a 
strlen() on the given data to figure out the length.

> Although not likely to be so common SSH does support character sets with 0 
> bytes in them, and even though libssh2 is a C API I hope you agree that it's 
> not sensible to not be 8-bit clean.

Yes and no.

The eight bit clean reason would be that the file names aren't necessarily 
encoded in anything 8bit. (The use of a true binary zero in a file name is a 
use case I could ignore if that was the only reason for a zero byte in the 
file name). But we have no way in the current libssh2 to negotiate file name 
encoding so there's no standard way to use anything exotic. SFTPv6 (we use v3 
but this is the closest spec I know that says anything about encoding) says 
file names are even supposed to be UTF-8 by default.

UTF-8 would make a lot of sense, and UTF-8 file names can be used zero- 
terminated in C code and then we don't actually _need_ a strlen.

> (I found some other, perhaps even more important, issues throughout the SFTP 
> code too, it basically doesn't handle short writes correctly in very many 
> places.) Joey half-promised to look into it. :)

Yes, and even worse: it doesn't deal with short reads very good if the server 
sends data that is shorter than what libssh2 expects it to send. This 
particular flaw is prevailing in lots of spots in the code still.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Tue May 25 20:03:24 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (list@localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id o4PI3C3Z026923;
	Tue, 25 May 2010 20:03:19 +0200
Received: from samir.ibcsolutions.de (samir.ibcsolutions.de [78.47.90.66])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id
	o4PI3Bhp026902
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 25 May 2010 20:03:12 +0200
Received: from e179162168.adsl.alicedsl.de ([85.179.162.168] helo=barf)
	by samir.ibcsolutions.de with esmtpa (Exim 4.69)
	(envelope-from <aep@exys.org>)
	id 1OGyYw-0007jq-L8; Tue, 25 May 2010 20:09:10 +0200
From: Arvid Picciani <aep@exys.org>
To: Peter Stuge <peter@stuge.se>, libssh2-devel@cool.haxx.se
Subject: Re: [Patch] add read/write user callbacks
In-Reply-To: <20100521170615.5817.qmail@stuge.se>
References: <87zkzttp7v.fsf@exys.org> <20100521170615.5817.qmail@stuge.se>
Date: Tue, 25 May 2010 20:02:48 +0200
Message-ID: <8739xfg8qf.fsf@exys.org>
MIME-Version: 1.0
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5 (giant.haxx.se [127.0.0.1]); Tue, 25 May 2010 20:03:24 +0200 (CEST)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5
	(giant.haxx.se [80.67.6.50]);
	Tue, 25 May 2010 20:03:12 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.13
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 Peter,

> The second is that the callbacks should probably be called by
> _libssh2_send() and _recv() rather than at every call site.

Yeah, that's what I thought first. Unfortunately it looks like *_send is
defined to send (3) on posix, and I was unsure if it should be a function
call on all platforms.

> This means changing _libssh2_send() and _recv() to take session as a
> parameter,

I prefer that as well. it also means compilation fails for old code.
easier to spot then.

> Finally I'd like some documentation about the send and recv callbacks
> to explain what they can do and what they can not do.

uuh...
I have no idea how to write manpages, but i can try when i find some
free time.

> and I think you added one
> blank line too many.

oops

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

From libssh2-devel-bounces@cool.haxx.se  Tue May 25 23:29:53 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (list@localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id o4PLTX5M026827;
	Tue, 25 May 2010 23:29:47 +0200
Received: from [80.67.6.50] (dast@[80.67.6.50])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id
	o4PLTWO4026817
	for <libssh2-devel@cool.haxx.se>; Tue, 25 May 2010 23:29:32 +0200
Date: Tue, 25 May 2010 23:29:32 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: win32 buid issue 2
In-Reply-To: <A79145721BEE274A9BE6DFCDE427BFCA017CEC20600D@SRV-MAILC.infosec.ru>
Message-ID: <alpine.DEB.2.00.1005252329000.1680@tvnag.unkk.fr>
References: <AANLkTikKJPRz77oypyRysjIwohqDVdnRRMz_CwIMURUh@mail.gmail.com>
	<20100517050005.11496.qmail@stuge.se>
	<-2793205357690011199@unknownmsgid>
	<20100517112127.13064.qmail@stuge.se>
	<A79145721BEE274A9BE6DFCDE427BFCA017CEC20600D@SRV-MAILC.infosec.ru>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5 (giant.haxx.se [127.0.0.1]); Tue, 25 May 2010 23:29:53 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.5
	(giant.haxx.se [80.67.6.50]);
	Tue, 25 May 2010 23:29:32 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.13
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, 23 May 2010, Grubsky Grigory wrote:

> and more

> --- 00/libssh2.dsw      2009-05-20 17:08:44 +0400
> +++ 01/libssh2.dsw      2009-10-05 20:30:50 +0400

Can you explain what this fix is for and why etc?

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Tue May 25 23:30:45 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (list@localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id o4PLUfKq027878;
	Tue, 25 May 2010 23:30:45 +0200
Received: from [80.67.6.50] (dast@[80.67.6.50])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id
	o4PLUe7r027824
	for <libssh2-devel@cool.haxx.se>; Tue, 25 May 2010 23:30:40 +0200
Date: Tue, 25 May 2010 23:30:40 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: win32 buid issue
In-Reply-To: <A79145721BEE274A9BE6DFCDE427BFCA017CEC20600B@SRV-MAILC.infosec.ru>
Message-ID: <alpine.DEB.2.00.1005252330130.1680@tvnag.unkk.fr>
References: <87zkzttp7v.fsf@exys.org> <20100521170615.5817.qmail@stuge.se>
	<A79145721BEE274A9BE6DFCDE427BFCA017CEC20600B@SRV-MAILC.infosec.ru>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5 (giant.haxx.se [127.0.0.1]); Tue, 25 May 2010 23:30:45 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.5
	(giant.haxx.se [80.67.6.50]);
	Tue, 25 May 2010 23:30:40 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.13
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, 23 May 2010, Grubsky Grigory wrote:

> I would like to offer some patches.

I pushed these and the "issue 3" one just now, thanks a lot!

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Wed May 26 00:33:25 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (list@localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id o4PMXEZw002964;
	Wed, 26 May 2010 00:33:22 +0200
Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id
	o4PMXCME002909
	for <libssh2-devel@cool.haxx.se>; Wed, 26 May 2010 00:33:12 +0200
Received: by ey-out-2122.google.com with SMTP id 4so234115eyf.31
	for <libssh2-devel@cool.haxx.se>; Tue, 25 May 2010 15:33:09 -0700 (PDT)
Received: by 10.213.113.133 with SMTP id a5mr871011ebq.69.1274826789494;
	Tue, 25 May 2010 15:33:09 -0700 (PDT)
Received: from [192.168.0.35] (96-160.ftth.onsbrabantnet.nl [88.159.160.96])
	by mx.google.com with ESMTPS id 13sm2662604ewy.1.2010.05.25.15.33.06
	(version=SSLv3 cipher=RC4-MD5); Tue, 25 May 2010 15:33:06 -0700 (PDT)
Message-ID: <4BFC501B.4090806@peut.org>
Date: Wed, 26 May 2010 00:32:59 +0200
From: Jose Baars <peut@peut.org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl;
	rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: Re: VMS specific patch to kit build procedure
References: <AANLkTimt0vN2R5hboFp5vI4_1Jgwj8YKPNhIuNDDrAEh@mail.gmail.com>
	<AANLkTikFq7QbJmriqcvuAjSXIVHL0kCdBiQ8ooPLVmfM@mail.gmail.com>
In-Reply-To: <AANLkTikFq7QbJmriqcvuAjSXIVHL0kCdBiQ8ooPLVmfM@mail.gmail.com>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5 (giant.haxx.se [127.0.0.1]); Wed, 26 May 2010 00:33:25 +0200 (CEST)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5
	(giant.haxx.se [80.67.6.50]);
	Wed, 26 May 2010 00:33:12 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.13
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="===============1179643250=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

This is a cryptographically signed message in MIME format.

--===============1179643250==
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms050701040301020805050106"

This is a cryptographically signed message in MIME format.

--------------ms050701040301020805050106
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Op 5/22/2010 12:09 PM, Alexander Lamaison schreef:
>
> Done.  Sorry for the delay.  Just keep poking us when that happens.
>
>
>   =20
No problem, thanks, will poke.

Jose


--------------ms050701040301020805050106
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIO1DCC
BEYwggOvoAMCAQICEGb9R+PCGeToms2Z3fU6yyQwDQYJKoZIhvcNAQEFBQAwXzELMAkGA1UE
BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAxIFB1Ymxp
YyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA1MTAyODAwMDAwMFoXDTE1
MTAyNzIzNTk1OVowgd0xCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEf
MB0GA1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazE7MDkGA1UECxMyVGVybXMgb2YgdXNl
IGF0IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9ycGEgKGMpMDUxHjAcBgNVBAsTFVBlcnNv
bmEgTm90IFZhbGlkYXRlZDE3MDUGA1UEAxMuVmVyaVNpZ24gQ2xhc3MgMSBJbmRpdmlkdWFs
IFN1YnNjcmliZXIgQ0EgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMnf
rOfq+PgDFMQAktXBfjbCPO98ch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ug
YXQgaHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL3JwYSAoYykwNTEeMBwGA1UECxMVUGVyc29u
YSBOb3QgVmFsaWRhdGVkMTcwNQYDVQQDEy5WZXJpU2lnbiBDbGFzcyAxIEluZGl2aWR1YWwg
U3Vic2NyaWJlciBDQSAtIEcyAhBCS4Gdpv+YpvBtjKeiLgaTMIIBBQYLKoZIhvcNAQkQAgsx
gfWggfIwgd0xCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEfMB0GA1UE
CxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazE7MDkGA1UECxMyVGVybXMgb2YgdXNlIGF0IGh0
dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9ycGEgKGMpMDUxHjAcBgNVBAsTFVBlcnNvbmEgTm90
IFZhbGlkYXRlZDE3MDUGA1UEAxMuVmVyaVNpZ24gQ2xhc3MgMSBJbmRpdmlkdWFsIFN1YnNj
cmliZXIgQ0EgLSBHMgIQQkuBnab/mKbwbYynoi4GkzANBgkqhkiG9w0BAQEFAASCAQATv0Er
E2sukdGU6YyjM4TnYYX08Gi8lMxWsvHNIrLUw74v1z6yFqTVT3eEU8SDUIHR/C5aUcIGLgQE
Y6/CXX+0I68NVQUCMZGkcHsFxh91Mr6gO/kHtSDC9s+7RTvIdrkjw9w4l6PEBecbcGse88sg
T1Jg5bwgYpKh0XFmNOzWm7sINf9O39TJ8CSFis1DC3udkJZ0cZcbfHk7EI9j3DZz4wdMFjB3
iEXyPUeLTqcVwpkTPG1PkEb8M20lDqVvmWWIR3uDjZsjreP5wVhvNGl1nCH+InR0J8qWw+B/
3Yk/7aUw5SOrLASzGzyMOK4sEoxpgXeZL23BGjS1TXI8gpbLAAAAAAAA
--------------ms050701040301020805050106--

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

--===============1179643250==--

From libssh2-devel-bounces@cool.haxx.se  Wed May 26 22:52:17 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (list@localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id o4QKD8Ye011708;
	Wed, 26 May 2010 22:13:27 +0200
Received: from friskymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com
	[208.113.200.5])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id
	o4QKD5PT011594
	for <libssh2-devel@cool.haxx.se>; Wed, 26 May 2010 22:13:06 +0200
Received: from theclerk.home (pool-71-166-51-102.bltmmd.fios.verizon.net
	[71.166.51.102])
	by friskymail-a1.g.dreamhost.com (Postfix) with ESMTP id DF5735F589
	for <libssh2-devel@cool.haxx.se>; Wed, 26 May 2010 13:13:00 -0700 (PDT)
Message-ID: <4BFD80CB.7030809@flipthebit.com>
Date: Wed, 26 May 2010 16:12:59 -0400
From: theclerk <theclerk@flipthebit.com>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
	rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 ThunderBrowse/3.2.8.1
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: windows build
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5 (giant.haxx.se [127.0.0.1]); Wed, 26 May 2010 22:13:32 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.5
	(giant.haxx.se [80.67.6.50]);
	Wed, 26 May 2010 22:13:06 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.13
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

I've been following the past couple of days with changes and progress to 
the windows build.  I can get it to build cleanly (VC9/static), however 
I get the following errors when trying to build the scp example.  It 
appears that although the lib compiles, its not correctly building (fact 
that an external app can't find libssh2_init).  When viewing the symbols 
with dumpbin the lib shows the function as UNDEF.

I'm linking libssh against OpenSSL (ssleay32, libeay32), zlib, and ws2_32.

1>scp_write.obj : error LNK2001: unresolved external symbol _libssh2_exit
1>scp_write.obj : error LNK2001: unresolved external symbol _libssh2_init
1>libssh.lib(session.obj) : error LNK2001: unresolved external symbol 
__libssh2_init_if_needed
1>libssh.lib(openssl.obj) : error LNK2001: unresolved external symbol 
__libssh2_init_if_needed
1>libssh.lib(session.obj) : error LNK2001: unresolved external symbol 
_libssh2_keepalive_send
1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol 
_inflateInit_
1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol 
_deflateInit_
1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol _inflate
1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol _deflate
1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol 
_inflateEnd
1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol 
_deflateEnd
1>C:\Projects\libssh2-dev\win32\Release\scp.exe : fatal error LNK1120: 
10 unresolved externals



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

From libssh2-devel-bounces@cool.haxx.se  Thu May 27 08:29:39 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (list@localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id o4R6TMbL009472;
	Thu, 27 May 2010 08:29:36 +0200
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.1) with ESMTP id
	o4R6TDMd009441
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 27 May 2010 08:29:20 +0200
Received: from mocca (c80-216-25-148.bredband.comhem.se [80.216.25.148])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	o4R6SwiF026041
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 27 May 2010 08:29:04 +0200
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: windows build
References: <4BFD80CB.7030809@flipthebit.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100527:libssh2-devel@cool.haxx.se::JEFJtnTb9r4VV4AQ:Bxn3
Date: Thu, 27 May 2010 08:28:58 +0200
In-Reply-To: <4BFD80CB.7030809@flipthebit.com> (theclerk@flipthebit.com's
	message of "Wed, 26 May 2010 16:12:59 -0400")
Message-ID: <87vda9n9hx.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.8 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.96 at yxa-v
X-Virus-Status: Clean
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5 (giant.haxx.se [127.0.0.1]); Thu, 27 May 2010 08:29:39 +0200 (CEST)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5
	(giant.haxx.se [80.67.6.50]);
	Thu, 27 May 2010 08:29:21 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.13
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

theclerk <theclerk@flipthebit.com> writes:

> I've been following the past couple of days with changes and progress
> to the windows build.  I can get it to build cleanly (VC9/static),
> however I get the following errors when trying to build the scp
> example.  It appears that although the lib compiles, its not correctly
> building (fact that an external app can't find libssh2_init).  When
> viewing the symbols with dumpbin the lib shows the function as UNDEF.
>
> I'm linking libssh against OpenSSL (ssleay32, libeay32), zlib, and ws2_32.
>
> 1>scp_write.obj : error LNK2001: unresolved external symbol _libssh2_exit
> 1>scp_write.obj : error LNK2001: unresolved external symbol _libssh2_init
> 1>libssh.lib(session.obj) : error LNK2001: unresolved external symbol
> __libssh2_init_if_needed
> 1>libssh.lib(openssl.obj) : error LNK2001: unresolved external symbol
> __libssh2_init_if_needed

I suspect src/global.c is missing from the Windows build scripts.

> 1>libssh.lib(session.obj) : error LNK2001: unresolved external symbol
> _libssh2_keepalive_send

And src/keepalive.c.

Both files were added relatively recently.

> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol
> _inflateInit_
> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol
> _deflateInit_
> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol _inflate
> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol _deflate
> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol
> _inflateEnd
> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol
> _deflateEnd

This is zlib.  Are you sure you linked libssh2 against zlib?

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

From libssh2-devel-bounces@cool.haxx.se  Thu May 27 10:04:29 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (list@localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id o4R84ILC026718;
	Thu, 27 May 2010 10:04:28 +0200
Received: from friskymail-a1.g.dreamhost.com (caibbdcaaaaf.dreamhost.com
	[208.113.200.5])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id
	o4R84Gbw026700
	for <libssh2-devel@cool.haxx.se>; Thu, 27 May 2010 10:04:17 +0200
Received: from theclerk.home (pool-71-166-51-102.bltmmd.fios.verizon.net
	[71.166.51.102])
	by friskymail-a1.g.dreamhost.com (Postfix) with ESMTP id 66C525F530
	for <libssh2-devel@cool.haxx.se>; Thu, 27 May 2010 01:04:15 -0700 (PDT)
Message-ID: <4BFE277E.5030600@flipthebit.com>
Date: Thu, 27 May 2010 04:04:14 -0400
From: theclerk <theclerk@flipthebit.com>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
	rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 ThunderBrowse/3.2.8.1
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: windows build
References: <4BFD80CB.7030809@flipthebit.com>
	<87vda9n9hx.fsf@mocca.josefsson.org>
In-Reply-To: <87vda9n9hx.fsf@mocca.josefsson.org>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5 (giant.haxx.se [127.0.0.1]); Thu, 27 May 2010 10:04:29 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.5
	(giant.haxx.se [80.67.6.50]);
	Thu, 27 May 2010 10:04:17 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.13
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

that did it!

To fix the zlib issue I added "#define ZLIB_WINAPI" right after 
"#LIBSSH2_HAVE_ZLIB" in comp.c.  Should probably be within another 
#ifdef WIN32, but this at least got me up and running.

Thanks!
-B


On 5/27/10 2:28 AM, Simon Josefsson wrote:
> theclerk<theclerk@flipthebit.com>  writes:
>
>
>> I've been following the past couple of days with changes and progress
>> to the windows build.  I can get it to build cleanly (VC9/static),
>> however I get the following errors when trying to build the scp
>> example.  It appears that although the lib compiles, its not correctly
>> building (fact that an external app can't find libssh2_init).  When
>> viewing the symbols with dumpbin the lib shows the function as UNDEF.
>>
>> I'm linking libssh against OpenSSL (ssleay32, libeay32), zlib, and ws2_32.
>>
>> 1>scp_write.obj : error LNK2001: unresolved external symbol _libssh2_exit
>> 1>scp_write.obj : error LNK2001: unresolved external symbol _libssh2_init
>> 1>libssh.lib(session.obj) : error LNK2001: unresolved external symbol
>> __libssh2_init_if_needed
>> 1>libssh.lib(openssl.obj) : error LNK2001: unresolved external symbol
>> __libssh2_init_if_needed
>>
> I suspect src/global.c is missing from the Windows build scripts.
>
>
>> 1>libssh.lib(session.obj) : error LNK2001: unresolved external symbol
>> _libssh2_keepalive_send
>>
> And src/keepalive.c.
>
> Both files were added relatively recently.
>
>
>> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol
>> _inflateInit_
>> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol
>> _deflateInit_
>> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol _inflate
>> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol _deflate
>> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol
>> _inflateEnd
>> 1>libssh.lib(comp.obj) : error LNK2001: unresolved external symbol
>> _deflateEnd
>>
> This is zlib.  Are you sure you linked libssh2 against zlib?
>
> /Simon
> _______________________________________________
> 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  Sun May 30 00:18:44 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (list@localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id o4TMIMbp014757;
	Sun, 30 May 2010 00:18:39 +0200
Received: from giant.haxx.se (dast@giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with ESMTP id
	o4TMILka014707
	for <libssh2-devel@cool.haxx.se>; Sun, 30 May 2010 00:18:21 +0200
Date: Sun, 30 May 2010 00:18:21 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: release time!
Message-ID: <alpine.DEB.2.00.1005300015350.16989@tvnag.unkk.fr>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5 (giant.haxx.se [127.0.0.1]); Sun, 30 May 2010 00:18:44 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.5
	(giant.haxx.se [80.67.6.50]);
	Sun, 30 May 2010 00:18:21 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.13
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 want to put together a release again. If you have any particular work 
pending or patches you NEED to get in, please proceed and do that or just yell 
on this list to let us know.

If there's nothing special in the pipe, I plan to release in 7 days, on or 
around June 5th 2010.

-- 

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

