From libssh2-devel-bounces@cool.haxx.se  Sun Apr  3 15:24:44 2011
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.4/8.14.4/Debian-2) with ESMTP id p33DOINh023666;
	Sun, 3 Apr 2011 15:24:40 +0200
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p33DOG7S023646
	for <libssh2-devel@cool.haxx.se>; Sun, 3 Apr 2011 15:24:16 +0200
Date: Sun, 3 Apr 2011 15:24:16 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: so that release...
Message-ID: <alpine.DEB.2.00.1104031518140.29548@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.8 (giant.haxx.se [127.0.0.1]); Sun, 03 Apr 2011 15:24:44 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Sun, 03 Apr 2011 15:24:16 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

Hi

We're closing in to my suggested release date. We seem to have some bug(s) 
that have been reported on Windows that don't occur on Linux.

What do people feel about releasing anyway?

I don't see how waiting will make anything better. We've had Windows-related 
bugs for over three months now (http://trac.libssh2.org/ticket/205) and there 
really isn't much activity around trying to fix these. I doubt giving it a 
bunch of more months will help much.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sun Apr  3 15:58:33 2011
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.4/8.14.4/Debian-2) with ESMTP id p33DwMiU012395;
	Sun, 3 Apr 2011 15:58:32 +0200
Received: from foo.stuge.se (qmailr@foo.stuge.se [212.181.44.140])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id p33DwK55012383
	for <libssh2-devel@cool.haxx.se>; Sun, 3 Apr 2011 15:58:20 +0200
Received: (qmail 25784 invoked by uid 501); 3 Apr 2011 13:58:23 -0000
Message-ID: <20110403135823.25783.qmail@stuge.se>
Date: Sun, 3 Apr 2011 15:58:23 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: so that release...
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <alpine.DEB.2.00.1104031518140.29548@tvnag.unkk.fr>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.00.1104031518140.29548@tvnag.unkk.fr>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Sun, 03 Apr 2011 15:58:33 +0200 (CEST)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Sun, 03 Apr 2011 15:58:21 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg wrote:
> We're closing in to my suggested release date. We seem to have some
> bug(s) that have been reported on Windows that don't occur on Linux.
>
> What do people feel about releasing anyway?

Go for it.


> I don't see how waiting will make anything better. We've had 
> Windows-related bugs for over three months now 
> (http://trac.libssh2.org/ticket/205) and there really isn't much
> activity around trying to fix these.

Hopefully a release will actually bring new resources to the bugs! :)


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

From libssh2-devel-bounces@cool.haxx.se  Sun Apr  3 18:05:44 2011
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.4/8.14.4/Debian-2) with ESMTP id p33G5QuZ020239;
	Sun, 3 Apr 2011 18:05:42 +0200
Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com
	[209.85.216.182])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p33G5OpG020101
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Sun, 3 Apr 2011 18:05:25 +0200
Received: by qyk27 with SMTP id 27so3787822qyk.20
	for <libssh2-devel@cool.haxx.se>; Sun, 03 Apr 2011 09:05:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type;
	bh=WjA91PQAaiph87g2TuPiy/Ax1z4UjP3pwg/ezKstkME=;
	b=G+UPERTUyOkevmtpirg8labqMraxTOMvoml/zgE9phCvYaz+PWGFba0v1fREBWifuI
	7OKEOtAbngFNZ3ilQwHvgitSY4oGowxXoZ/f0h4KyAZHNAiq297DunehUXj2aK8lV74z
	dDyTXbHxALqqomuxpPlkCJ60M7JJMPcSuOCbE=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type;
	b=g4JAioPhiRSJgnMkZx4QVAqmORt42eYpjhf1SgxSdgQxCD2QSd/6mjwm38CrVbGMbM
	fDqIIIv2SET+oEHwI4yfd+ztQwxO0+bwQEy6rvAF/BoQV9EedsIxdwy0Pe/QHt5Z8xHZ
	ooXDhB/a2FdmrPonQLQzyGIiR01jsEu/rrUyg=
MIME-Version: 1.0
Received: by 10.229.71.77 with SMTP id g13mr4954225qcj.116.1301846722144; Sun,
	03 Apr 2011 09:05:22 -0700 (PDT)
Received: by 10.229.28.203 with HTTP; Sun, 3 Apr 2011 09:05:22 -0700 (PDT)
In-Reply-To: <20110403135823.25783.qmail@stuge.se>
References: <alpine.DEB.2.00.1104031518140.29548@tvnag.unkk.fr>
	<20110403135823.25783.qmail@stuge.se>
Date: Sun, 3 Apr 2011 17:05:22 +0100
X-Google-Sender-Auth: UVg-cTpiwuqV8_fwczu0o6bky60
Message-ID: <BANLkTincUEy7FuUmO7EWd9pW6R+8tzuDrw@mail.gmail.com>
Subject: Re: so that release...
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Sun, 03 Apr 2011 18:05:43 +0200 (CEST)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Sun, 03 Apr 2011 18:05:25 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

On 3 April 2011 14:58, Peter Stuge <peter@stuge.se> wrote:
> Daniel Stenberg wrote:
>> We're closing in to my suggested release date. We seem to have some
>> bug(s) that have been reported on Windows that don't occur on Linux.
>>
>> What do people feel about releasing anyway?
>
> Go for it.

I'm also happy to go ahead with a release.  The problem I thought I'd
found turned out to be a flaw in my own code which wasn't handling
short reads and writes correctly.

Alex
--
Swish - Easy SFTP for Windows Explorer (http://www.swish-sftp.org)
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Sun Apr  3 18:12:28 2011
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.4/8.14.4/Debian-2) with ESMTP id p33GCOqh022640;
	Sun, 3 Apr 2011 18:12:27 +0200
Received: from foo.stuge.se (qmailr@foo.stuge.se [212.181.44.140])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id p33GCN9N022635
	for <libssh2-devel@cool.haxx.se>; Sun, 3 Apr 2011 18:12:23 +0200
Received: (qmail 5534 invoked by uid 501); 3 Apr 2011 16:12:26 -0000
Message-ID: <20110403161226.5533.qmail@stuge.se>
Date: Sun, 3 Apr 2011 18:12:26 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: so that release...
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <alpine.DEB.2.00.1104031518140.29548@tvnag.unkk.fr>
	<20110403135823.25783.qmail@stuge.se>
	<BANLkTincUEy7FuUmO7EWd9pW6R+8tzuDrw@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <BANLkTincUEy7FuUmO7EWd9pW6R+8tzuDrw@mail.gmail.com>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Sun, 03 Apr 2011 18:12:28 +0200 (CEST)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Sun, 03 Apr 2011 18:12:23 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

Alexander Lamaison wrote:
> The problem I thought I'd found turned out to be a flaw in my own
> code which wasn't handling short reads and writes correctly.

Did you ever create a ticket for it? Please remember to close it in
that case. :)


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

From libssh2-devel-bounces@cool.haxx.se  Mon Apr  4 17:24:24 2011
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.4/8.14.4/Debian-2) with ESMTP id p34FNwDE027379;
	Mon, 4 Apr 2011 17:24:18 +0200
Received: from s1.saphirion.com (s1.saphirion.com [95.156.192.235])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p34FNuub027330
	for <libssh2-devel@cool.haxx.se>; Mon, 4 Apr 2011 17:23:56 +0200
Received: from localhost (localhost [127.0.0.1])
	by s1.saphirion.com (Postfix) with ESMTP id 67EA23395DE
	for <libssh2-devel@cool.haxx.se>; Mon,  4 Apr 2011 17:23:54 +0200 (CEST)
X-Virus-Scanned: amavisd-new at saphirion.com
Received: from s1.saphirion.com ([127.0.0.1])
	by localhost (s1.saphirion.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id n2xGSEcAZ5Op for <libssh2-devel@cool.haxx.se>;
	Mon,  4 Apr 2011 17:23:54 +0200 (CEST)
Received: from [192.168.2.21] (s1.saphirion.com [95.156.192.235])
	by s1.saphirion.com (Postfix) with ESMTPA id 37CDB3395D9
	for <libssh2-devel@cool.haxx.se>; Mon,  4 Apr 2011 17:23:54 +0200 (CEST)
Received: from p4FDCCA22.dip0.t-ipconnect.de ([79.220.202.34]
	helo=[192.168.2.21]) by ASSP.nospam with ESMTP (2.0.1); 4 Apr 2011
	17:23:53 +0100
From: =?iso-8859-1?Q?=22Robert_M=2E_M=FCnch=22?=
	<robert.muench@robertmuench.de>
Subject: PK authentication from memory?
Date: Mon, 4 Apr 2011 17:23:53 +0200
Message-Id: <A5C35761-5425-4DEE-8320-3568340F9903@robertmuench.de>
To: libssh2-devel@cool.haxx.se
Mime-Version: 1.0 (Apple Message framework v1084)
X-Mailer: Apple Mail (2.1084)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Mon, 04 Apr 2011 17:24:23 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Mon, 04 Apr 2011 17:23:56 +0200 (CEST)
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
	p34FNuub027330
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id p34FNwDE027379

Hi, I'm creating an application where I need PK authentication from memory and avoid reading any key-file.

This function seems to be the right one for this:

int libssh2_userauth_publickey(LIBSSH2_SESSION *session,
const char *user,
const unsigned char *pubkeydata,
size_t pubkeydata_len,
sign_callback,
void **abstract);

The problem I have is with the callback. Because the docs say:

"int name(LIBSSH2_SESSION *session, unsigned char **sig, size_t *sig_len,
          const unsigned char *data, size_t data_len, void **abstract);

This function gets called..."

I read somewhere that I need to create responses somehow but don't have a clue how to use this callback. What is this callback for? Is there any example available?

Thanks a lot.

--
Robert M. Münch
http://www.robertmuench.de



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

From libssh2-devel-bounces@cool.haxx.se  Tue Apr  5 12:04:55 2011
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.4/8.14.4/Debian-2) with ESMTP id p35A4YfM010265;
	Tue, 5 Apr 2011 12:04:51 +0200
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p35A4W8C010217
	for <libssh2-devel@cool.haxx.se>; Tue, 5 Apr 2011 12:04:32 +0200
Date: Tue, 5 Apr 2011 12:04: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: PK authentication from memory?
In-Reply-To: <A5C35761-5425-4DEE-8320-3568340F9903@robertmuench.de>
Message-ID: <alpine.DEB.2.00.1104051202460.14391@tvnag.unkk.fr>
References: <A5C35761-5425-4DEE-8320-3568340F9903@robertmuench.de>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
	BOUNDARY="1129329158-1567782201-1301997872=:14391"
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Tue, 05 Apr 2011 12:04:55 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Tue, 05 Apr 2011 12:04:33 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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>
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: 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.

--1129329158-1567782201-1301997872=:14391
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

On Mon, 4 Apr 2011, "Robert M. Münch" wrote:

> I read somewhere that I need to create responses somehow but don't have a 
> clue how to use this callback. What is this callback for? Is there any 
> example available?

If there's no example in the example/ dir then we don't have any example for 
it.

As we're a very small development team and most of us only used parts of the 
library, I suggest you read the code to figure out what is passed in to the 
callback and what it expects to get back, and then we can use your research as 
basis to update/write the documentation to clearly explain this!

-- 

  / daniel.haxx.se
--1129329158-1567782201-1301997872=:14391
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

--1129329158-1567782201-1301997872=:14391--

From libssh2-devel-bounces@cool.haxx.se  Tue Apr  5 12:48:23 2011
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.4/8.14.4/Debian-2) with ESMTP id p35AmGal001833;
	Tue, 5 Apr 2011 12:48:22 +0200
Received: from s1.saphirion.com (s1.saphirion.com [95.156.192.235])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p35AmEd7001809
	for <libssh2-devel@cool.haxx.se>; Tue, 5 Apr 2011 12:48:14 +0200
Received: from localhost (localhost [127.0.0.1])
	by s1.saphirion.com (Postfix) with ESMTP id A4A9033AE5E
	for <libssh2-devel@cool.haxx.se>; Tue,  5 Apr 2011 12:48:11 +0200 (CEST)
X-Virus-Scanned: amavisd-new at saphirion.com
Received: from s1.saphirion.com ([127.0.0.1])
	by localhost (s1.saphirion.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id S49pzpR0pKhy for <libssh2-devel@cool.haxx.se>;
	Tue,  5 Apr 2011 12:48:11 +0200 (CEST)
Received: from mk093111226074.a1.net (s1.saphirion.com [95.156.192.235])
	by s1.saphirion.com (Postfix) with ESMTPA id 5E2CA33AE5A
	for <libssh2-devel@cool.haxx.se>; Tue,  5 Apr 2011 12:48:11 +0200 (CEST)
Received: from mk093111226074.a1.net ([93.111.226.74]
	helo=mk093111226074.a1.net)
	by ASSP.nospam with ESMTP (2.0.1); 5 Apr 2011 12:48:10 +0100
Mime-Version: 1.0 (Apple Message framework v1084)
Subject: Re: PK authentication from memory?
From: =?iso-8859-1?Q?=22Robert_M=2E_M=FCnch=22?=
	<robert.muench@robertmuench.de>
In-Reply-To: <alpine.DEB.2.00.1104051202460.14391@tvnag.unkk.fr>
Date: Tue, 5 Apr 2011 12:48:09 +0200
Message-Id: <35A4D6E6-AB0F-4D9D-8EE3-42D44C33661F@robertmuench.de>
References: <A5C35761-5425-4DEE-8320-3568340F9903@robertmuench.de>
	<alpine.DEB.2.00.1104051202460.14391@tvnag.unkk.fr>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1084)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Tue, 05 Apr 2011 12:48:23 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Tue, 05 Apr 2011 12:48:14 +0200 (CEST)
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
	p35AmEd7001809
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id p35AmGal001833

Am 05.04.2011 um 12:04 schrieb Daniel Stenberg:

> On Mon, 4 Apr 2011, "Robert M. Münch" wrote:
> 
>> I read somewhere that I need to create responses somehow but don't have a clue how to use this callback. What is this callback for? Is there any example available?
> 
> If there's no example in the example/ dir then we don't have any example for it.

Ok, thank. And yes, there is no example for the libssh2_userauth_publickey() function.

> As we're a very small development team and most of us only used parts of the library, I suggest you read the code to figure out what is passed in to the callback and what it expects to get back, and then we can use your research as basis to update/write the documentation to clearly explain this!

Ok, will do. Thanks for the clarification.

On to read the source-code :-)

--
Robert M. Münch
http://www.robertmuench.de



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

From libssh2-devel-bounces@cool.haxx.se  Tue Apr  5 19:22:01 2011
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.4/8.14.4/Debian-2) with ESMTP id p35HLWYl024436;
	Tue, 5 Apr 2011 19:21:55 +0200
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p35HLUpg024428
	for <libssh2-devel@cool.haxx.se>; Tue, 5 Apr 2011 19:21:30 +0200
Date: Tue, 5 Apr 2011 19:21:30 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: ANNOUNCE: libssh2 version 1.2.8
Message-ID: <alpine.DEB.2.00.1104051920180.23980@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.8 (giant.haxx.se [127.0.0.1]); Tue, 05 Apr 2011 19:22:00 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Tue, 05 Apr 2011 19:21:30 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

Hi friends!

I'm happy to announce that I've just packaged and uploaded libssh2 version 
1.2.8 to the web site. Get it from:

 	http://www.libssh2.org/

libssh2 1.2.8

This release includes the following changes:

  o added libssh2_free, libssh2_channel_get_exit_signal and
    libssh2_session_handshake
  o SFTP read/write remade and now MUCH faster, especially on high latency
    connections
  o added new examples: ssh2_echo.c, sftp_append.c and sftp_write_sliding.c
  o userauth: derive publickey from private
  o NEWS: now generated from git

This release includes the following bugfixes:

  o Support unlimited number of host names in a single line of the
    known_hosts file.
  o fix memory leak in userauth_keyboard_interactive()
  o fix memory leaks (two times cipher_data) for each sftp session
  o session_startup: manage server data before server identification
  o SCP: allow file names with bytes > 126
  o scp_recv: improved treatment of channel_read() returning zero
  o libssh2_userauth_authenticated: make it work as documented
  o variable size cleanup: match internal variable sizes better with the sizes
    of the fields used on the wire
  o channel_request_pty_size: fix reqPTY_state
  o sftp_symlink: return error if receive buffer too small
  o sftp_readdir: return error if buffer is too small
  o libssh2_knownhost_readfile.3: clarify return value
  o configure: stop using the deprecated AM_INIT_AUTOMAKE syntax
  o Fixed Win32 makefile which was now broken at resource build
  o kex_agree_hostkey: fix NULL pointer derefence
  o _libssh2_ntohu64: fix conversion from network bytes to uint64
  o ssize_t: proper typedef with MSVC compilers
  o zlib: Add debug tracing of zlib errors
  o decomp: increase decompression buffer sizes

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

  Alexander Lamaison, Alfred Gebert, Guenter Knauf, Dan Fandrich,
  Daniel Stenberg, Jasmeet Bagga, Joey Degges, Mark Smith, Peter Stuge,
  Pierre Joye, Simon Josefsson, TJ Saunders, Tommy Lindgren

         Thanks! (and sorry if I forgot to mention someone)

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Wed Apr  6 11:45:34 2011
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.4/8.14.4/Debian-2) with ESMTP id p369jADU027619;
	Wed, 6 Apr 2011 11:45:29 +0200
Received: from goalkeeper.city-fan.org (goalkeeper.city-fan.org
	[212.56.100.58])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p369j8lS027614
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 6 Apr 2011 11:45:09 +0200
Received: from roary.uk.virtensys.com (outbound-nat-153.uk.virtensys.com
	[86.15.121.153]) (authenticated bits=0)
	by goalkeeper.city-fan.org (8.14.4/8.14.4) with ESMTP id p369g0gr027372
	(version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO)
	for <libssh2-devel@cool.haxx.se>; Wed, 6 Apr 2011 10:42:00 +0100
Message-ID: <4D9C3568.1090008@city-fan.org>
Date: Wed, 06 Apr 2011 10:42:00 +0100
From: Paul Howarth <paul@city-fan.org>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14
	Thunderbird/3.1.9
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: "version" problem with 1.2.8
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Wed, 06 Apr 2011 11:45:34 +0200 (CEST)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Wed, 06 Apr 2011 11:45:09 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

There's a problem with the configure script in 1.2.8, where the VERSION 
variable extracted from ${srcdir}/include/libssh2.h (correctly) is later 
reset to "-". The result of this is that the "Version:" tag in the 
libssh2.pc is set to "-" rather than "1.2.8" and possibly similar 
effects elsewhere.

For the moment I'm working around this by patching the configure script 
as follows:

--- libssh2-1.2.8/configure.orig
+++ libssh2-1.2.8/configure
@@ -2807,7 +2807,7 @@

  # Define the identity of the package.
   PACKAGE='libssh2'
- VERSION='-'
+ VERSION='1.2.8'


  cat >>confdefs.h <<_ACEOF


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

From libssh2-devel-bounces@cool.haxx.se  Wed Apr  6 12:07:24 2011
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.4/8.14.4/Debian-2) with ESMTP id p36A7KPK007911;
	Wed, 6 Apr 2011 12:07:24 +0200
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p36A7J91007905
	for <libssh2-devel@cool.haxx.se>; Wed, 6 Apr 2011 12:07:19 +0200
Date: Wed, 6 Apr 2011 12:07:19 +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: "version" problem with 1.2.8
In-Reply-To: <4D9C3568.1090008@city-fan.org>
Message-ID: <alpine.DEB.2.00.1104061206500.5889@tvnag.unkk.fr>
References: <4D9C3568.1090008@city-fan.org>
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.8 (giant.haxx.se [127.0.0.1]); Wed, 06 Apr 2011 12:07:24 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Wed, 06 Apr 2011 12:07:19 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

On Wed, 6 Apr 2011, Paul Howarth wrote:

> There's a problem with the configure script in 1.2.8, where the VERSION 
> variable extracted from ${srcdir}/include/libssh2.h (correctly) is later 
> reset to "-". The result of this is that the "Version:" tag in the 
> libssh2.pc is set to "-" rather than "1.2.8" and possibly similar effects 
> elsewhere.

Oh indeed. I fixed it now by changing the variable name we use within the 
configure script. Thanks!

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sat Apr  9 09:13:28 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p397D3Gs030424;
	Sat, 9 Apr 2011 09:13:23 +0200
Received: from nm1-vm0.bullet.mail.in.yahoo.com
	(nm1-vm0.bullet.mail.in.yahoo.com [121.101.151.211])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id p397D1Bn030338
	for <libssh2-devel@cool.haxx.se>; Sat, 9 Apr 2011 09:13:01 +0200
Received: from [121.101.151.238] by nm1.bullet.mail.in.yahoo.com with NNFMP;
	09 Apr 2011 07:12:56 -0000
Received: from [121.101.151.232] by tm3.bullet.mail.in.yahoo.com with NNFMP;
	09 Apr 2011 07:13:43 -0000
Received: from [127.0.0.1] by omp1001.mail.in.yahoo.com with NNFMP;
	09 Apr 2011 07:12:56 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 400638.17900.bm@omp1001.mail.in.yahoo.com
Received: (qmail 39110 invoked by uid 60001); 9 Apr 2011 07:12:56 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
	t=1302333176; bh=Ukf1QWUjdMxZdqkqu8r1A7bZCNVIqEgXDrd+ZYblNkM=;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type;
	b=mEL4cspLFf700R5FajXHqr5PWwF6BWsw6hd3VL1c0bxcFBq4BzASjJYsGbSfgacziEamWph9CzCPyczscZURcfp9t1NNpEXjId1NABgovzlWty96blhNmzhj4gAps9vVCu7fX1F6bzp6UXjMkHNp/a48b+KgENGcHLGjMqOBkHE=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type;
	b=msXTY4jQz6bsAilmov4aRQxMkI8IWvp3YR5tb5ym9ZjZ3XVsageoMX+vjiv4bSkfXhy1/KHpTCHwfqnDaGFEFiVkKXf8ffppJkydHsPwoiSPxHfe3hltd39uQkYylAufyhiWIL/8/Ii1l7+qfuOSZvssW8vZv9S53eSFdosLT+c=;
Message-ID: <244506.39084.qm@web137403.mail.in.yahoo.com>
X-YMail-OSG: 7U7ifl8VM1nYzqqHQtb1CaJmLvDDP.KEiVEP_GcmbNUKYGk
	aHuYmOFyCX69cA_spXXDHK13hXzUeOM4skjat5tNulEOVvSTZn9y3.HSMJOY
	Qzur1eo46wE04uwI0rjMGB0AA5R8wXTG1Auo0EV1vwyCTcP7ht.V8Geny2Hz
	a4jKNfiYMitKQqgZBklci_JoEOUsl9jhe_mRYfO4rtzaXR_a8Kapl3BvC.7n
	yF9XW.EbuDxfBt7aUakyy5jQABczmSLUmi8ozf5QVD79pi7nCNMstBFUnQVd
	9r5SyaHj00.HtVgqx_VJpnvIiFoYuDkYk_JW4aWkFv7ndVQyBh1_fHjoRJL1
	KjxJ49wuYX9QHYS4w4llNYOucU6t_n7cwpMekZ8cKoOI-
Received: from [115.111.63.2] by web137403.mail.in.yahoo.com via HTTP;
	Sat, 09 Apr 2011 12:42:52 IST
X-Mailer: YahooMailRC/559 YahooMailWebService/0.8.109.295617
Date: Sat, 9 Apr 2011 12:42:52 +0530 (IST)
From: suyog jadhav <suyogjadhav@yahoo.com>
Subject: ssh protocol flow diagram
To: libssh2-devel@cool.haxx.se
MIME-Version: 1.0
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Sat, 09 Apr 2011 09:13:28 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Sat, 09 Apr 2011 09:13:02 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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="===============0600397283=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============0600397283==
Content-Type: multipart/alternative; boundary="0-2100857086-1302333172=:39084"

--0-2100857086-1302333172=:39084
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi,=0A=0AI am trying to develop an ssh/scp client using libssh2.=0AI would =
like to know if there are any flow diagram available for ssh protocol.=0AI =
had developed a voip client in the past and following rfc with detailed flo=
w =0Adiagram for SIP protocol proved very helpful. =0Ahttp://www.faqs.org/r=
fcs/rfc3665.html.=0A=0AI have searched on net but only found this,=0Ahttp:/=
/www.linuxjournal.com/files/linuxjournal.com/linuxjournal/articles/095/9566=
/9566f2.jpg=0A=0A=0AEven after reading ssh RFC,I am having confusion in the=
 flow for closing the =0Achannel e.g. which party is supposed to send EOF, =
is it mandatory to send/recv =0AEOF before closing.=0A=0AI am facing specif=
ic trouble while sending file via scp, due to the EOF =0Adilemma,as even th=
ough the file is sent to the remote host,and size is shown =0Acorrect, the =
checksum doesn't match.=0AWhen libssh2_channel_write returns 0, what does i=
t mean and how to handle it.=0AThanks in advance for your help=0A=0ARegards=
=0ASuyog
--0-2100857086-1302333172=:39084
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><style type=3D"text/css"><!-- DIV {margin:0px;} --></style></he=
ad><body><div style=3D"font-family:arial,helvetica,sans-serif;font-size:10p=
t"><div>Hi,<br><br>I am trying to develop an ssh/scp client using libssh2.<=
br>I would like to know if there are any flow diagram available for ssh pro=
tocol.<br><span>I had developed a voip client in the past and following rfc=
 with detailed flow diagram for SIP protocol proved very helpful. <a target=
=3D"_blank" href=3D"http://www.faqs.org/rfcs/rfc3665.html">http://www.faqs.=
org/rfcs/rfc3665.html</a>.</span><br><br>I have searched on net but only fo=
und this,<br><span><a target=3D"_blank" href=3D"http://www.linuxjournal.com=
/files/linuxjournal.com/linuxjournal/articles/095/9566/9566f2.jpg">http://w=
ww.linuxjournal.com/files/linuxjournal.com/linuxjournal/articles/095/9566/9=
566f2.jpg</a></span><br><br>Even after reading ssh RFC,I am having confusio=
n in the flow for closing the channel e.g. which party is supposed to send =
EOF,
 is it mandatory to send/recv EOF before closing.<br><br>I am facing specif=
ic trouble while sending file via scp, due to the EOF dilemma,as even thoug=
h the file is sent to the remote host,and size is shown correct, the checks=
um doesn't match.<br>When libssh2_channel_write returns 0, what does it mea=
n and how to handle it.<span style=3D"font-family: monospace;"><br></span>T=
hanks in advance for your help<br><br>Regards<span style=3D"font-family: mo=
nospace;"><br></span>Suyog<br><br></div>=0A=0A=0A=0A</div></body></html>
--0-2100857086-1302333172=:39084--

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

--===============0600397283==--

From libssh2-devel-bounces@cool.haxx.se  Sat Apr  9 10:38:45 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p398cVkO013413;
	Sat, 9 Apr 2011 10:38:42 +0200
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p398cTSf013405
	for <libssh2-devel@cool.haxx.se>; Sat, 9 Apr 2011 10:38:29 +0200
Date: Sat, 9 Apr 2011 10:38:29 +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: ssh protocol flow diagram
In-Reply-To: <244506.39084.qm@web137403.mail.in.yahoo.com>
Message-ID: <alpine.DEB.2.00.1104091032540.312@tvnag.unkk.fr>
References: <244506.39084.qm@web137403.mail.in.yahoo.com>
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.8 (giant.haxx.se [127.0.0.1]); Sat, 09 Apr 2011 10:38:45 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Sat, 09 Apr 2011 10:38:29 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

On Sat, 9 Apr 2011, suyog jadhav wrote:

> I am trying to develop an ssh/scp client using libssh2. I would like to know 
> if there are any flow diagram available for ssh protocol.

Hi!

While such a flow diagram would be awesome, I don't think an application that 
uses libssh2 will or should need any such. We provide and document an API to 
use and that's what should be described and understood.

The SSH protocol details underneath should be more left for those of us who 
acutally fiddles with libssh2 itself.

> I am facing specific trouble while sending file via scp, due to the EOF 
> dilemma,as even though the file is sent to the remote host,and size is shown 
> correct, the checksum doesn't match.

Did you follow an example? Or can you even show us your code that uses 
libssh2?

> When libssh2_channel_write returns 0, what does it mean and how to handle it.

It means that no payload data was sent and you should keep sending. Is this 
with the API in blocking or non-blocking mode?

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sat Apr  9 13:07:48 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p39B7QBX005749;
	Sat, 9 Apr 2011 13:07:42 +0200
Received: from nm4.bullet.mail.in.yahoo.com (nm4.bullet.mail.in.yahoo.com
	[121.101.151.226])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id p39B7MHe005740
	for <libssh2-devel@cool.haxx.se>; Sat, 9 Apr 2011 13:07:23 +0200
Received: from [121.101.151.237] by nm4.bullet.mail.in.yahoo.com with NNFMP;
	09 Apr 2011 11:07:24 -0000
Received: from [121.101.151.232] by tm2.bullet.mail.in.yahoo.com with NNFMP;
	09 Apr 2011 11:07:25 -0000
Received: from [127.0.0.1] by omp1001.mail.in.yahoo.com with NNFMP;
	09 Apr 2011 11:07:18 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 350555.43693.bm@omp1001.mail.in.yahoo.com
Received: (qmail 9381 invoked by uid 60001); 9 Apr 2011 11:07:18 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
	t=1302347238; bh=2W7h3yjR/z+9gjgqKkpWjkkIRJFNXV6SeRPB3sQgoOs=;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=iurk6dVZwF6FTyNs47fP8xTcoUCk0fTYUPVKu9RnGJZAeWSe20mIqse89qKMWLujfXaAI2ces2S4UQV/+mtD290UwvM6GoDrW1Ebs47Qt2VkOHLzpWvov3QyvK3jpdnzr9GGq2acXTP4FIEwsRzHOsq5aRqZdvoA/6tqY9R/ozo=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=xHChrdSw7m1zreoQLoTMZOuuQN44NSfpKyU5MFUAF99S269R4Ju0MNQJlIpkx9nbM5980u8/lcl1uL2bgcx5Qq1Kc6YUIW/ChEqIHm003bNuqeAj4PGTgW0EpBgtyOhchdpS/7AeArvbS1YWzGEj2WcfyUEzglrxp4ZZM3JHoR0=;
Message-ID: <229096.5354.qm@web137407.mail.in.yahoo.com>
X-YMail-OSG: 2QKei2EVM1kilmu92Nmd05hROEYRMLbRH_1hscHsxWacG4Y
	vKepDSBiqUiIcOn2OY92fy1A1m7HgxZ3R.wAxGsQzSb1osdWXiCCebuElc3e
	giEpDgHF6vORkobGvbmWs.XtBdRf7PUO9AKn3YsiJIFF5FSvZEmyl6U2aRVo
	pavzauXPipiToyu00_LsZSvZlnWfIRhUV5eNIgSScWa23RNzawHi_7YIVTCP
	DdyiJBN2dqeiki1X11N5MTV0HyZ4F6sXx.G8TVPBRRqprB2zrJl0ER15TEA8
	XMNVuPbdG0D.kB67ddCYk6EqVnYz_NpTZDotdNtkzHWFg17JTy4xQNo169lX
	S.Bmucl.JmiA4NsLrFjwGdNRoG7WFHOw9XZ2kOZMtuQ--
Received: from [115.111.63.2] by web137407.mail.in.yahoo.com via HTTP;
	Sat, 09 Apr 2011 16:37:17 IST
X-Mailer: YahooMailRC/559 YahooMailWebService/0.8.109.295617
References: <mailman.6.1302343203.26754.libssh2-devel@cool.haxx.se>
Date: Sat, 9 Apr 2011 16:37:17 +0530 (IST)
From: suyog jadhav <suyogjadhav@yahoo.com>
Subject: Re: ssh protocol flow diagram (Daniel Stenberg)
To: libssh2-devel@cool.haxx.se
In-Reply-To: <mailman.6.1302343203.26754.libssh2-devel@cool.haxx.se>
MIME-Version: 1.0
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Sat, 09 Apr 2011 13:07:48 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Sat, 09 Apr 2011 13:07:24 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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="===============1044431902=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============1044431902==
Content-Type: multipart/alternative; boundary="0-1987427250-1302347237=:5354"

--0-1987427250-1302347237=:5354
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi,=0A=0AFirst of all thanks a lot for your response(more so bcoz of weeken=
d).=0AI have read the example scp_write_nonblock and using non-blocking soc=
ket in my =0Acode.=0AFollowing is the callback function when socket becomes=
 writable.=0AThis works most of the time. But some times mostly for remote =
HP-UX host, the =0Atransferred file shows correct size but is not proper(ch=
ecksum)=0APlease let me know, if anything is wrong in this.=0A=0A=0Avoid sc=
pChanWriteCB(ssh2_host_info *snp,ssh2_channel_info *schan,void* outParam) =
=0A=0A{=0A    int rc,errLen;   =0A    char buf[4096];=0A    char* ptr;=0A  =
  int nread,sent;=0A    debug("scpChanWriteCB:Entry %s filesize %ld total s=
ent =0A%ld\n",snp->hostname,schan->fsize,schan->sent);=0A    nread =3D read=
(schan->fn,buf,4096);=0A    debug("scpChanWriteCB:file read %d",nread);=0A =
   if (nread <=3D 0) {=0A        close(schan->fn);=0A           while (libs=
sh2_channel_send_eof(schan->channel) =3D=3D =0ALIBSSH2_ERROR_EAGAIN);=0A=0A=
        while (libssh2_channel_wait_eof(schan->channel) =3D=3D =0ALIBSSH2_E=
RROR_EAGAIN);=0A=0A        while (libssh2_channel_wait_closed(schan->channe=
l) =3D=3D =0ALIBSSH2_ERROR_EAGAIN);=0A    =0A        schan->status =3D PROC=
_CHAN_FINISH;=0A        *(int*)outParam =3D H_READABLE;    =0A        retur=
n;=0A    }=0A    ptr =3D buf;=0A    sent =3D 0;=0A    do {=0A        /* wri=
te the same data over and over, until error or completion */=0A        rc =
=3D libssh2_channel_write(schan->channel, ptr, nread);=0A        if(rc < 0)=
{=0A            if (LIBSSH2_ERROR_EAGAIN =3D=3D rc) =0A                cont=
inue;=0A            else{=0A                schan->status =3D PROC_CHAN_FIN=
ISH;=0A                *(int*)outParam =3D H_READABLE;=0A                br=
eak;=0A            } =0A        } else {=0A            /* rc indicates how =
many bytes were written this time */=0A            sent +=3D rc;=0A        =
    schan->sent +=3D rc;=0A        }=0A    } while (sent < nread);    =0A  =
  debug("scpChanWriteCB:%d bytes sent with %d rc\n",sent,rc);=0A    *(int*)=
outParam =3D H_WRITABLE;=0A}=0A=0A=0A=0A=0A=0A=0A=0A_______________________=
_________=0AFrom: "libssh2-devel-request@cool.haxx.se" <libssh2-devel-reque=
st@cool.haxx.se>=0ATo: libssh2-devel@cool.haxx.se=0ASent: Sat, 9 April, 201=
1 3:30:03 PM=0ASubject: libssh2-devel Digest, Vol 23, Issue 5=0A=0ANote: Fo=
rwarded message is attached.=0A=0ASend libssh2-devel mailing list submissio=
ns to=0A    libssh2-devel@cool.haxx.se=0A=0ATo subscribe or unsubscribe via=
 the World Wide Web, visit=0A    http://cool.haxx.se/cgi-bin/mailman/listin=
fo/libssh2-devel=0Aor, via email, send a message with subject or body 'help=
' to=0A    libssh2-devel-request@cool.haxx.se=0A=0AYou can reach the person=
 managing the list at=0A    libssh2-devel-owner@cool.haxx.se=0A=0AWhen repl=
ying, please edit your Subject line so it is more specific=0Athan "Re: Cont=
ents of libssh2-devel digest..."=0AToday's Topics:=0A=0A   1. ssh protocol =
flow diagram (suyog jadhav)=0A   2. Re: ssh protocol flow diagram (Daniel S=
tenberg)=0A_______________________________________________=0Alibssh2-devel =
mailing list=0Alibssh2-devel@cool.haxx.se=0Ahttp://cool.haxx.se/cgi-bin/mai=
lman/listinfo/libssh2-devel=0A
--0-1987427250-1302347237=:5354
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><style type=3D"text/css"><!-- DIV {margin:0px;} --></style></he=
ad><body><div style=3D"font-family:arial,helvetica,sans-serif;font-size:10p=
t"><div>Hi,<br><br>First of all thanks a lot for your response(more so bcoz=
 of weekend).<br>I have read the example scp_write_nonblock and using non-b=
locking socket in my code.<br>Following is the callback function when socke=
t becomes writable.<br>This works most of the time. But some times mostly f=
or remote HP-UX host, the transferred file shows correct size but is not pr=
oper(checksum)<br>Please let me know, if anything is wrong in this.<br><br>=
<br>void scpChanWriteCB(ssh2_host_info *snp,ssh2_channel_info *schan,void* =
outParam) <br>{<br>&nbsp;&nbsp;&nbsp; int rc,errLen;&nbsp;&nbsp; <br>&nbsp;=
&nbsp;&nbsp; char buf[4096];<br>&nbsp;&nbsp;&nbsp; char* ptr;<br>&nbsp;&nbs=
p;&nbsp; int nread,sent;<br>&nbsp;&nbsp;&nbsp; debug("scpChanWriteCB:Entry =
%s filesize %ld total sent
 %ld\n",snp-&gt;hostname,schan-&gt;fsize,schan-&gt;sent);<br>&nbsp;&nbsp;&n=
bsp; nread =3D read(schan-&gt;fn,buf,4096);<br>&nbsp;&nbsp;&nbsp; debug("sc=
pChanWriteCB:file read %d",nread);<br>&nbsp;&nbsp;&nbsp; if (nread &lt;=3D =
0) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; close(schan-&gt;fn);<br>&nbsp=
;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; while (libssh2_channel_send_e=
of(schan-&gt;channel) =3D=3D LIBSSH2_ERROR_EAGAIN);<br><br>&nbsp;&nbsp;&nbs=
p; &nbsp;&nbsp;&nbsp; while (libssh2_channel_wait_eof(schan-&gt;channel) =
=3D=3D LIBSSH2_ERROR_EAGAIN);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
while (libssh2_channel_wait_closed(schan-&gt;channel) =3D=3D LIBSSH2_ERROR_=
EAGAIN);<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sc=
han-&gt;status =3D PROC_CHAN_FINISH;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbs=
p; *(int*)outParam =3D H_READABLE;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;=
 &nbsp;&nbsp;&nbsp; return;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; p=
tr =3D
 buf;<br>&nbsp;&nbsp;&nbsp; sent =3D 0;<br>&nbsp;&nbsp;&nbsp; do {<br>&nbsp=
;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /* write the same data over and over, unti=
l error or completion */<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rc =3D li=
bssh2_channel_write(schan-&gt;channel, ptr, nread);<br>&nbsp;&nbsp;&nbsp; &=
nbsp;&nbsp;&nbsp; if(rc &lt; 0){<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &=
nbsp;&nbsp;&nbsp; if (LIBSSH2_ERROR_EAGAIN =3D=3D rc) <br>&nbsp;&nbsp;&nbsp=
; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; continue;<br>&nb=
sp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else{<br>&nbsp;&nbsp;=
&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; schan-&gt;s=
tatus =3D PROC_CHAN_FINISH;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;=
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; *(int*)outParam =3D H_READABLE;<br>&nbsp;&n=
bsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<=
br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }
 <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else {<br>&nbsp;&nbsp;&nbsp; &=
nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /* rc indicates how many bytes were wr=
itten this time */<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nb=
sp; sent +=3D rc;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbs=
p; schan-&gt;sent +=3D rc;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&n=
bsp;&nbsp;&nbsp; } while (sent &lt; nread);&nbsp;&nbsp;&nbsp; <br>&nbsp;&nb=
sp;&nbsp; debug("scpChanWriteCB:%d bytes sent with %d rc\n",sent,rc);<br>&n=
bsp;&nbsp;&nbsp; *(int*)outParam =3D H_WRITABLE;<br>}<br><br><br><br></div>=
<div style=3D"font-family:arial, helvetica, sans-serif;font-size:10pt"><br>=
<div style=3D"font-family:tahoma, new york, times, serif;font-size:10pt"><f=
ont size=3D"2" face=3D"Tahoma"><hr size=3D"1"><b><span style=3D"font-weight=
: bold;">From:</span></b> "libssh2-devel-request@cool.haxx.se" &lt;libssh2-=
devel-request@cool.haxx.se&gt;<br><b><span style=3D"font-weight: bold;">To:=
</span></b>
 libssh2-devel@cool.haxx.se<br><b><span style=3D"font-weight: bold;">Sent:<=
/span></b> Sat, 9 April, 2011 3:30:03 PM<br><b><span style=3D"font-weight: =
bold;">Subject:</span></b> libssh2-devel Digest, Vol 23, Issue 5<br></font>=
<br>Note: Forwarded message is attached.<br><br>Send libssh2-devel mailing =
list submissions to<br>&nbsp;&nbsp;&nbsp; <a ymailto=3D"mailto:libssh2-deve=
l@cool.haxx.se" href=3D"mailto:libssh2-devel@cool.haxx.se">libssh2-devel@co=
ol.haxx.se</a><br><br>To subscribe or unsubscribe via the World Wide Web, v=
isit<br>&nbsp;&nbsp;&nbsp; <a href=3D"http://cool.haxx.se/cgi-bin/mailman/l=
istinfo/libssh2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailma=
n/listinfo/libssh2-devel</a><br>or, via email, send a message with subject =
or body 'help' to<br>&nbsp;&nbsp;&nbsp; <a ymailto=3D"mailto:libssh2-devel-=
request@cool.haxx.se" href=3D"mailto:libssh2-devel-request@cool.haxx.se">li=
bssh2-devel-request@cool.haxx.se</a><br><br>You can reach the person managi=
ng the
 list at<br>&nbsp;&nbsp;&nbsp; <a ymailto=3D"mailto:libssh2-devel-owner@coo=
l.haxx.se" href=3D"mailto:libssh2-devel-owner@cool.haxx.se">libssh2-devel-o=
wner@cool.haxx.se</a><br><br>When replying, please edit your Subject line s=
o it is more specific<br>than "Re: Contents of libssh2-devel digest..."<br>=
Today's Topics:<br><br>&nbsp;  1. ssh protocol flow diagram (suyog jadhav)<=
br>&nbsp;  2. Re: ssh protocol flow diagram (Daniel Stenberg)<br>__________=
_____________________________________<br>libssh2-devel mailing list<br><a y=
mailto=3D"mailto:libssh2-devel@cool.haxx.se" href=3D"mailto:libssh2-devel@c=
ool.haxx.se">libssh2-devel@cool.haxx.se</a><br><a href=3D"http://cool.haxx.=
se/cgi-bin/mailman/listinfo/libssh2-devel" target=3D"_blank">http://cool.ha=
xx.se/cgi-bin/mailman/listinfo/libssh2-devel</a><br></div></div>=0A=0A=0A=
=0A</div></body></html>
--0-1987427250-1302347237=:5354--

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

--===============1044431902==--

From libssh2-devel-bounces@cool.haxx.se  Sat Apr  9 21:07:44 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p39J7PLu014673;
	Sat, 9 Apr 2011 21:07:41 +0200
Received: from s1.saphirion.com (s1.saphirion.com [95.156.192.235])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p39J7Ng7014582
	for <libssh2-devel@cool.haxx.se>; Sat, 9 Apr 2011 21:07:24 +0200
Received: from localhost (localhost [127.0.0.1])
	by s1.saphirion.com (Postfix) with ESMTP id 7B64E3453AE
	for <libssh2-devel@cool.haxx.se>; Sat,  9 Apr 2011 21:07:21 +0200 (CEST)
X-Virus-Scanned: amavisd-new at saphirion.com
Received: from s1.saphirion.com ([127.0.0.1])
	by localhost (s1.saphirion.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id z1p2uYkzTifM for <libssh2-devel@cool.haxx.se>;
	Sat,  9 Apr 2011 21:07:21 +0200 (CEST)
Received: from mbp.fritz.box (s1.saphirion.com [95.156.192.235])
	by s1.saphirion.com (Postfix) with ESMTPA id F1DC63453A8
	for <libssh2-devel@cool.haxx.se>; Sat,  9 Apr 2011 21:07:20 +0200 (CEST)
Received: from p4FDCF291.dip.t-dialin.net ([79.220.242.145] helo=mbp.fritz.box)
	by ASSP.nospam with ESMTP (2.0.1); 9 Apr 2011 21:07:19 +0100
Received: from [127.0.0.1] by mbp.fritz.box (PGP Universal service);
	Sat, 09 Apr 2011 21:07:21 +0200
X-PGP-Universal: processed; by mbp.fritz.box on Sat, 09 Apr 2011 21:07:21 +0200
From: =?iso-8859-1?Q?=22Robert_M=2E_M=FCnch=22?=
	<robert.muench@robertmuench.de>
Subject: Keyboard Interactive
Date: Sat, 9 Apr 2011 21:07:17 +0200
Message-Id: <40087AA8-55D9-4930-A409-A1F898D4AC88@robertmuench.de>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Mime-Version: 1.0 (Apple Message framework v1084)
X-Mailer: Apple Mail (2.1084)
X-PGP-Encoding-Format: MIME
X-PGP-Encoding-Version: 2.0.2
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Sat, 09 Apr 2011 21:07:44 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Sat, 09 Apr 2011 21:07:24 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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="===============1498182642=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se


--===============1498182642==
Content-Type: multipart/signed;
	boundary="PGP_Universal_F00A6A71_CBDA8BE1_DFC65BE5_AE374606";
	protocol="application/pgp-signature";
	micalg="pgp-sha384"


--PGP_Universal_F00A6A71_CBDA8BE1_DFC65BE5_AE374606
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi, just digging through the examples and found this one here:

static void kbd_callback(const char *name, int name_len,
                         const char *instruction, int instruction_len,
                         int num_prompts,
                         const LIBSSH2_USERAUTH_KBDINT_PROMPT *prompts,
                         LIBSSH2_USERAUTH_KBDINT_RESPONSE *responses,
                         void **abstract)
{
    (void)name;
    (void)name_len;
    (void)instruction;
    (void)instruction_len;
    if (num_prompts =3D=3D 1) {
        responses[0].text =3D strdup(password);
        responses[0].length =3D strlen(password);
    }
    (void)prompts;
    (void)abstract;
} /* kbd_callback */

I really don't understand what this callback should do. Can anyone =
please enlighten me?

--
Robert M. M=FCnch
http://www.robertmuench.de



--PGP_Universal_F00A6A71_CBDA8BE1_DFC65BE5_AE374606
Content-Type: application/pgp-signature;
	x-mac-type=70674453;
	name=PGP.sig
Content-Disposition: attachment; filename=PGP.sig

-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 10.1.1 (Build 10)

iQEVAwUBTaCuaXSQa/BbHGLwAQkF7gf+NKSejuPuqz+xVUn+i8c94vXuqxDQ4CZx
TShTjZ4O7xTK0VFljZzclgnw0MS9Y4261LQbDa/zxOJgrJbCI5paiDPDouLziVLN
0IM4wkM+HX2BUHeluOhaoWhUebtxPSSlFHruz4ZuZfSvgP6X6z7OKasv40WyKuYh
jyXL3F1YqdDf0GDSjZMgz9whj4zyuMJMTj+XZa80FY0TZPR183Rxr6ABFwaG/TN7
kbKcsnJMie0L2kvmBpo+8lhJJA5fmCu0Q6SV085ZMcAQl7PGyOKWqicekZ/wWPqq
DSpPt6cEEAlhj1hkJTjaE3rR028v3w2km3Td8BiPujBVRGq+tL0d6Q==
=cV30
-----END PGP SIGNATURE-----

--PGP_Universal_F00A6A71_CBDA8BE1_DFC65BE5_AE374606--

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

--===============1498182642==--

From libssh2-devel-bounces@cool.haxx.se  Sun Apr 10 07:36:07 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3A5Zj7b021580;
	Sun, 10 Apr 2011 07:36:03 +0200
Received: from foo.stuge.se (qmailr@foo.stuge.se [212.181.44.140])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id p3A5Ziol021576
	for <libssh2-devel@cool.haxx.se>; Sun, 10 Apr 2011 07:35:44 +0200
Received: (qmail 28017 invoked by uid 501); 10 Apr 2011 05:35:45 -0000
Message-ID: <20110410053545.28016.qmail@stuge.se>
Date: Sun, 10 Apr 2011 07:35:44 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Keyboard Interactive
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <40087AA8-55D9-4930-A409-A1F898D4AC88@robertmuench.de>
MIME-Version: 1.0
In-Reply-To: <40087AA8-55D9-4930-A409-A1F898D4AC88@robertmuench.de>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Sun, 10 Apr 2011 07:36:07 +0200 (CEST)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Sun, 10 Apr 2011 07:35:44 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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="===============1599494513=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se


--===============1599494513==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="7AUc2qLy4jB3hD7Z"
Content-Disposition: inline


--7AUc2qLy4jB3hD7Z
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

"Robert M. M=C3=BCnch" wrote:
> Hi, just digging through the examples and found this one here:
>=20
> static void kbd_callback(const char *name, int name_len,
=2E.
> } /* kbd_callback */
>=20
> I really don't understand what this callback should do. Can anyone
> please enlighten me?

Please see RFC 4256.


//Peter

--7AUc2qLy4jB3hD7Z
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFNoUGwhR3Q0dhIfEgRAk5DAJ9dFZMaoSIpVLP/6boeAMKABi1FcQCdF10X
cE3ZErL2mYtUJvXZ4KolDbM=
=6HPR
-----END PGP SIGNATURE-----

--7AUc2qLy4jB3hD7Z--

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

--===============1599494513==--

From libssh2-devel-bounces@cool.haxx.se  Sun Apr 10 19:32:37 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3AHWEig031979;
	Sun, 10 Apr 2011 19:32:33 +0200
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3AHWDwg031960
	for <libssh2-devel@cool.haxx.se>; Sun, 10 Apr 2011 19:32:13 +0200
Date: Sun, 10 Apr 2011 19:32:13 +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: ssh protocol flow diagram (Daniel Stenberg)
In-Reply-To: <229096.5354.qm@web137407.mail.in.yahoo.com>
Message-ID: <alpine.DEB.2.00.1104101929060.18396@tvnag.unkk.fr>
References: <mailman.6.1302343203.26754.libssh2-devel@cool.haxx.se>
	<229096.5354.qm@web137407.mail.in.yahoo.com>
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.8 (giant.haxx.se [127.0.0.1]); Sun, 10 Apr 2011 19:32:37 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Sun, 10 Apr 2011 19:32:13 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

On Sat, 9 Apr 2011, suyog jadhav wrote:

(Please don't use digest mode for the mailing list when you intend to respond 
to mails as it gets really messy.)

> This works most of the time. But some times mostly for remote HP-UX host, 
> the transferred file shows correct size but is not proper(checksum)

Ouch. What libssh2 version are you using? And you say the remote is HP-UX, but 
what is the local system that runs libssh2? Can you repeat this problem with 
one of the example codes we ship? If so, producing a full trace of a small 
file being transfered would be a good idea.

A nit: your busy-loops everywhere are very inefficient and will cause much too 
high CPU load than you'll like.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Mon Apr 11 05:52:50 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3B3qSgx023344;
	Mon, 11 Apr 2011 05:52:46 +0200
Received: from nm3.bullet.mail.in.yahoo.com (nm3.bullet.mail.in.yahoo.com
	[121.101.151.225])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id p3B3qQ2L023334
	for <libssh2-devel@cool.haxx.se>; Mon, 11 Apr 2011 05:52:27 +0200
Received: from [121.101.151.237] by nm3.bullet.mail.in.yahoo.com with NNFMP;
	11 Apr 2011 03:56:18 -0000
Received: from [121.101.151.235] by tm2.bullet.mail.in.yahoo.com with NNFMP;
	11 Apr 2011 03:52:27 -0000
Received: from [127.0.0.1] by omp1004.mail.in.yahoo.com with NNFMP;
	11 Apr 2011 03:52:20 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 675595.9601.bm@omp1004.mail.in.yahoo.com
Received: (qmail 21802 invoked by uid 60001); 11 Apr 2011 03:52:20 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
	t=1302493940; bh=LPlfOxLzBFDVsl/wg+dwvgsvTMxG7uXgxc8MjeH5ED4=;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=a69EwK7a0WIicbVbVSSqNWXjJ4+z9VCgKS3OqDgI6H1D/KliRLnna1B90LXEA3Qvu1brnghcD4EyQEcO6bXKSHy5FtIQwTXUNueEN3A2UmnrnQ5huNxwwhy9ITQ/b1lvXfDYJL1xw2TVN+tSFqfGX4MrXjH4vFIzINa11QD/yTA=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=K4zfcSIQWbHjCDXNjqljgtI4RSfYXLeYCURQIW27cnw0Wt35nxHKF612Lrc7i2ThWPSpnyjg6qkpHKk5qMW7UjKBK3g5dQaOW3uMN4iDd3FQWz5naxwhGG5OJU1ANmyjwsHCeyfUuIBipuczD1tS1HELnGagPaxnyDYt+ykzFow=;
Message-ID: <580548.21551.qm@web137405.mail.in.yahoo.com>
X-YMail-OSG: emggH8wVM1kzcEAv6QnL6wzgR6czkaesb.xkRvAovP6IVi5
	iDYU4qX2XWfbiLId1mageRGQU0_hTBPA0ukxJLuF3UJqfXl8UcTGeX347ZqI
	s9NBrdi5YBhw6dNgf3RJFJXvlJzbg00J92OsqLagExPwoKACUG3OE0wzDXIG
	8kQJfx0mKYvre6PHUBhOVYdSMjKg.G0LivC.uV8gpvdYeZCPoFOxKU7FvdL3
	ORUDEfKaW.Q3X1T6fcYvK1.YMGoMv_wkEheGJtcWxXCYKcVtyTunOO50CV3_
	MGQhOqgeVH6Bd3bg6twERQUJ9F.d1.RiWT4I49749GbClWu6kEWAxChPCI7n
	2oxBPgqxWRlV7RXFzR.oHQrER275x1pvvxgPikH1k9w--
Received: from [115.111.63.2] by web137405.mail.in.yahoo.com via HTTP;
	Mon, 11 Apr 2011 09:22:17 IST
X-Mailer: YahooMailRC/559 YahooMailWebService/0.8.109.295617
References: <mailman.10.1302429603.7409.libssh2-devel@cool.haxx.se>
Date: Mon, 11 Apr 2011 09:22:17 +0530 (IST)
From: suyog jadhav <suyogjadhav@yahoo.com>
Subject: Re: ssh protocol flow diagram
To: libssh2-devel@cool.haxx.se
In-Reply-To: <mailman.10.1302429603.7409.libssh2-devel@cool.haxx.se>
MIME-Version: 1.0
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Mon, 11 Apr 2011 05:52:49 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Mon, 11 Apr 2011 05:52:27 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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="===============0610770351=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============0610770351==
Content-Type: multipart/alternative; boundary="0-1181241482-1302493937=:21551"

--0-1181241482-1302493937=:21551
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi,=0A=0AIn the example scp_write_nonblock.c=0A=0A        do {             =
while ((rc =3D libssh2_channel_write(channel, ptr, =0Anread)) =3D=3D       =
              LIBSSH2_ERROR_EAGAIN) {                 =0Awaitsocket(sock, s=
ession);                 prev =3D 0;             }             =0Aif (rc < =
0) {                 fprintf(stderr, "ERROR %d total %ld / %d prev =0A%d\n"=
, rc,                         total, (int)nread, (int)prev);               =
  =0Abreak;             }             else {                 prev =3D nread=
;                 =0Aif(rc > nread) {                     fprintf(stderr, "=
MOO %d > %d\n", (int)rc, =0A(int)nread);                 } /* rc indicates =
how many bytes were written this =0Atime */                  nread -=3D rc;=
                 ptr +=3D rc;             }         =0A} while (nread);=0AI=
n what case, this condition would occur  (rc > nread), is it error ,if yes =
how =0Ashould it be handled, becoz I am getting this (rc > nread) in some c=
ases and =0Aafter that libssh2_channel_write always returns 0, eventually h=
anging the =0Aprocess.=0A=0ARegards=0Asuyog=0A=0A=0A=0A____________________=
____________=0AFrom: "libssh2-devel-request@cool.haxx.se" <libssh2-devel-re=
quest@cool.haxx.se>=0ATo: libssh2-devel@cool.haxx.se=0ASent: Sun, 10 April,=
 2011 3:30:03 PM=0ASubject: libssh2-devel Digest, Vol 23, Issue 6=0A=0ANote=
: Forwarded message is attached.=0A=0ASend libssh2-devel mailing list submi=
ssions to=0A    libssh2-devel@cool.haxx.se=0A=0ATo subscribe or unsubscribe=
 via the World Wide Web, visit=0A    http://cool.haxx.se/cgi-bin/mailman/li=
stinfo/libssh2-devel=0Aor, via email, send a message with subject or body '=
help' to=0A    libssh2-devel-request@cool.haxx.se=0A=0AYou can reach the pe=
rson managing the list at=0A    libssh2-devel-owner@cool.haxx.se=0A=0AWhen =
replying, please edit your Subject line so it is more specific=0Athan "Re: =
Contents of libssh2-devel digest..."=0AToday's Topics:=0A=0A   1. Re: ssh p=
rotocol flow diagram (Daniel Stenberg) (suyog jadhav)=0A   2. Keyboard Inte=
ractive (Robert M. M?nch)=0A   3. Re: Keyboard Interactive (Peter Stuge)=0A=
_______________________________________________=0Alibssh2-devel mailing lis=
t=0Alibssh2-devel@cool.haxx.se=0Ahttp://cool.haxx.se/cgi-bin/mailman/listin=
fo/libssh2-devel=0A
--0-1181241482-1302493937=:21551
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><style type=3D"text/css"><!-- DIV {margin:0px;} --></style></he=
ad><body><div style=3D"font-family:arial, helvetica, sans-serif;font-size:1=
0pt"><div>Hi,</div><div><br></div><div>In the example scp_write_nonblock.c<=
/div><div><br></div><div><pre>        <b><font color=3D"#A020F0">do</font><=
/b> {=0A            <b><font color=3D"#A020F0">while</font></b> ((rc =3D <a=
 href=3D"http://www.libssh2.org//libssh2_channel_write.html">libssh2_channe=
l_write</a>(channel, ptr, nread)) =3D=3D=0A=0A                   LIBSSH2_ER=
ROR_EAGAIN) {=0A                waitsocket(sock, session);=0A              =
  prev =3D 0;=0A            }=0A            <b><font color=3D"#A020F0">if</=
font></b> (rc &lt; 0) {=0A                fprintf(stderr, <b><font color=3D=
"#BC8F8F">"ERROR %d total %ld / %d prev %d\n"</font></b>, rc,=0A           =
             total, (<b><font color=3D"#228B22">int</font></b>)nread, (<b><=
font color=3D"#228B22">int</font></b>)prev);=0A                <b><font col=
or=3D"#A020F0">break</font></b>;=0A            }=0A            <b><font col=
or=3D"#A020F0">else</font></b> {=0A                prev =3D nread;=0A      =
          <b><font color=3D"#A020F0">if</font>(rc &gt; nread) {=0A         =
           fprintf(stderr, <font color=3D"#BC8F8F">"MOO %d &gt; %d\n"</font=
>, (<font color=3D"#228B22">int</font>)rc, (<font color=3D"#228B22">int</fo=
nt>)nread);=0A                }</b>=0A                <i><font color=3D"#B2=
2222">/* rc indicates how many bytes were written this time */ </font></i>=
=0A                nread -=3D rc;=0A                ptr +=3D rc;=0A        =
    }=0A        } <b><font color=3D"#A020F0">while</font></b> (nread);</pre=
></div><div>In what case, this condition would occur &nbsp;(rc &gt; nread),=
 is it error ,if yes how should it be handled, becoz I am getting this (rc =
&gt; nread) in some cases and after that libssh2_channel_write always retur=
ns 0, eventually hanging the process.</div><div><br></div><div>Regards</div=
><div>suyog</div><div style=3D"font-family:arial, helvetica, sans-serif;fon=
t-size:10pt"><br><div style=3D"font-family:tahoma, new york, times, serif;f=
ont-size:10pt"><font size=3D"2" face=3D"Tahoma"><hr size=3D"1"><b><span sty=
le=3D"font-weight: bold;">From:</span></b> "libssh2-devel-request@cool.haxx=
.se" &lt;libssh2-devel-request@cool.haxx.se&gt;<br><b><span style=3D"font-w=
eight: bold;">To:</span></b> libssh2-devel@cool.haxx.se<br><b><span style=
=3D"font-weight: bold;">Sent:</span></b> Sun, 10 April, 2011 3:30:03 PM<br>=
<b><span style=3D"font-weight: bold;">Subject:</span></b> libssh2-devel Dig=
est, Vol 23, Issue
 6<br></font><br>Note: Forwarded message is attached.<br><br>Send libssh2-d=
evel mailing list submissions to<br>&nbsp;&nbsp;&nbsp; <a ymailto=3D"mailto=
:libssh2-devel@cool.haxx.se" href=3D"mailto:libssh2-devel@cool.haxx.se">lib=
ssh2-devel@cool.haxx.se</a><br><br>To subscribe or unsubscribe via the Worl=
d Wide Web, visit<br>&nbsp;&nbsp;&nbsp; <a href=3D"http://cool.haxx.se/cgi-=
bin/mailman/listinfo/libssh2-devel" target=3D"_blank">http://cool.haxx.se/c=
gi-bin/mailman/listinfo/libssh2-devel</a><br>or, via email, send a message =
with subject or body 'help' to<br>&nbsp;&nbsp;&nbsp; <a ymailto=3D"mailto:l=
ibssh2-devel-request@cool.haxx.se" href=3D"mailto:libssh2-devel-request@coo=
l.haxx.se">libssh2-devel-request@cool.haxx.se</a><br><br>You can reach the =
person managing the list at<br>&nbsp;&nbsp;&nbsp; <a ymailto=3D"mailto:libs=
sh2-devel-owner@cool.haxx.se" href=3D"mailto:libssh2-devel-owner@cool.haxx.=
se">libssh2-devel-owner@cool.haxx.se</a><br><br>When replying, please edit =
your
 Subject line so it is more specific<br>than "Re: Contents of libssh2-devel=
 digest..."<br>Today's Topics:<br><br>&nbsp;  1. Re: ssh protocol flow diag=
ram (Daniel Stenberg) (suyog jadhav)<br>&nbsp;  2. Keyboard Interactive (Ro=
bert M. M?nch)<br>&nbsp;  3. Re: Keyboard Interactive (Peter Stuge)<br>____=
___________________________________________<br>libssh2-devel mailing list<b=
r><a ymailto=3D"mailto:libssh2-devel@cool.haxx.se" href=3D"mailto:libssh2-d=
evel@cool.haxx.se">libssh2-devel@cool.haxx.se</a><br><a href=3D"http://cool=
.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel" target=3D"_blank">http://c=
ool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel</a><br></div></div><div =
style=3D"position:fixed"></div>=0A=0A=0A</div></body></html>
--0-1181241482-1302493937=:21551--

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

--===============0610770351==--

From libssh2-devel-bounces@cool.haxx.se  Mon Apr 11 08:50:17 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3B6o4WA004693;
	Mon, 11 Apr 2011 08:50:16 +0200
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3B6o2vQ004511
	for <libssh2-devel@cool.haxx.se>; Mon, 11 Apr 2011 08:50:02 +0200
Date: Mon, 11 Apr 2011 08:50:02 +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: ssh protocol flow diagram
In-Reply-To: <580548.21551.qm@web137405.mail.in.yahoo.com>
Message-ID: <alpine.DEB.2.00.1104110847320.25828@tvnag.unkk.fr>
References: <mailman.10.1302429603.7409.libssh2-devel@cool.haxx.se>
	<580548.21551.qm@web137405.mail.in.yahoo.com>
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.8 (giant.haxx.se [127.0.0.1]); Mon, 11 Apr 2011 08:50:17 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Mon, 11 Apr 2011 08:50:02 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

On Mon, 11 Apr 2011, suyog jadhav wrote:

The detail I said about NOT using the mailing list in digest mode when trying 
to have a conversation was not a joke. We cannot have this discussion if 
you're going to totally destroy both threading and quoting in every mail you 
send here.

Also, I did ask you questions about version and platform that I consider vital 
for this issue.

> I am getting this (rc > nread) in some cases and after that 
> libssh2_channel_write always returns 0, eventually hanging the process.

A hang would indicate a bug somewhere.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Tue Apr 12 09:58:10 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3C7ve8s027618;
	Tue, 12 Apr 2011 09:58:06 +0200
Received: from nm4-vm0.bullet.mail.in.yahoo.com
	(nm4-vm0.bullet.mail.in.yahoo.com [121.101.151.213])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id p3C7va60027598
	for <libssh2-devel@cool.haxx.se>; Tue, 12 Apr 2011 09:57:36 +0200
Received: from [121.101.151.236] by nm4.bullet.mail.in.yahoo.com with NNFMP;
	12 Apr 2011 07:57:35 -0000
Received: from [121.101.151.233] by tm1.bullet.mail.in.yahoo.com with NNFMP;
	12 Apr 2011 07:57:25 -0000
Received: from [127.0.0.1] by omp1002.mail.in.yahoo.com with NNFMP;
	12 Apr 2011 08:01:00 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 31448.11846.bm@omp1002.mail.in.yahoo.com
Received: (qmail 57485 invoked by uid 60001); 12 Apr 2011 07:57:30 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
	t=1302595050; bh=3RutE+BgP1J+TJgPXOYNjevv/pQ8sCMc4Y8M7hkv3AM=;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type;
	b=Nc/Dq2sIX3oA6czE4rRLC0jd1ik6McpDg1CEVAIXo9Xle2KsYxyeWtfB9KxvHSwCQ3nfARwhlAI/27RxrREkJcJp8zCrZ2JzO/yxuerY8iA/HhADAEcwP7zhtsI7jbp6sVEbE3POt21bDHrLXdIu70imnM1Bs4aW7Oa4RyNmtGs=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type;
	b=oZoAkWNFnYyqENMzUAgEkkGdgTdr11T4+9lr/yH2dgJOTQgk3EYF3QqC9BDx0FkDBkwzcjlDDdVCLexZGuPBa5F2ie2DlV535nksCzowklmbV88Wj55up9wrmrqF6LasbhYRTO+EU6WJy1B9mIYTSYj3WNCHTbGC52NmnjjgYSs=;
Message-ID: <157080.57482.qm@web137406.mail.in.yahoo.com>
X-YMail-OSG: 5o...kMVM1nGML_Dbfx4a4VHdLjiAqSRHSGhPlRIR4Q2dNj
	IJatfu9u31BOlfl00TF3EG.w356XfJWqBBk4hnhJPBPUUNTNBZ4ukkF4_JBX
	kJLlXVMNCfzh5DA2ALkyb_JUMIgmmdEpT_Ba5HkKCMG6rVAgcsF3RXPfyYZH
	vfjKKcClMAWqqvawtPpA3QPX0H0ZHbdcTamkjfl3uu0C8RDOPbpNtLY0ZGkF
	Qu_8KAdYbGwzMEynHRYm4nEXoJ2R2T8AVi8Kkz4CMWalK2HfbbVm88g7l8xy
	zewb348N5B4Ivnz2qc5Ud5zeyzt47N_JtBmF1iR6metQ8S_lcb2VU6Qv6kr8
	V0hl9z6JQVkbMtecFtg1DWFHbf8GYBE_.Jl2k9ApMZw--
Received: from [115.111.63.2] by web137406.mail.in.yahoo.com via HTTP;
	Tue, 12 Apr 2011 13:27:29 IST
X-Mailer: YahooMailWebService/0.8.109.295617
Date: Tue, 12 Apr 2011 13:27:29 +0530 (IST)
From: suyog jadhav <suyogjadhav@yahoo.com>
Subject: Re: ssh protocol flow diagram
To: "libssh2-devel@cool.haxx.se" <libssh2-devel@cool.haxx.se>
MIME-Version: 1.0
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Tue, 12 Apr 2011 09:58:10 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Tue, 12 Apr 2011 09:57:38 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: suyog jadhav <suyogjadhav@yahoo.com>,
        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="===============1618914883=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============1618914883==
Content-Type: multipart/alternative; boundary="0-184130664-1302595049=:57482"

--0-184130664-1302595049=:57482
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,=0A=0AI am extremely sorry for the mess because of digest.=0AI receive t=
he mails in digest and replied to it.(I hope current reply is in correct fo=
rmat).=0AI am using libssh2 1.2.4 version on RHEL 5.3 platform and recently=
 using 1.2.7/8 to verify.=0A=0AI have been able to solve the issue. It was =
mistake in my code which didn't handle partial writes(in case of window adj=
ust)=0AIf libssh2_channel_write wrote only partial of what was asked, I was=
 looping the same buffer as the previous instead of incrementing pointer by=
 the size of written bytes.=0A=0AHowever as previously asked,I would like t=
o understand following excerpt from scp_write_nonblock.c=0A=0Arc =3D libssh=
2_channel_write(channel, ptr, nread);=0A=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0i=
f(rc > nread) {=0A=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0fprintf(stderr,=
 "MOO %d > %d\n", (int)rc, (int)nread);=0A=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0}=0AIn what scenarios rc would be greater than nread, is it error condit=
ion(MOO??), if yes how to handle it.=0A=0AWhile I understand your point abo=
ut the ssh flow diagram not being absolute must for client developers, but =
it would certainly =A0improve the understanding/knowledge while writing app=
lication and to participate in libssh2 development as well. So if anyone ha=
s such information please share it.=0A=0AThanks a lot for your patience and=
 support.=0ASuyog=0A=0AFrom:=A0Daniel Stenberg <daniel@haxx.se>=0ATo:=A0lib=
ssh2 development <libssh2-devel@cool.haxx.se>=0ASent:=A0Monday, 11 April 20=
11 12:20 PM=0ASubject:=A0Re: ssh protocol flow diagram=0A=0AThe detail I sa=
id about NOT using the mailing list in digest mode when trying to have a co=
nversation was not a joke. We cannot have this discussion if you're going t=
o totally destroy both threading and quoting in every mail you send here.=
=0A=0AAlso, I did ask you questions about version and platform that I consi=
der vital for this issue.=0A=0A> I am getting this (rc > nread) in some cas=
es and after that libssh2_channel_write always returns 0, eventually hangin=
g the process.=0A=0AA hang would indicate a bug somewhere.=0A=0A--=A0=0A/ d=
aniel.haxx.se=0A
--0-184130664-1302595049=:57482
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"color:#000; background-color:#fff; font-family:ar=
ial, helvetica, sans-serif;font-size:10pt"><div><div class=3D"inlinemsghead=
er" style=3D"color: rgb(69, 69, 69); font-family: tahoma, 'new york', times=
, serif; font-size: 10pt; "><span>Hi,</span></div><div class=3D"inlinemsghe=
ader" style=3D"color: rgb(69, 69, 69); font-size: 13px; font-family: tahoma=
, 'new york', times, serif; background-color: transparent; font-style: norm=
al; "><span><br></span></div><div class=3D"inlinemsgheader" style=3D"color:=
 rgb(69, 69, 69); font-size: 13px; font-family: tahoma, 'new york', times, =
serif; background-color: transparent; font-style: normal; "><span>I am extr=
emely sorry for the mess because of digest.</span></div><div class=3D"inlin=
emsgheader" style=3D"color: rgb(69, 69, 69); font-size: 13px; font-family: =
tahoma, 'new york', times, serif; background-color: transparent; font-style=
: normal; ">I receive the mails in digest and replied to it.(I hope current=
 reply is
 in correct format).</div><div class=3D"inlinemsgheader" style=3D"color: rg=
b(69, 69, 69); font-size: 13px; font-family: tahoma, 'new york', times, ser=
if; background-color: transparent; font-style: normal; ">I am using libssh2=
 1.2.4 version on RHEL 5.3 platform and recently using 1.2.7/8 to verify.<b=
r></div><div class=3D"inlinemsgheader" style=3D"color: rgb(69, 69, 69); fon=
t-size: 13px; font-family: tahoma, 'new york', times, serif; background-col=
or: transparent; font-style: normal; "><span>I have been able to solve the =
issue. It was mistake in my code which didn't handle partial writes(in case=
 of window adjust)</span></div><div class=3D"inlinemsgheader" style=3D"colo=
r: rgb(69, 69, 69); font-size: 13px; font-family: tahoma, 'new york', times=
, serif; background-color: transparent; font-style: normal; "><span>If libs=
sh2_channel_write wrote only partial of what was asked, I was looping the s=
ame buffer as the previous instead of incrementing pointer by the size of
 written bytes.</span></div><div class=3D"inlinemsgheader" style=3D"color: =
rgb(69, 69, 69); font-size: 13px; font-family: tahoma, 'new york', times, s=
erif; background-color: transparent; font-style: normal; "><span><br></span=
></div><div class=3D"inlinemsgheader" style=3D"color: rgb(69, 69, 69); font=
-size: 13px; font-family: tahoma, 'new york', times, serif; background-colo=
r: transparent; font-style: normal; "><span>However as previously asked,I w=
ould like to understand following excerpt from scp_write_nonblock.c</span><=
/div><div class=3D"inlinemsgheader" style=3D"color: rgb(69, 69, 69); font-s=
ize: 13px; font-family: tahoma, 'new york', times, serif; background-color:=
 transparent; font-style: normal; "><span><span class=3D"Apple-tab-span" st=
yle=3D"white-space:pre"><br></span></span></div><div class=3D"inlinemsghead=
er" style=3D"color: rgb(69, 69, 69); font-size: 13px; font-family: tahoma, =
'new york', times, serif; background-color: transparent; font-style: normal=
;
 "><span><span class=3D"Apple-tab-span" style=3D"white-space:pre">=09=09rc =
=3D libssh2_channel_write(channel, ptr, nread)</span>;</span></div><div cla=
ss=3D"inlinemsgheader" style=3D"background-color: transparent; "><span><fon=
t class=3D"Apple-style-span" color=3D"#454545" face=3D"tahoma, 'new york', =
times, serif" size=3D"2"><div class=3D"inlinemsgheader" style=3D"background=
-color: transparent; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp;if(rc &gt; nread) {</div><div class=3D"inlinemsgheader" style=3D"b=
ackground-color: transparent; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp;fprintf(stderr, "MOO %d &gt; %d\n", (int)rc=
, (int)nread);</div><div class=3D"inlinemsgheader" style=3D"background-colo=
r: transparent; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp;}</div></font></span></div><div class=3D"inlinemsgheader" style=3D"colo=
r: rgb(69, 69, 69); font-size: 13px; font-family: tahoma, 'new york', times=
, serif; background-color:
 transparent; font-style: normal; "><span>In what scenarios rc would be gre=
ater than nread, is it error condition(MOO??), if yes how to handle it.</sp=
an></div><div class=3D"inlinemsgheader" style=3D"color: rgb(69, 69, 69); fo=
nt-size: 13px; font-family: tahoma, 'new york', times, serif; background-co=
lor: transparent; font-style: normal; "><span><br></span></div><div class=
=3D"inlinemsgheader" style=3D"color: rgb(69, 69, 69); font-size: 13px; font=
-family: tahoma, 'new york', times, serif; background-color: transparent; f=
ont-style: normal; "><span>While I understand your point about the ssh flow=
 diagram not being absolute must for client developers, but it would certai=
nly &nbsp;improve the understanding/knowledge while writing application and=
 to participate in libssh2 development as well. So if anyone has such infor=
mation please share it.</span></div><div class=3D"inlinemsgheader" style=3D=
"color: rgb(69, 69, 69); font-size: 13px; font-family: tahoma, 'new york', =
times,
 serif; background-color: transparent; font-style: normal; "><span><br></sp=
an></div><div class=3D"inlinemsgheader" style=3D"color: rgb(69, 69, 69); fo=
nt-size: 13px; font-family: tahoma, 'new york', times, serif; background-co=
lor: transparent; font-style: normal; "><span>Thanks a lot for your patienc=
e and support.</span></div><div class=3D"inlinemsgheader" style=3D"color: r=
gb(69, 69, 69); font-size: 13px; font-family: tahoma, 'new york', times, se=
rif; background-color: transparent; font-style: normal; "><span>Suyog</span=
></div><div class=3D"inlinemsgheader" style=3D"color: rgb(69, 69, 69); font=
-size: 13px; font-family: tahoma, 'new york', times, serif; background-colo=
r: transparent; font-style: normal; "><span style=3D"font-weight: bold; "><=
br></span></div><div class=3D"inlinemsgheader" style=3D"color: rgb(69, 69, =
69); font-size: 13px; font-family: tahoma, 'new york', times, serif; backgr=
ound-color: transparent; font-style: normal; "><span style=3D"font-weight: =
bold;
 ">From:</span>&nbsp;Daniel Stenberg &lt;daniel@haxx.se&gt;<br><span style=
=3D"font-weight: bold; ">To:</span>&nbsp;libssh2 development &lt;libssh2-de=
vel@cool.haxx.se&gt;<br><span style=3D"font-weight: bold; ">Sent:</span>&nb=
sp;Monday, 11 April 2011 12:20 PM<br><span style=3D"font-weight: bold; ">Su=
bject:</span>&nbsp;Re: ssh protocol flow diagram<br><br></div><font class=
=3D"Apple-style-span" color=3D"#454545" face=3D"tahoma, 'new york', times, =
serif" size=3D"2">The detail I said about NOT using the mailing list in dig=
est mode when trying to have a conversation was not a joke. We cannot have =
this discussion if you're going to totally destroy both threading and quoti=
ng in every mail you send here.</font><br><br><font class=3D"Apple-style-sp=
an" color=3D"#454545" face=3D"tahoma, 'new york', times, serif" size=3D"2">=
Also, I did ask you questions about version and platform that I consider vi=
tal for this issue.</font><br><br><font class=3D"Apple-style-span" color=3D=
"#454545"
 face=3D"tahoma, 'new york', times, serif" size=3D"2">&gt; I am getting thi=
s (rc &gt; nread) in some cases and after that libssh2_channel_write always=
 returns 0, eventually hanging the process.</font><br><br><font class=3D"Ap=
ple-style-span" color=3D"#454545" face=3D"tahoma, 'new york', times, serif"=
 size=3D"2">A hang would indicate a bug somewhere.</font><br><br><font clas=
s=3D"Apple-style-span" color=3D"#454545" face=3D"tahoma, 'new york', times,=
 serif" size=3D"2">--&nbsp;</font><br><font class=3D"Apple-style-span" colo=
r=3D"#454545" face=3D"tahoma, 'new york', times, serif" size=3D"2">/ daniel=
.haxx.se</font><br></div></div></body></html>
--0-184130664-1302595049=:57482--

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

--===============1618914883==--

From libssh2-devel-bounces@cool.haxx.se  Tue Apr 12 10:47:21 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3C8lCGM028299;
	Tue, 12 Apr 2011 10:47:19 +0200
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3C8lB6p028288; 
	Tue, 12 Apr 2011 10:47:11 +0200
Date: Tue, 12 Apr 2011 10:47:11 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: suyog jadhav <suyogjadhav@yahoo.com>,
        libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: ssh protocol flow diagram
In-Reply-To: <157080.57482.qm@web137406.mail.in.yahoo.com>
Message-ID: <alpine.DEB.2.00.1104121039490.10783@tvnag.unkk.fr>
References: <157080.57482.qm@web137406.mail.in.yahoo.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
	BOUNDARY="1129329158-1374598060-1302598031=:10783"
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Tue, 12 Apr 2011 10:47:21 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Tue, 12 Apr 2011 10:47:11 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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>
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: 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.

--1129329158-1374598060-1302598031=:10783
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

On Tue, 12 Apr 2011, suyog jadhav wrote:

> I am using libssh2 1.2.4 version on RHEL 5.3 platform and recently using 
> 1.2.7/8 to verify.

Great. 1.2.4 is rather old and we've fixed plenty bugs since that.

> However as previously asked,I would like to understand following excerpt 
> from scp_write_nonblock.c
>
> rc = libssh2_channel_write(channel, ptr, nread);
>                 if(rc > nread) {
>                     fprintf(stderr, "MOO %d > %d\n", (int)rc, (int)nread);
>                 }

> In what scenarios rc would be greater than nread, is it error 
> condition(MOO??), if yes how to handle it.

It can't happen. If it ever happens it would indicate a serious libssh2 bug. 
I don't remember why the example code has that check, but I hve removed it 
now!

-- 

  / daniel.haxx.se
--1129329158-1374598060-1302598031=:10783
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

--1129329158-1374598060-1302598031=:10783--

From libssh2-devel-bounces@cool.haxx.se  Tue Apr 12 15:32:55 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3CDWXHh031747;
	Tue, 12 Apr 2011 15:32:51 +0200
Received: from earth.stuge.se (earth.stuge.se [212.116.89.126])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3CDWWgh031740
	for <libssh2-devel@cool.haxx.se>; Tue, 12 Apr 2011 15:32:32 +0200
Received: (qmail 12480 invoked from network); 12 Apr 2011 13:32:34 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 12 Apr 2011 13:32:34 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.12
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 12 Apr 2011 13:32:33 -0000
X-URL: http://trac.libssh2.org/
Subject: [libssh2] #214: sftp_write hangs following an error
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/214
Message-ID: <039.fd432682c7e873a929eadad56ea29449@libssh2.stuge.se>
X-Trac-Ticket-ID: 214
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Tue, 12 Apr 2011 15:32:55 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Tue, 12 Apr 2011 15:32:32 +0200 (CEST)
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id p3CDWWgh031740
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

#214: sftp_write hangs following an error
------------------------------+---------------------------------------------
  Reporter:  mts              |       Owner:       
      Type:  defect           |      Status:  new  
  Priority:  normal           |   Milestone:  1.2.8
 Component:  SFTP             |     Version:  1.2.7
  Keywords:  sftp write hang  |      Blocks:       
Blocked By:                   |  
------------------------------+---------------------------------------------
 During a SFTP transfer the destination ran out of space, generating an
 error packet.  Server is virtual Debian(lenny), client is WinXP/32bit.

 Subsequent attempts to write blocked indefinitely waiting for another
 packet which never came.  Attached is the trace.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/214>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients

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

From libssh2-devel-bounces@cool.haxx.se  Tue Apr 12 16:56:08 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3CEtsp4020068;
	Tue, 12 Apr 2011 16:56:06 +0200
Received: from earth.stuge.se (earth.stuge.se [212.116.89.126])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3CEtqp9020063
	for <libssh2-devel@cool.haxx.se>; Tue, 12 Apr 2011 16:55:52 +0200
Received: (qmail 10384 invoked from network); 12 Apr 2011 14:55:54 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 12 Apr 2011 14:55:54 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.12
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 12 Apr 2011 14:55:54 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #214: sftp_write hangs following an error
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/214#comment:1
Message-ID: <054.dd2a2845919cf2101862527f5f5c7002@libssh2.stuge.se>
References: <039.fd432682c7e873a929eadad56ea29449@libssh2.stuge.se>
X-Trac-Ticket-ID: 214
In-Reply-To: <039.fd432682c7e873a929eadad56ea29449@libssh2.stuge.se>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Tue, 12 Apr 2011 16:56:08 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Tue, 12 Apr 2011 16:55:53 +0200 (CEST)
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id p3CEtqp9020063
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

#214: sftp_write hangs following an error
---------------------+------------------------------------------------------
  Reporter:  mts     |        Owner:                 
      Type:  defect  |       Status:  new            
  Priority:  normal  |    Milestone:  1.2.9          
 Component:  SFTP    |      Version:  1.2.8          
Resolution:          |     Keywords:  sftp write hang
    Blocks:          |   Blocked By:                 
---------------------+------------------------------------------------------
Changes (by mts):

  * version:  1.2.7 => 1.2.8
  * milestone:  1.2.8 => 1.2.9


-- 
Ticket URL: <http://trac.libssh2.org/ticket/214#comment:1>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients

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

From libssh2-devel-bounces@cool.haxx.se  Tue Apr 12 17:05:51 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3CF5m8n029258;
	Tue, 12 Apr 2011 17:05:50 +0200
Received: from earth.stuge.se (earth.stuge.se [212.116.89.126])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3CF5kIc029251
	for <libssh2-devel@cool.haxx.se>; Tue, 12 Apr 2011 17:05:46 +0200
Received: (qmail 14875 invoked from network); 12 Apr 2011 15:05:48 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 12 Apr 2011 15:05:48 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.12
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 12 Apr 2011 15:05:48 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #150: libssh2_userauth_publickey_fromfile() and
	public key
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/150#comment:3
Message-ID: <060.aec463e58050f7f821b2ce8a4d038a82@libssh2.stuge.se>
References: <045.377c89c2c4ecd7e2badf017d28cd7dff@libssh2.stuge.se>
X-Trac-Ticket-ID: 150
In-Reply-To: <045.377c89c2c4ecd7e2badf017d28cd7dff@libssh2.stuge.se>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Tue, 12 Apr 2011 17:05:51 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Tue, 12 Apr 2011 17:05:46 +0200 (CEST)
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id p3CF5kIc029251
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

#150: libssh2_userauth_publickey_fromfile() and public key
--------------------------+-------------------------------------------------
  Reporter:  anonymous    |        Owner:        
      Type:  enhancement  |       Status:  closed
  Priority:  normal       |    Milestone:        
 Component:               |      Version:        
Resolution:  fixed        |     Keywords:        
    Blocks:               |   Blocked By:        
--------------------------+-------------------------------------------------
Changes (by mts):

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


Comment:

 Implemented in 1.2.8, closing

-- 
Ticket URL: <http://trac.libssh2.org/ticket/150#comment:3>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients

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

From libssh2-devel-bounces@cool.haxx.se  Tue Apr 12 17:08:19 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3CF8Eq5030366;
	Tue, 12 Apr 2011 17:08:17 +0200
Received: from earth.stuge.se (earth.stuge.se [212.116.89.126])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3CF8CpZ030363
	for <libssh2-devel@cool.haxx.se>; Tue, 12 Apr 2011 17:08:12 +0200
Received: (qmail 16344 invoked from network); 12 Apr 2011 15:08:14 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 12 Apr 2011 15:08:14 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.12
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 12 Apr 2011 15:08:14 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #214: sftp_write hangs following an error
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/214#comment:2
Message-ID: <054.b090cfc4254d8553cea49f7cc4f31ad0@libssh2.stuge.se>
References: <039.fd432682c7e873a929eadad56ea29449@libssh2.stuge.se>
X-Trac-Ticket-ID: 214
In-Reply-To: <039.fd432682c7e873a929eadad56ea29449@libssh2.stuge.se>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Tue, 12 Apr 2011 17:08:19 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Tue, 12 Apr 2011 17:08:12 +0200 (CEST)
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id p3CF8CpZ030363
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

#214: sftp_write hangs following an error
---------------------+------------------------------------------------------
  Reporter:  mts     |        Owner:                 
      Type:  defect  |       Status:  new            
  Priority:  normal  |    Milestone:  1.2.9          
 Component:  SFTP    |      Version:  1.2.8          
Resolution:          |     Keywords:  sftp write hang
    Blocks:          |   Blocked By:                 
---------------------+------------------------------------------------------

Comment (by mts):

 Definitely caused by #160, perhaps related to #205?

-- 
Ticket URL: <http://trac.libssh2.org/ticket/214#comment:2>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients

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

From libssh2-devel-bounces@cool.haxx.se  Tue Apr 12 23:45:48 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3CLjRUu021672;
	Tue, 12 Apr 2011 23:45:44 +0200
Received: from earth.stuge.se (earth.stuge.se [212.116.89.126])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3CLjPvg021655
	for <libssh2-devel@cool.haxx.se>; Tue, 12 Apr 2011 23:45:25 +0200
Received: (qmail 18768 invoked from network); 12 Apr 2011 21:45:28 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 12 Apr 2011 21:45:28 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.12
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 12 Apr 2011 21:45:28 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #214: sftp_write hangs following an error
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/214#comment:3
Message-ID: <054.dace7b3ba73d40db92c6c1ae2f0dd267@libssh2.stuge.se>
References: <039.fd432682c7e873a929eadad56ea29449@libssh2.stuge.se>
X-Trac-Ticket-ID: 214
In-Reply-To: <039.fd432682c7e873a929eadad56ea29449@libssh2.stuge.se>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Tue, 12 Apr 2011 23:45:48 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Tue, 12 Apr 2011 23:45:25 +0200 (CEST)
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id p3CLjPvg021655
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

#214: sftp_write hangs following an error
---------------------+------------------------------------------------------
  Reporter:  mts     |        Owner:  bagder         
      Type:  defect  |       Status:  assigned       
  Priority:  normal  |    Milestone:  1.2.9          
 Component:  SFTP    |      Version:  1.2.8          
Resolution:          |     Keywords:  sftp write hang
    Blocks:          |   Blocked By:                 
---------------------+------------------------------------------------------
Changes (by bagder):

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


Comment:

 Ok, a question and some comments around what we see in the trace:

 We see that we get a 101 (hex 65) response back from the server when
 FXP_WRITE was sent. The following log snippet shows this:

 [libssh2] 6.738287 SFTP: Received packet 101 (len 24)
 [libssh2] 6.738287 SFTP: Got 101
 [libssh2] 6.738287 Failure Event: -31 - FXP write failed

 Ok, and the last line there is a call to _libssh2_error() and a return out
 from sftp_write() with LIBSSH2_ERROR_SFTP_PROTOCOL as error.

 when sftp_write() returns, it goes back to the libssh2_sftp_write()
 function where there's a macro that checks if it should hang around and
 wait for more data or not. This macro would not match the
 LIBSSH2_ERROR_SFTP_PROTOCOL return code but should return immediately.

 However, the next trace log shows:

 [libssh2] 50.989703 SFTP: Requiring packet 101 id 80

 Is that a new call to libssh2_sftp_write() after the previous one failed?
 I think so, and it would be great to get this confirmed to properly
 understand what's going on.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/214#comment:3>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients

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

From libssh2-devel-bounces@cool.haxx.se  Wed Apr 13 13:55:48 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3DBtQjH010396;
	Wed, 13 Apr 2011 13:55:44 +0200
Received: from earth.stuge.se (earth.stuge.se [212.116.89.126])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3DBtO5U010373
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Apr 2011 13:55:24 +0200
Received: (qmail 22308 invoked from network); 13 Apr 2011 11:55:25 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 13 Apr 2011 11:55:25 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.12
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12, by Edgewall Software
X-Trac-Project: libssh2
Date: Wed, 13 Apr 2011 11:55:25 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #214: sftp_write hangs following an error
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/214#comment:4
Message-ID: <054.7c2738d03d23cf18f2d055854cc0e7d8@libssh2.stuge.se>
References: <039.fd432682c7e873a929eadad56ea29449@libssh2.stuge.se>
X-Trac-Ticket-ID: 214
In-Reply-To: <039.fd432682c7e873a929eadad56ea29449@libssh2.stuge.se>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Wed, 13 Apr 2011 13:55:48 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Wed, 13 Apr 2011 13:55:24 +0200 (CEST)
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id p3DBtO5U010373
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

#214: sftp_write hangs following an error
---------------------+------------------------------------------------------
  Reporter:  mts     |        Owner:  bagder         
      Type:  defect  |       Status:  assigned       
  Priority:  normal  |    Milestone:  1.2.9          
 Component:  SFTP    |      Version:  1.2.8          
Resolution:          |     Keywords:  sftp write hang
    Blocks:          |   Blocked By:                 
---------------------+------------------------------------------------------

Comment (by mts):

 OK, so perhaps I should write the comment before the attachment!

 The error wasn't clearing up the queued packet list and state correctly,
 the attached patch is an interim fix if anyone else is suffering this
 problem.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/214#comment:4>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients

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

From libssh2-devel-bounces@cool.haxx.se  Wed Apr 13 15:35:58 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3DDZhwj002382;
	Wed, 13 Apr 2011 15:35:57 +0200
Received: from earth.stuge.se (earth.stuge.se [212.116.89.126])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3DDZfSi002365
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Apr 2011 15:35:41 +0200
Received: (qmail 26987 invoked from network); 13 Apr 2011 13:35:42 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 13 Apr 2011 13:35:42 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.12
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12, by Edgewall Software
X-Trac-Project: libssh2
Date: Wed, 13 Apr 2011 13:35:42 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #214: sftp_write hangs following an error
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/214#comment:5
Message-ID: <054.a7b2f2f9baf801de9a21d0e5545b9b8d@libssh2.stuge.se>
References: <039.fd432682c7e873a929eadad56ea29449@libssh2.stuge.se>
X-Trac-Ticket-ID: 214
In-Reply-To: <039.fd432682c7e873a929eadad56ea29449@libssh2.stuge.se>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Wed, 13 Apr 2011 15:35:58 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Wed, 13 Apr 2011 15:35:41 +0200 (CEST)
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id p3DDZfSi002365
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

#214: sftp_write hangs following an error
---------------------+------------------------------------------------------
  Reporter:  mts     |        Owner:  bagder         
      Type:  defect  |       Status:  closed         
  Priority:  normal  |    Milestone:  1.2.9          
 Component:  SFTP    |      Version:  1.2.8          
Resolution:  fixed   |     Keywords:  sftp write hang
    Blocks:          |   Blocked By:                 
---------------------+------------------------------------------------------
Changes (by mts):

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


Comment:

 Closing, fix committed (d881e7e8efadd664750495175760cb78f238c995)

-- 
Ticket URL: <http://trac.libssh2.org/ticket/214#comment:5>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients

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

From libssh2-devel-bounces@cool.haxx.se  Wed Apr 13 15:39:30 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3DDdRdX003472;
	Wed, 13 Apr 2011 15:39:29 +0200
Received: from earth.stuge.se (earth.stuge.se [212.116.89.126])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3DDdQtb003468
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Apr 2011 15:39:26 +0200
Received: (qmail 28966 invoked from network); 13 Apr 2011 13:39:28 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 13 Apr 2011 13:39:28 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.12
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12, by Edgewall Software
X-Trac-Project: libssh2
Date: Wed, 13 Apr 2011 13:39:28 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #149: Add libssh2_userauth_publickey from memory
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/149#comment:2
Message-ID: <056.aa2a1b3f7a36167f810a9aaa89c3df8f@libssh2.stuge.se>
References: <041.fbdb4e19ea75b7a2d93b4caf293065c2@libssh2.stuge.se>
X-Trac-Ticket-ID: 149
In-Reply-To: <041.fbdb4e19ea75b7a2d93b4caf293065c2@libssh2.stuge.se>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Wed, 13 Apr 2011 15:39:30 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Wed, 13 Apr 2011 15:39:26 +0200 (CEST)
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id p3DDdQtb003468
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

#149: Add libssh2_userauth_publickey from memory
--------------------------+-------------------------------------------------
  Reporter:  chaac        |        Owner:        
      Type:  enhancement  |       Status:  closed
  Priority:  normal       |    Milestone:        
 Component:  API          |      Version:        
Resolution:  outdated     |     Keywords:        
    Blocks:               |   Blocked By:        
--------------------------+-------------------------------------------------
Changes (by mts):

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


Comment:

 Looks like this is available as libssh2_userauth_publickey()

-- 
Ticket URL: <http://trac.libssh2.org/ticket/149#comment:2>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients

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

From libssh2-devel-bounces@cool.haxx.se  Thu Apr 14 16:05:00 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3EE4UNc026787;
	Thu, 14 Apr 2011 16:04:55 +0200
Received: from mail0.avcosystems.co.uk (mail0.avcosystems.co.uk
	[195.224.236.86])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3EE4T0d026647
	(version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Apr 2011 16:04:29 +0200
Received: from lexx.avco ([192.168.0.1] helo=lyta)
	by mail0.avcosystems.co.uk with esmtp (Exim 4.69 #1 (Debian))
	(envelope-from <mts-filtered@avcosystems.co.uk>) id 1QAN9m-00011m-8A
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Apr 2011 15:04:26 +0100
From: "Mark Smith" <mts-filtered@avcosystems.co.uk>
To: <libssh2-devel@cool.haxx.se>
Subject: New FAQ
Date: Thu, 14 Apr 2011 15:04:26 +0100
Message-ID: <F3677147CA7447A5A39EF25938A2D80B@internal.avcosystems.com>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
thread-index: Acv6rNvBnNWwEVIOQU2CbExbWGs1Tw==
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090
X-AVCO-Scan-Signature: 45be8002bf0793e14fb639aeaac58cca
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Thu, 14 Apr 2011 16:05:00 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Thu, 14 Apr 2011 16:04:29 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

I would like to draw your attention to the newly created FAQ for libssh2:

  http://trac.libssh2.org/wiki/FAQ

This is the first of many steps to make the website more useful, whether you
are a newcomer to libssh2 or seasoned developer.

Please let us know if you spot any mistakes on the website in general, or if
you would like to see a particular question answered, or even if you think
you might like to take a few minutes to help out with improving our
documentation!

Thanks,

-- 
Mark Smith a.k.a. Plink (unwittingly made FAQ maintainer)

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

From libssh2-devel-bounces@cool.haxx.se  Thu Apr 14 17:00:27 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3EF0LmL031467;
	Thu, 14 Apr 2011 17:00:26 +0200
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3EF0JFa031439
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Apr 2011 17:00:19 +0200
Date: Thu, 14 Apr 2011 17:00:19 +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: New FAQ
In-Reply-To: <F3677147CA7447A5A39EF25938A2D80B@internal.avcosystems.com>
Message-ID: <alpine.DEB.2.00.1104141659340.20147@tvnag.unkk.fr>
References: <F3677147CA7447A5A39EF25938A2D80B@internal.avcosystems.com>
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.8 (giant.haxx.se [127.0.0.1]); Thu, 14 Apr 2011 17:00:27 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Thu, 14 Apr 2011 17:00:20 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

On Thu, 14 Apr 2011, Mark Smith wrote:

> I would like to draw your attention to the newly created FAQ for libssh2:
>
>  http://trac.libssh2.org/wiki/FAQ

Thanks a bunch Mark, this is great and should help people get a start.

I've also made sure there's a link to the FAQ from the libssh2.org's front web 
page.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Fri Apr 15 00:30:27 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3EMU6Ao013123;
	Fri, 15 Apr 2011 00:30:23 +0200
Received: from foo.stuge.se (qmailr@foo.stuge.se [212.181.44.140])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id p3EMU4gg012886
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Apr 2011 00:30:04 +0200
Received: (qmail 20169 invoked by uid 501); 14 Apr 2011 22:30:05 -0000
Message-ID: <20110414223005.20168.qmail@stuge.se>
Date: Fri, 15 Apr 2011 00:30:05 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: New FAQ
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <F3677147CA7447A5A39EF25938A2D80B@internal.avcosystems.com>
	<alpine.DEB.2.00.1104141659340.20147@tvnag.unkk.fr>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.00.1104141659340.20147@tvnag.unkk.fr>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 15 Apr 2011 00:30:26 +0200 (CEST)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 15 Apr 2011 00:30:04 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg wrote:
>> I would like to draw your attention to the newly created FAQ for
>> libssh2:
>>
>>  http://trac.libssh2.org/wiki/FAQ
>
> Thanks a bunch Mark, this is great and should help people get a
> start.

Yes, really great stuff! I've changed the questions to automatic
numbering through the wiki page TOC feature; now questions are
second-level headlines, which has the nice side effect that they can
be linked to directly. I'm also guilty of touching up the phrasing of
questions a bit in an attempt to make the links as nice as I could.

I added some links to the RFCs as well.

Thank you so much for taking the initiative to start a FAQ and even
seeding it with so many good questions and answers!

If anyone wants to add a question or improve an answer, or make
another wiki change, please ping me or Daniel and we'll immediately
add the permissions to your account which separate contributors from
spammers. :)


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

From libssh2-devel-bounces@cool.haxx.se  Fri Apr 15 10:35:11 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3F8YjeS022520;
	Fri, 15 Apr 2011 10:35:07 +0200
Received: from earth.stuge.se (earth.stuge.se [212.116.89.126])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3F8YiBa022512
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Apr 2011 10:34:44 +0200
Received: (qmail 11558 invoked from network); 15 Apr 2011 08:34:43 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 15 Apr 2011 08:34:43 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.12
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12, by Edgewall Software
X-Trac-Project: libssh2
Date: Fri, 15 Apr 2011 08:34:43 -0000
X-URL: http://trac.libssh2.org/
Subject: [libssh2] #215: Patch for win32/msvcproj.head
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/215
Message-ID: <039.31caffd449af0933d00019d1f4867db1@libssh2.stuge.se>
X-Trac-Ticket-ID: 215
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 15 Apr 2011 10:35:11 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 15 Apr 2011 10:34:44 +0200 (CEST)
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id p3F8YiBa022512
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

#215: Patch for win32/msvcproj.head
--------------------------+-------------------------------------------------
  Reporter:  mts          |       Owner:       
      Type:  enhancement  |      Status:  new  
  Priority:  normal       |   Milestone:  1.2.9
 Component:  misc         |     Version:  1.2.8
  Keywords:               |      Blocks:       
Blocked By:               |  
--------------------------+-------------------------------------------------
 Added libraries needed to link whether using openssl dynamically or
 statically
 Added LIBSSH2DEBUG define to debug versions to enable tracing

-- 
Ticket URL: <http://trac.libssh2.org/ticket/215>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients

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

From libssh2-devel-bounces@cool.haxx.se  Fri Apr 15 14:33:55 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3FCXebe029309;
	Fri, 15 Apr 2011 14:33:52 +0200
Received: from earth.stuge.se (earth.stuge.se [212.116.89.126])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3FCXc3J029285
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Apr 2011 14:33:38 +0200
Received: (qmail 26819 invoked from network); 15 Apr 2011 12:33:40 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 15 Apr 2011 12:33:40 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.12
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12, by Edgewall Software
X-Trac-Project: libssh2
Date: Fri, 15 Apr 2011 12:33:40 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #215: Patch for win32/msvcproj.head
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/215#comment:1
Message-ID: <054.8b8fc197ee9f67b88fb699b5a280dab6@libssh2.stuge.se>
References: <039.31caffd449af0933d00019d1f4867db1@libssh2.stuge.se>
X-Trac-Ticket-ID: 215
In-Reply-To: <039.31caffd449af0933d00019d1f4867db1@libssh2.stuge.se>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 15 Apr 2011 14:33:55 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 15 Apr 2011 14:33:38 +0200 (CEST)
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id p3FCXc3J029285
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

#215: Patch for win32/msvcproj.head
--------------------------+-------------------------------------------------
  Reporter:  mts          |        Owner:        
      Type:  enhancement  |       Status:  closed
  Priority:  normal       |    Milestone:  1.2.9 
 Component:  misc         |      Version:  1.2.8 
Resolution:  fixed        |     Keywords:        
    Blocks:               |   Blocked By:        
--------------------------+-------------------------------------------------
Changes (by bagder):

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


Comment:

 Thanks, change was done in commit 4825171919e36813749abf0e6de47d487a56fa6

-- 
Ticket URL: <http://trac.libssh2.org/ticket/215#comment:1>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients

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

From libssh2-devel-bounces@cool.haxx.se  Sun Apr 17 04:58:20 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3H2vv8m022695;
	Sun, 17 Apr 2011 04:58:16 +0200
Received: from m13-144.163.com (m13-144.163.com [220.181.13.144])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3H2vmC2022687
	for <libssh2-devel@cool.haxx.se>; Sun, 17 Apr 2011 04:57:54 +0200
Received: from drswinghead ( [211.102.146.136] ) by ajax-webmail-wmsvr144
	(Coremail) ; Sun, 17 Apr 2011 10:57:41 +0800 (CST)
Date: Sun, 17 Apr 2011 10:57:41 +0800 (CST)
From: drswinghead <drswinghead@163.com>
To: "libssh2 development" <libssh2-devel@cool.haxx.se>
Message-ID: <11e0976.1021.12f61646b8a.Coremail.drswinghead@163.com>
In-Reply-To: <F3677147CA7447A5A39EF25938A2D80B@internal.avcosystems.com>
References: <F3677147CA7447A5A39EF25938A2D80B@internal.avcosystems.com>
Subject: a little docs bug
MIME-Version: 1.0
X-Originating-IP: [211.102.146.136]
X-Priority: 3
X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build
	110215(12912.3637.3636) Copyright (c) 2002-2011 www.mailtech.cn 163com
X-CM-CTRLDATA: aIM+DGZvb3Rlcl9odG09MTk2OjIwMQ==
X-CM-TRANSID: kMGowKBrEwMmV6pNziQVAA--.14819W
X-CM-SenderInfo: 5guv4x5qjkvtrg6rljoofrz/xtbBnBIkek0vKfz6fAABsg
X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU==
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Sun, 17 Apr 2011 04:58:20 +0200 (CEST)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Sun, 17 Apr 2011 04:57:55 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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="===============2001227400=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============2001227400==
Content-Type: multipart/alternative; 
	boundary="----=_Part_11246_15045557.1303009061766"

------=_Part_11246_15045557.1303009061766
Content-Type: text/plain; charset=GBK
Content-Transfer-Encoding: base64

aHR0cDovL3d3dy5saWJzc2gyLm9yZy9saWJzc2gyX3Nlc3Npb25fYmxvY2tfZGlyZWN0aW9ucy5o
dG1sCgppbiBSZXR1cm4gdmFsdWUgc2VjdGlvbjoKCnRoZSBsYXN0IExJQlNTSDJfU0VTU0lPTl9C
TE9DS19JTkJPVU5EIHNob3VsZCBiZSBMSUJTU0gyX1NFU1NJT05fQkxPQ0tfT1VUQk9VTkQuCgoK
------=_Part_11246_15045557.1303009061766
Content-Type: text/html; charset=GBK
Content-Transfer-Encoding: base64

PHA+aHR0cDovL3d3dy5saWJzc2gyLm9yZy9saWJzc2gyX3Nlc3Npb25fYmxvY2tfZGlyZWN0aW9u
cy5odG1sPC9wPjxwPmluIFJldHVybiB2YWx1ZSBzZWN0aW9uOjwvcD48cD50aGUgbGFzdCBMSUJT
U0gyX1NFU1NJT05fQkxPQ0tfSU5CT1VORCBzaG91bGQgYmUgTElCU1NIMl9TRVNTSU9OX0JMT0NL
X09VVEJPVU5ELjwvcD48cD48YnI+PC9wPjxicj48YnI+PHNwYW4gdGl0bGU9Im5ldGVhc2Vmb290
ZXIiPjxzcGFuIGlkPSJuZXRlYXNlX21haWxfZm9vdGVyIj48aHIvPgo8YSBocmVmPSJodHRwOi8v
bWFpbC4xNjMuY29tL2h0bWwvMTEwNDE0X2F0dGFjaG1lbnQvYXR0MS5odG0iIHRhcmdldD0iX2Js
YW5rIj7M5dHpzfjS19PKz+QyR7OstPO4vbz+o6zH4cvJt6LTxdbKtPO159OwoaK089XVxqyjrMzh
y9kzsbYhPC9hPgo8L3NwYW4+PC9zcGFuPg==
------=_Part_11246_15045557.1303009061766--


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

--===============2001227400==--

From libssh2-devel-bounces@cool.haxx.se  Sun Apr 17 12:41:30 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3HAfBva011271;
	Sun, 17 Apr 2011 12:41:27 +0200
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3HAfAkY011261
	for <libssh2-devel@cool.haxx.se>; Sun, 17 Apr 2011 12:41:10 +0200
Date: Sun, 17 Apr 2011 12:41:10 +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: a little docs bug
In-Reply-To: <11e0976.1021.12f61646b8a.Coremail.drswinghead@163.com>
Message-ID: <alpine.DEB.2.00.1104171240540.30587@tvnag.unkk.fr>
References: <F3677147CA7447A5A39EF25938A2D80B@internal.avcosystems.com>
	<11e0976.1021.12f61646b8a.Coremail.drswinghead@163.com>
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.8 (giant.haxx.se [127.0.0.1]); Sun, 17 Apr 2011 12:41:30 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Sun, 17 Apr 2011 12:41:10 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

On Sun, 17 Apr 2011, drswinghead wrote:

> the last LIBSSH2_SESSION_BLOCK_INBOUND should be 
> LIBSSH2_SESSION_BLOCK_OUTBOUND.

Thanks! Correction committed and pushed.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Thu Apr 28 15:08:21 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3SD7u4g016272;
	Thu, 28 Apr 2011 15:08:17 +0200
Received: from earth.stuge.se (earth.stuge.se [212.116.89.126])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3SD7s3H016235
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Apr 2011 15:07:54 +0200
Received: (qmail 628 invoked from network); 28 Apr 2011 13:07:56 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
	by localhost with SMTP; 28 Apr 2011 13:07:56 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.12
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 28 Apr 2011 13:07:56 -0000
X-URL: http://trac.libssh2.org/
Subject: [libssh2] #216: libssh2_scp_recv() / libssh2_scp_send(): incorrect
	error code
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/216
Message-ID: <048.5e3a3b437d35a1d4504ea43602b6ea93@libssh2.stuge.se>
X-Trac-Ticket-ID: 216
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Thu, 28 Apr 2011 15:08:21 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Thu, 28 Apr 2011 15:07:54 +0200 (CEST)
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id p3SD7s3H016235
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

#216: libssh2_scp_recv() / libssh2_scp_send():  incorrect error code
---------------------------+------------------------------------------------
  Reporter:  littlesavage  |       Owner:       
      Type:  defect        |      Status:  new  
  Priority:  normal        |   Milestone:  1.2.9
 Component:  SCP           |     Version:  1.2.8
  Keywords:                |      Blocks:       
Blocked By:                |  
---------------------------+------------------------------------------------
 libssh2_session_last_error() after libssh2_scp_recv()/libssh2_scp_send()
 may return LIBSSH2_ERROR_SOCKET_NONE on error.

 Sample perl script:

 {{{
 #!/usr/bin/perl

 use strict;
 use Net::SSH2;

 my $ssh2 = Net::SSH2->new();

 $ssh2->connect('localhost');
 $ssh2->auth_publickey('user', './id_dsa.pub', './id_dsa');

 if (!$ssh2->scp_put($0, '/nonexistent/test')) {
    my ($err_code, $err_name, $err_string) = $ssh2->error();
    warn "scp_put error: $err_code $err_name $err_string";
 }

 if (!$ssh2->scp_get('/nonexistent/test')) {
    my ($err_code, $err_name, $err_string) = $ssh2->error();
    warn "scp_get error: $err_code $err_name $err_string";
 }
 }}}

 libssh2_scp_recv() returns not really useful code 0:

 {{{
 scp_put error: 0   at ./test.pl line 14.
 scp_get error: 0   at ./test.pl line 18.
 }}}

 with attached patch:
 {{{
 scp_put error: -28 LIBSSH2_ERROR_SCP_PROTOCOL failed to send file at
 ./test.pl line 14.
 scp_get error: -28 LIBSSH2_ERROR_SCP_PROTOCOL Failed to recv file at
 ./test.pl line 18.
 }}}

-- 
Ticket URL: <http://trac.libssh2.org/ticket/216>
libssh2 <http://trac.libssh2.org/>
C library for writing portable SSH2 clients

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

From libssh2-devel-bounces@cool.haxx.se  Fri Apr 29 01:04:15 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3SN3pkQ014139;
	Fri, 29 Apr 2011 01:04:12 +0200
Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3SN3n1o013956
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Apr 2011 01:03:50 +0200
Received: by gwb15 with SMTP id 15so1466899gwb.41
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Apr 2011 16:03:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:date:message-id:subject:from:to
	:content-type; bh=n2pm/zfu5g0ugOjYeHF49N6vU1dPC5NcSDsP2iNOPgk=;
	b=fLPkpVQh01qW+HjYd0o0gCTKIvyG7gZWUS14HfxtL7aAeyIwNALw20F3MrM65O77xt
	wydIiMQm8q/X2VuQsJ7GCuY31wa9c8hLHNT+32UG8CzCAg8QZPN9eBGe3RiSY64ofDD7
	YMh0dz/4mo8ah3UmEdqQxgugAkmcv+Ul7nM5M=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	b=eRQWAqRNKbU4WnqXO0Q0MAta4d9lYRHHi3JA2e1MLYXoD5K/9EslD44ncjni1fkxzx
	ri0rTbgvJ7Rl/jm81noSuNxNEM58QUOP26LV0QcZmcXqeKf5ib1jMWbvQnOnMLat9i0u
	koroBrGHJMDO8r0eQgjdxsiQJV8bPdIuDe4XY=
MIME-Version: 1.0
Received: by 10.236.153.135 with SMTP id f7mr5086075yhk.445.1304031827889;
	Thu, 28 Apr 2011 16:03:47 -0700 (PDT)
Received: by 10.236.95.3 with HTTP; Thu, 28 Apr 2011 16:03:47 -0700 (PDT)
Date: Fri, 29 Apr 2011 04:33:47 +0530
Message-ID: <BANLkTim=oAKBs-fAk-TpkWLv2Y90fMOHnw@mail.gmail.com>
Subject: Building libssh2 for iPhone (almost works)
From: Sachin Garg <schngrg@gmail.com>
To: libssh2-devel@cool.haxx.se
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 29 Apr 2011 01:04:15 +0200 (CEST)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 29 Apr 2011 01:03:50 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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="===============0894596914=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============0894596914==
Content-Type: multipart/alternative; boundary=20cf303f693ce0956804a20291f2

--20cf303f693ce0956804a20291f2
Content-Type: text/plain; charset=ISO-8859-1

I am trying to build libssh2 for use in iphone application, following the
guidlines on this page:

http://sites.google.com/site/olipion/cross-compilation/libssh2

Building for iPhone works for old version 1.1 (for which that page was
written) but build fails on latest 1.2.8. Seems to be a problem with build
scripts, not the code. Here is what I get on command line:


*First, the configure command is (as in link above),*

./configure --host=arm-apple-darwin9 --prefix=/pathToInstall/built
--with-libgcrypt-prefix=/pathToInstall/built

*Output at end is (it says libgcrypt:no, which seems wrong as libgcrypt is
at the path specified, built using instructions in link above):*

version:          -
  Host type:        arm-apple-darwin9
  Install prefix:   /pathToInstall/built
  Compiler:         gcc
  Compiler flags:    -DLIBSSH2_DARWIN
  Library types:    Shared=yes, Static=yes
  Crypto library:   openssl: yes (AES-CTR: no) libgcrypt: no
  Debug build:      no
  Path to sshd:     /usr/sbin/sshd (only for self-tests)
  libz compression: yes

*Then make stops with this error,*

Making all in src
make  all-am
/bin/sh ../libtool --tag=CC --mode=link gcc  -DLIBSSH2_DARWIN   -o
libssh2.la -rpath /pathToInstall/built/lib -version-info 1:1:0 -no-undefined
-export-symbols-regex '^libssh2_.*'  -lssl -lcrypto -lz channel.lo comp.lo
crypt.lo hostkey.lo kex.lo mac.lo misc.lo packet.lo publickey.lo scp.lo
session.lo sftp.lo userauth.lo transport.lo version.lo knownhost.lo agent.lo
openssl.lo libgcrypt.lo pem.lo keepalive.lo global.lo
libtool: link: link -dump -symbols  .libs/channel.o .libs/comp.o
.libs/crypt.o .libs/hostkey.o .libs/kex.o .libs/mac.o .libs/misc.o
.libs/packet.o .libs/publickey.o .libs/scp.o .libs/session.o .libs/sftp.o
.libs/userauth.o .libs/transport.o .libs/version.o .libs/knownhost.o
.libs/agent.o .libs/openssl.o .libs/libgcrypt.o .libs/pem.o
.libs/keepalive.o .libs/global.o   |  | /usr/bin/sed 's/.* //' | sort | uniq
> .libs/libssh2.exp
../libtool: eval: line 947: syntax error near unexpected token `|'
../libtool: eval: line 947: `link -dump -symbols  .libs/channel.o
.libs/comp.o .libs/crypt.o .libs/hostkey.o .libs/kex.o .libs/mac.o
.libs/misc.o .libs/packet.o .libs/publickey.o .libs/scp.o .libs/session.o
.libs/sftp.o .libs/userauth.o .libs/transport.o .libs/version.o
.libs/knownhost.o .libs/agent.o .libs/openssl.o .libs/libgcrypt.o
.libs/pem.o .libs/keepalive.o .libs/global.o   |  | /usr/bin/sed 's/.* //' |
sort | uniq > .libs/libssh2.exp'
make[2]: *** [libssh2.la] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

How to fix this problem?

SG

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

I am trying to build libssh2 for use in iphone application, following the g=
uidlines on this page:<div><br></div><div><a href=3D"http://sites.google.co=
m/site/olipion/cross-compilation/libssh2" target=3D"_blank">http://sites.go=
ogle.com/site/olipion/cross-compilation/libssh2</a></div>


<div><br></div><div>Building for iPhone works for old version 1.1 (for whic=
h that page was written) but build fails on latest 1.2.8. Seems to be a pro=
blem with build scripts, not the code. Here is what I get on command line:<=
/div>

<div><br></div><div><br></div><div><b>First, the configure command is (as i=
n link above),</b></div><div><br></div><div><div>./configure --host=3Darm-a=
pple-darwin9 --prefix=3D/pathToInstall/built --with-libgcrypt-prefix=3D/pat=
hToInstall/built</div>

<div><br></div><div><b>Output at end is (it says libgcrypt:no, which seems =
wrong as libgcrypt is at the path specified, built using instructions in li=
nk above):</b></div><div><div><br></div><div>version: =A0 =A0 =A0 =A0 =A0-<=
/div>
<div>
=A0=A0Host type: =A0 =A0 =A0 =A0arm-apple-darwin9</div><div>=A0=A0Install p=
refix: =A0 /pathToInstall/built</div><div>=A0=A0Compiler: =A0 =A0 =A0 =A0 g=
cc</div><div>=A0=A0Compiler flags: =A0 =A0-DLIBSSH2_DARWIN</div>
<div>=A0=A0Library types: =A0 =A0Shared=3Dyes, Static=3Dyes</div><div>=A0=
=A0Crypto library: =A0 openssl: yes (AES-CTR: no) libgcrypt: no</div><div>=
=A0=A0Debug build: =A0 =A0 =A0no</div><div>=A0=A0Path to sshd: =A0 =A0 /usr=
/sbin/sshd (only for self-tests)</div>

<div>=A0=A0libz compression: yes</div><div><br></div></div><div><b>Then mak=
e stops with this error,</b></div><div><br></div><div><div>Making all in sr=
c</div><div>make =A0all-am</div><div>/bin/sh ../libtool --tag=3DCC --mode=
=3Dlink gcc =A0-DLIBSSH2_DARWIN =A0 -o <a href=3D"http://libssh2.la">libssh=
2.la</a> -rpath /pathToInstall/built/lib -version-info 1:1:0 -no-undefined =
-export-symbols-regex &#39;^libssh2_.*&#39; =A0-lssl -lcrypto -lz channel.l=
o comp.lo crypt.lo hostkey.lo kex.lo mac.lo misc.lo packet.lo publickey.lo =
scp.lo session.lo sftp.lo userauth.lo transport.lo version.lo knownhost.lo =
agent.lo openssl.lo libgcrypt.lo pem.lo keepalive.lo global.lo =A0=A0</div>

<div>libtool: link: link -dump -symbols =A0.libs/channel.o .libs/comp.o .li=
bs/crypt.o .libs/hostkey.o .libs/kex.o .libs/mac.o .libs/misc.o .libs/packe=
t.o .libs/publickey.o .libs/scp.o .libs/session.o .libs/sftp.o .libs/userau=
th.o .libs/transport.o .libs/version.o .libs/knownhost.o .libs/agent.o .lib=
s/openssl.o .libs/libgcrypt.o .libs/pem.o .libs/keepalive.o .libs/global.o =
=A0 | =A0| /usr/bin/sed &#39;s/.* //&#39; | sort | uniq &gt; .libs/libssh2.=
exp</div>

<div>../libtool: eval: line 947: syntax error near unexpected token `|&#39;=
</div><div>../libtool: eval: line 947: `link -dump -symbols =A0.libs/channe=
l.o .libs/comp.o .libs/crypt.o .libs/hostkey.o .libs/kex.o .libs/mac.o .lib=
s/misc.o .libs/packet.o .libs/publickey.o .libs/scp.o .libs/session.o .libs=
/sftp.o .libs/userauth.o .libs/transport.o .libs/version.o .libs/knownhost.=
o .libs/agent.o .libs/openssl.o .libs/libgcrypt.o .libs/pem.o .libs/keepali=
ve.o .libs/global.o =A0 | =A0| /usr/bin/sed &#39;s/.* //&#39; | sort | uniq=
 &gt; .libs/libssh2.exp&#39;</div>

<div>make[2]: *** [<a href=3D"http://libssh2.la">libssh2.la</a>] Error 1</d=
iv><div>make[1]: *** [all] Error 2</div><div>make: *** [all-recursive] Erro=
r 1</div><div><br></div><div>How to fix this problem?</div>
<div><br></div><div>SG</div><div><br></div></div></div>

--20cf303f693ce0956804a20291f2--

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

--===============0894596914==--

From libssh2-devel-bounces@cool.haxx.se  Fri Apr 29 01:23:21 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3SNNFii022220;
	Fri, 29 Apr 2011 01:23:20 +0200
Received: from ponderosa.fch.wimsey.bc.ca (zz201111.cipherkey.net
	[209.53.201.111])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3SNNCAf022207
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Apr 2011 01:23:12 +0200
Received: by coneharvesters.com
	via sendmail with stdio id <m1QFaYE-000l6IC@ponderosa.fch.wimsey.bc.ca>
	for libssh2-devel@cool.haxx.se; Thu, 28 Apr 2011 16:23:14 -0700 (PDT)
Date: Thu, 28 Apr 2011 16:23:13 -0700
From: Dan Fandrich <dan@coneharvesters.com>
To: libssh2-devel@cool.haxx.se
Subject: Re: Building libssh2 for iPhone (almost works)
Message-ID: <20110428232312.GA32547@coneharvesters.com>
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <BANLkTim=oAKBs-fAk-TpkWLv2Y90fMOHnw@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <BANLkTim=oAKBs-fAk-TpkWLv2Y90fMOHnw@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 29 Apr 2011 01:23:21 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 29 Apr 2011 01:23:13 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id p3SNNFii022220

On Fri, Apr 29, 2011 at 04:33:47AM +0530, Sachin Garg wrote:
> I am trying to build libssh2 for use in iphone application, following the
> guidlines on this page:
[...]
> make  all-am
> /bin/sh ../libtool --tag=CC --mode=link gcc  -DLIBSSH2_DARWIN   -o libssh2.la
> -rpath /pathToInstall/built/lib -version-info 1:1:0 -no-undefined
> -export-symbols-regex '^libssh2_.*'  -lssl -lcrypto -lz channel.lo comp.lo
> crypt.lo hostkey.lo kex.lo mac.lo misc.lo packet.lo publickey.lo scp.lo
> session.lo sftp.lo userauth.lo transport.lo version.lo knownhost.lo agent.lo
> openssl.lo libgcrypt.lo pem.lo keepalive.lo global.lo   
> libtool: link: link -dump -symbols  .libs/channel.o .libs/comp.o .libs/crypt.o
> .libs/hostkey.o .libs/kex.o .libs/mac.o .libs/misc.o .libs/packet.o .libs/
> publickey.o .libs/scp.o .libs/session.o .libs/sftp.o .libs/userauth.o .libs/
> transport.o .libs/version.o .libs/knownhost.o .libs/agent.o .libs/openssl.o
> .libs/libgcrypt.o .libs/pem.o .libs/keepalive.o .libs/global.o   |  | /usr/bin/
> sed 's/.* //' | sort | uniq > .libs/libssh2.exp
> ../libtool: eval: line 947: syntax error near unexpected token `|'
> ../libtool: eval: line 947: `link -dump -symbols  .libs/channel.o .libs/comp.o
> .libs/crypt.o .libs/hostkey.o .libs/kex.o .libs/mac.o .libs/misc.o .libs/
> packet.o .libs/publickey.o .libs/scp.o .libs/session.o .libs/sftp.o .libs/
> userauth.o .libs/transport.o .libs/version.o .libs/knownhost.o .libs/agent.o
> .libs/openssl.o .libs/libgcrypt.o .libs/pem.o .libs/keepalive.o .libs/global.o
>   |  | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libssh2.exp'
> make[2]: *** [libssh2.la] Error 1
> make[1]: *** [all] Error 2
> make: *** [all-recursive] Error 1
> 
> How to fix this problem?

This looks like problem with libtool. Try running ./buildconf before doing the
configure (or at least "libtoolize --copy --automake --force") to use the
libtool available on the host system, which has probably been customized for
OS X and is at the very least a different version from what libssh has been
packaged with.

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

From libssh2-devel-bounces@cool.haxx.se  Fri Apr 29 03:31:09 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3T1UsX3005428;
	Fri, 29 Apr 2011 03:31:07 +0200
Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com
	[209.85.160.182])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3T1Uq9Z005407
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Apr 2011 03:30:53 +0200
Received: by gyg13 with SMTP id 13so1500097gyg.41
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Apr 2011 18:30:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type:content-transfer-encoding;
	bh=VewsjXnUupP1SffNgjjWQ7fXBISB0fKX77SzLigeJtI=;
	b=BkpemNdP4H5JT1pqdcxlfGVasBjNiXWK0qcdCeFiTNpW3q2aocn6pwranZB0mt5xmb
	nerEk64KTptJiYM6G/uSvVxbJCuM9FTZdk9zCbgieRpll6vTtifvxYfJz/wh/V0OsVdK
	ZVZVXqzjSpaiIJTEQbbnLyPJ2P4iGIKaFBTR0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type:content-transfer-encoding;
	b=KGymgarSLqyhLeurzdwwtiTgA92R26oGk5TgqqQHwBZ7GIKfjjeqAnHZhiGdeJfmud
	XBsAvuwp0R+VBiw5RiZhbxDYDWnxTU6CoI3Hu/6iIIXkaKsKwQBWDKb9O0ndKtqvWxO+
	+FEJPZHfsy2hOS6prpbEJ05VEf8zJTOMKJBz4=
MIME-Version: 1.0
Received: by 10.236.126.99 with SMTP id a63mr5019383yhi.311.1304040654879;
	Thu, 28 Apr 2011 18:30:54 -0700 (PDT)
Received: by 10.236.95.3 with HTTP; Thu, 28 Apr 2011 18:30:54 -0700 (PDT)
In-Reply-To: <20110428232312.GA32547@coneharvesters.com>
References: <BANLkTim=oAKBs-fAk-TpkWLv2Y90fMOHnw@mail.gmail.com>
	<20110428232312.GA32547@coneharvesters.com>
Date: Fri, 29 Apr 2011 07:00:54 +0530
Message-ID: <BANLkTiksxZOdZf5D46uaSPa_iMiw-7TYvA@mail.gmail.com>
Subject: Re: Building libssh2 for iPhone (almost works)
From: Sachin Garg <schngrg@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 29 Apr 2011 03:31:08 +0200 (CEST)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 29 Apr 2011 03:30:53 +0200 (CEST)
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
	p3T1Uq9Z005407
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id p3T1UsX3005428

On Fri, Apr 29, 2011 at 4:53 AM, Dan Fandrich <dan@coneharvesters.com> wrote:
>
> On Fri, Apr 29, 2011 at 04:33:47AM +0530, Sachin Garg wrote:
> > I am trying to build libssh2 for use in iphone application, following the
> > guidlines on this page:
> [...]
> > make  all-am
> > /bin/sh ../libtool --tag=CC --mode=link gcc  -DLIBSSH2_DARWIN   -o libssh2.la
> > -rpath /pathToInstall/built/lib -version-info 1:1:0 -no-undefined
> > -export-symbols-regex '^libssh2_.*'  -lssl -lcrypto -lz channel.lo comp.lo
> > crypt.lo hostkey.lo kex.lo mac.lo misc.lo packet.lo publickey.lo scp.lo
> > session.lo sftp.lo userauth.lo transport.lo version.lo knownhost.lo agent.lo
> > openssl.lo libgcrypt.lo pem.lo keepalive.lo global.lo
> > libtool: link: link -dump -symbols  .libs/channel.o .libs/comp.o .libs/crypt.o
> > .libs/hostkey.o .libs/kex.o .libs/mac.o .libs/misc.o .libs/packet.o .libs/
> > publickey.o .libs/scp.o .libs/session.o .libs/sftp.o .libs/userauth.o .libs/
> > transport.o .libs/version.o .libs/knownhost.o .libs/agent.o .libs/openssl.o
> > .libs/libgcrypt.o .libs/pem.o .libs/keepalive.o .libs/global.o   |  | /usr/bin/
> > sed 's/.* //' | sort | uniq > .libs/libssh2.exp
> > ../libtool: eval: line 947: syntax error near unexpected token `|'
> > ../libtool: eval: line 947: `link -dump -symbols  .libs/channel.o .libs/comp.o
> > .libs/crypt.o .libs/hostkey.o .libs/kex.o .libs/mac.o .libs/misc.o .libs/
> > packet.o .libs/publickey.o .libs/scp.o .libs/session.o .libs/sftp.o .libs/
> > userauth.o .libs/transport.o .libs/version.o .libs/knownhost.o .libs/agent.o
> > .libs/openssl.o .libs/libgcrypt.o .libs/pem.o .libs/keepalive.o .libs/global.o
> >   |  | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libssh2.exp'
> > make[2]: *** [libssh2.la] Error 1
> > make[1]: *** [all] Error 2
> > make: *** [all-recursive] Error 1
> >
> > How to fix this problem?
>
> This looks like problem with libtool. Try running ./buildconf before doing the
> configure (or at least "libtoolize --copy --automake --force") to use the
> libtool available on the host system, which has probably been customized for
> OS X and is at the very least a different version from what libssh has been
> packaged with.

I tried both these commands and then I get this error with make, (btw,
libtoolize is called glibtoolize on osx).


Making all in src
make  all-am
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H
-I../include -I../src   -DLIBSSH2_DARWIN -MT channel.lo -MD -MP -MF
.deps/channel.Tpo -c -o channel.lo channel.c
../libtool: line 796: X--tag=CC: command not found
../libtool: line 829: libtool: ignoring unknown tag : command not found
../libtool: line 796: X--mode=compile: command not found
../libtool: line 962: *** Warning: inferring the mode of operation is
deprecated.: command not found
../libtool: line 963: *** Future versions of Libtool will require
--mode=MODE be specified.: command not found
../libtool: line 1106: Xgcc: command not found
../libtool: line 1106: X-DHAVE_CONFIG_H: command not found
../libtool: line 1106: X-I../include: No such file or directory
../libtool: line 1106: X-I../src: No such file or directory
../libtool: line 1106: X-DLIBSSH2_DARWIN: command not found
../libtool: line 1106: X-MT: command not found
../libtool: line 1106: Xchannel.lo: command not found
../libtool: line 1106: X-MD: command not found
../libtool: line 1106: X-MP: command not found
../libtool: line 1106: X-MF: command not found
../libtool: line 1106: X.deps/channel.Tpo: No such file or directory
../libtool: line 1106: X-c: command not found
../libtool: line 1157: Xchannel.lo: command not found
../libtool: line 1162: libtool: compile: cannot determine name of
library object from `': command not found
make[2]: *** [channel.lo] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

SG

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

From libssh2-devel-bounces@cool.haxx.se  Fri Apr 29 08:52:17 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3T6pkAN001588;
	Fri, 29 Apr 2011 08:52:12 +0200
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3T6piIX001581
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Apr 2011 08:51:44 +0200
Date: Fri, 29 Apr 2011 08:51:44 +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: Building libssh2 for iPhone (almost works)
In-Reply-To: <BANLkTim=oAKBs-fAk-TpkWLv2Y90fMOHnw@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1104290845100.20576@tvnag.unkk.fr>
References: <BANLkTim=oAKBs-fAk-TpkWLv2Y90fMOHnw@mail.gmail.com>
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.8 (giant.haxx.se [127.0.0.1]); Fri, 29 Apr 2011 08:52:17 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 29 Apr 2011 08:51:44 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

On Fri, 29 Apr 2011, Sachin Garg wrote:

> *Output at end is (it says libgcrypt:no, which seems wrong as libgcrypt is 
> at the path specified, built using instructions in link above):*

No it isn't. That's libcrypt which is part of OpenSSL. That's why the output 
says you have openssl but not libgcrypt. libssh2 requires one of those two.

> ../libtool: eval: line 947: syntax error near unexpected token `|'

As said before: this clearly looks like a libtool problem.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Fri Apr 29 14:10:49 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3TCARRY024668;
	Fri, 29 Apr 2011 14:10:46 +0200
Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com
	[209.85.213.54])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3TCAPsH024621
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Apr 2011 14:10:26 +0200
Received: by ywf7 with SMTP id 7so1624647ywf.41
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Apr 2011 05:10:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type;
	bh=Q/bvUu7K2WdIGyXIAH1RlEVE8lBQjvUrksuLJmKbSDM=;
	b=T/bgD6ErqkCDGfpYNiSPiAliwewfYkQI3kx7W/I/vbB+fe4N3dMYG7D739qtPNlXjH
	1WuqZg9wBuY4Xyn2y87uQn4Pn0phpa/RSibZPiaeombPQDvP+Dqos9DWOyzVTlIgy93u
	pC6Rk14kKq5f6fDzARQCtXXAmumVA88vae9Kg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=qvpvx8qd6Z4w7IIEk6m3LiplC4/NwATv+zbLMOTJddYUXuUvgeF9cxx+fUDuGC7dIG
	oPdHTDM76CkPvPIw4NBp/1aEd2fXVbgYxxGJs5GJMak1J0vl3qxb7CURJ2y5OT2s23iw
	kOLT+qgEOv+pyNlU9pxApU7WAknBDv6PgnkBU=
MIME-Version: 1.0
Received: by 10.236.183.194 with SMTP id q42mr6062802yhm.43.1304079024474;
	Fri, 29 Apr 2011 05:10:24 -0700 (PDT)
Received: by 10.236.95.3 with HTTP; Fri, 29 Apr 2011 05:10:24 -0700 (PDT)
Received: by 10.236.95.3 with HTTP; Fri, 29 Apr 2011 05:10:24 -0700 (PDT)
In-Reply-To: <alpine.DEB.2.00.1104290845100.20576@tvnag.unkk.fr>
References: <BANLkTim=oAKBs-fAk-TpkWLv2Y90fMOHnw@mail.gmail.com>
	<alpine.DEB.2.00.1104290845100.20576@tvnag.unkk.fr>
Date: Fri, 29 Apr 2011 17:40:24 +0530
Message-ID: <BANLkTikPkEw1SJ6xz_9BePM+aNx0HNXpzQ@mail.gmail.com>
Subject: Re: Building libssh2 for iPhone (almost works)
From: Sachin Garg <schngrg@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 29 Apr 2011 14:10:49 +0200 (CEST)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 29 Apr 2011 14:10:27 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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="===============0974875468=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============0974875468==
Content-Type: multipart/alternative; boundary=20cf305b1234035ef104a20d8fc2

--20cf305b1234035ef104a20d8fc2
Content-Type: text/plain; charset=ISO-8859-1

On 29-Apr-2011 12:23 PM, "Daniel Stenberg" <daniel@haxx.se> wrote:
>
> On Fri, 29 Apr 2011, Sachin Garg wrote:
>
>> *Output at end is (it says libgcrypt:no, which seems wrong as libgcrypt
is at the path specified, built using instructions in link above):*
>
>
> No it isn't. That's libcrypt which is part of OpenSSL. That's why the
output says you have openssl but not libgcrypt. libssh2 requires one of
those two.
>
>
>> ../libtool: eval: line 947: syntax error near unexpected token `|'
>
>
> As said before: this clearly looks like a libtool problem.

Any tips on how it can be fixed?

--20cf305b1234035ef104a20d8fc2
Content-Type: text/html; charset=ISO-8859-1

<p><br>
On 29-Apr-2011 12:23 PM, &quot;Daniel Stenberg&quot; &lt;<a href="mailto:daniel@haxx.se">daniel@haxx.se</a>&gt; wrote:<br>
&gt;<br>
&gt; On Fri, 29 Apr 2011, Sachin Garg wrote:<br>
&gt;<br>
&gt;&gt; *Output at end is (it says libgcrypt:no, which seems wrong as libgcrypt is at the path specified, built using instructions in link above):*<br>
&gt;<br>
&gt;<br>
&gt; No it isn&#39;t. That&#39;s libcrypt which is part of OpenSSL. That&#39;s why the output says you have openssl but not libgcrypt. libssh2 requires one of those two.<br>
&gt;<br>
&gt;<br>
&gt;&gt; ../libtool: eval: line 947: syntax error near unexpected token `|&#39;<br>
&gt;<br>
&gt;<br>
&gt; As said before: this clearly looks like a libtool problem.</p>
<p>Any tips on how it can be fixed? </p>

--20cf305b1234035ef104a20d8fc2--

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

--===============0974875468==--

From libssh2-devel-bounces@cool.haxx.se  Fri Apr 29 14:16:41 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3TCGbVc031996;
	Fri, 29 Apr 2011 14:16:40 +0200
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3TCGZmK031974
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Apr 2011 14:16:36 +0200
Date: Fri, 29 Apr 2011 14:16:35 +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: Building libssh2 for iPhone (almost works)
In-Reply-To: <BANLkTikPkEw1SJ6xz_9BePM+aNx0HNXpzQ@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1104291414260.20576@tvnag.unkk.fr>
References: <BANLkTim=oAKBs-fAk-TpkWLv2Y90fMOHnw@mail.gmail.com>
	<alpine.DEB.2.00.1104290845100.20576@tvnag.unkk.fr>
	<BANLkTikPkEw1SJ6xz_9BePM+aNx0HNXpzQ@mail.gmail.com>
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.8 (giant.haxx.se [127.0.0.1]); Fri, 29 Apr 2011 14:16:41 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 29 Apr 2011 14:16:36 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

On Fri, 29 Apr 2011, Sachin Garg wrote:

>> As said before: this clearly looks like a libtool problem.
>
> Any tips on how it can be fixed?

Get the latest libtool, build it and try libssh2 with it. Doesn't work? Debug 
it and poke on it until it behaves, then clean up the code, make a patch and 
send the libtool team together with a nice description of what it is and why 
it is needed.

If it works, things are all dandy.

If you can't pull off the fix-libtool step, I suggest you link libssh2 
manually after all C sources are compiled and just ignore libtool since you 
only have one target right now anyway.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sat Apr 30 00:32:05 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3TMUcXw009329;
	Sat, 30 Apr 2011 00:32:01 +0200
Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com
	[74.125.82.182])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3TMUa3Y009320
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Sat, 30 Apr 2011 00:30:37 +0200
Received: by wyf23 with SMTP id 23so4321239wyf.41
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Apr 2011 15:30:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:date:message-id:subject:from:to
	:content-type; bh=gdvmyClp20Rmdx2vDEzen4Mizd70ryvqBwx4js/+0pg=;
	b=bSlLGluaqF3CC1aUUJuhKE05HnGQfJQLDhiw2vJWWiWjGLKDEnCIhVpPzpkHE/xnke
	6SSlkHB2G9OhM1TtqoZBUEd86kr6HjMDnVAfL8sBS2YDsr6UVTN1vhH4lvF26VWiNr+e
	W8nMZb/j1rEM3FnIlNjRWgi45PFGxymlL2oMk=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	b=lhPper4lac7CaB7Jyq+7CvwTIrDoDVO+oopFgZJgk1qzT/HitrVt9d/SzlReRYu4eR
	amz49HNLPopvBVFDLV4i6ahhhM6ZzPbFIAYCPKusiT5x4kS6A0NKv+OqHskjkahlguUE
	RDB2WP+JGpssO0HrDmLVbHA5tO/H2TCFODxNY=
MIME-Version: 1.0
Received: by 10.216.237.131 with SMTP id y3mr1194294weq.87.1304116238150; Fri,
	29 Apr 2011 15:30:38 -0700 (PDT)
Received: by 10.216.28.80 with HTTP; Fri, 29 Apr 2011 15:30:38 -0700 (PDT)
Date: Sat, 30 Apr 2011 00:30:38 +0200
Message-ID: <BANLkTimdq=GrRpC+HRxvzTqv+awiNn+ywQ@mail.gmail.com>
Subject: libssh2_channel_exec, LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED error
	after second call
From: "S. Gurbel" <slvgrbl@gmail.com>
To: libssh2-devel@cool.haxx.se
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Sat, 30 Apr 2011 00:32:05 +0200 (CEST)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Sat, 30 Apr 2011 00:30:37 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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="===============0838974479=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============0838974479==
Content-Type: multipart/alternative; boundary=0015175cfc461eeb2004a216390d

--0015175cfc461eeb2004a216390d
Content-Type: text/plain; charset=ISO-8859-1

Hello!

In my program, I need to execute more commands in one channel. So I used the
example ssh2_exec and added second command execution.
Like this:
...
    libssh2_session_set_blocking(session, 1);

    channel = libssh2_channel_open_session(session);
    if( channel == NULL )
        exit(1);

    // first command executing -- changing a directory
    if(rc = libssh2_channel_exec(channel, "cd Projects")) {
        exit(1);
    }

    do {
    char buffer[0x4000];
        rc = libssh2_channel_read( channel, buffer, sizeof(buffer) );

        if( rc > 0 ) {

            int i;
            bytecount += rc;
            fprintf(stdout, "We read:\n");
            for( i=0; i < rc; ++i )
                fputc( buffer[i], stdout);

            fprintf(stdout, "\n");
        }
    } while( rc > 0 );

    // second command executing
    if( rc = libssh2_channel_exec(channel, "ls -l")) {
        exit(1);
    }

and here I get error LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED.
I'm using libssh2-1.2.7 version on Ubuntu 10.04.

Thank you!

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

<div class=3D"gmail_quote">Hello!<br><br>In my program, I need to execute m=
ore commands in one channel. So I used the example ssh2_exec and added seco=
nd command execution.<br>Like this:<br>...<br>=A0=A0=A0 libssh2_session_set=
_blocking(session, 1);<br>
<br>

=A0=A0=A0 channel =3D libssh2_channel_open_session(session);<br>=A0=A0=A0 i=
f( channel =3D=3D NULL )<br>=A0=A0=A0=A0=A0=A0=A0 exit(1);<br>=A0=A0=A0 <br=
>=A0=A0=A0 // first command executing -- changing a directory<br>=A0=A0=A0 =
if(rc =3D libssh2_channel_exec(channel, &quot;cd Projects&quot;)) {<br>

=A0=A0=A0=A0=A0=A0=A0 exit(1);<br>
=A0=A0=A0 }<br>=A0=A0=A0 <br>=A0=A0=A0 do {<br>=A0=A0=A0 char buffer[0x4000=
];<br>=A0=A0=A0=A0=A0=A0=A0 rc =3D libssh2_channel_read( channel, buffer, s=
izeof(buffer) );<br><br>=A0=A0=A0=A0=A0=A0=A0 if( rc &gt; 0 ) {<br>=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <br>=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=
 int i;<br>=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 bytecount +=3D rc;<br>


=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 fprintf(stdout, &quot;We read:\n&quot;);<=
br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 for( i=3D0; i &lt; rc; ++i )<br>=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 fputc( buffer[i], stdout);<br>=A0=
=A0=A0 =A0=A0=A0 <br>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 fprintf(stdout, &quo=
t;\n&quot;);<br>=A0=A0=A0=A0=A0=A0=A0 }<br>=A0=A0=A0 } while( rc &gt; 0 );<=
br>


<br>=A0=A0=A0 // second command executing<br>=A0=A0=A0 if( rc =3D libssh2_c=
hannel_exec(channel, &quot;ls -l&quot;)) {<br>=A0=A0=A0=A0=A0=A0=A0 exit(1)=
;<br>=A0=A0=A0 }<br><br>and here I get error LIBSSH2_ERROR_CHANNEL_REQUEST_=
DENIED.<br>I&#39;m using libssh2-1.2.7 version on Ubuntu 10.04.<br>


<br>Thank you!</div><br>

--0015175cfc461eeb2004a216390d--

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

--===============0838974479==--

From libssh2-devel-bounces@cool.haxx.se  Sat Apr 30 01:51:17 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p3TNnb0L017688;
	Sat, 30 Apr 2011 01:51:15 +0200
Received: from foo.stuge.se (qmailr@foo.stuge.se [212.181.44.140])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id p3TNnaNG017684
	for <libssh2-devel@cool.haxx.se>; Sat, 30 Apr 2011 01:49:36 +0200
Received: (qmail 23730 invoked by uid 501); 29 Apr 2011 23:49:44 -0000
Message-ID: <20110429234944.23729.qmail@stuge.se>
Date: Sat, 30 Apr 2011 01:49:43 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2_channel_exec, LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED
	error after second call
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <BANLkTimdq=GrRpC+HRxvzTqv+awiNn+ywQ@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <BANLkTimdq=GrRpC+HRxvzTqv+awiNn+ywQ@mail.gmail.com>
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Sat, 30 Apr 2011 01:51:17 +0200 (CEST)
X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Sat, 30 Apr 2011 01:49:36 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
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
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

Hi.

S. Gurbel wrote:
> In my program, I need to execute more commands in one channel.

You do not know enough detail about the SSH protocol to accomplish
what you want. Please read up. Specifically only one command is
executed in a channel.


> I get error LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED.
> I'm using libssh2-1.2.7 version on Ubuntu 10.04.
> 
> Thank you!

You are not even asking a question. Come on. Anyway. Please check the
protocol specs to learn how the different features of the protocol
(and thus API of libssh2) can be used, and try again, you'll have to
solve your problem in a different way than you thought.


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

