From libssh2-devel-bounces@cool.haxx.se  Sat Jun  2 17:48:05 2012
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 q52FlN8E015005;
	Sat, 2 Jun 2012 17:47:55 +0200
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 q52FlLVP014985
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Sat, 2 Jun 2012 17:47:21 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q52FlLDI014975
 for <libssh2-devel@cool.haxx.se>; Sat, 2 Jun 2012 17:47:21 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Sat, 2 Jun 2012 17:47:21 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Error Receiving a File  SCP
In-Reply-To: <4FC755F0.7090703@ttienterprises.org>
Message-ID: <alpine.DEB.2.00.1206021745150.4319@tvnag.unkk.fr>
References: <954BA317-DCA4-428B-8B21-4C19FD672037@ttienterprises.org>
 <8C8C9F48-E4AC-4A8B-B1EC-0F425B10CACB@ttienterprises.org>
 <alpine.DEB.2.00.1205271915570.9208@tvnag.unkk.fr>
 <2FEAD7AB-BD00-4976-A014-286C74769220@ttienterprises.org>
 <20120527173758.23383.qmail@stuge.se>
 <75AB38F1-6F9E-4778-BCBA-36590F855027@ttienterprises.org>
 <A2A63654-3516-4907-B6CB-219F6EBC787B@ttienterprises.org>
 <alpine.DEB.2.00.1205310756220.11469@tvnag.unkk.fr>
 <4FC755F0.7090703@ttienterprises.org>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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, 31 May 2012, Barry Fawthrop wrote:

> I have but it's beyond my limited understanding of ssh2  to know what the 
> recv   function is hanging

recv() should only ever be able to hang in blocking mode, so if you really 
want it to really never hang then use non-blocking.

To figure out why it hangs, you need to understand in which situation recv() 
is called and the state of the TCP connection at that point. I don't think 
that is much related to the SSH2 protocol.

Since you can't tell us how to repeat this problem, it isn't a lot more that 
_we_ can do about this as I can think of.

> Or what can I do to "force" it to loop the same way it does from the scp.c 
> code with the -37

Then you make sure it never hangs, which it should never do in non-blocking 
mode (at least).

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Mon Jun  4 20:34:48 2012
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 q54IYHsK027267;
	Mon, 4 Jun 2012 20:34:40 +0200
Received: from dns-factory.at (mx03.dns-factory.at [194.242.35.75])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q54IYFwT027248
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 4 Jun 2012 20:34:15 +0200
Received: from [172.17.100.7] lists@gknw.net [88.152.169.207]
 by dns-factory.at with NetMail SMTP Agent $Revision: 8582 $ on Novell NetWare
 via secured & encrypted transport (TLS);
 Mon, 04 Jun 2012 20:34:05 +0200
Message-ID: <4FCCFF99.8060800@gknw.net>
Date: Mon, 04 Jun 2012 20:34:01 +0200
From: Guenter <lists@gknw.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de;
 rv:1.9.2.28) Gecko/20120306 Lightning/1.0b2 Thunderbird/3.1.20
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: ANNOUNCE: libssh2 version 1.4.1
References: <alpine.DEB.2.00.1204042251540.18281@tvnag.unkk.fr>
 <4F8D91A0.8030005@gknw.net>
 <alpine.DEB.2.00.1204172302090.8032@tvnag.unkk.fr>
 <4FBEF0E8.5080304@gknw.net> <alpine.DEB.2.00.1205250833480.561@tvnag.unkk.fr>
 <CAMq1adrxavMTtBT_wTowk08Zm3qF-G8Z5txBSwhZ+VVV-CwY+g@mail.gmail.com>
 <alpine.DEB.2.00.1205250842400.561@tvnag.unkk.fr>
 <CAMq1adqHXkie1TgRvU2fq1Yt1VR0FQxM0nP4frVZYL_7zguC3Q@mail.gmail.com>
 <alpine.DEB.2.00.1205250904000.561@tvnag.unkk.fr>
In-Reply-To: <alpine.DEB.2.00.1205250904000.561@tvnag.unkk.fr>
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q54IYFwT027248
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"; Format="flowed"
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 q54IYHsK027267

Hi Daniel,
Am 25.05.2012 09:05, schrieb Daniel Stenberg:
> On Fri, 25 May 2012, Vincent Torri wrote:
>> Btw, i'm not sure at all that you should keep config.rpath in the git
>> repo. Normally, it's one of the installed files
>
> I'm sure that's just a mistake that it slipped in...
well, now after removal I get from buildconf:
configure.ac:27: installing `./config.guess'
configure.ac:98: required file `./config.rpath' not found
configure.ac:27: installing `./config.sub'
configure.ac:19: installing `./install-sh'
configure.ac:19: installing `./missing'
example/Makefile.am: installing `./depcomp'

some googling suggests that config.rpath is part of gettext, and since 
we otherwise dont rely on gettext its a bit strange now to add the 
gettext devel package only for getting config.rconf; though I also dont 
see from where this requirement comes at all - at least it seems not to 
originate from configure.ac as the message suggests ...

Gün.



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

From libssh2-devel-bounces@cool.haxx.se  Mon Jun  4 20:51:35 2012
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 q54IpTGJ008331;
	Mon, 4 Jun 2012 20:51:34 +0200
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 q54IpSgP008305
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 4 Jun 2012 20:51:28 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q54IpSW8008300
 for <libssh2-devel@cool.haxx.se>; Mon, 4 Jun 2012 20:51:28 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Mon, 4 Jun 2012 20:51:28 +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: ANNOUNCE: libssh2 version 1.4.1
In-Reply-To: <4FCCFF99.8060800@gknw.net>
Message-ID: <alpine.DEB.2.00.1206042049560.4449@tvnag.unkk.fr>
References: <alpine.DEB.2.00.1204042251540.18281@tvnag.unkk.fr>
 <4F8D91A0.8030005@gknw.net>
 <alpine.DEB.2.00.1204172302090.8032@tvnag.unkk.fr>
 <4FBEF0E8.5080304@gknw.net> <alpine.DEB.2.00.1205250833480.561@tvnag.unkk.fr>
 <CAMq1adrxavMTtBT_wTowk08Zm3qF-G8Z5txBSwhZ+VVV-CwY+g@mail.gmail.com>
 <alpine.DEB.2.00.1205250842400.561@tvnag.unkk.fr>
 <CAMq1adqHXkie1TgRvU2fq1Yt1VR0FQxM0nP4frVZYL_7zguC3Q@mail.gmail.com>
 <alpine.DEB.2.00.1205250904000.561@tvnag.unkk.fr> <4FCCFF99.8060800@gknw.net>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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, 4 Jun 2012, Guenter wrote:

> well, now after removal I get from buildconf:
> configure.ac:98: required file `./config.rpath' not found

Annoying, but I don't get that on my Debian Linux box. Googling for this 
problem didn't really reveal the real reason for it to me. Clearly 'configure' 
refers config.rpath so something must assume it is there but I haven't yet 
figured out what and for what reason...

If you just touch that file to create it, does it work then?

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Mon Jun  4 22:04:10 2012
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 q54K3qxx002123;
	Mon, 4 Jun 2012 22:04:07 +0200
Received: from dns-factory.at (mail.dns-factory.at [194.242.35.75])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q54K3olm002103
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 4 Jun 2012 22:03:51 +0200
Received: from [172.17.100.7] lists@gknw.net [88.152.169.207]
 by dns-factory.at with NetMail SMTP Agent $Revision: 8582 $ on Novell NetWare
 via secured & encrypted transport (TLS);
 Mon, 04 Jun 2012 22:03:39 +0200
Message-ID: <4FCD1498.1070401@gknw.net>
Date: Mon, 04 Jun 2012 22:03:36 +0200
From: Guenter <lists@gknw.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de;
 rv:1.9.2.28) Gecko/20120306 Lightning/1.0b2 Thunderbird/3.1.20
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: ANNOUNCE: libssh2 version 1.4.1
References: <alpine.DEB.2.00.1204042251540.18281@tvnag.unkk.fr>
 <4F8D91A0.8030005@gknw.net>
 <alpine.DEB.2.00.1204172302090.8032@tvnag.unkk.fr>
 <4FBEF0E8.5080304@gknw.net> <alpine.DEB.2.00.1205250833480.561@tvnag.unkk.fr>
 <CAMq1adrxavMTtBT_wTowk08Zm3qF-G8Z5txBSwhZ+VVV-CwY+g@mail.gmail.com>
 <alpine.DEB.2.00.1205250842400.561@tvnag.unkk.fr>
 <CAMq1adqHXkie1TgRvU2fq1Yt1VR0FQxM0nP4frVZYL_7zguC3Q@mail.gmail.com>
 <alpine.DEB.2.00.1205250904000.561@tvnag.unkk.fr> <4FCCFF99.8060800@gknw.net>
 <alpine.DEB.2.00.1206042049560.4449@tvnag.unkk.fr>
In-Reply-To: <alpine.DEB.2.00.1206042049560.4449@tvnag.unkk.fr>
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q54K3olm002103
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"; Format="flowed"
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 q54K3qxx002123

Am 04.06.2012 20:51, schrieb Daniel Stenberg:
> On Mon, 4 Jun 2012, Guenter wrote:
>
>> well, now after removal I get from buildconf:
>> configure.ac:98: required file `./config.rpath' not found
>
> Annoying, but I don't get that on my Debian Linux box. Googling for this
> problem didn't really reveal the real reason for it to me. Clearly
> 'configure' refers config.rpath so something must assume it is there but
> I haven't yet figured out what and for what reason...
>
> If you just touch that file to create it, does it work then?
yes, and I thought already this might at least be a workaround ...

Gün.





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

From libssh2-devel-bounces@cool.haxx.se  Tue Jun  5 02:18:01 2012
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 q550Hbjn002838;
	Tue, 5 Jun 2012 02:17:56 +0200
Received: from foo.stuge.se (qmailr@foo.stuge.se [212.116.89.98])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id q550HYD4002802
 for <libssh2-devel@cool.haxx.se>; Tue, 5 Jun 2012 02:17:34 +0200
Received: (qmail 32653 invoked by uid 501); 5 Jun 2012 00:17:32 -0000
Message-ID: <20120605001732.32652.qmail@stuge.se>
Date: Tue, 5 Jun 2012 02:17:32 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: ANNOUNCE: libssh2 version 1.4.1
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <alpine.DEB.2.00.1204042251540.18281@tvnag.unkk.fr>
 <4F8D91A0.8030005@gknw.net>
 <alpine.DEB.2.00.1204172302090.8032@tvnag.unkk.fr>
 <4FBEF0E8.5080304@gknw.net> <alpine.DEB.2.00.1205250833480.561@tvnag.unkk.fr>
 <CAMq1adrxavMTtBT_wTowk08Zm3qF-G8Z5txBSwhZ+VVV-CwY+g@mail.gmail.com>
 <alpine.DEB.2.00.1205250842400.561@tvnag.unkk.fr>
 <CAMq1adqHXkie1TgRvU2fq1Yt1VR0FQxM0nP4frVZYL_7zguC3Q@mail.gmail.com>
 <alpine.DEB.2.00.1205250904000.561@tvnag.unkk.fr> <4FCCFF99.8060800@gknw.net>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <4FCCFF99.8060800@gknw.net>
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

Guenter wrote:
>>> Btw, i'm not sure at all that you should keep config.rpath in the git
>>> repo. Normally, it's one of the installed files
>>
>> I'm sure that's just a mistake that it slipped in...
> well, now after removal I get from buildconf:
> configure.ac:27: installing `./config.guess'
> configure.ac:98: required file `./config.rpath' not found
..
> I also dont see from where this requirement comes

What version autoconf do you have? Maybe try a few different ones.


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

From libssh2-devel-bounces@cool.haxx.se  Tue Jun  5 11:43:31 2012
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 q559h4ln020145;
	Tue, 5 Jun 2012 11:43:26 +0200
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 q559h3wA020134
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 5 Jun 2012 11:43:03 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q559h2Bc020130
 for <libssh2-devel@cool.haxx.se>; Tue, 5 Jun 2012 11:43:02 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Tue, 5 Jun 2012 11:43: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: bindings!
Message-ID: <alpine.DEB.2.00.1206051141450.11988@tvnag.unkk.fr>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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

I added a docs/BINDINGS file just now and I wanted to share this with you. If 
you know of more or better details on libssh2 bindings, please let us know!

----- snip -----

Creative people have written bindings or interfaces for various environments
and programming languages. Using one of these bindings allows you to take
advantage of libssh2 directly from within your favourite language.

The bindings listed below are not part of the libssh2 distribution archives,
but must be downloaded and installed separately.


Python
   pylibssh2 - http://www.wallix.org/pylibssh2-project/

PHP
   ssh2 - http://pecl.php.net/package/ssh2

Haskell
   FFI bindings - http://hackage.haskell.org/package/libssh2

Perl
   Net::SSH2 - http://search.cpan.org/~rkitover/Net-SSH2-0.45/lib/Net/SSH2.pm

Ruby
   libssh2-ruby - https://github.com/mitchellh/libssh2-ruby

----- snip -----

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Tue Jun  5 13:39:29 2012
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 q55BdDKl029603;
	Tue, 5 Jun 2012 13:39:26 +0200
Received: from secure.karelia.com (secure.karelia.com [173.45.238.25])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q55BdBrC029562
 for <libssh2-devel@cool.haxx.se>; Tue, 5 Jun 2012 13:39:11 +0200
Received: from mikes-mac-pro.home
 (host86-184-46-210.range86-184.btcentralplus.com [86.184.46.210])
 by secure.karelia.com (Postfix) with ESMTPSA id A32FC4AC1FE
 for <libssh2-devel@cool.haxx.se>; Tue,  5 Jun 2012 04:43:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=karelia.com;
 s=default; t=1338896583; bh=4kldWp+NDadPxN47V4BOSMf9n4ku040OE5YEK9i
 RdTM=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:
 Content-Transfer-Encoding:Message-Id:References:To; b=QMPPMLvWIeLs
 nusJJ4BXwX3lHOS6ZHP8wuHpqBaY/uYDE69kdUgZzipoWDWCwoveOkIZBsOgvq5NXIx
 FZRidqckac5Xi1BeTZC+sYq9JgTwRuKK2yQvJhoAm+aAvs5hVYjLhnfOYT8N8tFdeqC
 6Dxbl1QXW5schEYmDouOZkfvc=
Mime-Version: 1.0 (Apple Message framework v1278)
Subject: Re: bindings!
From: Mike Abdullah <mabdullah@karelia.com>
In-Reply-To: <alpine.DEB.2.00.1206051141450.11988@tvnag.unkk.fr>
Date: Tue, 5 Jun 2012 12:39:10 +0100
Message-Id: <765D4974-F6DA-489B-8432-8E12C882D15C@karelia.com>
References: <alpine.DEB.2.00.1206051141450.11988@tvnag.unkk.fr>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1278)
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q55BdBrC029562
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

Cocoa/Objective-C:
https://github.com/karelia/libssh2_sftp-Cocoa-wrapper

On 5 Jun 2012, at 10:43, Daniel Stenberg wrote:

> Hi
> 
> I added a docs/BINDINGS file just now and I wanted to share this with you. If you know of more or better details on libssh2 bindings, please let us know!
> 
> ----- snip -----
> 
> Creative people have written bindings or interfaces for various environments
> and programming languages. Using one of these bindings allows you to take
> advantage of libssh2 directly from within your favourite language.
> 
> The bindings listed below are not part of the libssh2 distribution archives,
> but must be downloaded and installed separately.
> 
> 
> Python
>  pylibssh2 - http://www.wallix.org/pylibssh2-project/
> 
> PHP
>  ssh2 - http://pecl.php.net/package/ssh2
> 
> Haskell
>  FFI bindings - http://hackage.haskell.org/package/libssh2
> 
> Perl
>  Net::SSH2 - http://search.cpan.org/~rkitover/Net-SSH2-0.45/lib/Net/SSH2.pm
> 
> Ruby
>  libssh2-ruby - https://github.com/mitchellh/libssh2-ruby
> 
> ----- snip -----
> 
> -- 
> 
> / daniel.haxx.se
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel


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

From libssh2-devel-bounces@cool.haxx.se  Tue Jun  5 13:52:14 2012
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 q55Bq9Iw007144;
	Tue, 5 Jun 2012 13:52:13 +0200
Received: from foo.stuge.se (qmailr@foo.stuge.se [212.116.89.98])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id q55Bq87N007130
 for <libssh2-devel@cool.haxx.se>; Tue, 5 Jun 2012 13:52:08 +0200
Received: (qmail 27825 invoked by uid 501); 5 Jun 2012 11:52:09 -0000
Message-ID: <20120605115209.27824.qmail@stuge.se>
Date: Tue, 5 Jun 2012 13:52:09 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: bindings!
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <alpine.DEB.2.00.1206051141450.11988@tvnag.unkk.fr>
 <765D4974-F6DA-489B-8432-8E12C882D15C@karelia.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <765D4974-F6DA-489B-8432-8E12C882D15C@karelia.com>
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

Mike Abdullah wrote:
> Cocoa/Objective-C:
> https://github.com/karelia/libssh2_sftp-Cocoa-wrapper

It would be helpful if you sent a git patch. (With perfect commit
message.) Thanks!


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

From libssh2-devel-bounces@cool.haxx.se  Tue Jun  5 15:45:41 2012
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 q55Dj0Cd013084;
	Tue, 5 Jun 2012 15:45:35 +0200
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 q55Diwms013066
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 5 Jun 2012 15:44:58 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q55Diw1J013062
 for <libssh2-devel@cool.haxx.se>; Tue, 5 Jun 2012 15:44:58 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Tue, 5 Jun 2012 15:44:58 +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: bindings!
In-Reply-To: <765D4974-F6DA-489B-8432-8E12C882D15C@karelia.com>
Message-ID: <alpine.DEB.2.00.1206051544470.9550@tvnag.unkk.fr>
References: <alpine.DEB.2.00.1206051141450.11988@tvnag.unkk.fr>
 <765D4974-F6DA-489B-8432-8E12C882D15C@karelia.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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 Tue, 5 Jun 2012, Mike Abdullah wrote:

> Cocoa/Objective-C:
> https://github.com/karelia/libssh2_sftp-Cocoa-wrapper

Thanks, added now!

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Tue Jun  5 20:19:09 2012
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 q55IIovI029387;
	Tue, 5 Jun 2012 20:19:05 +0200
Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com
 [209.85.210.54])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q55IIm5Z029360
 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 5 Jun 2012 20:18:49 +0200
Received: by dadv36 with SMTP id v36so7467293dad.41
 for <libssh2-devel@cool.haxx.se>; Tue, 05 Jun 2012 11:18:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :content-type; bh=xOVVAWslnWvS4606gMPR+6y0HySOfAdjRM/7Ntnppi4=;
 b=Ne0U7SQmuuyYSzOR7etG6Cp92E6l7UK3wCur5dj3A3noahyu14DLJ5ZQDRdc3N/Efb
 z3lctPPyh/JDWaSfiH0coKCPcZB4PH2bwtsKhOtYco+LEmBSSZcgthLEznhNMgMgBlB4
 cJhXLe7KjGfwWOi77nYglzuG03Xy4S+XfE8BnNdZr482YUf1aXpvdnMSzZrF1QOJ8+en
 YMR3eBUgyis5E67AOxD1UDkQmDjZKKmkQUKGNnqeg6cxfRbaeMfgnoO3tJg/UjfmEbyz
 Row1V7z7yxf48tNcFTdI0M0W9OGP75yY4XNZxo8ZtbyhFUGOlnx4uMR92Wt/LyEqFZCz
 l/SQ==
MIME-Version: 1.0
Received: by 10.68.241.227 with SMTP id wl3mr1286811pbc.89.1338920324254; Tue,
 05 Jun 2012 11:18:44 -0700 (PDT)
Received: by 10.68.67.227 with HTTP; Tue, 5 Jun 2012 11:18:44 -0700 (PDT)
In-Reply-To: <CAJnbj7BvgnwhWVXYUe-C7Sn9Qpp+hJHf+GsJhtHzJaX8ZA7OPw@mail.gmail.com>
References: <CAJnbj7BKgtv60_C-wavE=78mOPR27-+dQ_ujQmOB9xJq4PrBYQ@mail.gmail.com>
 <20120529231006.7121.qmail@stuge.se>
 <CAJnbj7BvgnwhWVXYUe-C7Sn9Qpp+hJHf+GsJhtHzJaX8ZA7OPw@mail.gmail.com>
Date: Tue, 5 Jun 2012 12:18:44 -0600
Message-ID: <CAJnbj7BFwqu9ptEpBAW87TAAN+_JevuRwC_caHmVuumWVYnL6w@mail.gmail.com>
Subject: Re: Issue connecting to Netscreen/Juniper devices
From: Benjamin Krajmalnik <bkrajmalnik@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
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

Peter, did you need any more info from me concerning this issue?
As I mentioned previously both switches dealing with the
pseudoterminal worked fine from OpenSSH.
If you need access to a device, I will be more than happy to make one
available for you to access.
I was running the 1.27 version of LibSSH2 which is the latest I had found.
Still trying to get a hold of a 1.4.1 windows DLL set.


On Tue, May 29, 2012 at 7:13 PM, Benjamin Krajmalnik
<bkrajmalnik@gmail.com> wrote:
> Connected from a FreeBSD box using OpenSSH 4.5.
> Either option (-t and -T) worked fine.
> The one difference I can see is that the windows build which I am
> running is built with libcrypt (it is the latest windows binary which
> was available - 1.2.7) whereas the OpenSSH on FreeBSD is built with
> OpenSSL.
>
> Only difference between both methods was that -t gave me e "--- more
> ---" prompt between pages, whereas -T just displayed all rows from a
> command without stopping.
>
>
> On Tue, May 29, 2012 at 5:10 PM, Peter Stuge <peter@stuge.se> wrote:
>> Benjamin Krajmalnik wrote:
>>> I have written a wrapper for LibSSH2 for Clarion, and while I have
>>> been successful accessing Unix devices without any issue, I am having
>>> issues accessing Juniper/Netscreen devices.
>>
>> Can you log in to the device using OpenSSH? Both using -t and -T
>> (one at a time) options?
>>
>>
>> //Peter
>> _______________________________________________
>> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Tue Jun  5 22:38:30 2012
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 q55KbnL6009679;
	Tue, 5 Jun 2012 22:38:23 +0200
Received: from dns-factory.at (mx03.dns-factory.at [194.242.35.75])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q55KblL1009652
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 5 Jun 2012 22:37:47 +0200
Received: from [172.17.100.7] lists@gknw.net [88.152.169.207]
 by dns-factory.at with NetMail SMTP Agent $Revision: 8582 $ on Novell NetWare
 via secured & encrypted transport (TLS);
 Tue, 05 Jun 2012 20:56:40 +0200
Message-ID: <4FCE5666.3000609@gknw.net>
Date: Tue, 05 Jun 2012 20:56:38 +0200
From: Guenter <lists@gknw.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de;
 rv:1.9.2.28) Gecko/20120306 Lightning/1.0b2 Thunderbird/3.1.20
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Issue connecting to Netscreen/Juniper devices
References: <CAJnbj7BKgtv60_C-wavE=78mOPR27-+dQ_ujQmOB9xJq4PrBYQ@mail.gmail.com>
 <20120529231006.7121.qmail@stuge.se>
 <CAJnbj7BvgnwhWVXYUe-C7Sn9Qpp+hJHf+GsJhtHzJaX8ZA7OPw@mail.gmail.com>
 <CAJnbj7BFwqu9ptEpBAW87TAAN+_JevuRwC_caHmVuumWVYnL6w@mail.gmail.com>
In-Reply-To: <CAJnbj7BFwqu9ptEpBAW87TAAN+_JevuRwC_caHmVuumWVYnL6w@mail.gmail.com>
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q55KblL1009652
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"; Format="flowed"
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 q55KbnL6009679

Hi Benjamin,
Am 05.06.2012 20:18, schrieb Benjamin Krajmalnik:
> Still trying to get a hold of a 1.4.1 windows DLL set.
if MinGW DLLs are ok for you then try this archive:
http://curl.haxx.se/gknw.net/7.26.0/dist-w32/curl-7.26.0-devel-mingw32.zip
it contains libssh2 1.4.2 as well as openssl and zlib DLLs.

Gün.



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

From libssh2-devel-bounces@cool.haxx.se  Wed Jun  6 08:08:21 2012
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 q5667rf7015248;
	Wed, 6 Jun 2012 08:08:16 +0200
Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com
 [209.85.160.54])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5667psF015224
 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 6 Jun 2012 08:07:53 +0200
Received: by pbbro2 with SMTP id ro2so8580644pbb.41
 for <libssh2-devel@cool.haxx.se>; Tue, 05 Jun 2012 23:07:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :content-type; bh=UEdOGg9Ql9Ax+ojkHHBju4SWTEJJ6O8Xn/YHptnaDWk=;
 b=MvxfEhaaB9S+euTYoMCdSNBM+FMssYsTHbE2/0CWxfXLidrUzKT3uy6bUWKhDOokZt
 99iJRtUJf2piM4K1G4yWydYPUdW+I7jGJ41XGumw0j4xyLWFcvMGR1MDGBHMQycrEYnG
 nM0fNb5FU1qEiN4UNKUsV0vQZRG6TMofEUlSL/ZZDcr4ZJ2F33oVovMkLLw284QR0Nvt
 HLkCKcFlxQLxPByrxql110FbUb0a5nY+0uiyjCDm4abDK8uN9TP+zStf9/pNP4/z+/Qs
 jm0yYGxLA4RS+UgQ+6/2NH9uoLPgUFr5wfNte9XOpGfJmOqyoa+oA4nF93y59T3RMrJT
 WYTA==
MIME-Version: 1.0
Received: by 10.68.138.166 with SMTP id qr6mr55084116pbb.43.1338962866184;
 Tue, 05 Jun 2012 23:07:46 -0700 (PDT)
Received: by 10.68.67.227 with HTTP; Tue, 5 Jun 2012 23:07:46 -0700 (PDT)
In-Reply-To: <4FCE5666.3000609@gknw.net>
References: <CAJnbj7BKgtv60_C-wavE=78mOPR27-+dQ_ujQmOB9xJq4PrBYQ@mail.gmail.com>
 <20120529231006.7121.qmail@stuge.se>
 <CAJnbj7BvgnwhWVXYUe-C7Sn9Qpp+hJHf+GsJhtHzJaX8ZA7OPw@mail.gmail.com>
 <CAJnbj7BFwqu9ptEpBAW87TAAN+_JevuRwC_caHmVuumWVYnL6w@mail.gmail.com>
 <4FCE5666.3000609@gknw.net>
Date: Wed, 6 Jun 2012 00:07:46 -0600
Message-ID: <CAJnbj7Cyj-ysi-uJLY3HYALEq7S5b1kqG2hizsByMPGZXr_Mnw@mail.gmail.com>
Subject: Re: Issue connecting to Netscreen/Juniper devices
From: Benjamin Krajmalnik <bkrajmalnik@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
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 Guenther,

Thank you very much for the build.  Unfortunately, the way I have it
coded is still giving me an error "Unable to complete request for
channel request_pty(error code -22).
I wonder if anyone has been able to get it to connect, maybe using a
different set of API calls.

Peter, the build Guenther was so kind to point me to uses OpenSSL so
it now was an even comparison.  As mentioned, I am able to access the
firewall via SSH with OpenSSH, putty, SecureCRT - pretty much every
client I have tried so far.  libssh2 with the sequence of commands I
documented above is failing.
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Jun  6 09:24:27 2012
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 q567O7S8001830;
	Wed, 6 Jun 2012 09:24:23 +0200
Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com
 [209.85.210.54])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q567O59L001637
 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 6 Jun 2012 09:24:06 +0200
Received: by dadv36 with SMTP id v36so8518855dad.41
 for <libssh2-devel@cool.haxx.se>; Wed, 06 Jun 2012 00:23:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :content-type; bh=ULWxpaV6aLgd87PHqks6UMIVIy/xk/B4m+g0YTzOGx8=;
 b=vtf5xi3qRsvM0TZtIp4DhWOX40WkubtlHdnQhrXdkjQiVygC4KUFYENj4b0q54hXjY
 EtC7E9Qq0HzQuKWFePxy03K4stekJBmqkBgcHDMsbsYh12yrSEIpqbM/IcESFSqMLCIh
 DD2LEPxPY/+fbiFv0QP5dFGd8lc0MUdCU5WdmWRh7QkYKFjZ1GKB1T/rU47jgXarJhT3
 RIybG+55z1WF5fkcZ8wwor4I/eOVkMvc+amp0wFEtZTaRR2PXtr45P8N9oADmz6aOeyr
 FLHlnFhvfQFIxF20Nxd3FJ3MSfLK7bKJGFWJQCdfcnBNQ0PE98Ryt8coycXANS3knBzE
 +zIg==
MIME-Version: 1.0
Received: by 10.68.191.106 with SMTP id gx10mr54236150pbc.161.1338967439569;
 Wed, 06 Jun 2012 00:23:59 -0700 (PDT)
Received: by 10.68.67.227 with HTTP; Wed, 6 Jun 2012 00:23:59 -0700 (PDT)
In-Reply-To: <CAJnbj7Cyj-ysi-uJLY3HYALEq7S5b1kqG2hizsByMPGZXr_Mnw@mail.gmail.com>
References: <CAJnbj7BKgtv60_C-wavE=78mOPR27-+dQ_ujQmOB9xJq4PrBYQ@mail.gmail.com>
 <20120529231006.7121.qmail@stuge.se>
 <CAJnbj7BvgnwhWVXYUe-C7Sn9Qpp+hJHf+GsJhtHzJaX8ZA7OPw@mail.gmail.com>
 <CAJnbj7BFwqu9ptEpBAW87TAAN+_JevuRwC_caHmVuumWVYnL6w@mail.gmail.com>
 <4FCE5666.3000609@gknw.net>
 <CAJnbj7Cyj-ysi-uJLY3HYALEq7S5b1kqG2hizsByMPGZXr_Mnw@mail.gmail.com>
Date: Wed, 6 Jun 2012 01:23:59 -0600
Message-ID: <CAJnbj7AdYy3hmCza3s8Km1D7sA=ZtXk1UJBFOEy123aXqy4CQg@mail.gmail.com>
Subject: Re: Issue connecting to Netscreen/Juniper devices
From: Benjamin Krajmalnik <bkrajmalnik@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
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

Peter,
Have been playing a bit more, and have some new findings.
On the newer models (SSG series as opposed to the NS series), I was
able to make it work.  I am going to play some more with it tomorrow
on the older version and see if I can get it to work. I think it is
just a matter of the old version not being as forgiving as the new
one.  Will keep you posted.  Thanks to everyone for your help.
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Jun  7 03:08:44 2012
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 q5718BBZ025363;
	Thu, 7 Jun 2012 03:08:34 +0200
Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com
 [209.85.160.54])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q57188an025288
 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 7 Jun 2012 03:08:09 +0200
Received: by pbbro2 with SMTP id ro2so314607pbb.41
 for <libssh2-devel@cool.haxx.se>; Wed, 06 Jun 2012 18:08:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :content-type; bh=DObLyoID34zXEjcuxIU9pIZhAUxCqO1ef5lCmh2A4D0=;
 b=znaPjiWd+35KxLDjHceVK47su9qetyYohCMrWA+yfLGN0yNg9P+RHlE3k6ixWo+qa3
 bm9eYfIlE+ZbOM1Ormi/F3BfaYKhXd07YHx6TMgxl4e0S1qRM8nSIxRWEJrqe52nj0zi
 1u5FZUiIgKKVEgTMvF3M9KR9PFN9GqKTy8zpcrEM78n6bJgEVV4razF/kT49yqU+SS1I
 EgS8tKwRI5mJeyYZIGqGOKXNzFjhmX2yiQZyerVoKtTunBx8561NQMZVfIywxFY5ld+G
 zjKEYUDvI6eTa4UHu/QXQJZNcp1+nFjZOSFPQXaBshpVSUgE15nQsID05ZKd80TU1gU0
 laiQ==
MIME-Version: 1.0
Received: by 10.68.189.133 with SMTP id gi5mr2150829pbc.154.1339031284601;
 Wed, 06 Jun 2012 18:08:04 -0700 (PDT)
Received: by 10.68.67.227 with HTTP; Wed, 6 Jun 2012 18:08:04 -0700 (PDT)
In-Reply-To: <CAJnbj7AdYy3hmCza3s8Km1D7sA=ZtXk1UJBFOEy123aXqy4CQg@mail.gmail.com>
References: <CAJnbj7BKgtv60_C-wavE=78mOPR27-+dQ_ujQmOB9xJq4PrBYQ@mail.gmail.com>
 <20120529231006.7121.qmail@stuge.se>
 <CAJnbj7BvgnwhWVXYUe-C7Sn9Qpp+hJHf+GsJhtHzJaX8ZA7OPw@mail.gmail.com>
 <CAJnbj7BFwqu9ptEpBAW87TAAN+_JevuRwC_caHmVuumWVYnL6w@mail.gmail.com>
 <4FCE5666.3000609@gknw.net>
 <CAJnbj7Cyj-ysi-uJLY3HYALEq7S5b1kqG2hizsByMPGZXr_Mnw@mail.gmail.com>
 <CAJnbj7AdYy3hmCza3s8Km1D7sA=ZtXk1UJBFOEy123aXqy4CQg@mail.gmail.com>
Date: Wed, 6 Jun 2012 19:08:04 -0600
Message-ID: <CAJnbj7BTdSwDX0Ta7hGP863soyC1wvDzNknSQnA-ySZq4BJQCA@mail.gmail.com>
Subject: Re: Issue connecting to Netscreen/Juniper devices
From: Benjamin Krajmalnik <bkrajmalnik@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
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 made some changes to the code but still cannot get it to connect to
the older netscreens.
I went back to connect using OpenSSH, and it definitely behaves nicer
(as intended) using the -t option.
I added some debugging code into my interface to see what is going on
outside the library (in my code) and compared the behavior between
connecting to a Unix SSH server or a newer gen Netscreen.
From what I can see anytime we try to create a pseudoterminal we are
getting an error -22 (LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED).
Whatever is going on is happening within the process, so I have no way
of seeing what is going on.
I thought maybe it was an issue of the terminal type, so I changed the
code to send "vt100" instead of "vanilla", but to no avail.
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Jun  7 10:03:40 2012
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 q5783IOR021106;
	Thu, 7 Jun 2012 10:03:34 +0200
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 q5783HtG021094
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 7 Jun 2012 10:03:17 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q5783HbO021091
 for <libssh2-devel@cool.haxx.se>; Thu, 7 Jun 2012 10:03:17 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Thu, 7 Jun 2012 10:03:17 +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: Issue connecting to Netscreen/Juniper devices
In-Reply-To: <CAJnbj7BTdSwDX0Ta7hGP863soyC1wvDzNknSQnA-ySZq4BJQCA@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1206071002300.26189@tvnag.unkk.fr>
References: <CAJnbj7BKgtv60_C-wavE=78mOPR27-+dQ_ujQmOB9xJq4PrBYQ@mail.gmail.com>
 <20120529231006.7121.qmail@stuge.se>
 <CAJnbj7BvgnwhWVXYUe-C7Sn9Qpp+hJHf+GsJhtHzJaX8ZA7OPw@mail.gmail.com>
 <CAJnbj7BFwqu9ptEpBAW87TAAN+_JevuRwC_caHmVuumWVYnL6w@mail.gmail.com>
 <4FCE5666.3000609@gknw.net>
 <CAJnbj7Cyj-ysi-uJLY3HYALEq7S5b1kqG2hizsByMPGZXr_Mnw@mail.gmail.com>
 <CAJnbj7AdYy3hmCza3s8Km1D7sA=ZtXk1UJBFOEy123aXqy4CQg@mail.gmail.com>
 <CAJnbj7BTdSwDX0Ta7hGP863soyC1wvDzNknSQnA-ySZq4BJQCA@mail.gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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 Jun 2012, Benjamin Krajmalnik wrote:

> From what I can see anytime we try to create a pseudoterminal we are
> getting an error -22 (LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED).

That sounds serious enough. Do you have a trace log for that?

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jun  7 19:46:22 2012
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 q57Hk25o015735;
	Thu, 7 Jun 2012 19:46:18 +0200
Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com
 [209.85.210.54])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q57Hjxec015583
 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 7 Jun 2012 19:46:01 +0200
Received: by dadv36 with SMTP id v36so1139825dad.41
 for <libssh2-devel@cool.haxx.se>; Thu, 07 Jun 2012 10:45:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :content-type:content-transfer-encoding;
 bh=RCRDxvjvvdWpgcp/+G5ZbmXGzskOcaizuiLY3YQxtdE=;
 b=wsWGBTWWtnz6jI0rlxzKj3gAXnqMfzsMkz10Z75twSrF399e6hB9u9BVpTVZMnfu1d
 KXwv8lfBjMkHLrksstqy6NRGpPOasvOtEGvFcQ0wFOuhZUAkoL/o6FhtPUIvMF10FeDL
 clB0gq5H5qQnSqw3Hn/xHRsrHWRwYG6lL2/UEi9yFkXe2fQT+HS8nnt6270/ITkl8/AB
 lqWq1vJa6yPvVv9kbLyLNaD6u4OOu5kt8hN+ToqfsuzOhFrsaq1nzph1AcmMbYFIQ7RW
 shqbC53FthL1/c3rhEQmyB4LNn8aoQQTcNQyULmyRL5DN73NY3xC2O9AW4LDu/IVH1wY
 p9Mg==
MIME-Version: 1.0
Received: by 10.68.217.233 with SMTP id pb9mr10428934pbc.121.1339091155905;
 Thu, 07 Jun 2012 10:45:55 -0700 (PDT)
Received: by 10.68.67.227 with HTTP; Thu, 7 Jun 2012 10:45:55 -0700 (PDT)
In-Reply-To: <alpine.DEB.2.00.1206071002300.26189@tvnag.unkk.fr>
References: <CAJnbj7BKgtv60_C-wavE=78mOPR27-+dQ_ujQmOB9xJq4PrBYQ@mail.gmail.com>
 <20120529231006.7121.qmail@stuge.se>
 <CAJnbj7BvgnwhWVXYUe-C7Sn9Qpp+hJHf+GsJhtHzJaX8ZA7OPw@mail.gmail.com>
 <CAJnbj7BFwqu9ptEpBAW87TAAN+_JevuRwC_caHmVuumWVYnL6w@mail.gmail.com>
 <4FCE5666.3000609@gknw.net>
 <CAJnbj7Cyj-ysi-uJLY3HYALEq7S5b1kqG2hizsByMPGZXr_Mnw@mail.gmail.com>
 <CAJnbj7AdYy3hmCza3s8Km1D7sA=ZtXk1UJBFOEy123aXqy4CQg@mail.gmail.com>
 <CAJnbj7BTdSwDX0Ta7hGP863soyC1wvDzNknSQnA-ySZq4BJQCA@mail.gmail.com>
 <alpine.DEB.2.00.1206071002300.26189@tvnag.unkk.fr>
Date: Thu, 7 Jun 2012 11:45:55 -0600
Message-ID: <CAJnbj7C3G6BuG2r+E9Ct-qNbbFn8i3Qw6WFqodOg=GHXYnbi1g@mail.gmail.com>
Subject: Re: Issue connecting to Netscreen/Juniper devices
From: Benjamin Krajmalnik <bkrajmalnik@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q57Hjxec015583
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 q57Hk25o015735

Daniel, I do not.  I am running on a Windows environment from a DLL
created by Gunter, so I do not know if trace is enabled on it or not..
 If you would like, I can give you access to a device which is
exhibiting this problem so you can check first hand anything you need.


On Thu, Jun 7, 2012 at 2:03 AM, Daniel Stenberg <daniel@haxx.se> wrote:
> On Wed, 6 Jun 2012, Benjamin Krajmalnik wrote:
>
>> From what I can see anytime we try to create a pseudoterminal we are
>> getting an error -22 (LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED).
>
>
> That sounds serious enough. Do you have a trace log for that?
>
> --
>
>  / daniel.haxx.se
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jun  7 19:56:28 2012
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 q57HuO9P021817;
	Thu, 7 Jun 2012 19:56:27 +0200
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 q57HuM5X021800
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 7 Jun 2012 19:56:22 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q57HuMZh021797
 for <libssh2-devel@cool.haxx.se>; Thu, 7 Jun 2012 19:56:22 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Thu, 7 Jun 2012 19:56:22 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Issue connecting to Netscreen/Juniper devices
In-Reply-To: <CAJnbj7C3G6BuG2r+E9Ct-qNbbFn8i3Qw6WFqodOg=GHXYnbi1g@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1206071955130.26292@tvnag.unkk.fr>
References: <CAJnbj7BKgtv60_C-wavE=78mOPR27-+dQ_ujQmOB9xJq4PrBYQ@mail.gmail.com>
 <20120529231006.7121.qmail@stuge.se>
 <CAJnbj7BvgnwhWVXYUe-C7Sn9Qpp+hJHf+GsJhtHzJaX8ZA7OPw@mail.gmail.com>
 <CAJnbj7BFwqu9ptEpBAW87TAAN+_JevuRwC_caHmVuumWVYnL6w@mail.gmail.com>
 <4FCE5666.3000609@gknw.net>
 <CAJnbj7Cyj-ysi-uJLY3HYALEq7S5b1kqG2hizsByMPGZXr_Mnw@mail.gmail.com>
 <CAJnbj7AdYy3hmCza3s8Km1D7sA=ZtXk1UJBFOEy123aXqy4CQg@mail.gmail.com>
 <CAJnbj7BTdSwDX0Ta7hGP863soyC1wvDzNknSQnA-ySZq4BJQCA@mail.gmail.com>
 <alpine.DEB.2.00.1206071002300.26189@tvnag.unkk.fr>
 <CAJnbj7C3G6BuG2r+E9Ct-qNbbFn8i3Qw6WFqodOg=GHXYnbi1g@mail.gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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, 7 Jun 2012, Benjamin Krajmalnik wrote:

> Daniel, I do not.  I am running on a Windows environment from a DLL created 
> by Gunter, so I do not know if trace is enabled on it or not.. If you would 
> like, I can give you access to a device which is exhibiting this problem so 
> you can check first hand anything you need.

I can't guarantee anything but I could certainly try to give a shot! Feel free 
to contact me off-list if you'd prefer that for this sort of info.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jun  8 02:57:05 2012
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 q580ujtt028742;
	Fri, 8 Jun 2012 02:57:00 +0200
Received: from dns-factory.at (mail.dns-factory.at [194.242.35.75])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q580uhw8028736
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 8 Jun 2012 02:56:43 +0200
Received: from [172.17.100.7] lists@gknw.net [37.201.243.102]
 by dns-factory.at with NetMail SMTP Agent $Revision: 8582 $ on Novell NetWare
 via secured & encrypted transport (TLS);
 Fri, 08 Jun 2012 02:56:35 +0200
Message-ID: <4FD14DC1.5000800@gknw.net>
Date: Fri, 08 Jun 2012 02:56:33 +0200
From: Guenter <lists@gknw.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de;
 rv:1.9.2.28) Gecko/20120306 Lightning/1.0b2 Thunderbird/3.1.20
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Issue connecting to Netscreen/Juniper devices
References: <CAJnbj7BKgtv60_C-wavE=78mOPR27-+dQ_ujQmOB9xJq4PrBYQ@mail.gmail.com>
 <20120529231006.7121.qmail@stuge.se>
 <CAJnbj7BvgnwhWVXYUe-C7Sn9Qpp+hJHf+GsJhtHzJaX8ZA7OPw@mail.gmail.com>
 <CAJnbj7BFwqu9ptEpBAW87TAAN+_JevuRwC_caHmVuumWVYnL6w@mail.gmail.com>
 <4FCE5666.3000609@gknw.net>
 <CAJnbj7Cyj-ysi-uJLY3HYALEq7S5b1kqG2hizsByMPGZXr_Mnw@mail.gmail.com>
 <CAJnbj7AdYy3hmCza3s8Km1D7sA=ZtXk1UJBFOEy123aXqy4CQg@mail.gmail.com>
 <CAJnbj7BTdSwDX0Ta7hGP863soyC1wvDzNknSQnA-ySZq4BJQCA@mail.gmail.com>
 <alpine.DEB.2.00.1206071002300.26189@tvnag.unkk.fr>
 <CAJnbj7C3G6BuG2r+E9Ct-qNbbFn8i3Qw6WFqodOg=GHXYnbi1g@mail.gmail.com>
In-Reply-To: <CAJnbj7C3G6BuG2r+E9Ct-qNbbFn8i3Qw6WFqodOg=GHXYnbi1g@mail.gmail.com>
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q580uhw8028736
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"; Format="flowed"
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 q580ujtt028742

Hi,
Am 07.06.2012 19:45, schrieb Benjamin Krajmalnik:
> Daniel, I do not.  I am running on a Windows environment from a DLL
> created by Gunter, so I do not know if trace is enabled on it or not..
no, since its a release build ...

I can create a libssh2 statically linked library with debug trace 
enabled for ya if that helps;
but its really simple to build it self as others also already suggested; 
its nothing more than downloading one archive from me which contains 
everything of MinGW you need + the libssh2 sources (daily snapshot for a 
simple start, or git clone);
then one command to compile it, and done ...; oh, well almost: you also 
need the dependency openssl, but I can provide that to you too ...
I'm glad to help you setting up this stuff - feel free to contact me 
directly.
Also think of the benefits: you're always able to check latest stuff, 
and if we can nail a bug + fix it then this becomes important so that 
you can verify the fix .....

Gün.



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

From libssh2-devel-bounces@cool.haxx.se  Fri Jun  8 03:30:15 2012
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 q581U1qp019837;
	Fri, 8 Jun 2012 03:30:11 +0200
Received: from mx1.polytechnique.org (mx1.polytechnique.org [129.104.30.34])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q581TwWs019565
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 8 Jun 2012 03:29:59 +0200
Received: from mac-jwoillez.local (unknown [128.171.100.1])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by ssl.polytechnique.org (Postfix) with ESMTPSA id 02DC514078D13
 for <libssh2-devel@cool.haxx.se>; Fri,  8 Jun 2012 03:29:58 +0200 (CEST)
Message-ID: <4FD155A1.2070108@free.fr>
Date: Thu, 07 Jun 2012 15:30:09 -1000
From: Gellule Xg <gellule.xg@free.fr>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7;
 rv:12.0) Gecko/20120428 Thunderbird/12.0.1
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: Re: bindings!
References: <alpine.DEB.2.00.1206051141450.11988@tvnag.unkk.fr>
In-Reply-To: <alpine.DEB.2.00.1206051141450.11988@tvnag.unkk.fr>
X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Fri Jun 8
 03:29:59 2012 +0200 (CEST))
X-Spam-Flag: No, tests=bogofilter, spamicity=0.018489, queueID=8C33C14078D16
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

https://github.com/gellule/PySsh2

A ctypes-based binding for python. Not feature complete, and therefore 
ready to be forked.

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jun  8 04:44:36 2012
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 q582iI0Y011100;
	Fri, 8 Jun 2012 04:44:33 +0200
Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com
 [209.85.210.54])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q582iF9s008520
 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 8 Jun 2012 04:44:16 +0200
Received: by dadv36 with SMTP id v36so1649699dad.41
 for <libssh2-devel@cool.haxx.se>; Thu, 07 Jun 2012 19:44:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :content-type:content-transfer-encoding;
 bh=jf14DfPzUq1AK0MzroksnZVn2cQ72rhjBN9trxG4VGo=;
 b=IObRDDU4Rh/k0xDgmQHO5u7A2FEI6iAL/R8liHgSylZ6tunrQkrTpoLhtfTFVnn9pQ
 MDw/H8IHue4Lw7Rz890UIQ2y3THgZMAyiCMD13EKSJy0OvIpkRnUGXGfVaIWF+VtGruE
 Zwswq6M0KRRhWD3PKhhCFGL1qUk9EXI9j7ggcAVrVFjvPxwwH+DF7KM+uWFRxbd6bJLy
 aQ8zl7/tZRyTW+269/nerJeYUmkU3HZqcpnGeyTs8i/R2xStTn0cmfxUWtm74whbnLXS
 Xiv/Tgw9ZQKd6GTtzGNujWJHEwij3J6TEVpP8VLoU/+nwkQ6LXDLUbZIi/c/30w6SGE7
 zn7Q==
MIME-Version: 1.0
Received: by 10.68.138.166 with SMTP id qr6mr15831368pbb.43.1339123449937;
 Thu, 07 Jun 2012 19:44:09 -0700 (PDT)
Received: by 10.68.67.227 with HTTP; Thu, 7 Jun 2012 19:44:09 -0700 (PDT)
In-Reply-To: <alpine.DEB.2.00.1206071955130.26292@tvnag.unkk.fr>
References: <CAJnbj7BKgtv60_C-wavE=78mOPR27-+dQ_ujQmOB9xJq4PrBYQ@mail.gmail.com>
 <20120529231006.7121.qmail@stuge.se>
 <CAJnbj7BvgnwhWVXYUe-C7Sn9Qpp+hJHf+GsJhtHzJaX8ZA7OPw@mail.gmail.com>
 <CAJnbj7BFwqu9ptEpBAW87TAAN+_JevuRwC_caHmVuumWVYnL6w@mail.gmail.com>
 <4FCE5666.3000609@gknw.net>
 <CAJnbj7Cyj-ysi-uJLY3HYALEq7S5b1kqG2hizsByMPGZXr_Mnw@mail.gmail.com>
 <CAJnbj7AdYy3hmCza3s8Km1D7sA=ZtXk1UJBFOEy123aXqy4CQg@mail.gmail.com>
 <CAJnbj7BTdSwDX0Ta7hGP863soyC1wvDzNknSQnA-ySZq4BJQCA@mail.gmail.com>
 <alpine.DEB.2.00.1206071002300.26189@tvnag.unkk.fr>
 <CAJnbj7C3G6BuG2r+E9Ct-qNbbFn8i3Qw6WFqodOg=GHXYnbi1g@mail.gmail.com>
 <alpine.DEB.2.00.1206071955130.26292@tvnag.unkk.fr>
Date: Thu, 7 Jun 2012 20:44:09 -0600
Message-ID: <CAJnbj7C_px8EHQni9b4DehMnuqfAHoSOQWK-yXD-Kfw_RqDqtw@mail.gmail.com>
Subject: Re: Issue connecting to Netscreen/Juniper devices
From: Benjamin Krajmalnik <bkrajmalnik@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q582iF9s008520
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="windows-1252"
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 q582iI0Y011100

Daniel,

I may have found something which may point us in the right direction.
Per Juniper Release notes:

Addressed Issues in ScreeenOS 5.4.0r24 (highest version release for NS50):
677457 – Open SSH 5.8 client with pty-req greater than 256 bytes fails
with “PTY allocation request failed” error.

We were getting an access denied, but maybe it is the same.
I will try to have the firmware on one of the problematic devices
upgraded to this release to see if it fixes the problem, but if we can
see if the req > 256 bytes then we at least know what is causing the
problem.


>
> I can't guarantee anything but I could certainly try to give a shot! Feel
> free to contact me off-list if you'd prefer that for this sort of info.
>
>
> --
>
>  / daniel.haxx.se
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jun  8 15:28:38 2012
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 q58DS6Tg010422;
	Fri, 8 Jun 2012 15:28:32 +0200
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 q58DS4Ld010413
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 8 Jun 2012 15:28:04 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q58DS4w2010410
 for <libssh2-devel@cool.haxx.se>; Fri, 8 Jun 2012 15:28:04 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Fri, 8 Jun 2012 15:28:04 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Reg Core dump in libssh2 with SFTP in main_arena () from
 /lib64/libc.so.6 (fwd)
Message-ID: <alpine.DEB.2.00.1206081527210.6220@tvnag.unkk.fr>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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

FYI,

Forwarded with permission.

-- 

  / daniel.haxx.se

---------- Forwarded message ----------
Date: Wed, 6 Jun 2012 12:43:43
From: Ganga <gangabhavanip@...>
Subject: Reg Core dump in libssh2 with SFTP in main_arena () from
     /lib64/libc.so.6

Hi Daniel,

I am getting the following  Segmentation fault when using libssh2
functions in my code.

Currently we are using version libssh2.so.1.0.0


Below is the backtrace from my code

#0  0x00007f78d04195b8 in main_arena () from /lib64/libc.so.6
#1  0x00007f78d08ae910 in libssh2_packet_read () from /usr/lib64/libssh2.so.1
#2  0x00007f78d089f436 in libssh2_packet_require_ex ()
   from /usr/lib64/libssh2.so.1
#3  0x00007f78d089e2e1 in libssh2_kex_exchange () from /usr/lib64/libssh2.so.1
#4  0x00007f78d08a5e98 in libssh2_session_startup ()
   from /usr/lib64/libssh2.so.1
#5  0x00000000004dea3d in SftpAdapterClass::sftpInitiate(char const*,
int, char const*, char const*, bool) ()
#6  0x00000000004ded60 in SftpAdapterClass::sftpConnect(char const*,
int, char const*, char const*, bool) ()
#7  0x00000000004d4d13 in SSHFTPIV2::ftpConnect(std::string const&,
std::string const&, std::string const&, std::string const&, bool) ()
#8  0x000000000048e9a4 in FTPIV2::checkConnection() ()
#9  0x00000000004765a3 in TransDest::checkConnection() ()
#10 0x0000000000476ab8 in TransDest::handleMessage(TransDest::setEvMsg*) ()
#11 0x000000000047a5eb in TransDest::svc() ()
#12 0x00007f78d1b41d97 in ACE_Task_Base::svc_run(void*) ()
   from /usr/lib64/libACE.so.5
#13 0x00007f78d1b43435 in ACE_Thread_Adapter::invoke() ()
   from /usr/lib64/libACE.so.5
#14 0x00007f78d15ec696 in start_thread () from /lib64/libpthread.so.0
#15 0x00007f78d0193cbd in clone () from /lib64/libc.so.6
---Type <return> to continue, or q <return> to quit---
#16 0x0000000000000000 in ?? ()

Here we are trying to checkconnection which internally calls the stfp
protocol that internally uses libssh2.

The below is the flow of the calls we performed

  sock = socket(AF_INET, SOCK_STREAM, 0);
  if (sock == -1)
  {
}

     // Getting the socket properties before setting the socket non blocking
         int arg1 = fcntl( sock, F_GETFL, NULL );

         // Setting the socket non blocking
         result = fcntl( sock, F_SETFL, O_NONBLOCK);

         // Connecting to the remote ip address
         result = connect(sock, (struct
sockaddr*)(&server),sizeof(struct sockaddr_in));

         if (result != 0)
         {
                                        select( sock+1, 0, &writefdSet, 0, &tv )
         }

session = libssh2_session_init();
         if(!session)
         {
       }

   rc = libssh2_session_startup(session, sock);

         if(rc)
         {
                 libssh2_session_disconnect(session, "Normal Shutdown,
Thank you for playing");
                 libssh2_session_free(session);
                 close(sock);
                 sock = -1;
                 session=NULL;
         }
         libssh2_hostkey_hash(session, LIBSSH2_HOSTKEY_HASH_SHA1);


Please guide me in providing the solution for this.

Thanking you in Advance
Warm Regards
Ganga
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Sat Jun  9 00:14:45 2012
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 q58MEPgJ009588;
	Sat, 9 Jun 2012 00:14:39 +0200
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 q58MENIO009562
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Sat, 9 Jun 2012 00:14:23 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q58MEMvN009557
 for <libssh2-devel@cool.haxx.se>; Sat, 9 Jun 2012 00:14:22 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Sat, 9 Jun 2012 00:14:22 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: bindings!
In-Reply-To: <4FD155A1.2070108@free.fr>
Message-ID: <alpine.DEB.2.00.1206090013570.11462@tvnag.unkk.fr>
References: <alpine.DEB.2.00.1206051141450.11988@tvnag.unkk.fr>
 <4FD155A1.2070108@free.fr>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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, 7 Jun 2012, Gellule Xg wrote:

> https://github.com/gellule/PySsh2
>
> A ctypes-based binding for python. Not feature complete, and therefore ready 
> to be forked.

Thanks, added!

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sat Jun  9 00:58:08 2012
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 q58Mw1lr005271;
	Sat, 9 Jun 2012 00:58:06 +0200
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 q58MvxnM005210
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
 Sat, 9 Jun 2012 00:57:59 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q58MvxRY005206;
 Sat, 9 Jun 2012 00:57:59 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Sat, 9 Jun 2012 00:57:59 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>,
        Ganga <gangabhavanip@gmail.com>
Subject: Re: Reg Core dump in libssh2 with SFTP in main_arena () from
 /lib64/libc.so.6
In-Reply-To: <CALOt-kmn_t=zk2PcpO99UTj0O_iJKXi80ofzDCQ-b=68xj0fdA@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1206090055510.12364@tvnag.unkk.fr>
References: <CALOt-kmn_t=zk2PcpO99UTj0O_iJKXi80ofzDCQ-b=68xj0fdA@mail.gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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 Jun 2012, Ganga wrote:

> I am getting the following Segmentation fault when using libssh2 functions 
> in my code.
>
> Currently we are using version libssh2.so.1.0.0

Right, but which is the exact libssh2 version that built this? 
libssh2_version() would tell.

> Below is the backtrace from my code
>
> #0  0x00007f78d04195b8 in main_arena () from /lib64/libc.so.6
> #1  0x00007f78d08ae910 in libssh2_packet_read () from /usr/lib64/libssh2.so.1
> #2  0x00007f78d089f436 in libssh2_packet_require_ex ()
>  from /usr/lib64/libssh2.so.1

Can you help us with a recipe to repeat this problem?

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sun Jun 10 13:11:10 2012
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 q5ABAU1o030421;
	Sun, 10 Jun 2012 13:11:04 +0200
Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com
 [209.85.214.54])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5ABATbf030396
 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Sun, 10 Jun 2012 13:10:29 +0200
Received: by bkvi18 with SMTP id i18so2980513bkv.41
 for <libssh2-devel@cool.haxx.se>; Sun, 10 Jun 2012 04:10:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=message-id:date:from:reply-to:user-agent:mime-version:to:subject
 :references:in-reply-to:content-type;
 bh=2rueSjdWtywm3UUlRXXkTDVASJj/cgtbgxUnuO85o20=;
 b=ElgucK+AiO5xCusWeHXHCPtBHtLVMjV3AlTUYE4Edt2gRUp7A7m02SfFFL+cisATDV
 L/n9tInLBAa4Apch+V/PtIEE1MWeOu0mDZ3WtiGYE++FFM2XYc30vhKkBD1lgBnliu9M
 5L94ggqamnaN/d+rjq+LsTvAq4A5JJ70Rfes/46dKUBRy1cqRIpUhC3RlsMRuXMv6iGd
 SEwz9HcnWRnRRY24cviDTFRqujEB57V9QRjl6icp/uY109Tz4YAgb3J3sfXXA9HnAEr3
 JVdZKH7/IF6zrTLcw1OhZmqM8d2EShgs93jM758AGiwPjrqmT9DpQT5J7hIcwUqmtcRq
 SinA==
Received: by 10.205.134.1 with SMTP id ia1mr9090424bkc.77.1339326624605;
 Sun, 10 Jun 2012 04:10:24 -0700 (PDT)
Received: from [192.168.26.26] (e180183123.adsl.alicedsl.de. [85.180.183.123])
 by mx.google.com with ESMTPS id
 ie3sm12648206bkc.1.2012.06.10.04.10.22 (version=SSLv3 cipher=OTHER);
 Sun, 10 Jun 2012 04:10:23 -0700 (PDT)
Message-ID: <4FD4809D.6010801@gmail.com>
Date: Sun, 10 Jun 2012 13:10:21 +0200
From: Tito <f.disclosure@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux i686;
 rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: Re: ANNOUNCE: libssh2 version 1.4.1
References: <4FCD1498.1070401@gknw.net>
In-Reply-To: <4FCD1498.1070401@gknw.net>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: f.disclosure@gmail.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="===============0128027363=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

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

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

Hello Guenter, Daniel.

In your mail from:

From: Guenter <lists_at_gknw.net 
<mailto:lists_at_gknw.net?Subject=Re:%20ANNOUNCE:%20libssh2%20version%201.4.1>> 

Date: Mon, 04 Jun 2012 22:03:36 +0200

you have mentioned that by simply creating the file /`./config.rpath' 
you are able to compile the lib. Could you please indicate where have 
you created this file. //Thank you in advance!

"configure.ac:98: required file `./config.rpath' not found"


Regards,

Konstantin

/

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

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello <span id="from">Guenter, Daniel. </span><br>
    <br>
    In your mail from:<br>
    <br>
    <span id="from">
      <dfn>From</dfn>: Guenter &lt;<a
href="mailto:lists_at_gknw.net?Subject=Re:%20ANNOUNCE:%20libssh2%20version%201.4.1">lists_at_gknw.net</a>&gt;
    </span><br>
    <span id="date"><dfn>Date</dfn>: Mon, 04 Jun 2012 22:03:36 +0200</span><br>
    <br>
    you have mentioned that by simply creating the file <em
      class="quotelev2">`./config.rpath' you are able to compile the
      lib. Could you please indicate where have you created this file.&nbsp;
    </em><em class="quotelev2">Thank you in advance!<br>
      <br>
      "configure.ac:98: required file `./config.rpath' not found"<br>
      <br>
      <br>
      Regards, <br>
      <br>
      Konstantin <br>
      <br>
    </em>
  </body>
</html>

--------------090406010109070008060008--

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

--===============0128027363==--

From libssh2-devel-bounces@cool.haxx.se  Sun Jun 10 14:21:46 2012
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 q5ACLZN4007170;
	Sun, 10 Jun 2012 14:21:44 +0200
Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com
 [209.85.214.54])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5ACLXNO006991
 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Sun, 10 Jun 2012 14:21:33 +0200
Received: by bkvi18 with SMTP id i18so3002996bkv.41
 for <libssh2-devel@cool.haxx.se>; Sun, 10 Jun 2012 05:21:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=message-id:date:from:reply-to:user-agent:mime-version:to:subject
 :references:in-reply-to:content-type;
 bh=Yf3prZ6vd576CjijwB4Jc48RpJjvyLQDSm/dM8XnW+0=;
 b=GmXW7xc3qPU/ugHxKuwrBQTQ1FujCr2a0jmR1gSwmIT/ARx6w0SjgKMwunIY7oMPGc
 oL4g1kvHIj2uh7BAFa2p42dZagZ1IDUp4tQ3dyrYQ4oOPrLj6pvq0wxR4sGOPNw7Pyu8
 EcSurklDohyW8SSIadyWLDYBjz926ryRIjU79+fWnap198cIGIr5hvr2fP5w6W70HhqN
 l4flftyLHfaypZxcF1XyNa5tEo0NKTxQUVJ7ehVnFw6wx2xVOa7VuyWsIABY55UFqw/4
 7pKh6opIC6qb064kv1P0uEMyPztQ4HpjUE/C4QZvFbTTPJgcJYtinDQLfCM9E0bXnyGY
 hvfw==
Received: by 10.204.151.199 with SMTP id d7mr8730567bkw.73.1339330888641;
 Sun, 10 Jun 2012 05:21:28 -0700 (PDT)
Received: from [192.168.26.27] (e180183123.adsl.alicedsl.de. [85.180.183.123])
 by mx.google.com with ESMTPS id
 fu14sm12754836bkc.13.2012.06.10.05.21.26
 (version=SSLv3 cipher=OTHER); Sun, 10 Jun 2012 05:21:27 -0700 (PDT)
Message-ID: <4FD49145.5060403@gmail.com>
Date: Sun, 10 Jun 2012 14:21:25 +0200
From: Tito <f.disclosure@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux i686;
 rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: Re: ANNOUNCE: libssh2 version 1.4.1
References: <4FCD1498.1070401@gknw.net>
In-Reply-To: <4FCD1498.1070401@gknw.net>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: f.disclosure@gmail.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="===============1323162974=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

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

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

/Answering to my own question here

Adding the file ./config.rpath to the  top source level directory is the 
workaround.

//
Konstantin

/

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

<html>
  <head>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <em>Answering to my own question here <br>
      <br>
      Adding the file ./config.rpath to the&nbsp; top source level directory
      is the workaround.<br>
      <br>
    </em><em class="quotelev2"><br>
      Konstantin <br>
      <br>
    </em>
  </body>
</html>

--------------080505080609050905010209--

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

--===============1323162974==--

From libssh2-devel-bounces@cool.haxx.se  Sun Jun 10 22:07:58 2012
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 q5AK7Xqq009538;
	Sun, 10 Jun 2012 22:07:52 +0200
Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com
 [209.85.214.182])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5AK7Ttn009475
 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Sun, 10 Jun 2012 22:07:30 +0200
Received: by obcni5 with SMTP id ni5so6114032obc.41
 for <libssh2-devel@cool.haxx.se>; Sun, 10 Jun 2012 13:07:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:date:message-id:subject:from:to:content-type;
 bh=29mqVr2dBJQBuagCHXymz7WAhU1qVxvzx1JdcP/InXs=;
 b=SUl1PXAbqbbYud5KgCYT6mhz3UPjDdSO2xKVE+KgjCqQUsFQIEb3GQBgoq79DsU/ZI
 y3GTvezGN5clyEDIqsRFt+SiSe68gecccBWIdblrwRmYNLvxG/MZa3J3d1pnqoSyS+E2
 Oef4DdabdMf0DremWOBKJpHNvWjRSreRTmt0OwxlBxbydSmdsVjkXR7CymoXqfDZqBq0
 jITg1irZQq6JjQSuYTRUJ5jG0yMVS0STnMTTg5pLh9lkzp9Y69Gf15J2NfCzNPEuAkgJ
 NgMDyP+WrbEAuSAWJeKtCJkLOZn+0uaoRX6ed2c+8P2DoYGovNzAyGgixfg7LZi9xTK7
 dTzw==
MIME-Version: 1.0
Received: by 10.50.208.105 with SMTP id md9mr5361082igc.12.1339358844004; Sun,
 10 Jun 2012 13:07:24 -0700 (PDT)
Received: by 10.231.103.73 with HTTP; Sun, 10 Jun 2012 13:07:23 -0700 (PDT)
Date: Sun, 10 Jun 2012 22:07:23 +0200
Message-ID: <CACDfgoaejbDxaP1NP_ESmvyfAoyDwq7kanQq8mORZpQt_G4SOg@mail.gmail.com>
Subject: INSTALL
From: full disclosure <f.disclosure@gmail.com>
To: libssh2-devel@cool.haxx.se
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="===============1778109632=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============1778109632==
Content-Type: multipart/alternative; boundary=14dae93406091fa88204c223c8c3

--14dae93406091fa88204c223c8c3
Content-Type: text/plain; charset=ISO-8859-1

Hello

I was going trough the libssh2 git repository and i have seen that in the
README  a file called INSTALL has been mentioned, but unfortunately i was
not able to see it in the repository. Am i missing something?

Regards,

Konstantin

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

Hello<br><br>I was going trough the libssh2 git repository and i have seen =
that in the README=A0 a file called INSTALL has been mentioned, but unfortu=
nately i was not able to see it in the repository. Am i missing something? =
<br>
<br>Regards,<br><br>Konstantin<br>

--14dae93406091fa88204c223c8c3--

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

--===============1778109632==--

From libssh2-devel-bounces@cool.haxx.se  Sun Jun 10 23:01:53 2012
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 q5AL1lOm017258;
	Sun, 10 Jun 2012 23:01:51 +0200
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 q5AL1kb1017246
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Sun, 10 Jun 2012 23:01:46 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q5AL1jRX017242
 for <libssh2-devel@cool.haxx.se>; Sun, 10 Jun 2012 23:01:45 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Sun, 10 Jun 2012 23:01:45 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: INSTALL
In-Reply-To: <CACDfgoaejbDxaP1NP_ESmvyfAoyDwq7kanQq8mORZpQt_G4SOg@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1206102301030.14101@tvnag.unkk.fr>
References: <CACDfgoaejbDxaP1NP_ESmvyfAoyDwq7kanQq8mORZpQt_G4SOg@mail.gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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, 10 Jun 2012, full disclosure wrote:

> I was going trough the libssh2 git repository and i have seen that in the 
> README a file called INSTALL has been mentioned, but unfortunately i was not 
> able to see it in the repository. Am i missing something?

It is generated by one of the autotools and gets added to release archives. It 
is thus one of the generic kinds. Anything in particular you're looking for?

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sun Jun 10 23:04:12 2012
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 q5AL4AmH018420;
	Sun, 10 Jun 2012 23:04:11 +0200
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 q5AL491P018412
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Sun, 10 Jun 2012 23:04:09 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q5AL49oU018407
 for <libssh2-devel@cool.haxx.se>; Sun, 10 Jun 2012 23:04:09 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Sun, 10 Jun 2012 23:04:09 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: config.rpath (was Re: ANNOUNCE: libssh2 version 1.4.1)
In-Reply-To: <4FD49145.5060403@gmail.com>
Message-ID: <alpine.DEB.2.00.1206102303330.14101@tvnag.unkk.fr>
References: <4FCD1498.1070401@gknw.net> <4FD49145.5060403@gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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, 10 Jun 2012, Tito wrote:

> Adding the file ./config.rpath to the top source level directory is the 
> workaround.

So on this topic, does anyone have any better fix than creating this dummy?

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Mon Jun 11 03:13:24 2012
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 q5B1D27A019747;
	Mon, 11 Jun 2012 03:13:18 +0200
Received: from dns-factory.at (mx03.dns-factory.at [194.242.35.75])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5B1Cwpx018712
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 11 Jun 2012 03:12:59 +0200
Received: from [172.17.100.7] lists@gknw.net [37.201.243.102]
 by dns-factory.at with NetMail SMTP Agent $Revision: 8582 $ on Novell NetWare
 via secured & encrypted transport (TLS);
 Mon, 11 Jun 2012 03:12:50 +0200
Message-ID: <4FD5460E.8070706@gknw.net>
Date: Mon, 11 Jun 2012 03:12:46 +0200
From: Guenter <lists@gknw.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de;
 rv:1.9.2.28) Gecko/20120306 Lightning/1.0b2 Thunderbird/3.1.20
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: config.rpath (was Re: ANNOUNCE: libssh2 version 1.4.1)
References: <4FCD1498.1070401@gknw.net> <4FD49145.5060403@gmail.com>
 <alpine.DEB.2.00.1206102303330.14101@tvnag.unkk.fr>
In-Reply-To: <alpine.DEB.2.00.1206102303330.14101@tvnag.unkk.fr>
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q5B1Cwpx018712
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"; Format="flowed"
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 q5B1D27A019747

Am 10.06.2012 23:04, schrieb Daniel Stenberg:
> On Sun, 10 Jun 2012, Tito wrote:
>
>> Adding the file ./config.rpath to the top source level directory is
>> the workaround.
>
> So on this topic, does anyone have any better fix than creating this dummy?
:~/projects/git-libssh2> grep -R 'gettext' libssh2
libssh2/m4/lib-ld.m4:# lib-ld.m4 serial 3 (gettext-0.13)
libssh2/m4/lib-prefix.m4:# lib-prefix.m4 serial 5 (gettext-0.15)
libssh2/m4/lib-link.m4:# lib-link.m4 serial 13 (gettext-0.16.2)

if you do the same grep for curl then no single hit ...

I guess we need to figure out what functions of the autocrap stuff 
depend on gettext, and then try to avoid these ...

Gün.





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

From libssh2-devel-bounces@cool.haxx.se  Mon Jun 11 14:55:31 2012
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 q5BCtDP9026754;
	Mon, 11 Jun 2012 14:55:26 +0200
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 q5BCtC1K026746
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 11 Jun 2012 14:55:12 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q5BCtCf0026743
 for <libssh2-devel@cool.haxx.se>; Mon, 11 Jun 2012 14:55:12 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Mon, 11 Jun 2012 14:55:12 +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: config.rpath (was Re: ANNOUNCE: libssh2 version 1.4.1)
In-Reply-To: <4FD5460E.8070706@gknw.net>
Message-ID: <alpine.DEB.2.00.1206111454160.20605@tvnag.unkk.fr>
References: <4FCD1498.1070401@gknw.net> <4FD49145.5060403@gmail.com>
 <alpine.DEB.2.00.1206102303330.14101@tvnag.unkk.fr>
 <4FD5460E.8070706@gknw.net>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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 Jun 2012, Guenter wrote:

> :~/projects/git-libssh2> grep -R 'gettext' libssh2
> libssh2/m4/lib-ld.m4:# lib-ld.m4 serial 3 (gettext-0.13)
> libssh2/m4/lib-prefix.m4:# lib-prefix.m4 serial 5 (gettext-0.15)
> libssh2/m4/lib-link.m4:# lib-link.m4 serial 13 (gettext-0.16.2)
>
> if you do the same grep for curl then no single hit ...
>
> I guess we need to figure out what functions of the autocrap stuff depend on 
> gettext, and then try to avoid these ...

Right. But until we've done that, I've put back the config.rpath again so that 
things at least continue to work like before.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Tue Jun 12 11:40:46 2012
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 q5C9eO9s010511;
	Tue, 12 Jun 2012 11:40:41 +0200
Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com
 [209.85.216.182])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5C9eL05010473
 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 12 Jun 2012 11:40:22 +0200
Received: by qcsg15 with SMTP id g15so2581995qcs.41
 for <libssh2-devel@cool.haxx.se>; Tue, 12 Jun 2012 02:40:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :content-type; bh=XRwO+YRR1xEEAO+N5K0Ipe9GFYheTQz/6m0+kqo+Dok=;
 b=ts6Amc9GR96Nbo5/r2HJuFcbPqRBfGXIjOgu7zYge9/T0++ZbqdHtbnH58t6zTzYQO
 POHYCfpGd8hhKccyOlDnwRZYah2t82WZejBvzXKfdtq7hUWHfp6FF37xFEwLc+8IKT/Y
 Y+B/1naf4dy9UnDLTgeqQ+BeNl79RyQlDQMbTJtx8R7VwIUCLJ/EyUHv+37qK6S1j1tI
 F6ht+b7gzHp2pnr6gqiGc9sUVrIKpPvMaCdqYWIydJQWAV5CPrvK+k8AXM7+6B1uLR0h
 gSf4jrMNbNztShGa1lONlp3tu3FVMDWRD1kLhgVJG40SdTaJxTW+NQRJaQ/Rq/uJhTKC
 +huQ==
MIME-Version: 1.0
Received: by 10.229.137.76 with SMTP id v12mr7916303qct.77.1339494016813; Tue,
 12 Jun 2012 02:40:16 -0700 (PDT)
Received: by 10.229.160.200 with HTTP; Tue, 12 Jun 2012 02:40:16 -0700 (PDT)
In-Reply-To: <alpine.DEB.2.00.1206081527210.6220@tvnag.unkk.fr>
References: <alpine.DEB.2.00.1206081527210.6220@tvnag.unkk.fr>
Date: Tue, 12 Jun 2012 15:10:16 +0530
Message-ID: <CALOt-kkmf617FBB_gf4ahn1hFy1GXCCHDrGG8AWSYLXtNGr=nQ@mail.gmail.com>
Subject: Re: Reg Core dump in libssh2 with SFTP in main_arena () from
 /lib64/libc.so.6 (fwd)
From: Ganga <gangabhavanip@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>, daniel <daniel@haxx.se>
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 Daniel and Team,

The libssh2 version we are using is  libssh2-1-0.19.0

This core dump is occuring very rarely. So as suggested below are the
flow of calls we are using in our code.

Please provide some workaround.


BR,
Ganga


On 6/8/12, Daniel Stenberg <daniel@haxx.se> wrote:
> FYI,
>
> Forwarded with permission.
>
> --
>
>   / daniel.haxx.se
>
> ---------- Forwarded message ----------
> Date: Wed, 6 Jun 2012 12:43:43
> From: Ganga <gangabhavanip@...>
> Subject: Reg Core dump in libssh2 with SFTP in main_arena () from
>      /lib64/libc.so.6
>
> Hi Daniel,
>
> I am getting the following  Segmentation fault when using libssh2
> functions in my code.
>
> Currently we are using version libssh2.so.1.0.0
>
>
> Below is the backtrace from my code
>
> #0  0x00007f78d04195b8 in main_arena () from /lib64/libc.so.6
> #1  0x00007f78d08ae910 in libssh2_packet_read () from
> /usr/lib64/libssh2.so.1
> #2  0x00007f78d089f436 in libssh2_packet_require_ex ()
>    from /usr/lib64/libssh2.so.1
> #3  0x00007f78d089e2e1 in libssh2_kex_exchange () from
> /usr/lib64/libssh2.so.1
> #4  0x00007f78d08a5e98 in libssh2_session_startup ()
>    from /usr/lib64/libssh2.so.1
> #5  0x00000000004dea3d in SftpAdapterClass::sftpInitiate(char const*,
> int, char const*, char const*, bool) ()
> #6  0x00000000004ded60 in SftpAdapterClass::sftpConnect(char const*,
> int, char const*, char const*, bool) ()
> #7  0x00000000004d4d13 in SSHFTPIV2::ftpConnect(std::string const&,
> std::string const&, std::string const&, std::string const&, bool) ()
> #8  0x000000000048e9a4 in FTPIV2::checkConnection() ()
> #9  0x00000000004765a3 in TransDest::checkConnection() ()
> #10 0x0000000000476ab8 in TransDest::handleMessage(TransDest::setEvMsg*) ()
> #11 0x000000000047a5eb in TransDest::svc() ()
> #12 0x00007f78d1b41d97 in ACE_Task_Base::svc_run(void*) ()
>    from /usr/lib64/libACE.so.5
> #13 0x00007f78d1b43435 in ACE_Thread_Adapter::invoke() ()
>    from /usr/lib64/libACE.so.5
> #14 0x00007f78d15ec696 in start_thread () from /lib64/libpthread.so.0
> #15 0x00007f78d0193cbd in clone () from /lib64/libc.so.6
> ---Type <return> to continue, or q <return> to quit---
> #16 0x0000000000000000 in ?? ()
>
> Here we are trying to checkconnection which internally calls the stfp
> protocol that internally uses libssh2.
>
> The below is the flow of the calls we performed
>
>   sock = socket(AF_INET, SOCK_STREAM, 0);
>   if (sock == -1)
>   {
> }
>
>      // Getting the socket properties before setting the socket non
> blocking
>          int arg1 = fcntl( sock, F_GETFL, NULL );
>
>          // Setting the socket non blocking
>          result = fcntl( sock, F_SETFL, O_NONBLOCK);
>
>          // Connecting to the remote ip address
>          result = connect(sock, (struct
> sockaddr*)(&server),sizeof(struct sockaddr_in));
>
>          if (result != 0)
>          {
>                                         select( sock+1, 0, &writefdSet, 0,
> &tv )
>          }
>
> session = libssh2_session_init();
>          if(!session)
>          {
>        }
>
>    rc = libssh2_session_startup(session, sock);
>
>          if(rc)
>          {
>                  libssh2_session_disconnect(session, "Normal Shutdown,
> Thank you for playing");
>                  libssh2_session_free(session);
>                  close(sock);
>                  sock = -1;
>                  session=NULL;
>          }
>          libssh2_hostkey_hash(session, LIBSSH2_HOSTKEY_HASH_SHA1);
>
>
> Please guide me in providing the solution for this.
>
> Thanking you in Advance
> Warm Regards
> Ganga
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Tue Jun 12 12:12:16 2012
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 q5CAC9NR029601;
	Tue, 12 Jun 2012 12:12:15 +0200
Received: from mail-qa0-f53.google.com (mail-qa0-f53.google.com
 [209.85.216.53])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5CAC7xJ029572
 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 12 Jun 2012 12:12:08 +0200
Received: by qadz32 with SMTP id z32so262816qad.12
 for <libssh2-devel@cool.haxx.se>; Tue, 12 Jun 2012 03:12:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:sender:in-reply-to:references:date
 :x-google-sender-auth:message-id:subject:from:to:content-type
 :content-transfer-encoding;
 bh=CphRqSP4/jY4ZyKEc/qeYAlyPi+TpR1J/0YSbm+MkyI=;
 b=dFITRSO1g2zv+J0kOn4lalwvR9CVZZvCZpF5czzErByWmDIWkRNdm2yXf0IiEyAziI
 t7Ee7GtsyPbBmX6b1Wg9QQvMRDwCayP0j72n4zGRUyEmdmQE0gAglX9OkNowQCfY551j
 wY6HxPR+fnYVlnbw7yEk8Q51uf/PgJAmGqhm5QpwjDG8LFYQX355oj3Z3YqvGlKqO9tW
 Z1B88WjFAPUpWarYSQ/vvhBlBKb+/KaRf6GgOzWR4x30rPD3bfq4oQaQgQFJ50ggTGxk
 0f9JTRsKW9P1WD2BzSqGOXT8pwKsrSEe+yHBmNkNYvvL6IRO+PF/CmehiHnSjPOnYWps
 xapw==
MIME-Version: 1.0
Received: by 10.229.135.131 with SMTP id n3mr8061869qct.53.1339495923756; Tue,
 12 Jun 2012 03:12:03 -0700 (PDT)
Received: by 10.229.61.90 with HTTP; Tue, 12 Jun 2012 03:12:03 -0700 (PDT)
In-Reply-To: <CALOt-kkmf617FBB_gf4ahn1hFy1GXCCHDrGG8AWSYLXtNGr=nQ@mail.gmail.com>
References: <alpine.DEB.2.00.1206081527210.6220@tvnag.unkk.fr>
 <CALOt-kkmf617FBB_gf4ahn1hFy1GXCCHDrGG8AWSYLXtNGr=nQ@mail.gmail.com>
Date: Tue, 12 Jun 2012 11:12:03 +0100
X-Google-Sender-Auth: u6OfyLo_gYbZ2Ye12ap5klOvPNk
Message-ID: <CADyPeTPYAWOd4tTf62UfNa-q3aceJr5x0okiKBTMuZcbNwEB5A@mail.gmail.com>
Subject: Re: Reg Core dump in libssh2 with SFTP in main_arena () from
 /lib64/libc.so.6 (fwd)
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q5CAC7xJ029572
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 q5CAC9NR029601

On 12 June 2012 10:40, Ganga <gangabhavanip@gmail.com> wrote:
> Hi Daniel and Team,
>
> The libssh2 version we are using is  libssh2-1-0.19.0
>
> This core dump is occuring very rarely. So as suggested below are the
> flow of calls we are using in our code.
>
> Please provide some workaround.

That version number looks a bit wierd but it seems to be version 0.19,
a pre-release version that is five years old!  There is absolutely no
hope of us fixing or providing a workaround for code that old.  Please
try a recent version of libssh2, preferably the latest git HEAD.

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  Wed Jun 13 16:14:21 2012
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 q5DEDt7c026168;
	Wed, 13 Jun 2012 16:14:15 +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 q5DEDr0T026157
 for <libssh2-devel@cool.haxx.se>; Wed, 13 Jun 2012 16:13:53 +0200
Received: (qmail 16028 invoked from network); 13 Jun 2012 14:13:52 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 13 Jun 2012 14:13:52 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.13dev
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.13dev, by Edgewall Software
X-Trac-Project: libssh2
Date: Wed, 13 Jun 2012 14:13:52 -0000
X-URL: http://trac.libssh2.org/
Subject: [libssh2] #239: Sending file via scp_write on host with not enough
 space left does not return any error
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/239
Message-ID: <045.103714f98fbdf0f25820129bfebecfd2@libssh2.stuge.se>
X-Trac-Ticket-ID: 239
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id q5DEDr0T026157
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

#239: Sending file via scp_write on host with not enough space left does not
return any error
-----------------------+--------------------
 Reporter:  papanowel  |       Owner:
     Type:  defect     |      Status:  new
 Priority:  normal     |   Milestone:  1.4.0
Component:  SCP        |     Version:  1.4.1
 Keywords:             |  Blocked By:
   Blocks:             |
-----------------------+--------------------
 My destination directory is a USB key almost full :
 ''vmware@linux-dev:/media/disk> df -h /media/disk
 Filesystem            Size  Used Avail Use% Mounted on
 /dev/sdb1             7.6G  7.6G  336K 100% /media/disk''

 I try to send with scp_write example a 1MB file in this directory :
 ''vmware@linux-dev:/media/disk>
 /home/vmware/Tools/libssh2/libssh2-1.4.1/example/scp_write 127.0.0.1
 vmware vmware /media/disk/1M.bin.1 /media/disk/1M.bin.2''

 Execution result is correct :
 ''Fingerprint: ...
 SCP session waiting to send file
 Sending EOF
 Waiting for EOF
 Waiting for channel to close
 all done''

 But inside the key :
 ''vmware@linux-dev:/media/disk> la /media/disk/
 total 7865688
 ...
 -rwxr-xr-x 1 vmware root    1048576 2012-05-30 09:58 1M.bin.1
 -rwxr-xr-x 1 vmware root     344064 2012-05-30 11:13 1M.bin.2
 ...''

 Result is the same with scp_write_nonblock exemple.
 If I use /bin/scp, it actually returns an error.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/239>
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 Jun 13 16:14:22 2012
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 q5DEELdQ026430;
	Wed, 13 Jun 2012 16:14:22 +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 q5DEDv6E026180
 for <libssh2-devel@cool.haxx.se>; Wed, 13 Jun 2012 16:13:57 +0200
Received: (qmail 16035 invoked from network); 13 Jun 2012 14:13:57 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 13 Jun 2012 14:13:57 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.13dev
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.13dev, by Edgewall Software
X-Trac-Project: libssh2
Date: Wed, 13 Jun 2012 14:13:57 -0000
X-URL: http://trac.libssh2.org/
Subject: [libssh2] #240: Unhandled Z_BUF_ERROR inflating compressed stream
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/240
Message-ID: <042.770b57237aabcd14e8ac432f68d36773@libssh2.stuge.se>
X-Trac-Ticket-ID: 240
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id q5DEDv6E026180
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

#240: Unhandled Z_BUF_ERROR inflating compressed stream
----------------------+--------------------
 Reporter:  steven    |       Owner:
     Type:  defect    |      Status:  new
 Priority:  normal    |   Milestone:  1.5.0
Component:  protocol  |     Version:  1.4.1
 Keywords:            |  Blocked By:
   Blocks:            |
----------------------+--------------------
 When using libssh2 to perform an SFTP file transfer from the "JSCAPE MFT
 Server" (http://www.jscape.com) the transfer failed. The default JSCAPE
 configuration is to enforce zlib compression on SSH2 sessions so the
 session was compressed. The relevant part of the debug trace contained:
 {{{
  [libssh2] 1.052750 Transport: unhandled zlib error -5
  [libssh2] 1.052750 Failure Event: -29 - decompression failure
 }}}
 The trace comes from comp_method_zlib_decomp() in comp.c. The "unhandled
 zlib error -5" is the status returned from the zlib function inflate().
 The -5 status corresponds to "Z_BUF_ERROR".

 The inflate() function takes a pointer to a z_stream structure and
 "inflates" (decompresses) as much as it can. The relevant fields of the
 z_stream structure are:
 * next_in - pointer to the input buffer containing compressed data
 * avail_in - the number of bytes available at next_in
 * next_out - pointer to the output buffer to be filled with uncompressed
 data
 * avail_out - how much space available at next_out
 So, to decompress data you set up a z_stream struct with the relevant
 fields filled in and pass it to inflate(). On return the fields will have
 been updated so next_in and avail_in show how much compressed data is yet
 to be processed and next_out and avail_out show how much space is left in
 the output buffer.

 If the supplied output buffer is too small then on return there will be
 compressed data yet to be processed (avail_in != 0) and inflate() will
 return Z_OK. In this case the output buffer must be grown, avail_out
 updated and inflate() called again.

 If the supplied output buffer was big enough then on return the compressed
 data will have been exhausted (avail_in == 0) and inflate() will return
 Z_OK, so the data has all been uncompressed.

 There is a corner case where inflate() makes no progress. That is, there
 may be unprocessed compressed data and space available in the output
 buffer and yet the function does nothing. In this case inflate() will
 return Z_BUF_ERROR. From the zlib documentation and the source code it is
 not clear under what circumstances this happens. It could be that it needs
 to write multiple bytes (all in one go) from its internal state to the
 output buffer before processing the next chunk of input but but can't
 because there is not enough space (though my guesses as to the cause are
 not really relevant). Recovery from Z_BUF_ERROR is pretty simple - just
 grow the output buffer, update avail_out and call inflate() again.

 The comp_method_zlib_decomp() function does not handle the case when
 inflate() returns Z_BUF_ERROR. It treats it as a non-recoverable error and
 basically aborts the session.

 I've attached a patch to comp.c to the ticket that contains a proposed
 solution.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/240>
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 Jun 13 16:14:23 2012
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 q5DEEMhV026462;
	Wed, 13 Jun 2012 16:14:23 +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 q5DEE16X026198
 for <libssh2-devel@cool.haxx.se>; Wed, 13 Jun 2012 16:14:01 +0200
Received: (qmail 16039 invoked from network); 13 Jun 2012 14:14:01 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 13 Jun 2012 14:14:01 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.13dev
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.13dev, by Edgewall Software
X-Trac-Project: libssh2
Date: Wed, 13 Jun 2012 14:14:01 -0000
X-URL: http://trac.libssh2.org/
Subject: [libssh2] #241: Reg libssh2 dump with SFTP
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/241
Message-ID: <049.3f7a500b957688e57712d68593c25ff1@libssh2.stuge.se>
X-Trac-Ticket-ID: 241
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id q5DEE16X026198
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

#241: Reg libssh2 dump with SFTP
---------------------------+--------------------
 Reporter:  ganga bhavani  |       Owner:  Ganga
     Type:  defect         |      Status:  new
 Priority:  blocker        |   Milestone:  1.4.0
Component:  SFTP           |     Version:  1.4.1
 Keywords:                 |  Blocked By:
   Blocks:                 |
---------------------------+--------------------
 Hi Team,

 I am getting a SEGV in main_arena () from /lib64/libc.so.6

 Please guide me in providing the solution for this.

 Below is the Backtrace from the GDB :

 #0  0x00007f78d04195b8 in main_arena () from /lib64/libc.so.6
 #1  0x00007f78d08ae910 in libssh2_packet_read () from
 /usr/lib64/libssh2.so.1
 #2  0x00007f78d089f436 in libssh2_packet_require_ex ()
   from /usr/lib64/libssh2.so.1
 #3  0x00007f78d089e2e1 in libssh2_kex_exchange () from
 /usr/lib64/libssh2.so.1
 #4  0x00007f78d08a5e98 in libssh2_session_startup ()
   from /usr/lib64/libssh2.so.1
 #5  0x00000000004dea3d in SftpAdapterClass::sftpInitiate(char const*,
 int, char const*, char const*, bool) ()
 #6  0x00000000004ded60 in SftpAdapterClass::sftpConnect(char const*,
 int, char const*, char const*, bool) ()
 #7  0x00000000004d4d13 in SSHFTPIV2::ftpConnect(std::string const&,
 std::string const&, std::string const&, std::string const&, bool) ()
 #8  0x000000000048e9a4 in FTPIV2::checkConnection() ()
 #9  0x00000000004765a3 in TransDest::checkConnection() ()
 #10 0x0000000000476ab8 in TransDest::handleMessage(TransDest::setEvMsg*)
 ()
 #11 0x000000000047a5eb in TransDest::svc() ()
 #12 0x00007f78d1b41d97 in ACE_Task_Base::svc_run(void*) ()
   from /usr/lib64/libACE.so.5
 #13 0x00007f78d1b43435 in ACE_Thread_Adapter::invoke() ()
   from /usr/lib64/libACE.so.5
 #14 0x00007f78d15ec696 in start_thread () from /lib64/libpthread.so.0
 #15 0x00007f78d0193cbd in clone () from /lib64/libc.so.6
 ---Type <return> to continue, or q <return> to quit---
 #16 0x0000000000000000 in ?? ()

  Thanking you all in advance,

 Ganga

-- 
Ticket URL: <http://trac.libssh2.org/ticket/241>
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 Jun 13 16:14:24 2012
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 q5DEENw7026497;
	Wed, 13 Jun 2012 16:14:24 +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 q5DEE57o026338
 for <libssh2-devel@cool.haxx.se>; Wed, 13 Jun 2012 16:14:05 +0200
Received: (qmail 16044 invoked from network); 13 Jun 2012 14:14:05 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 13 Jun 2012 14:14:05 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.13dev
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.13dev, by Edgewall Software
X-Trac-Project: libssh2
Date: Wed, 13 Jun 2012 14:14:05 -0000
X-URL: http://trac.libssh2.org/
Subject: [libssh2] #242: Feature request: libssh2_channel_set_timeout()
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/242
Message-ID: <047.6fd566304e386b5763b1222398c6d397@libssh2.stuge.se>
X-Trac-Ticket-ID: 242
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id q5DEE57o026338
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

#242: Feature request: libssh2_channel_set_timeout()
-------------------------+--------------------
 Reporter:  langemeijer  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  1.4.0
Component:  API          |     Version:  1.4.1
 Keywords:               |  Blocked By:
   Blocks:               |
-------------------------+--------------------
 I would like the function libssh2_channel_set_timeout(), the same way
 libssh2_channel_set_blocking() works, as a simple wrapper on
 libssh2_session_set_timeout().

 I created a patch for it. Complete with documentation and everything.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/242>
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 Jun 14 14:08:25 2012
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 q5EC7tMx015429;
	Thu, 14 Jun 2012 14:08:19 +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 q5EC7rDV015423
 for <libssh2-devel@cool.haxx.se>; Thu, 14 Jun 2012 14:07:53 +0200
Received: (qmail 21865 invoked from network); 14 Jun 2012 12:07:52 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 14 Jun 2012 12:07:52 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.13dev
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.13dev, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 14 Jun 2012 12:07:52 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #241: Reg libssh2 dump with SFTP
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/241#comment:1
Message-ID: <064.e6426645f400a050b65686cdaad335cb@libssh2.stuge.se>
References: <049.3f7a500b957688e57712d68593c25ff1@libssh2.stuge.se>
X-Trac-Ticket-ID: 241
In-Reply-To: <049.3f7a500b957688e57712d68593c25ff1@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id q5EC7rDV015423
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

#241: Reg libssh2 dump with SFTP
----------------------------+-------------------
  Reporter:  ganga bhavani  |      Owner:  Ganga
      Type:  defect         |     Status:  new
  Priority:  blocker        |  Milestone:  1.4.0
 Component:  SFTP           |    Version:  1.4.1
Resolution:                 |   Keywords:
Blocked By:                 |     Blocks:
----------------------------+-------------------

Comment (by alamaison):

 Please provide:
 - the exact version number or revision hash of libssh2 that exhibits this
 problem
 - a minimal program that reproduces the error

 If you can't create the latter for whatever reason, please provide a debug
 trace of an execution that results in the error.

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

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jun 14 15:30:19 2012
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 q5EDU1Uj004446;
	Thu, 14 Jun 2012 15:30:15 +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 q5EDTx3i004436
 for <libssh2-devel@cool.haxx.se>; Thu, 14 Jun 2012 15:29:59 +0200
Received: (qmail 1463 invoked from network); 14 Jun 2012 13:29:58 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 14 Jun 2012 13:29:58 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.13dev
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.13dev, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 14 Jun 2012 13:29:58 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #242: Feature request: libssh2_channel_set_timeout()
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/242#comment:1
Message-ID: <062.a711dbebcebe00faa71becd7fd1798ef@libssh2.stuge.se>
References: <047.6fd566304e386b5763b1222398c6d397@libssh2.stuge.se>
X-Trac-Ticket-ID: 242
In-Reply-To: <047.6fd566304e386b5763b1222398c6d397@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id q5EDTx3i004436
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

#242: Feature request: libssh2_channel_set_timeout()
--------------------------+-------------------
  Reporter:  langemeijer  |      Owner:
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  1.4.0
 Component:  API          |    Version:  1.4.1
Resolution:               |   Keywords:
Blocked By:               |     Blocks:
--------------------------+-------------------

Comment (by bagder):

 Sorry but I don't see the point with this. The
 libssh2_channel_set_timeout() is an old legacy and has always been meant
 to set the specific channel to blocking or not.

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

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jun 14 15:37:36 2012
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 q5EDbWqc010027;
	Thu, 14 Jun 2012 15:37:35 +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 q5EDbU2x009993
 for <libssh2-devel@cool.haxx.se>; Thu, 14 Jun 2012 15:37:30 +0200
Received: (qmail 2350 invoked from network); 14 Jun 2012 13:37:30 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 14 Jun 2012 13:37:30 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.13dev
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.13dev, by Edgewall Software
X-Trac-Project: libssh2
Date: Thu, 14 Jun 2012 13:37:30 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #237: configure -DLIBSSH2_WIN32 @cygwin
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/237#comment:1
Message-ID: <063.6f5c6b6f96d72155ed118b1d17fa9e51@libssh2.stuge.se>
References: <048.a40294eefe95ebd3328a08f1aa24b0b6@libssh2.stuge.se>
X-Trac-Ticket-ID: 237
In-Reply-To: <048.a40294eefe95ebd3328a08f1aa24b0b6@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id q5EDbU2x009993
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

#237: configure -DLIBSSH2_WIN32 @cygwin
---------------------------+------------------------------
  Reporter:  flederwiesel  |      Owner:
      Type:  defect        |     Status:  closed
  Priority:  normal        |  Milestone:  1.4.0
 Component:  misc          |    Version:  1.3.0
Resolution:  fixed         |   Keywords:  cygwin configure
Blocked By:                |     Blocks:
---------------------------+------------------------------
Changes (by bagder):

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


Comment:

 This problem seems already have been fixed with commit 3ede6e280ebc27

-- 
Ticket URL: <http://trac.libssh2.org/ticket/237#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  Fri Jun 15 15:35:51 2012
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 q5FDZOqf025127;
	Fri, 15 Jun 2012 15:35:45 +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 q5FDZN2I025103
 for <libssh2-devel@cool.haxx.se>; Fri, 15 Jun 2012 15:35:23 +0200
Received: (qmail 30289 invoked from network); 15 Jun 2012 13:35:22 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 15 Jun 2012 13:35:22 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.13dev
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.13dev, by Edgewall Software
X-Trac-Project: libssh2
Date: Fri, 15 Jun 2012 13:35:22 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #222: Windows build settings enhancement request
 (diff included)
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/222#comment:2
Message-ID: <058.08d27c398dc86d4940da271b5be948ce@libssh2.stuge.se>
References: <043.17e137e6ba31a6fbdefab6765628a089@libssh2.stuge.se>
X-Trac-Ticket-ID: 222
In-Reply-To: <043.17e137e6ba31a6fbdefab6765628a089@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id q5FDZN2I025103
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

#222: Windows build settings enhancement request (diff included)
----------------------+-----------------------
  Reporter:  kdekker  |      Owner:
      Type:  defect   |     Status:  new
  Priority:  normal   |  Milestone:  1.4.0
 Component:  misc     |    Version:  1.2.8
Resolution:           |   Keywords:  win build
Blocked By:           |     Blocks:
----------------------+-----------------------
Changes (by kdekker):

 * milestone:   => 1.4.0


Comment:

 This problem still persists in libssh2-1-4-2.
 To be able to build a static lib, the changes in the Nmakefile are needed.
 To be able to override the openssl location, the changes in the config.mk
 file are needed.
 Feel free to contact me if more information is needed.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/222#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  Fri Jun 15 15:35:53 2012
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 q5FDZpd1025248;
	Fri, 15 Jun 2012 15:35: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 q5FDZRgR025142
 for <libssh2-devel@cool.haxx.se>; Fri, 15 Jun 2012 15:35:28 +0200
Received: (qmail 30300 invoked from network); 15 Jun 2012 13:35:26 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 15 Jun 2012 13:35:26 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.13dev
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.13dev, by Edgewall Software
X-Trac-Project: libssh2
Date: Fri, 15 Jun 2012 13:35:26 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #222: Windows build settings enhancement request
 (diff included)
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/222#comment:3
Message-ID: <058.f84a4aedbada059912832c55a088b80c@libssh2.stuge.se>
References: <043.17e137e6ba31a6fbdefab6765628a089@libssh2.stuge.se>
X-Trac-Ticket-ID: 222
In-Reply-To: <043.17e137e6ba31a6fbdefab6765628a089@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id q5FDZRgR025142
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

#222: Windows build settings enhancement request (diff included)
----------------------+-----------------------
  Reporter:  kdekker  |      Owner:
      Type:  defect   |     Status:  new
  Priority:  normal   |  Milestone:  1.4.0
 Component:  misc     |    Version:  1.2.8
Resolution:           |   Keywords:  win build
Blocked By:           |     Blocks:
----------------------+-----------------------

Comment (by kdekker):

 This problem still persists in libssh2-1-4-2.
 To be able to build a static lib, the changes in the Nmakefile are needed.
 To be able to override the openssl location, the changes in the config.mk
 file are needed.
 Feel free to contact me if more information is needed.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/222#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  Fri Jun 15 15:38:02 2012
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 q5FDc1tp026139;
	Fri, 15 Jun 2012 15:38:01 +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 q5FDbxdX026119
 for <libssh2-devel@cool.haxx.se>; Fri, 15 Jun 2012 15:37:59 +0200
Received: (qmail 30674 invoked from network); 15 Jun 2012 13:37:59 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 15 Jun 2012 13:37:59 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.13dev
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.13dev, by Edgewall Software
X-Trac-Project: libssh2
Date: Fri, 15 Jun 2012 13:37:58 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #222: Windows build settings enhancement request
 (diff included)
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/222#comment:4
Message-ID: <058.051bad3fb0ede3a94eee004b91e2b113@libssh2.stuge.se>
References: <043.17e137e6ba31a6fbdefab6765628a089@libssh2.stuge.se>
X-Trac-Ticket-ID: 222
In-Reply-To: <043.17e137e6ba31a6fbdefab6765628a089@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id q5FDbxdX026119
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

#222: Windows build settings enhancement request (diff included)
----------------------+-----------------------
  Reporter:  kdekker  |      Owner:
      Type:  defect   |     Status:  new
  Priority:  normal   |  Milestone:  1.4.0
 Component:  misc     |    Version:  1.2.8
Resolution:           |   Keywords:  win build
Blocked By:           |     Blocks:
----------------------+-----------------------

Comment (by kdekker):

 I attached a copy of the modified config.mk file.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/222#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  Fri Jun 15 19:59:28 2012
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 q5FHxBQJ009707;
	Fri, 15 Jun 2012 19:59:24 +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 q5FHx8qa009681
 for <libssh2-devel@cool.haxx.se>; Fri, 15 Jun 2012 19:59:08 +0200
Received: (qmail 526 invoked from network); 15 Jun 2012 17:59:08 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 15 Jun 2012 17:59:08 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.13dev
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.13dev, by Edgewall Software
X-Trac-Project: libssh2
Date: Fri, 15 Jun 2012 17:59:08 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #222: Windows build settings enhancement request
 (diff included)
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/222#comment:5
Message-ID: <058.0c66a818338a9253139d936deadb31ca@libssh2.stuge.se>
References: <043.17e137e6ba31a6fbdefab6765628a089@libssh2.stuge.se>
X-Trac-Ticket-ID: 222
In-Reply-To: <043.17e137e6ba31a6fbdefab6765628a089@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id q5FHx8qa009681
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

#222: Windows build settings enhancement request (diff included)
----------------------+-----------------------
  Reporter:  kdekker  |      Owner:  bagder
      Type:  defect   |     Status:  assigned
  Priority:  normal   |  Milestone:  1.4.0
 Component:  misc     |    Version:  1.2.8
Resolution:           |   Keywords:  win build
Blocked By:           |     Blocks:
----------------------+-----------------------
Changes (by bagder):

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


Comment:

 I would like to have all changes explained. You change several flags and
 libs. Your version also prefers older OpenSSL and zlib versions which
 seems wrong.

 Also, please do a local git commit and then make a patch with 'git format-
 patch -1' and submit that, as it makes it way easier for us to receive and
 merge your work!

-- 
Ticket URL: <http://trac.libssh2.org/ticket/222#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  Mon Jun 18 23:45:09 2012
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 q5ILijXs009524;
	Mon, 18 Jun 2012 23:45:04 +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 q5ILihnt009501
 for <libssh2-devel@cool.haxx.se>; Mon, 18 Jun 2012 23:44:43 +0200
Received: (qmail 12697 invoked from network); 18 Jun 2012 21:44:42 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 18 Jun 2012 21:44:42 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.13dev
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.13dev, by Edgewall Software
X-Trac-Project: libssh2
Date: Mon, 18 Jun 2012 21:44:42 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #242: Feature request: libssh2_channel_set_timeout()
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/242#comment:2
Message-ID: <062.02a9f65fbadee400c59160ed764d15d3@libssh2.stuge.se>
References: <047.6fd566304e386b5763b1222398c6d397@libssh2.stuge.se>
X-Trac-Ticket-ID: 242
In-Reply-To: <047.6fd566304e386b5763b1222398c6d397@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id q5ILihnt009501
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

#242: Feature request: libssh2_channel_set_timeout()
--------------------------+-------------------
  Reporter:  langemeijer  |      Owner:
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  1.4.0
 Component:  API          |    Version:  1.4.1
Resolution:               |   Keywords:
Blocked By:               |     Blocks:
--------------------------+-------------------

Comment (by langemeijer):

 What do you mean with "libssh2_channel_set_timeout() is an old legacy"?
 There currently is no libssh2_channel_set_timeout(). I'm assuming you
 meant libssh2_channel_set_blocking() and saying it is legacy code and
 should be removed, but it's API.

 I can work around it. I should be able to get the session from a channel
 on my side. I thought that if the libssh2 api already had
 channel_set_blocking(), channel_set_timeout() would be a logical function
 to have too.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/242#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  Mon Jun 18 23:52:21 2012
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 q5ILqIpJ014109;
	Mon, 18 Jun 2012 23:52:20 +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 q5ILqHEQ014088
 for <libssh2-devel@cool.haxx.se>; Mon, 18 Jun 2012 23:52:17 +0200
Received: (qmail 14116 invoked from network); 18 Jun 2012 21:52:17 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 18 Jun 2012 21:52:17 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.13dev
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.13dev, by Edgewall Software
X-Trac-Project: libssh2
Date: Mon, 18 Jun 2012 21:52:17 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #242: Feature request: libssh2_channel_set_timeout()
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/242#comment:3
Message-ID: <062.ebb667ab52fffc4c9f5fc1066779e124@libssh2.stuge.se>
References: <047.6fd566304e386b5763b1222398c6d397@libssh2.stuge.se>
X-Trac-Ticket-ID: 242
In-Reply-To: <047.6fd566304e386b5763b1222398c6d397@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id q5ILqHEQ014088
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

#242: Feature request: libssh2_channel_set_timeout()
--------------------------+----------------------
  Reporter:  langemeijer  |      Owner:  bagder
      Type:  enhancement  |     Status:  assigned
  Priority:  normal       |  Milestone:  1.4.0
 Component:  API          |    Version:  1.4.1
Resolution:               |   Keywords:
Blocked By:               |     Blocks:
--------------------------+----------------------
Changes (by bagder):

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


Comment:

 Sorry, yes I meant libssh2_channel_set_blocking()

 And I disagree with you. First, what is API is of course there and we
 don't remove it since we make a promise to support the existing API - but
 it doesn't mean we think all the functions were a good idea so that we
 would add more functions in the similar spirit.

 If we had channel-based timeouts I would say that
 libssh2_channel_set_timeout() would be valuable, but I don't think it is a
 good idea to add it just as shortcut to the session-based timeout
 function.

 If you want to discuss this further, I suggest you post to the mailing
 list and argue for it. This is the bug tracker and it really isn't made
 for design discussions.

-- 
Ticket URL: <http://trac.libssh2.org/ticket/242#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 Jun 19 15:08:30 2012
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 q5JD8BO7013453;
	Tue, 19 Jun 2012 15:08:26 +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 q5JD89Nq013435
 for <libssh2-devel@cool.haxx.se>; Tue, 19 Jun 2012 15:08:09 +0200
Received: (qmail 11653 invoked from network); 19 Jun 2012 13:08:07 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 19 Jun 2012 13:08:07 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 0.13dev
Precedence: bulk
Cc: libssh2-devel@cool.haxx.se
Auto-Submitted: auto-generated
X-Mailer: Trac 0.13dev, by Edgewall Software
X-Trac-Project: libssh2
Date: Tue, 19 Jun 2012 13:08:07 -0000
X-URL: http://trac.libssh2.org/
Subject: Re: [libssh2] #242: Feature request: libssh2_channel_set_timeout()
X-Trac-Ticket-URL: http://trac.libssh2.org/ticket/242#comment:4
Message-ID: <062.2da2dc3cbe6812d637ee6d550311cccd@libssh2.stuge.se>
References: <047.6fd566304e386b5763b1222398c6d397@libssh2.stuge.se>
X-Trac-Ticket-ID: 242
In-Reply-To: <047.6fd566304e386b5763b1222398c6d397@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id q5JD89Nq013435
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

#242: Feature request: libssh2_channel_set_timeout()
--------------------------+----------------------
  Reporter:  langemeijer  |      Owner:  bagder
      Type:  enhancement  |     Status:  assigned
  Priority:  normal       |  Milestone:  1.4.0
 Component:  API          |    Version:  1.4.1
Resolution:               |   Keywords:
Blocked By:               |     Blocks:
--------------------------+----------------------

Comment (by langemeijer):

 No, I agree with you for libssh2.

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

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

From libssh2-devel-bounces@cool.haxx.se  Tue Jun 19 21:28:39 2012
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 q5JJSGqW026195;
	Tue, 19 Jun 2012 21:28:34 +0200
Received: from mail01.procurios.net (mail01.procurios.net [213.193.247.34])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5JJSFNh026145
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 19 Jun 2012 21:28:15 +0200
Received: from [192.168.1.20] (535388CA.cm-6-4c.dynamic.ziggo.nl
 [83.83.136.202])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: casper.casper)
 by mail01.procurios.net (Postfix) with ESMTPSA id 44773139810B
 for <libssh2-devel@cool.haxx.se>; Thu, 14 Jun 2012 22:27:57 +0200 (CEST)
Message-ID: <4FDA4957.30107@langemeijer.eu>
Date: Thu, 14 Jun 2012 22:28:07 +0200
From: Casper Langemeijer <casper@langemeijer.eu>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: Why does libssh2_userauth_publickey_fromfile_ex() require a public
 key?
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="===============1903672092=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

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

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

Hi All,

A PHP user writes:

"Every other ssh client I've ever dealt with, only requires the private 
key to authenticate to a remote server with ssh2.

What is the reason for requiring both the public and private keys for 
authenticating, when in reality only the private key is required? The 
public key should be easily extracted from private key, and should be 
handled silently by PHP."

I think he raises an interesting point. What can you say on the subject?

For reference: https://bugs.php.net/bug.php?id=59409

Greetings, Casper


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

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi All,<br>
    <br>
    A PHP user writes:
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    "Every other ssh client I've ever dealt with, only requires the
    private key to authenticate to a remote server with ssh2.<br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <br class="Apple-interchange-newline">
    What is the reason for requiring both the public and private keys
    for authenticating, when in reality only the private key is
    required? The public key should be easily extracted from private
    key, and should be handled silently by PHP."<br>
    <br>
    I think he raises an interesting point. What can you say on the
    subject?<br>
    <br>
    For reference: <a href="https://bugs.php.net/bug.php?id=59409">https://bugs.php.net/bug.php?id=59409</a>
    <br>
    <br>
    Greetings, Casper<br>
    <br>
  </body>
</html>

--------------000808040300030504010001--

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

--===============1903672092==--

From libssh2-devel-bounces@cool.haxx.se  Tue Jun 19 21:30:53 2012
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 q5JJUpK2030741;
	Tue, 19 Jun 2012 21:30:52 +0200
Received: from mail01.procurios.net (mail01.procurios.net [213.193.247.34])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5JJUnu4030684
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 19 Jun 2012 21:30:50 +0200
Received: from [192.168.2.3] (535388CA.cm-6-4c.dynamic.ziggo.nl
 [83.83.136.202])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: casper.casper)
 by mail01.procurios.net (Postfix) with ESMTPSA id 1A8E111A426E
 for <libssh2-devel@cool.haxx.se>; Tue, 19 Jun 2012 21:30:21 +0200 (CEST)
Message-ID: <4FE0D356.3000006@langemeijer.eu>
Date: Tue, 19 Jun 2012 21:30:30 +0200
From: Casper Langemeijer <casper@langemeijer.eu>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: Re-authenticate
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 All,

I'm trying to get the number of bugs on the ssh2 php bindings down a bit.
One of the oldest open bugs is a request for a feature to re-authenticate:

unfortunately it is not possible to re-use a SSH connection for several log ins (authentications). This would be *very* useful because it takes ages to establish a ssh connection, so one could save a lot of time if it were possible to re-login via ssh2_auth_password().
Btw, the server hangs up if one tries to re-authenticate a second time.


Can this be done with libssh2? Can this be done with the ssh protocol at 
all?

My guess is that it's never going to happen and we should tell the bug 
poster, but I need to be sure.

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

From libssh2-devel-bounces@cool.haxx.se  Tue Jun 19 21:50:56 2012
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 q5JJopxa019827;
	Tue, 19 Jun 2012 21:50:55 +0200
Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com
 [209.85.210.54])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5JJnxbh018776
 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 19 Jun 2012 21:50:00 +0200
Received: by dadv36 with SMTP id v36so8488113dad.41
 for <libssh2-devel@cool.haxx.se>; Tue, 19 Jun 2012 12:49:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :content-type; bh=3XqjZAs6LPSvkzjnMvCRDr3iGa2OM2apuvy3O06iIJc=;
 b=o+Wjf5ZGgd/SN9Mz/MsHmqymtYnGcJRiQv8OE9rnGNVKE5IwQhRCAFOjta76FTiGiP
 db60A0gMPMpATkvvWjpzjC5dCDA6Qu0RqWbGW5TfwaZIvZTx6iiYNu0ZJv0cFEfd6EPA
 r0ZJefj0gm/jEgIebSy7VQKWSEUgkms9SzarPq8+ECGGrVWHWQ+rx0MAklAh+2s0PKiq
 mLzgNAqbqCfJqN24lGyF3ef3OP87BLtmyW29CtW5N/Av4+dMg+u4Z42p52xGzGRL3PwS
 b3b5aARM2p2GqkELTnoH00WZD4zg9FntAJQG0AEYbuuPPl90iDg0bK1oU5z7oPnS1TKC
 j29g==
MIME-Version: 1.0
Received: by 10.68.195.198 with SMTP id ig6mr68710053pbc.92.1340135394930;
 Tue, 19 Jun 2012 12:49:54 -0700 (PDT)
Received: by 10.66.15.170 with HTTP; Tue, 19 Jun 2012 12:49:54 -0700 (PDT)
In-Reply-To: <4FDA4957.30107@langemeijer.eu>
References: <4FDA4957.30107@langemeijer.eu>
Date: Tue, 19 Jun 2012 15:49:54 -0400
Message-ID: <CAFnqFY3NOgJ=KJWeG+i81+0Y2hHMvRcO=kzsy7b-pWYdxFS8DA@mail.gmail.com>
Subject: Re: Why does libssh2_userauth_publickey_fromfile_ex() require a
 public key?
From: Joe Turpin <joe.turpin@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
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="===============1777476155=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============1777476155==
Content-Type: multipart/alternative; boundary=047d7b10c8a72a6df504c2d89614

--047d7b10c8a72a6df504c2d89614
Content-Type: text/plain; charset=ISO-8859-1

On Thu, Jun 14, 2012 at 4:28 PM, Casper Langemeijer
<casper@langemeijer.eu>wrote:

>  Hi All,
>
> A PHP user writes:
>
> "Every other ssh client I've ever dealt with, only requires the private
> key to authenticate to a remote server with ssh2.
>
> What is the reason for requiring both the public and private keys for
> authenticating, when in reality only the private key is required? The
> public key should be easily extracted from private key, and should be
> handled silently by PHP."
>
> I think he raises an interesting point. What can you say on the subject?
>
> For reference: https://bugs.php.net/bug.php?id=59409
>
> Greetings, Casper
>

Hi Casper,

It's not required. You can pass a NULL pointer in to the function for the
public key file parameter and it will use the private key file parameter
instead.

--Joe

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

<div class=3D"gmail_quote">On Thu, Jun 14, 2012 at 4:28 PM, Casper Langemei=
jer <span dir=3D"ltr">&lt;<a href=3D"mailto:casper@langemeijer.eu" target=
=3D"_blank">casper@langemeijer.eu</a>&gt;</span> wrote:<br><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pad=
ding-left:1ex">

 =20

   =20
 =20
  <div bgcolor=3D"#FFFFFF" text=3D"#000000">
    Hi All,<br>
    <br>
    A PHP user writes:
   =20
    <br>
    <br>
   =20
   =20
    &quot;Every other ssh client I&#39;ve ever dealt with, only requires th=
e
    private key to authenticate to a remote server with ssh2.<br>
   =20
    <br>
    What is the reason for requiring both the public and private keys
    for authenticating, when in reality only the private key is
    required? The public key should be easily extracted from private
    key, and should be handled silently by PHP.&quot;<br>
    <br>
    I think he raises an interesting point. What can you say on the
    subject?<br>
    <br>
    For reference: <a href=3D"https://bugs.php.net/bug.php?id=3D59409" targ=
et=3D"_blank">https://bugs.php.net/bug.php?id=3D59409</a>
    <br>
    <br>
    Greetings, Casper<br></div></blockquote><div><br></div><div>Hi Casper,<=
/div><div><br></div><div>It&#39;s not required. You can pass a NULL pointer=
 in to the function for the public key file parameter and it will use the p=
rivate key file parameter instead.=A0</div>
<div><br></div><div>--Joe</div></div>

--047d7b10c8a72a6df504c2d89614--

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

--===============1777476155==--

From libssh2-devel-bounces@cool.haxx.se  Tue Jun 19 22:09:25 2012
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 q5JK9JrC008997;
	Tue, 19 Jun 2012 22:09:24 +0200
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 q5JK9HT4008960
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 19 Jun 2012 22:09:17 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q5JK9Hna008955
 for <libssh2-devel@cool.haxx.se>; Tue, 19 Jun 2012 22:09:17 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Tue, 19 Jun 2012 22:09:17 +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: Why does libssh2_userauth_publickey_fromfile_ex() require a
 public key?
In-Reply-To: <CAFnqFY3NOgJ=KJWeG+i81+0Y2hHMvRcO=kzsy7b-pWYdxFS8DA@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1206192203250.7042@tvnag.unkk.fr>
References: <4FDA4957.30107@langemeijer.eu>
 <CAFnqFY3NOgJ=KJWeG+i81+0Y2hHMvRcO=kzsy7b-pWYdxFS8DA@mail.gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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 Tue, 19 Jun 2012, Joe Turpin wrote:

> It's not required. You can pass a NULL pointer in to the function for the 
> public key file parameter and it will use the private key file parameter 
> instead.

It was missing in the documentation though. I've just now added it!

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Tue Jun 19 23:44:29 2012
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 q5JLiESj012201;
	Tue, 19 Jun 2012 23:44:25 +0200
Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com
 [209.85.216.182])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5JLiBwK012105
 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 19 Jun 2012 23:44:11 +0200
Received: by qcsg15 with SMTP id g15so3980528qcs.41
 for <libssh2-devel@cool.haxx.se>; Tue, 19 Jun 2012 14:44:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:sender:in-reply-to:references:date
 :x-google-sender-auth:message-id:subject:from:to:content-type;
 bh=27M6ACTnX6lYv66vT43NphbP9Y/pvrYyLCMxdPO0bTc=;
 b=pdpPmI/PcRTReL2ZRpp8FH3xkh3SEpdmrLcnR3NWYTTsNPyAtoFqhQ1C8aNV+lKRmy
 ldKGogvMeMvFKYt0rRldNPoypWpX6/YHmTYeN7Bn5/9iBsHb0H9Hf7tBpZZDHPjTwxse
 tElg0HBf3n1Rb1o5F0Nr7qV2iG3rw3wxXP9Kt5qt0Tsyk6UmFA6WJnShqL13r5uL7ZJe
 /4+u9LKQH4llaRmVQhy9gBRy7mlfI/YhW41eIOhjwo9AEJ7QTTVGUgdljIK0HCbCE93R
 uv9MxZ5ZXdbXfEF7Ch82FX3LgaNLRjf54fyrmxHHIbhb2+mtr/BnD0+L+YQxzCbXmuiG
 pUbg==
MIME-Version: 1.0
Received: by 10.224.184.207 with SMTP id cl15mr36533286qab.44.1340142246737;
 Tue, 19 Jun 2012 14:44:06 -0700 (PDT)
Received: by 10.229.61.90 with HTTP; Tue, 19 Jun 2012 14:44:06 -0700 (PDT)
In-Reply-To: <4FE0D356.3000006@langemeijer.eu>
References: <4FE0D356.3000006@langemeijer.eu>
Date: Tue, 19 Jun 2012 22:44:06 +0100
X-Google-Sender-Auth: WTr3WilcjkG70fWQ01jEt0REwEM
Message-ID: <CADyPeTNT56_4qu60EFzuvoF9192WMpg6_gTUr2KN5HArNQt8Qg@mail.gmail.com>
Subject: Re: Re-authenticate
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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 19 June 2012 20:30, Casper Langemeijer <casper@langemeijer.eu> wrote:
> Hi All,
>
> I'm trying to get the number of bugs on the ssh2 php bindings down a bit.
> One of the oldest open bugs is a request for a feature to re-authenticate:
>
> unfortunately it is not possible to re-use a SSH connection for several log
> ins (authentications). This would be *very* useful because it takes ages to
> establish a ssh connection, so one could save a lot of time if it were
> possible to re-login via ssh2_auth_password().
> Btw, the server hangs up if one tries to re-authenticate a second time.

What do you mean by reauthenticate/re-login?  One the connection has
been authenticated, that's it; the server won't de-authentication it.
If, on the other hand, the connection breaks then you have no
connection to revive.  Starting and authenticating from scratch
becomes the only option.

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  Wed Jun 20 02:53:13 2012
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 q5K0qiE9005562;
	Wed, 20 Jun 2012 02:53:06 +0200
Received: from foo.stuge.se (qmailr@foo.stuge.se [212.116.89.98])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id q5K0qhrc005548
 for <libssh2-devel@cool.haxx.se>; Wed, 20 Jun 2012 02:52:43 +0200
Received: (qmail 9010 invoked by uid 501); 20 Jun 2012 00:52:43 -0000
Message-ID: <20120620005243.9009.qmail@stuge.se>
Date: Wed, 20 Jun 2012 02:52:43 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Why does libssh2_userauth_publickey_fromfile_ex() require a
 public key?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <4FDA4957.30107@langemeijer.eu>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <4FDA4957.30107@langemeijer.eu>
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

Casper Langemeijer wrote:
> The public key should be easily extracted from private key

Tell the user that we would very much welcome a patch for libssh2
which does this also when linked against libgcrypt. It is obviously
not easy, or we would have done it long ago. Please send a patch.


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

From libssh2-devel-bounces@cool.haxx.se  Wed Jun 20 03:58:12 2012
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 q5K1vvbR006280;
	Wed, 20 Jun 2012 03:58:10 +0200
Received: from foo.stuge.se (qmailr@foo.stuge.se [212.116.89.98])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id q5K1vtN3006273
 for <libssh2-devel@cool.haxx.se>; Wed, 20 Jun 2012 03:57:55 +0200
Received: (qmail 14075 invoked by uid 501); 20 Jun 2012 01:57:55 -0000
Message-ID: <20120620015755.14074.qmail@stuge.se>
Date: Wed, 20 Jun 2012 03:57:55 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Re-authenticate
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <4FE0D356.3000006@langemeijer.eu>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <4FE0D356.3000006@langemeijer.eu>
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

Casper Langemeijer wrote:
> re-use a SSH connection for several log ins (authentications)

This is correct. The SSH protocol only ever does authentication once
for every session, at the beginning. After the session is
authenticated then it is possible to open many channels.

libssh2 exposes both these things in the API.


> re-authenticate a second time.
> 
> Can this be done with libssh2?

Can you explain in more detail what you want to do?


> Can this be done with the ssh protocol at all?

http://trac.libssh2.org/wiki/FAQ#WhatistheSSH-2protocol


After a session passes authentication there can be many channels.
Everything you use SSH for is a channel. The PHP plugin can choose
to reuse sessions transparently, in order to avoid creating new
sessions.

But under no circumstances can a single session be authenticated more
than once. That also does not make sense in protocol terms. Please do
look at the protocol RFCs. They are very very easy to read.


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jun 22 16:49:09 2012
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 q5MEmZIY014786;
	Fri, 22 Jun 2012 16:49:00 +0200
Received: from mail01.procurios.net (mail01.procurios.net [213.193.247.34])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5MEmYVo014778
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 22 Jun 2012 16:48:34 +0200
Received: from [172.24.1.65] (unknown [188.202.125.121])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: casper.casper)
 by mail01.procurios.net (Postfix) with ESMTPSA id 523611398142
 for <libssh2-devel@cool.haxx.se>; Fri, 22 Jun 2012 16:48:22 +0200 (CEST)
Message-ID: <4FE485BD.2020109@langemeijer.eu>
Date: Fri, 22 Jun 2012 16:48:29 +0200
From: Casper Langemeijer <casper@langemeijer.eu>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:13.0) Gecko/20120615 Thunderbird/13.0.1
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: Use OpenSSL or gcrypt?
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!

What is currently the best option to build libssh2 against?

I see three issues with gcrypt (password on private keyfiles, ~ in 
keyfile paths and public key must be provided) but debian, ubuntu and 
possibly other distro's build libssh2 against libgcrypt.

It would be nice we could tell them to build against OpenSSL instead if 
that is a better.

Also: It seems to matter what libssh2 was built against. It would be 
nice if I could ask libssh2 that information. Is that possible?

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

From libssh2-devel-bounces@cool.haxx.se  Sat Jun 23 09:09:05 2012
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 q5N78cvl016659;
	Sat, 23 Jun 2012 09:08:59 +0200
Received: from mail01.procurios.net (mail01.procurios.net [213.193.247.34])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5N78a8i016649
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Sat, 23 Jun 2012 09:08:36 +0200
Received: from [192.168.1.10] (535388CA.cm-6-4c.dynamic.ziggo.nl
 [83.83.136.202])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: casper.casper)
 by mail01.procurios.net (Postfix) with ESMTPSA id 54E86139813C
 for <libssh2-devel@cool.haxx.se>; Sat, 23 Jun 2012 09:08:32 +0200 (CEST)
Message-ID: <4FE56B74.2040304@php.net>
Date: Sat, 23 Jun 2012 09:08:36 +0200
From: Casper Langemeijer <langemeijer@php.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:13.0) Gecko/20120615 Thunderbird/13.0.1
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: EOF status after failed read
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="===============0815070811=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

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

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

Hi All,

I've discovered that libssh2_channel_eof() does not return 1 after 
libssh2_channel_read_ex() has returned an error (in my case 
LIBSSH2_ERROR_SOCKET_RECV)

The php binding ignored the error, and assumed channel_eof() would 
indicate if a channel was open. Of course I fixed this in the binding, I 
think there is almost no good reason for ignoring a error return value.

Is the behaviour of libssh2_channel_eof()intentional?

Greetings, Casper


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

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi All,<br>
    <br>
    I've discovered that
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <span style="color: rgb(0, 0, 0); font-family: sans-serif;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: normal; orphans: 2;
      text-align: -webkit-auto; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255); font-size: medium; display:
      inline !important; float: none; ">libssh2_channel_eof() does not
      return 1 after </span>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <span style="color: rgb(0, 0, 0); font-family: sans-serif;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: normal; orphans: 2;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: 2; word-spacing: 0px; background-color: rgb(255, 255,
      255); font-size: medium; display: inline ! important; float:
      none;">libssh2_channel_read_ex() has returned an error (in my case
      LIBSSH2_ERROR_SOCKET_RECV)<br>
      <br>
      The php binding ignored the error, and assumed channel_eof() would
      indicate if a channel was open. Of course I fixed this in the
      binding, I think there is almost no good reason for ignoring a
      error return value.<br>
      <br>
    </span><span style="color: rgb(0, 0, 0); font-family: sans-serif;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: normal; orphans: 2;
      text-indent: 0px; text-transform: none; white-space: normal;
      widows: 2; word-spacing: 0px; background-color: rgb(255, 255,
      255); font-size: medium; display: inline ! important; float:
      none;">Is the behaviour of </span><span style="color: rgb(0, 0,
      0); font-family: sans-serif; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255); font-size: medium; display: inline !important; float: none;
      ">libssh2_channel_eof()</span><span style="color: rgb(0, 0, 0);
      font-family: sans-serif; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: 2; text-align: -webkit-auto; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 2;
      word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255); font-size: medium; display: inline !important; float: none;
      "> intentional?</span><br>
    <span style="color: rgb(0, 0, 0); font-family: sans-serif;
      font-style: normal; font-variant: normal; font-weight: normal;
      letter-spacing: normal; line-height: normal; orphans: 2;
      text-align: -webkit-auto; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 2; word-spacing: 0px;
      -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255); font-size: medium; display:
      inline !important; float: none; "><br>
      Greetings, Casper<br>
      <br>
    </span>
  </body>
</html>

--------------030803070805060700050804--

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

--===============0815070811==--

From libssh2-devel-bounces@cool.haxx.se  Sat Jun 23 09:38:33 2012
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 q5N7cSO4006959;
	Sat, 23 Jun 2012 09:38:32 +0200
Received: from foo.stuge.se (qmailr@foo.stuge.se [212.116.89.98])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id q5N7cQoK006940
 for <libssh2-devel@cool.haxx.se>; Sat, 23 Jun 2012 09:38:26 +0200
Received: (qmail 14952 invoked by uid 501); 23 Jun 2012 07:38:26 -0000
Message-ID: <20120623073826.14951.qmail@stuge.se>
Date: Sat, 23 Jun 2012 09:38:26 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: EOF status after failed read
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <4FE56B74.2040304@php.net>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <4FE56B74.2040304@php.net>
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

Casper Langemeijer wrote:
> I've discovered that libssh2_channel_eof() does not return 1 after 
> libssh2_channel_read_ex() has returned an error (in my case 
> LIBSSH2_ERROR_SOCKET_RECV)
>
> The php binding ignored the error, and assumed channel_eof() would indicate 
> if a channel was open. Of course I fixed this in the binding, I think there 
> is almost no good reason for ignoring a error return value.
>
> Is the behaviour of libssh2_channel_eof()intentional?

A socket error doesn't mean that the channel has been closed. Some
socket errors are transient, even if I agree that this is rare.


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

From libssh2-devel-bounces@cool.haxx.se  Sat Jun 23 12:36:29 2012
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 q5NAa8G8029887;
	Sat, 23 Jun 2012 12:36:24 +0200
Received: from mail01.procurios.net (mail01.procurios.net [213.193.247.34])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5NAa6FW029874
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Sat, 23 Jun 2012 12:36:06 +0200
Received: from [192.168.1.10] (535388CA.cm-6-4c.dynamic.ziggo.nl
 [83.83.136.202])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: casper.casper)
 by mail01.procurios.net (Postfix) with ESMTPSA id 2980B139802B
 for <libssh2-devel@cool.haxx.se>; Sat, 23 Jun 2012 12:36:01 +0200 (CEST)
Message-ID: <4FE59C17.9090105@php.net>
Date: Sat, 23 Jun 2012 12:36:07 +0200
From: Casper Langemeijer <langemeijer@php.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:13.0) Gecko/20120615 Thunderbird/13.0.1
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: Re: EOF status after failed read
References: <4FE56B74.2040304@php.net> <20120623073826.14951.qmail@stuge.se>
In-Reply-To: <20120623073826.14951.qmail@stuge.se>
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 06/23/2012 09:38 AM, Peter Stuge wrote:
> A socket error doesn't mean that the channel has been closed. Some 
> socket errors are transient, even if I agree that this is rare.
LIBSSH2_ERROR_EAGAIN obviously, but I think that's it.
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Sat Jun 23 14:02:46 2012
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 q5NC2ST1015625;
	Sat, 23 Jun 2012 14:02:43 +0200
Received: from foo.stuge.se (qmailr@foo.stuge.se [212.116.89.98])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id q5NC2R5o015618
 for <libssh2-devel@cool.haxx.se>; Sat, 23 Jun 2012 14:02:27 +0200
Received: (qmail 3507 invoked by uid 501); 23 Jun 2012 12:02:27 -0000
Message-ID: <20120623120227.3506.qmail@stuge.se>
Date: Sat, 23 Jun 2012 14:02:27 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: EOF status after failed read
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <4FE56B74.2040304@php.net> <20120623073826.14951.qmail@stuge.se>
 <4FE59C17.9090105@php.net>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <4FE59C17.9090105@php.net>
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

Casper Langemeijer wrote:
>> A socket error doesn't mean that the channel has been closed.
>> Some socket errors are transient, even if I agree that this is rare.
> LIBSSH2_ERROR_EAGAIN obviously, but I think that's it.

That's a channel error. I wrote and meant socket error. See man recv


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

From libssh2-devel-bounces@cool.haxx.se  Sat Jun 23 17:59:20 2012
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 q5NFx455029186;
	Sat, 23 Jun 2012 17:59:16 +0200
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 q5NFx2kA029142
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Sat, 23 Jun 2012 17:59:02 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q5NFx1Hk029129
 for <libssh2-devel@cool.haxx.se>; Sat, 23 Jun 2012 17:59:01 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Sat, 23 Jun 2012 17:59:01 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Use OpenSSL or gcrypt?
In-Reply-To: <4FE485BD.2020109@langemeijer.eu>
Message-ID: <alpine.DEB.2.00.1206231754210.28168@tvnag.unkk.fr>
References: <4FE485BD.2020109@langemeijer.eu>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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, 22 Jun 2012, Casper Langemeijer wrote:

> What is currently the best option to build libssh2 against?

"best" using which measurement? There's no single best so there's no single 
answer.

> I see three issues with gcrypt (password on private keyfiles, ~ in keyfile 
> paths and public key must be provided) but debian, ubuntu and possibly other 
> distro's build libssh2 against libgcrypt.

I'm not aware of that second issue, can you elaborate? Did you find these 
issues documented anywhere or would you be able to start such a document?

I would also add that OpenSSL is faster than gcrypt for most algorthims afaik, 
and that the most significant difference between them that tend to make people 
choose one against the other is their licenses.

> It would be nice we could tell them to build against OpenSSL instead if that 
> is a better.

I don't think anyone will stop you.

> Also: It seems to matter what libssh2 was built against. It would be nice if 
> I could ask libssh2 that information. Is that possible?

I agree that it would be nice with a function for that but I don't think there 
is any!

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sat Jun 23 23:36:54 2012
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 q5NLacKp011944;
	Sat, 23 Jun 2012 23:36:50 +0200
Received: from vps1.hno.se (vps1.hno.se [IPv6:2a02:750:5::f0])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5NLaapD011918
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Sat, 23 Jun 2012 23:36:36 +0200
Received: from home.hno.se
 (c-a492e155.1160-1-64736c10.cust.bredbandsbolaget.se [85.225.146.164])
 (authenticated bits=128)
 by vps1.hno.se (8.14.4/8.14.4) with ESMTP id q5NLaZUk031894
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
 for <libssh2-devel@cool.haxx.se>; Sat, 23 Jun 2012 23:36:37 +0200
Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1])
 by home.hno.se (8.14.5/8.14.5) with ESMTP id q5NLZZp6011474
 for <libssh2-devel@cool.haxx.se>; Sat, 23 Jun 2012 23:35:35 +0200
Message-ID: <1340487335.18342.23.camel@home.hno.se>
Subject: Re: Use OpenSSL or gcrypt?
From: Henrik =?ISO-8859-1?Q?Nordstr=F6m?= <henrik@henriknordstrom.net>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Date: Sat, 23 Jun 2012 23:35:35 +0200
In-Reply-To: <4FE485BD.2020109@langemeijer.eu>
References: <4FE485BD.2020109@langemeijer.eu>
X-Mailer: Evolution 3.2.3 (3.2.3-3.fc16) 
Mime-Version: 1.0
X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00
 autolearn=ham version=3.3.2
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on home.hno.se
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

fre 2012-06-22 klockan 16:48 +0200 skrev Casper Langemeijer:

> It would be nice we could tell them to build against OpenSSL instead if 
> that is a better.

Debian do not like the OpenSSL license and is trying hard to get rid of
any OpenSSL dependencies. Several other distributions share this. 

> Also: It seems to matter what libssh2 was built against. It would be 
> nice if I could ask libssh2 that information. Is that possible?

How does it matter?

Regards
Henrik

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

From libssh2-devel-bounces@cool.haxx.se  Mon Jun 25 06:25:55 2012
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 q5P4PRWr002493;
	Mon, 25 Jun 2012 06:25:49 +0200
Received: from smtpbg55.qq.com (smtpbg55.qq.com [64.71.138.44])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id q5P4PP0u002409
 for <libssh2-devel@cool.haxx.se>; Mon, 25 Jun 2012 06:25:26 +0200
X-QQ-SSF: 00000000000000F0000000000000000
X-HAS-ATTACH: no
X-QQ-BUSINESS-ORIGIN: 2
X-Originating-IP: 113.108.246.0
X-QQ-STYLE: 
X-QQ-mid: webmail316t1340598314t9814870
From: "=?gb18030?B?o8Wj9qPlo/I=?=" <unix@vip.qq.com>
To: "=?gb18030?B?bGlic3NoMi1kZXZlbA==?=" <libssh2-devel@cool.haxx.se>
Subject: --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
Mime-Version: 1.0
Date: Mon, 25 Jun 2012 12:25:14 +0800
X-Priority: 3
Message-ID: <tencent_168D4F8C5ABD712D6CA51616@qq.com>
X-QQ-MIME: TCMime 1.0 by Tencent
X-Mailer: QQMail 2.x
X-QQ-Mailer: QQMail 2.x
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="===============0147973203=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

This is a multi-part message in MIME format.

--===============0147973203==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_4FE7E82A_08595EB8_495B9CAD"
Content-Transfer-Encoding: 8Bit

This is a multi-part message in MIME format.

------=_NextPart_4FE7E82A_08595EB8_495B9CAD
Content-Type: text/plain;
	charset="gb18030"
Content-Transfer-Encoding: base64

aGkNCiAgICBsaWJnY3J5cHQgaXMgY29tcGlsZWQgaW4gL3Vzci9sb2NhbC9hcHAvZXZlcnBh
bi90b29sDQogICAgYW5kIGNvbnRlbnRzIGlzOg0KLg0KLi9saWINCi4vbGliL2xpYmdwZy1l
cnJvci5zby4wLjcuMA0KLi9saWIvbGliZ3BnLWVycm9yLnNvLjANCi4vbGliL2xpYmdwZy1l
cnJvci5zbw0KLi9saWIvbGliZ3BnLWVycm9yLmxhDQouL2xpYi9saWJnY3J5cHQuc28uMTEu
Ny4wDQouL2xpYi9saWJnY3J5cHQuc28uMTENCi4vbGliL2xpYmdjcnlwdC5zbw0KLi9saWIv
bGliZ2NyeXB0LmxhDQouL2Jpbg0KLi9iaW4vZ3BnLWVycm9yDQouL2Jpbi9ncGctZXJyb3It
Y29uZmlnDQouL2Jpbi9kdW1wc2V4cA0KLi9iaW4vaG1hYzI1Ng0KLi9iaW4vbGliZ2NyeXB0
LWNvbmZpZw0KLi9pbmNsdWRlDQouL2luY2x1ZGUvZ3BnLWVycm9yLmgNCi4vaW5jbHVkZS9n
Y3J5cHQuaA0KLi9pbmNsdWRlL2djcnlwdC1tb2R1bGUuaA0KDQoNCg0KDQoNCndoZW4gaSB1
c2luZyAtLXdpdGgtbGliZ2NyeXB0LXByZWZpeD0vdXNyL2xvY2FsL2FwcC9ldmVycGFuL3Rv
b2wgdGhlbiBlcnJvciBpcyBhbHNvLg0KDQoNCmFueW9uZSBoZWxwIG1lPyB0a3Mu

------=_NextPart_4FE7E82A_08595EB8_495B9CAD
Content-Type: text/html;
	charset="gb18030"
Content-Transfer-Encoding: base64

PGRpdj5oaTwvZGl2PjxkaXY+Jm5ic3A7ICZuYnNwOyZuYnNwO2xpYmdjcnlwdCBpcyBjb21w
aWxlZCBpbiZuYnNwOy91c3IvbG9jYWwvYXBwL2V2ZXJwYW4vdG9vbDwvZGl2PjxkaXY+Jm5i
c3A7ICZuYnNwOyBhbmQgY29udGVudHMgaXM6PC9kaXY+PGRpdj48ZGl2Pi48L2Rpdj48ZGl2
Pi4vbGliPC9kaXY+PGRpdj4uL2xpYi9saWJncGctZXJyb3Iuc28uMC43LjA8L2Rpdj48ZGl2
Pi4vbGliL2xpYmdwZy1lcnJvci5zby4wPC9kaXY+PGRpdj4uL2xpYi9saWJncGctZXJyb3Iu
c288L2Rpdj48ZGl2Pi4vbGliL2xpYmdwZy1lcnJvci5sYTwvZGl2PjxkaXY+Li9saWIvbGli
Z2NyeXB0LnNvLjExLjcuMDwvZGl2PjxkaXY+Li9saWIvbGliZ2NyeXB0LnNvLjExPC9kaXY+
PGRpdj4uL2xpYi9saWJnY3J5cHQuc288L2Rpdj48ZGl2Pi4vbGliL2xpYmdjcnlwdC5sYTwv
ZGl2PjxkaXY+Li9iaW48L2Rpdj48ZGl2Pi4vYmluL2dwZy1lcnJvcjwvZGl2PjxkaXY+Li9i
aW4vZ3BnLWVycm9yLWNvbmZpZzwvZGl2PjxkaXY+Li9iaW4vZHVtcHNleHA8L2Rpdj48ZGl2
Pi4vYmluL2htYWMyNTY8L2Rpdj48ZGl2Pi4vYmluL2xpYmdjcnlwdC1jb25maWc8L2Rpdj48
ZGl2Pi4vaW5jbHVkZTwvZGl2PjxkaXY+Li9pbmNsdWRlL2dwZy1lcnJvci5oPC9kaXY+PGRp
dj4uL2luY2x1ZGUvZ2NyeXB0Lmg8L2Rpdj48ZGl2Pi4vaW5jbHVkZS9nY3J5cHQtbW9kdWxl
Lmg8L2Rpdj48L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2PndoZW4g
aSB1c2luZyAtLXdpdGgtbGliZ2NyeXB0LXByZWZpeD0vdXNyL2xvY2FsL2FwcC9ldmVycGFu
L3Rvb2wgdGhlbiBlcnJvciBpcyBhbHNvLjwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+YW55
b25lIGhlbHAgbWU/IHRrcy48L2Rpdj48ZGl2PiZuYnNwOyAmbmJzcDsmbmJzcDs8L2Rpdj48
ZGl2Pjxicj48L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2Pjxicj48L2Rpdj4=

------=_NextPart_4FE7E82A_08595EB8_495B9CAD--


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

--===============0147973203==--

From libssh2-devel-bounces@cool.haxx.se  Mon Jun 25 23:08:32 2012
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 q5PL8E6L024126;
	Mon, 25 Jun 2012 23:08:28 +0200
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 q5PL8DI6024119
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 25 Jun 2012 23:08:13 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q5PL8Duf024116
 for <libssh2-devel@cool.haxx.se>; Mon, 25 Jun 2012 23:08:13 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Mon, 25 Jun 2012 23:08: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: --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
In-Reply-To: <tencent_168D4F8C5ABD712D6CA51616@qq.com>
Message-ID: <alpine.DEB.2.00.1206252307240.31446@tvnag.unkk.fr>
References: <tencent_168D4F8C5ABD712D6CA51616@qq.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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, 25 Jun 2012, ???????? wrote:

>    libgcrypt is compiled in /usr/local/app/everpan/tool
>    and contents is:
>
> when i using --with-libgcrypt-prefix=/usr/local/app/everpan/tool then error 
> is also.
>
> anyone help me? tks.

After configure has run, check out the config.log to properly investigate 
which check that failed and why. If you can figure it out, then please paste 
the relevant parts of that file here for us to help you out!

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Tue Jun 26 20:07:55 2012
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 q5QI7Wdt031177;
	Tue, 26 Jun 2012 20:07:50 +0200
Received: from wp268.webpack.hosteurope.de (wp268.webpack.hosteurope.de
 [IPv6:2a01:488:42::50ed:8525])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5QI7UKr031105
 for <libssh2-devel@cool.haxx.se>; Tue, 26 Jun 2012 20:07:30 +0200
Received: from xdsl-87-78-254-170.netcologne.de ([87.78.254.170]
 helo=[10.38.1.4]); authenticated
 by wp268.webpack.hosteurope.de running ExIM with esmtpsa
 (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 id 1SjaAg-0000dY-Ta; Tue, 26 Jun 2012 20:07:27 +0200
From: Philipp Kalder <philipp@kalder.info>
Subject: Newbie Problem with "missing symbols"
Date: Tue, 26 Jun 2012 20:07:27 +0200
Message-Id: <848976E7-CF4E-47D6-9242-6F40AAA51D07@kalder.info>
To: libssh2-devel@cool.haxx.se
Mime-Version: 1.0 (Apple Message framework v1278)
X-Mailer: Apple Mail (2.1278)
X-bounce-key: webpack.hosteurope.de;philipp@kalder.info;1340734052;132d1cc4;
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q5QI7UKr031105
Cc: Philipp Kalder <philipp@kalder.info>
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

Hello there,

I'm just starting out getting deeper into a "curly bracket" Language. So I'm a fairly
unexperienced in debugging gcc/linker messages. Sadly this is what I get trying to
compile even an libssh2 sample.

I'm mostly coding in Python, from small scripts up to more complex, Object Oriented
stuff. For the smaller scripts I wrote a convenience wrapper around the python lib
Paramiko which is a library around ssh and the likes. Being able to execute commands
via ssh and parse the results is at the core of the most scripts I write. So I thought this
to be a good starting point for learning C/ Objective-C. Asking the Interwebs I found
libssh2 to be the proper library for this. However, after grabbing the latest tar-ball and compiling
it with the three-step:

./configure
(Here the summary of configure)
configure: summary of build options:

  version:          1.4.2
  Host type:        x86_64-apple-darwin11.4.0
  Install prefix:   /usr/local
  Compiler:         gcc
  Compiler flags:    -DLIBSSH2_DARWIN
  Library types:    Shared=yes, Static=yes
  Crypto library:   openssl: yes (AES-CTR: no) libgcrypt: no
  Debug build:      no
  Build examples:   yes
  Path to sshd:     /usr/sbin/sshd (only for self-tests)
  libz compression: yes

make

make install

I find myself stuck with a linker error that I just cannot solve. I "googled" a lot and found others with
similar, yet not the same problem. And most of the time the answer/solution was a bit too much for
me. Yet I have a suspicion that the solution is much simpler than I expect. As it seems for to be a
problem with the arch of the host. My Mac is a x86_64 machine and configure figured that one out
all right. But after I assembled a test programm, that was not complete but at a point where I could
try to build it, I got errors. So I decided to try and build an example that was provided (and already build)
with the tar-ball. But I get the same errors:

Undefined symbols for architecture x86_64:
  "_libssh2_init", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_session_init_ex", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_session_handshake", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_hostkey_hash", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_userauth_list", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_agent_init", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_agent_connect", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_agent_list_identities", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_agent_get_identity", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_agent_userauth", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_channel_open_ex", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_channel_setenv_ex", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_channel_request_pty_ex", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_channel_process_startup", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_channel_free", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_agent_disconnect", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_agent_free", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_session_disconnect_ex", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_session_free", referenced from:
      _main in cc6PUHa5.o
  "_libssh2_exit", referenced from:
      _main in cc6PUHa5.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status

---

I tried running gcc with verbosity on which yielded, on top of the above output:

Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
 /usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin11/4.2.1/cc1 -quiet -v -imultilib x86_64 -iprefix /usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/ -D__DYNAMIC__ ssh2_agent.c -fPIC -quiet -dumpbase ssh2_agent.c -mmacosx-version-min=10.7.4 -m64 -mtune=core2 -auxbase ssh2_agent -version -o /var/folders/bj/kx0hd0fd405cspwp6g9tvh5w0000gn/T//ccRkCGdH.s
ignoring nonexistent directory "/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include
 /usr/local/include
 /Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)
End of search list.
GNU C version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00) (i686-apple-darwin11)
	compiled by GNU C version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00).
GGC heuristics: --param ggc-min-expand=150 --param ggc-min-heapsize=131072
Compiler executable checksum: ee05ffc2102727aa16c85f6ae97aa56c
 /usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin11/4.2.1/as -arch x86_64 -force_cpusubtype_ALL -o /var/folders/bj/kx0hd0fd405cspwp6g9tvh5w0000gn/T//ccZFQXlh.o /var/folders/bj/kx0hd0fd405cspwp6g9tvh5w0000gn/T//ccRkCGdH.s
 /usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin11/4.2.1/collect2 -dynamic -arch x86_64 -macosx_version_min 10.7.4 -weak_reference_mismatches non-weak -o testBuild -lcrt1.10.6.o -L/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/x86_64 -L/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/x86_64 -L/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1 -L/usr/llvm-gcc-4.2/bin/../lib/gcc -L/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1 -L/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../.. -L/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../.. /var/folders/bj/kx0hd0fd405cspwp6g9tvh5w0000gn/T//ccZFQXlh.o -lSystem -lgcc -lSystem


---

So what got my attention was that gcc said:
Target: i686-apple-darwin11

Where as configure said:
Host type:        x86_64-apple-darwin11.4.0

And I tried building the lib with

./configure --build=i686_64-apple-darwin11

which finished successfully but gcc yields the same results.

So after a very long text I'm still stuck with:
ld: symbol(s) not found for architecture x86_64

Another hint, Xcode yields also something about the linker.
Unfortunately I'm writing this email on another mac as where I encountered the problem first.
ATM I'm unable to make Xcode on this machine find libssh2.h. But that is a problem to ignore.

So the question of the day, does anybody know what's wrong here? Wht do I need to change
to be able to even build the samples provided?

Best Regards,
Philipp




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

From libssh2-devel-bounces@cool.haxx.se  Wed Jun 27 08:50:29 2012
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 q5R6oBf9019166;
	Wed, 27 Jun 2012 08:50:25 +0200
Received: from wp268.webpack.hosteurope.de (wp268.webpack.hosteurope.de
 [IPv6:2a01:488:42::50ed:8525])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5R6oAJm019067
 for <libssh2-devel@cool.haxx.se>; Wed, 27 Jun 2012 08:50:10 +0200
Received: from xdsl-87-78-250-6.netcologne.de ([87.78.250.6] helo=[10.38.1.4]);
 authenticated
 by wp268.webpack.hosteurope.de running ExIM with esmtpsa
 (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 id 1Sjm4j-0007l8-B5; Wed, 27 Jun 2012 08:50:05 +0200
Mime-Version: 1.0 (Apple Message framework v1278)
Subject: Re: Newbie Problem with "missing symbols"
From: Philipp Kalder <philipp@kalder.info>
In-Reply-To: <848976E7-CF4E-47D6-9242-6F40AAA51D07@kalder.info>
Date: Wed, 27 Jun 2012 08:50:04 +0200
Message-Id: <530B10FA-73F5-487C-A6B7-8B1C0D035946@kalder.info>
References: <848976E7-CF4E-47D6-9242-6F40AAA51D07@kalder.info>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1278)
X-bounce-key: webpack.hosteurope.de;philipp@kalder.info;1340779811;377ca31d;
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q5R6oAJm019067
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

Hello,

just an update. I tried the same on a Linux VM with a very similar result.
Though the error message is different. This is either a result of different gcc versions
or the linux box just hasn't had the /usr/local/lib or /usr/local/include folder in it's PATH.

configure on the linux Box showed:

configure: summary of build options:

  version:          1.4.2
  Host type:        x86_64-unknown-linux-gnu
  Install prefix:   /usr/local
  Compiler:         gcc
  Compiler flags:   -g -O2
  Library types:    Shared=yes, Static=yes
  Crypto library:   openssl: no (AES-CTR: N/A) libgcrypt: yes
  Debug build:      no
  Build examples:   yes
  Path to sshd:      (only for self-tests)
  libz compression: no

And the build with % gcc -v ssh2_agent.c -o testBuild

showed up as below. Here the arch is the same.

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) 
COLLECT_GCC_OPTIONS='-v' '-o' 'testBuild' '-mtune=generic' '-march=x86-64'
 /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/cc1 -quiet -v ssh2_agent.c -D_FORTIFY_SOURCE=2 -quiet -dumpbase ssh2_agent.c -mtune=generic -march=x86-64 -auxbase ssh2_agent -version -fstack-protector -o /tmp/ccK5e7V7.s
GNU C (Ubuntu/Linaro 4.5.2-8ubuntu4) version 4.5.2 (x86_64-linux-gnu)
	compiled by GNU C version 4.5.2, GMP version 4.3.2, MPFR version 3.0.0-p8, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include
 /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include-fixed
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
GNU C (Ubuntu/Linaro 4.5.2-8ubuntu4) version 4.5.2 (x86_64-linux-gnu)
	compiled by GNU C version 4.5.2, GMP version 4.3.2, MPFR version 3.0.0-p8, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 9755ab75799195519479ef699703b13b
COLLECT_GCC_OPTIONS='-v' '-o' 'testBuild' '-mtune=generic' '-march=x86-64'
 as -V -Qy --64 -o /tmp/cc412T5h.o /tmp/ccK5e7V7.s
GNU assembler version 2.21.0 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.21.0.20110327
COMPILER_PATH=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/:/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/:/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/:/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/:/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../:/lib/:/usr/lib/:/usr/lib/x86_64-linux-gnu/
COLLECT_GCC_OPTIONS='-v' '-o' 'testBuild' '-mtune=generic' '-march=x86-64'
 /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/collect2 --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu -dynamic-linker /lib64/ld-linux-x86-64.so.2 -z relro -o testBuild /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../crt1.o /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../crti.o /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/crtbegin.o -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2 -L/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../.. -L/usr/lib/x86_64-linux-gnu /tmp/cc412T5h.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/crtend.o /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../crtn.o
/tmp/cc412T5h.o: In function `main':
ssh2_agent.c:(.text+0x8f): undefined reference to `libssh2_init'
ssh2_agent.c:(.text+0x185): undefined reference to `libssh2_session_init_ex'
ssh2_agent.c:(.text+0x19a): undefined reference to `libssh2_session_handshake'
ssh2_agent.c:(.text+0x1dd): undefined reference to `libssh2_hostkey_hash'
ssh2_agent.c:(.text+0x25a): undefined reference to `libssh2_userauth_list'
ssh2_agent.c:(.text+0x2c2): undefined reference to `libssh2_agent_init'
ssh2_agent.c:(.text+0x309): undefined reference to `libssh2_agent_connect'
ssh2_agent.c:(.text+0x349): undefined reference to `libssh2_agent_list_identities'
ssh2_agent.c:(.text+0x394): undefined reference to `libssh2_agent_get_identity'
ssh2_agent.c:(.text+0x3f1): undefined reference to `libssh2_agent_userauth'
ssh2_agent.c:(.text+0x4aa): undefined reference to `libssh2_channel_open_ex'
ssh2_agent.c:(.text+0x4ff): undefined reference to `libssh2_channel_setenv_ex'
ssh2_agent.c:(.text+0x53d): undefined reference to `libssh2_channel_request_pty_ex'
ssh2_agent.c:(.text+0x588): undefined reference to `libssh2_channel_process_startup'
ssh2_agent.c:(.text+0x5c5): undefined reference to `libssh2_channel_free'
ssh2_agent.c:(.text+0x5d9): undefined reference to `libssh2_agent_disconnect'
ssh2_agent.c:(.text+0x5e5): undefined reference to `libssh2_agent_free'
ssh2_agent.c:(.text+0x607): undefined reference to `libssh2_session_disconnect_ex'
ssh2_agent.c:(.text+0x613): undefined reference to `libssh2_session_free'
ssh2_agent.c:(.text+0x632): undefined reference to `libssh2_exit'
collect2: ld returned 1 exit status





On Jun 26, 2012, at 8:07 PM, Philipp Kalder wrote:

> Hello there,
> 
> I'm just starting out getting deeper into a "curly bracket" Language. So I'm a fairly
> unexperienced in debugging gcc/linker messages. Sadly this is what I get trying to
> compile even an libssh2 sample.
> 
> I'm mostly coding in Python, from small scripts up to more complex, Object Oriented
> stuff. For the smaller scripts I wrote a convenience wrapper around the python lib
> Paramiko which is a library around ssh and the likes. Being able to execute commands
> via ssh and parse the results is at the core of the most scripts I write. So I thought this
> to be a good starting point for learning C/ Objective-C. Asking the Interwebs I found
> libssh2 to be the proper library for this. However, after grabbing the latest tar-ball and compiling
> it with the three-step:
> 
> ./configure
> (Here the summary of configure)
> configure: summary of build options:
> 
>  version:          1.4.2
>  Host type:        x86_64-apple-darwin11.4.0
>  Install prefix:   /usr/local
>  Compiler:         gcc
>  Compiler flags:    -DLIBSSH2_DARWIN
>  Library types:    Shared=yes, Static=yes
>  Crypto library:   openssl: yes (AES-CTR: no) libgcrypt: no
>  Debug build:      no
>  Build examples:   yes
>  Path to sshd:     /usr/sbin/sshd (only for self-tests)
>  libz compression: yes
> 
> make
> 
> make install
> 
> I find myself stuck with a linker error that I just cannot solve. I "googled" a lot and found others with
> similar, yet not the same problem. And most of the time the answer/solution was a bit too much for
> me. Yet I have a suspicion that the solution is much simpler than I expect. As it seems for to be a
> problem with the arch of the host. My Mac is a x86_64 machine and configure figured that one out
> all right. But after I assembled a test programm, that was not complete but at a point where I could
> try to build it, I got errors. So I decided to try and build an example that was provided (and already build)
> with the tar-ball. But I get the same errors:
> 
> Undefined symbols for architecture x86_64:
>  "_libssh2_init", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_session_init_ex", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_session_handshake", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_hostkey_hash", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_userauth_list", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_agent_init", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_agent_connect", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_agent_list_identities", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_agent_get_identity", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_agent_userauth", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_channel_open_ex", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_channel_setenv_ex", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_channel_request_pty_ex", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_channel_process_startup", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_channel_free", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_agent_disconnect", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_agent_free", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_session_disconnect_ex", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_session_free", referenced from:
>      _main in cc6PUHa5.o
>  "_libssh2_exit", referenced from:
>      _main in cc6PUHa5.o
> ld: symbol(s) not found for architecture x86_64
> collect2: ld returned 1 exit status
> 
> ---
> 
> I tried running gcc with verbosity on which yielded, on top of the above output:
> 
> Using built-in specs.
> Target: i686-apple-darwin11
> Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
> Thread model: posix
> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
> /usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin11/4.2.1/cc1 -quiet -v -imultilib x86_64 -iprefix /usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/ -D__DYNAMIC__ ssh2_agent.c -fPIC -quiet -dumpbase ssh2_agent.c -mmacosx-version-min=10.7.4 -m64 -mtune=core2 -auxbase ssh2_agent -version -o /var/folders/bj/kx0hd0fd405cspwp6g9tvh5w0000gn/T//ccRkCGdH.s
> ignoring nonexistent directory "/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include"
> ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../../../i686-apple-darwin11/include"
> #include "..." search starts here:
> #include <...> search starts here:
> /usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/include
> /usr/local/include
> /Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include
> /usr/include
> /System/Library/Frameworks (framework directory)
> /Library/Frameworks (framework directory)
> End of search list.
> GNU C version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00) (i686-apple-darwin11)
> 	compiled by GNU C version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00).
> GGC heuristics: --param ggc-min-expand=150 --param ggc-min-heapsize=131072
> Compiler executable checksum: ee05ffc2102727aa16c85f6ae97aa56c
> /usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin11/4.2.1/as -arch x86_64 -force_cpusubtype_ALL -o /var/folders/bj/kx0hd0fd405cspwp6g9tvh5w0000gn/T//ccZFQXlh.o /var/folders/bj/kx0hd0fd405cspwp6g9tvh5w0000gn/T//ccRkCGdH.s
> /usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin11/4.2.1/collect2 -dynamic -arch x86_64 -macosx_version_min 10.7.4 -weak_reference_mismatches non-weak -o testBuild -lcrt1.10.6.o -L/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/x86_64 -L/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/x86_64 -L/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1 -L/usr/llvm-gcc-4.2/bin/../lib/gcc -L/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1 -L/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin11/4.2.1/../../.. -L/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/../../.. /var/folders/bj/kx0hd0fd405cspwp6g9tvh5w0000gn/T//ccZFQXlh.o -lSystem -lgcc -lSystem
> 
> 
> ---
> 
> So what got my attention was that gcc said:
> Target: i686-apple-darwin11
> 
> Where as configure said:
> Host type:        x86_64-apple-darwin11.4.0
> 
> And I tried building the lib with
> 
> ./configure --build=i686_64-apple-darwin11
> 
> which finished successfully but gcc yields the same results.
> 
> So after a very long text I'm still stuck with:
> ld: symbol(s) not found for architecture x86_64
> 
> Another hint, Xcode yields also something about the linker.
> Unfortunately I'm writing this email on another mac as where I encountered the problem first.
> ATM I'm unable to make Xcode on this machine find libssh2.h. But that is a problem to ignore.
> 
> So the question of the day, does anybody know what's wrong here? Wht do I need to change
> to be able to even build the samples provided?
> 
> Best Regards,
> Philipp
> 
> 
> 
> 
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
> 


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

From libssh2-devel-bounces@cool.haxx.se  Wed Jun 27 13:12:37 2012
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 q5RBCGch010056;
	Wed, 27 Jun 2012 13:12:32 +0200
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 q5RBCEi0010051
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 27 Jun 2012 13:12:14 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q5RBCESS010047
 for <libssh2-devel@cool.haxx.se>; Wed, 27 Jun 2012 13:12:14 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Wed, 27 Jun 2012 13:12:14 +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: Newbie Problem with "missing symbols"
In-Reply-To: <530B10FA-73F5-487C-A6B7-8B1C0D035946@kalder.info>
Message-ID: <alpine.DEB.2.00.1206271311070.22761@tvnag.unkk.fr>
References: <848976E7-CF4E-47D6-9242-6F40AAA51D07@kalder.info>
 <530B10FA-73F5-487C-A6B7-8B1C0D035946@kalder.info>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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, 27 Jun 2012, Philipp Kalder wrote:

> And the build with % gcc -v ssh2_agent.c -o testBuild

This command line clearly lacks -l and, unless you have the libssh2 installed 
in a system location, -L

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jun 27 13:23:40 2012
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 q5RBNbb4021557;
	Wed, 27 Jun 2012 13:23:40 +0200
Received: from dns-factory.at (mail.dns-factory.at [194.242.35.75])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5RBNZGw021538
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 27 Jun 2012 13:23:35 +0200
Received: from [172.17.100.7] lists@gknw.net [37.201.243.102]
 by dns-factory.at with NetMail SMTP Agent $Revision: 8582 $ on Novell NetWare
 via secured & encrypted transport (TLS);
 Wed, 27 Jun 2012 13:23:26 +0200
Message-ID: <4FEAED27.9010403@gknw.net>
Date: Wed, 27 Jun 2012 13:23:19 +0200
From: Guenter <lists@gknw.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de;
 rv:1.9.2.28) Gecko/20120306 Lightning/1.0b2 Thunderbird/3.1.20
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Newbie Problem with "missing symbols"
References: <848976E7-CF4E-47D6-9242-6F40AAA51D07@kalder.info>
 <530B10FA-73F5-487C-A6B7-8B1C0D035946@kalder.info>
In-Reply-To: <530B10FA-73F5-487C-A6B7-8B1C0D035946@kalder.info>
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q5RBNZGw021538
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"; Format="flowed"
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 q5RBNbb4021557

Hi Philipp,
Am 27.06.2012 08:50, schrieb Philipp Kalder:
> just an update. I tried the same on a Linux VM with a very similar result.
> Though the error message is different. This is either a result of different gcc versions
> or the linux box just hasn't had the /usr/local/lib or /usr/local/include folder in it's PATH.
>
> configure on the linux Box showed:
>
> configure: summary of build options:
>
>    version:          1.4.2
>    Host type:        x86_64-unknown-linux-gnu
>    Install prefix:   /usr/local
>    Compiler:         gcc
>    Compiler flags:   -g -O2
>    Library types:    Shared=yes, Static=yes
>    Crypto library:   openssl: no (AES-CTR: N/A) libgcrypt: yes
>    Debug build:      no
>    Build examples:   yes
>    Path to sshd:      (only for self-tests)
>    libz compression: no
>
> And the build with % gcc -v ssh2_agent.c -o testBuild
>
> showed up as below. Here the arch is the same.
you must tell the linker to link against libssh2:
% gcc -v ssh2_agent.c -o testBuild -lssh2

BTW. you can tell configure to build the shipping samples (IIRC with 
--enable-examples-build)

Gün.




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

From libssh2-devel-bounces@cool.haxx.se  Wed Jun 27 14:19:59 2012
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 q5RCJnuf004399;
	Wed, 27 Jun 2012 14:19:57 +0200
Received: from wp268.webpack.hosteurope.de (wp268.webpack.hosteurope.de
 [IPv6:2a01:488:42::50ed:8525])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5RCJIlZ003900
 for <libssh2-devel@cool.haxx.se>; Wed, 27 Jun 2012 14:19:18 +0200
Received: from pka.bk.hosteurope.de ([10.20.24.18]); authenticated
 by wp268.webpack.hosteurope.de running ExIM with esmtpsa
 (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 id 1SjrDG-0005KX-HN; Wed, 27 Jun 2012 14:19:14 +0200
Mime-Version: 1.0 (Apple Message framework v1278)
Subject: Re: Newbie Problem with "missing symbols"
From: Philipp Kalder <philipp@kalder.info>
In-Reply-To: <alpine.DEB.2.00.1206271311070.22761@tvnag.unkk.fr>
Date: Wed, 27 Jun 2012 14:19:14 +0200
Message-Id: <432CE24E-90E7-4F5B-828E-3C6C17511C62@kalder.info>
References: <848976E7-CF4E-47D6-9242-6F40AAA51D07@kalder.info>
 <530B10FA-73F5-487C-A6B7-8B1C0D035946@kalder.info>
 <alpine.DEB.2.00.1206271311070.22761@tvnag.unkk.fr>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1278)
X-bounce-key: webpack.hosteurope.de;philipp@kalder.info;1340799559;2ebeb4b1;
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q5RCJIlZ003900
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

Hello Daniel,

thank you. That was the culprit for the cmd line build.
I'll apply the proper build settings to the Xcode project as well.

Best Regards,
Philipp


On Jun 27, 2012, at 1:12 PM, Daniel Stenberg wrote:

> On Wed, 27 Jun 2012, Philipp Kalder wrote:
> 
>> And the build with % gcc -v ssh2_agent.c -o testBuild
> 
> This command line clearly lacks -l and, unless you have the libssh2 installed in a system location, -L
> 
> -- 
> 
> / daniel.haxx.se
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
> 


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

From libssh2-devel-bounces@cool.haxx.se  Wed Jun 27 14:21:27 2012
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 q5RCLQpM007305;
	Wed, 27 Jun 2012 14:21:27 +0200
Received: from wp268.webpack.hosteurope.de (wp268.webpack.hosteurope.de
 [IPv6:2a01:488:42::50ed:8525])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5RCLOn8007028
 for <libssh2-devel@cool.haxx.se>; Wed, 27 Jun 2012 14:21:24 +0200
Received: from [2a01:488:d00d::2024:18]; authenticated
 by wp268.webpack.hosteurope.de running ExIM with esmtpsa
 (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 id 1SjrFI-0006fv-CS; Wed, 27 Jun 2012 14:21:20 +0200
Mime-Version: 1.0 (Apple Message framework v1278)
Subject: Re: Newbie Problem with "missing symbols"
From: Philipp Kalder <philipp@kalder.info>
In-Reply-To: <4FEAED27.9010403@gknw.net>
Date: Wed, 27 Jun 2012 14:21:20 +0200
Message-Id: <4F0C0FFA-B1D0-489E-BF70-88ED783C5275@kalder.info>
References: <848976E7-CF4E-47D6-9242-6F40AAA51D07@kalder.info>
 <530B10FA-73F5-487C-A6B7-8B1C0D035946@kalder.info>
 <4FEAED27.9010403@gknw.net>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1278)
X-bounce-key: webpack.hosteurope.de;philipp@kalder.info;1340799685;99d78d99;
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q5RCLOn8007028
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 q5RCLQpM007305

Hello Guenter,

On Jun 27, 2012, at 1:23 PM, Guenter wrote:

> Hi Philipp,
> Am 27.06.2012 08:50, schrieb Philipp Kalder:
>> just an update. I tried the same on a Linux VM with a very similar result.
>> Though the error message is different. This is either a result of different gcc versions
>> or the linux box just hasn't had the /usr/local/lib or /usr/local/include folder in it's PATH.
>> 
>> configure on the linux Box showed:
>> 
>> configure: summary of build options:
>> 
>>   version:          1.4.2
>>   Host type:        x86_64-unknown-linux-gnu
>>   Install prefix:   /usr/local
>>   Compiler:         gcc
>>   Compiler flags:   -g -O2
>>   Library types:    Shared=yes, Static=yes
>>   Crypto library:   openssl: no (AES-CTR: N/A) libgcrypt: yes
>>   Debug build:      no
>>   Build examples:   yes
>>   Path to sshd:      (only for self-tests)
>>   libz compression: no
>> 
>> And the build with % gcc -v ssh2_agent.c -o testBuild
>> 
>> showed up as below. Here the arch is the same.
> you must tell the linker to link against libssh2:
> % gcc -v ssh2_agent.c -o testBuild -lssh2
> 
> BTW. you can tell configure to build the shipping samples (IIRC with --enable-examples-build)

Thanks for the proper cmd line command. It worked.
Regarding the building of the samples, this seems to be a default option.
I was debugging the failing build in Xcode trying to build in on CMD line.
The samples had been build automatically as I build libssh2, but thanks
for the hint.

Best Regards,
Philipp

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


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

From libssh2-devel-bounces@cool.haxx.se  Wed Jun 27 14:27:56 2012
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 q5RCRrQj014499;
	Wed, 27 Jun 2012 14:27:55 +0200
Received: from wp268.webpack.hosteurope.de (wp268.webpack.hosteurope.de
 [IPv6:2a01:488:42::50ed:8525])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5RCRqN8014450
 for <libssh2-devel@cool.haxx.se>; Wed, 27 Jun 2012 14:27:52 +0200
Received: from [2a01:488:d00d::2024:18]; authenticated
 by wp268.webpack.hosteurope.de running ExIM with esmtpsa
 (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 id 1SjrLY-0002DQ-AO; Wed, 27 Jun 2012 14:27:48 +0200
Subject: Re: Newbie Problem with "missing symbols" [SOLVED]
Mime-Version: 1.0 (Apple Message framework v1278)
From: Philipp Kalder <philipp@kalder.info>
In-Reply-To: <432CE24E-90E7-4F5B-828E-3C6C17511C62@kalder.info>
Date: Wed, 27 Jun 2012 14:27:48 +0200
Message-Id: <ABB52117-9301-49B2-8F39-FD7E67C42413@kalder.info>
References: <848976E7-CF4E-47D6-9242-6F40AAA51D07@kalder.info>
 <530B10FA-73F5-487C-A6B7-8B1C0D035946@kalder.info>
 <alpine.DEB.2.00.1206271311070.22761@tvnag.unkk.fr>
 <432CE24E-90E7-4F5B-828E-3C6C17511C62@kalder.info>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1278)
X-bounce-key: webpack.hosteurope.de;philipp@kalder.info;1340800073;2cdbca25;
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q5RCRqN8014450
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

Hello,

just to let you all know, Xcode now works as well.

Best Regards,
Philipp

On Jun 27, 2012, at 2:19 PM, Philipp Kalder wrote:

> Hello Daniel,
> 
> thank you. That was the culprit for the cmd line build.
> I'll apply the proper build settings to the Xcode project as well.
> 
> Best Regards,
> Philipp
> 
> 
> On Jun 27, 2012, at 1:12 PM, Daniel Stenberg wrote:
> 
>> On Wed, 27 Jun 2012, Philipp Kalder wrote:
>> 
>>> And the build with % gcc -v ssh2_agent.c -o testBuild
>> 
>> This command line clearly lacks -l and, unless you have the libssh2 installed in a system location, -L
>> 
>> -- 
>> 
>> / daniel.haxx.se
>> _______________________________________________
>> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>> 
> 
> 
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
> 


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

From libssh2-devel-bounces@cool.haxx.se  Wed Jun 27 23:38:34 2012
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 q5RLcF8Y002087;
	Wed, 27 Jun 2012 23:38:28 +0200
Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com
 [209.85.216.182])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5RLcDE0002022
 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 27 Jun 2012 23:38:14 +0200
Received: by qcsg15 with SMTP id g15so929649qcs.13
 for <libssh2-devel@cool.haxx.se>; Wed, 27 Jun 2012 14:38:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=ideadevice.com; s=google;
 h=mime-version:date:message-id:subject:from:to:content-type;
 bh=8GxQg9yxQgk1yno5WV2Hf32fX9y8q+3Gf+gKWmj79ko=;
 b=MKMAPnfg3MDoA+W4n//rD5eiccBzRIr4sgRKfs88hDWZERMzct1w5Q8OT+7o2lwaiO
 s5n4WcsfmWyxoS/AXpjXUBEZKqwanBVEPXVOEYp/U24NCA2gJqqotUkNkSwvrynR0nd0
 hoAUlwjOmhIzR4+ZAgUIebRK5RU5flN3Wsk9A=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=google.com; s=20120113;
 h=mime-version:date:message-id:subject:from:to:content-type
 :x-gm-message-state;
 bh=8GxQg9yxQgk1yno5WV2Hf32fX9y8q+3Gf+gKWmj79ko=;
 b=pzAf1HM6D74UYSJ585oZe28qz9FZjVSknF0Bk4uURouQXOjutqNUso3nQYwgRR3BZp
 BM3dLjrHizXajevroZZJfw/qK4yOugVPXSHs9HeNmmKTt1PKCI44NHwtt6xhJBkwdmy9
 iE29I+9kyFPkaUpDrHdNpcly0t3ADCuYwrDtGEGxKdA0ZM4UEuJk6kdc/FrbFwQGbvZh
 K0OkPJMNokyeyx+B1/qcpR1WTxCVMqQHaFdiZEEGVAcg/OE2TPIfT9vm6VjjGEwYvnz0
 xJ9qYyx2DZ6hraMohNOlqqHj5OOADhkZQK+s5gFZhFeyXwtCEBT3tfaeIUvXR8x//ztH
 rIRg==
MIME-Version: 1.0
Received: by 10.229.137.77 with SMTP id v13mr4592692qct.65.1340833089850; Wed,
 27 Jun 2012 14:38:09 -0700 (PDT)
Received: by 10.229.241.148 with HTTP; Wed, 27 Jun 2012 14:38:09 -0700 (PDT)
Date: Thu, 28 Jun 2012 03:08:09 +0530
Message-ID: <CAG+SKy7XVcY2o1wgCoZWfisOENgzW0K6zc0-LEUUGy9dCCn9YA@mail.gmail.com>
Subject: Is it possible to do session.startup and session.userauth_password in
 non blocking manner?
From: aalok sood <aalok@ideadevice.com>
To: libssh2-devel@cool.haxx.se
X-Gm-Message-State: ALoCoQnLO1FeOPfPkclikGpFETq6zNhYovnBdlMFSii4K4b6JA9sAvOUZIwjptg3Ump5RG4dU/sQ
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="===============1260490007=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============1260490007==
Content-Type: multipart/alternative; boundary=00235452fde8060df504c37b080f

--00235452fde8060df504c37b080f
Content-Type: text/plain; charset=ISO-8859-1

Hello

I have a nicely working ssh multiplexer using libssh2 in non blocking mode.
The non blocking mode works for read on the channel but I see that startup
and userauth_password methods of libssh2 session object are blocking

Link to my code snippet:
https://gist.github.com/3006745

Am I missing something here?

Thanks & Regards
Aalok Sood

--00235452fde8060df504c37b080f
Content-Type: text/html; charset=ISO-8859-1

Hello<div><br></div><div>I have a nicely working ssh multiplexer using libssh2 in non blocking mode. The non blocking mode works for read on the channel but I see that startup and userauth_password methods of libssh2 session object are blocking</div>
<div><br></div><div>Link to my code snippet:</div><div><a href="https://gist.github.com/3006745">https://gist.github.com/3006745</a></div><div><br></div><div>Am I missing something here?</div><div><br></div><div>Thanks &amp; Regards</div>
<div>Aalok Sood</div><div><br></div><div><br></div><div><br></div>

--00235452fde8060df504c37b080f--

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

--===============1260490007==--

From libssh2-devel-bounces@cool.haxx.se  Thu Jun 28 02:09:22 2012
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 q5S096v9004968;
	Thu, 28 Jun 2012 02:09:19 +0200
Received: from mail.panic.com (posh.panic.com [38.103.165.4])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5S094KF004837
 for <libssh2-devel@cool.haxx.se>; Thu, 28 Jun 2012 02:09:04 +0200
Received: from [10.0.0.171] (unknown [38.103.165.36])
 by mail.panic.com (Postfix) with ESMTPSA id 3DE275860BDB
 for <libssh2-devel@cool.haxx.se>; Wed, 27 Jun 2012 17:09:00 -0700 (PDT)
From: Dave Hayden <dave@panic.com>
Subject: data overload
Date: Wed, 27 Jun 2012 17:09:00 -0700
Message-Id: <83F5C913-3083-4622-8DFF-AA941812D882@panic.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Mime-Version: 1.0 (Apple Message framework v1278)
X-Mailer: Apple Mail (2.1278)
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 q5S094KF004837
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

At the head of _libssh2_channel_read(), a while loop calls _libssh2_transport_read(), after this comment:

> 	Process all pending incoming packets in all states in order to "even out" the network readings. Tests prove that this way produces faster transfers.


That makes sense for file transfers where the server will wait for an acknowledgement, but in the case of a terminal session that's firehosing data at us faster than we can process, that winds up filling up all available memory--instead of just the network buffer. I changed that code to

	read_packet = _libssh2_list_first(&session->packets);

	while ( read_packet == NULL && rc > 0 )
	{
		rc = _libssh2_transport_read(session);
		read_packet = _libssh2_list_first(&session->packets);
	}

and it appears to fix this problem. Maybe there should be a channel or session setting, choosing between the two? Or a limit on the number of packets the session will buffer?

Thanks!
-Dave


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

From libssh2-devel-bounces@cool.haxx.se  Thu Jun 28 02:50:29 2012
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 q5S0oGwL005926;
	Thu, 28 Jun 2012 02:50:24 +0200
Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com
 [209.85.216.182])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5S0oEKB005887
 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 28 Jun 2012 02:50:14 +0200
Received: by qcsg15 with SMTP id g15so1002727qcs.13
 for <libssh2-devel@cool.haxx.se>; Wed, 27 Jun 2012 17:50:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=ideadevice.com; s=google;
 h=mime-version:date:message-id:subject:from:to:content-type;
 bh=yMCJArzGA0opU353T+vAlwnLYDhAzlpSScsvsnqx8HE=;
 b=EGoOzaPRRUNElyg7rAU19N2WIRwY80vLIhzaaJndO5F6oEPuwpdQc7RHP9jp0Db/SV
 hfkYHWkO2/m1vh2eK/rKvmFmGmlu7/O9C24AJD0mCPXmONeNyfhu6lL5kN1NPJMprBQo
 xnNSCnHIgKSJ/vDNEae2NNW0ri5UNuf27EPdk=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=google.com; s=20120113;
 h=mime-version:date:message-id:subject:from:to:content-type
 :x-gm-message-state;
 bh=yMCJArzGA0opU353T+vAlwnLYDhAzlpSScsvsnqx8HE=;
 b=nvTgyxaQjsJqlr0e0u0RoTT3J6N7PfnrpgAt+q9WkfIzuDr01bkGyMNVyWhpLuOM0T
 8Vp6LEvWE5KEFz/3dXV5TLneuSstgfyPXae6HPM7zwjNHyF9W9mbUtt+zVTU3C8/FRSz
 9PAu0b7B9xObWN+tquItRwLSnI7zdxQ9igj6SbZajJywVVn5KNAYgwUw/qHgEug4qekj
 IJMUVtoiHkMRafr4O1bluvFtZz9lFyTsP3WIf25ny6aw6lw8sBC+1FPHYDvtelwHMog9
 DeCLAtTRTPjKPQNk7a3CS+QihxGZ+rdWT7xzPcpSl1sU/kXQ4Mdnh8L9y4irQGIC8pZi
 y4Iw==
MIME-Version: 1.0
Received: by 10.224.185.148 with SMTP id co20mr521133qab.4.1340844610234; Wed,
 27 Jun 2012 17:50:10 -0700 (PDT)
Received: by 10.229.241.148 with HTTP; Wed, 27 Jun 2012 17:50:10 -0700 (PDT)
Date: Thu, 28 Jun 2012 06:20:10 +0530
Message-ID: <CAG+SKy65UmyC=jNv8E-fwdXwGh8-JYAs17zC-J3D4XVuNuJYrA@mail.gmail.com>
Subject: which is the recommended python-binding for libssh2?
From: aalok sood <aalok@ideadevice.com>
To: libssh2-devel@cool.haxx.se
X-Gm-Message-State: ALoCoQkQBXurbTtelxraCSJKkUiNeyL6hC2FJyGrRKjIFKDjYkV7qmuWMPjeEh1wMOhn4QCFQyNP
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="===============1631933791=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============1631933791==
Content-Type: multipart/alternative; boundary=485b397dd697b1283104c37db617

--485b397dd697b1283104c37db617
Content-Type: text/plain; charset=ISO-8859-1



--485b397dd697b1283104c37db617
Content-Type: text/html; charset=ISO-8859-1

<br>

--485b397dd697b1283104c37db617--

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

--===============1631933791==--

From libssh2-devel-bounces@cool.haxx.se  Thu Jun 28 22:53:24 2012
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 q5SKr30U016764;
	Thu, 28 Jun 2012 22:53:18 +0200
Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com
 [209.85.216.47])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5SKqxBq016603
 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 28 Jun 2012 22:53:00 +0200
Received: by qabg1 with SMTP id g1so290823qab.20
 for <libssh2-devel@cool.haxx.se>; Thu, 28 Jun 2012 13:52:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=ideadevice.com; s=google;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :content-type; bh=QA8QYIyx9piAQOSYvche916N4X1FxN4OLwqY7ZoX+Ww=;
 b=HSTJUCHY0ru+d7fYYYF0P5wBfXhsi/BGBPfdjVSTwKjRS+rDlTnTym3cw0jRGWNClg
 Zp3jL2OK/XgvSAqcgiCzYK3e+g9qEMb4rzyloRgaFCpEPyOeFBLu8IEqvIWh++c6EdTf
 jIB820V8Gx8zvq2ZEtdUE1IXHxOBwocj7fpTE=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=google.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :content-type:x-gm-message-state;
 bh=QA8QYIyx9piAQOSYvche916N4X1FxN4OLwqY7ZoX+Ww=;
 b=bLOyGzV/FzbTE20obvey9lXyfPzXg50D7Xu0lBgPOOXEQCj6NiwGsKFYlOIlhblFwS
 O4UtsBNfn86etE+/ulhtgNaxD1cPH04efcGmATtYpqm4OPOG2MVdevy4JLjKHU7aqQxr
 oOgf/cYX8l+zSvQe+m22xMuOyW30V3gKad2E7ODS7SoQvGt6bkT3ZcjJdzyqDzxWeFWx
 ALg2RtynyaVguYhp0lWgFk41Ae4la2iw+BTpibVHPIxz7750CJHzwyP8ZPs9McBnXpRI
 ZLZS0mLQbVl/ka/AdOsXJ/Kin205p7KCH2bQQeZJ15Tj8I4TB8RBgxRER+Kaali9uwRF
 ujCA==
MIME-Version: 1.0
Received: by 10.224.58.201 with SMTP id i9mr5807132qah.39.1340916775036; Thu,
 28 Jun 2012 13:52:55 -0700 (PDT)
Received: by 10.229.153.193 with HTTP; Thu, 28 Jun 2012 13:52:54 -0700 (PDT)
In-Reply-To: <CAG+SKy7XVcY2o1wgCoZWfisOENgzW0K6zc0-LEUUGy9dCCn9YA@mail.gmail.com>
References: <CAG+SKy7XVcY2o1wgCoZWfisOENgzW0K6zc0-LEUUGy9dCCn9YA@mail.gmail.com>
Date: Fri, 29 Jun 2012 02:22:54 +0530
Message-ID: <CAG+SKy6Zs6bv5OezreNkpyt--L53G4QOgAJK76wiY1ofDPobMg@mail.gmail.com>
Subject: Re: Is it possible to do session.startup and session.userauth_password
 in non blocking manner?
From: aalok sood <aalok@ideadevice.com>
To: libssh2-devel@cool.haxx.se
X-Gm-Message-State: ALoCoQm49gNp2qLvrwM6CPmVyP83NDNQosSwEEfrrUiXqqak9treL31f4s+5s7OnueDoY41oE7s1
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="===============0839256421=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============0839256421==
Content-Type: multipart/alternative; boundary=20cf3074b4660ca5b704c38e84b5

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

Hello everyone

My apologies for sending python binding's snippet.

How do I make libssh2_session_startup(), libssh2_userauth_password() behave
in a non-blocking manner?

Thanks
Aalok

On Thu, Jun 28, 2012 at 3:08 AM, aalok sood <aalok@ideadevice.com> wrote:

> Hello
>
> I have a nicely working ssh multiplexer using libssh2 in non blocking
> mode. The non blocking mode works for read on the channel but I see that
> startup and userauth_password methods of libssh2 session object are blocking
>
> Link to my code snippet:
> https://gist.github.com/3006745
>
> Am I missing something here?
>
> Thanks & Regards
> Aalok Sood
>
>
>
>

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

Hello everyone<div><br></div><div>My apologies for sending python binding&#=
39;s snippet.</div><div><br></div><div>How do I make libssh2_session_startu=
p(), libssh2_userauth_password() behave in a non-blocking manner?=A0</div>
<div><br></div><div>Thanks</div><div>Aalok</div><div><br><div class=3D"gmai=
l_quote">On Thu, Jun 28, 2012 at 3:08 AM, aalok sood <span dir=3D"ltr">&lt;=
<a href=3D"mailto:aalok@ideadevice.com" target=3D"_blank">aalok@ideadevice.=
com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hello<div><br></div><div>I have a nicely wor=
king ssh multiplexer using libssh2 in non blocking mode. The non blocking m=
ode works for read on the channel but I see that startup and userauth_passw=
ord methods of libssh2 session object are blocking</div>

<div><br></div><div>Link to my code snippet:</div><div><a href=3D"https://g=
ist.github.com/3006745" target=3D"_blank">https://gist.github.com/3006745</=
a></div><div><br></div><div>Am I missing something here?</div><div><br></di=
v>
<div>Thanks &amp; Regards</div><span class=3D"HOEnZb"><font color=3D"#88888=
8">
<div>Aalok Sood</div><div><br></div><div><br></div><div><br></div>
</font></span></blockquote></div><br></div>

--20cf3074b4660ca5b704c38e84b5--

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

--===============0839256421==--

From libssh2-devel-bounces@cool.haxx.se  Thu Jun 28 23:38:58 2012
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 q5SLcoH9017319;
	Thu, 28 Jun 2012 23:38:56 +0200
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 q5SLcnse017313
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 28 Jun 2012 23:38:49 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id q5SLcmT8017308
 for <libssh2-devel@cool.haxx.se>; Thu, 28 Jun 2012 23:38:48 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Thu, 28 Jun 2012 23:38:48 +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: Is it possible to do session.startup and session.userauth_password
 in non blocking manner?
In-Reply-To: <CAG+SKy6Zs6bv5OezreNkpyt--L53G4QOgAJK76wiY1ofDPobMg@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1206282337290.19812@tvnag.unkk.fr>
References: <CAG+SKy7XVcY2o1wgCoZWfisOENgzW0K6zc0-LEUUGy9dCCn9YA@mail.gmail.com>
 <CAG+SKy6Zs6bv5OezreNkpyt--L53G4QOgAJK76wiY1ofDPobMg@mail.gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.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 Jun 2012, aalok sood wrote:

> How do I make libssh2_session_startup(), libssh2_userauth_password() behave 
> in a non-blocking manner?

Set mode non-blocking and then call the functions.

If they're not non-blocking then (when using the latest libssh2 version), 
there are bugs in there that we need to fix.

Can you provide source code examples that reproduce problems for us?

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sat Jun 30 22:17:32 2012
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 q5UKH4X3002441;
	Sat, 30 Jun 2012 22:17:24 +0200
Received: from mail-qc0-f182.google.com (mail-qc0-f182.google.com
 [209.85.216.182])
 by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id q5UKH1nx002279
 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Sat, 30 Jun 2012 22:17:02 +0200
Received: by qcsg15 with SMTP id g15so2542354qcs.41
 for <libssh2-devel@cool.haxx.se>; Sat, 30 Jun 2012 13:16:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=ideadevice.com; s=google;
 h=mime-version:date:message-id:subject:from:to:content-type;
 bh=Q7JZ9xwzVbmaf8mjFYe8OXFTuywz05g5g3Fm8st4tyk=;
 b=GEWLXU10e6Qx74X07li1lvJm6sxzi9ln6Lsj+j/rC+PvTigLHQCrUBc+7hr8aY1yu2
 pGaDjEtmFCBM+KXtBMz63g8P3XwVAtaLfsPl8DETnJnIsZpt21bdB6U7j48hEq989dzN
 V39Kntk0DFHYT6UhosWHKmYika/M8qs+xu4ew=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=google.com; s=20120113;
 h=mime-version:date:message-id:subject:from:to:content-type
 :x-gm-message-state;
 bh=Q7JZ9xwzVbmaf8mjFYe8OXFTuywz05g5g3Fm8st4tyk=;
 b=McVfzF1lK+vBbxB/sUq6oZEjPSkr0O9wVJXgev97CQ+k4y2lXq9UrvmmAphBukAmOq
 9/7imnEK31mKZTAAyGmeExs1bFtLU5Shaon3j1poFmRwZdcd2znGOBP+RGWOL4bHTrju
 x+I5suiodmLlV6WnTLydnXl570RE/wGRul99ETZc1qdkOVKqZuxZrsUPU9PTtUQ1BRK8
 MynF5ge0ugzGde/qAIfPOqknXweDUEgYx/EkfxRN+CcZkbR1JZjhPehVKd6UPITCYMyb
 fy4iWZXsIPfd/jzFK79fywxmj5NdvqWrn8p46v5LNTjHlT3LzadDAXZk4KFV7AMHX4uW
 10Pw==
MIME-Version: 1.0
Received: by 10.224.32.11 with SMTP id a11mr12857158qad.59.1341087416762; Sat,
 30 Jun 2012 13:16:56 -0700 (PDT)
Received: by 10.229.153.193 with HTTP; Sat, 30 Jun 2012 13:16:56 -0700 (PDT)
Date: Sun, 1 Jul 2012 01:46:56 +0530
Message-ID: <CAG+SKy6ZsUfx7xjB52SC4UUjZtkS2zgjo4JEZQApPnhQdMOn=w@mail.gmail.com>
Subject: Re: Re: Is it possible to do session.startup and
 session.userauth_password in non blocking manner?
From: aalok sood <aalok@ideadevice.com>
To: libssh2-devel@cool.haxx.se
X-Gm-Message-State: ALoCoQmUu6qCouhGLoRWnapYTUDcoKlRMeE/7c2amekF06zPopmREC2Hvq0y4JrVf7V30YNIvXLj
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="===============1969435867=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============1969435867==
Content-Type: multipart/alternative; boundary=20cf306f722a16bfca04c3b63fe1

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

Hi Daniel

Thanks a lot for replaying.

The issue was with the python bindings I was using. It was not compatible
with non blocking mode.
I have fixed that and would push it for merge.

I am glad to report that all libssh2 functions I used follow the non
blocking model.

I must thank you all for providing such awesome software.

Regards
Aalok
On Fri, Jun 29, 2012 at 3:30 PM, <libssh2-devel-request@cool.haxx.se> wrote:

> Send libssh2-devel mailing list submissions to
>         libssh2-devel@cool.haxx.se
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
> or, via email, send a message with subject or body 'help' to
>         libssh2-devel-request@cool.haxx.se
>
> You can reach the person managing the list at
>         libssh2-devel-owner@cool.haxx.se
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of libssh2-devel digest..."
>
>
> Today's Topics:
>
>    1. Re: Is it possible to do session.startup and
>       session.userauth_password in non blocking manner? (aalok sood)
>    2. Re: Is it possible to do session.startup and
>       session.userauth_password in non blocking manner? (Daniel Stenberg)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 29 Jun 2012 02:22:54 +0530
> From: aalok sood <aalok@ideadevice.com>
> To: libssh2-devel@cool.haxx.se
> Subject: Re: Is it possible to do session.startup and
>         session.userauth_password in non blocking manner?
> Message-ID:
>         <
> CAG+SKy6Zs6bv5OezreNkpyt--L53G4QOgAJK76wiY1ofDPobMg@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello everyone
>
> My apologies for sending python binding's snippet.
>
> How do I make libssh2_session_startup(), libssh2_userauth_password() behave
> in a non-blocking manner?
>
> Thanks
> Aalok
>
> On Thu, Jun 28, 2012 at 3:08 AM, aalok sood <aalok@ideadevice.com> wrote:
>
> > Hello
> >
> > I have a nicely working ssh multiplexer using libssh2 in non blocking
> > mode. The non blocking mode works for read on the channel but I see that
> > startup and userauth_password methods of libssh2 session object are
> blocking
> >
> > Link to my code snippet:
> > https://gist.github.com/3006745
> >
> > Am I missing something here?
> >
> > Thanks & Regards
> > Aalok Sood
> >
> >
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://cool.haxx.se/pipermail/libssh2-devel/attachments/20120629/30b0ca59/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Thu, 28 Jun 2012 23:38:48 +0200 (CEST)
> From: Daniel Stenberg <daniel@haxx.se>
> To: libssh2 development <libssh2-devel@cool.haxx.se>
> Subject: Re: Is it possible to do session.startup and
>         session.userauth_password in non blocking manner?
> Message-ID: <alpine.DEB.2.00.1206282337290.19812@tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Fri, 29 Jun 2012, aalok sood wrote:
>
> > How do I make libssh2_session_startup(), libssh2_userauth_password()
> behave
> > in a non-blocking manner?
>
> Set mode non-blocking and then call the functions.
>
> If they're not non-blocking then (when using the latest libssh2 version),
> there are bugs in there that we need to fix.
>
> Can you provide source code examples that reproduce problems for us?
>
> --
>
>   / daniel.haxx.se
>
>
> ------------------------------
>
> _______________________________________________
> libssh2-devel mailing list
> libssh2-devel@cool.haxx.se
> http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>
>
> End of libssh2-devel Digest, Vol 37, Issue 22
> *********************************************
>

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

Hi Daniel<div><br></div><div>Thanks a lot for replaying.=A0</div><div><br><=
/div><div>The issue was with the python bindings I was using. It was not co=
mpatible with non blocking mode.</div><div>I have fixed that and would push=
 it for merge.</div>
<div><br></div><div>I am glad to report that all libssh2 functions I used f=
ollow the non blocking model.</div><div><br></div><div>I must thank you all=
 for providing such awesome software.</div><div><br></div><div>Regards</div=
>
<div>Aalok<br><div class=3D"gmail_quote">On Fri, Jun 29, 2012 at 3:30 PM,  =
<span dir=3D"ltr">&lt;<a href=3D"mailto:libssh2-devel-request@cool.haxx.se"=
 target=3D"_blank">libssh2-devel-request@cool.haxx.se</a>&gt;</span> wrote:=
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Send libssh2-devel mailing list submissions =
to<br>
=A0 =A0 =A0 =A0 <a href=3D"mailto:libssh2-devel@cool.haxx.se">libssh2-devel=
@cool.haxx.se</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
=A0 =A0 =A0 =A0 <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/lib=
ssh2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/=
libssh2-devel</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
=A0 =A0 =A0 =A0 <a href=3D"mailto:libssh2-devel-request@cool.haxx.se">libss=
h2-devel-request@cool.haxx.se</a><br>
<br>
You can reach the person managing the list at<br>
=A0 =A0 =A0 =A0 <a 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 &quot;Re: Contents of libssh2-devel digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
=A0 =A01. Re: Is it possible to do session.startup and<br>
=A0 =A0 =A0 session.userauth_password in non blocking manner? (aalok sood)<=
br>
=A0 =A02. Re: Is it possible to do session.startup and<br>
=A0 =A0 =A0 session.userauth_password in non blocking manner? (Daniel Stenb=
erg)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 29 Jun 2012 02:22:54 +0530<br>
From: aalok sood &lt;<a href=3D"mailto:aalok@ideadevice.com">aalok@ideadevi=
ce.com</a>&gt;<br>
To: <a href=3D"mailto:libssh2-devel@cool.haxx.se">libssh2-devel@cool.haxx.s=
e</a><br>
Subject: Re: Is it possible to do session.startup and<br>
=A0 =A0 =A0 =A0 session.userauth_password in non blocking manner?<br>
Message-ID:<br>
=A0 =A0 =A0 =A0 &lt;<a href=3D"mailto:CAG%2BSKy6Zs6bv5OezreNkpyt--L53G4QOgA=
JK76wiY1ofDPobMg@mail.gmail.com">CAG+SKy6Zs6bv5OezreNkpyt--L53G4QOgAJK76wiY=
1ofDPobMg@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=3D&quot;iso-8859-1&quot;<br>
<br>
Hello everyone<br>
<br>
My apologies for sending python binding&#39;s snippet.<br>
<br>
How do I make libssh2_session_startup(), libssh2_userauth_password() behave=
<br>
in a non-blocking manner?<br>
<br>
Thanks<br>
Aalok<br>
<br>
On Thu, Jun 28, 2012 at 3:08 AM, aalok sood &lt;<a href=3D"mailto:aalok@ide=
adevice.com">aalok@ideadevice.com</a>&gt; wrote:<br>
<br>
&gt; Hello<br>
&gt;<br>
&gt; I have a nicely working ssh multiplexer using libssh2 in non blocking<=
br>
&gt; mode. The non blocking mode works for read on the channel but I see th=
at<br>
&gt; startup and userauth_password methods of libssh2 session object are bl=
ocking<br>
&gt;<br>
&gt; Link to my code snippet:<br>
&gt; <a href=3D"https://gist.github.com/3006745" target=3D"_blank">https://=
gist.github.com/3006745</a><br>
&gt;<br>
&gt; Am I missing something here?<br>
&gt;<br>
&gt; Thanks &amp; Regards<br>
&gt; Aalok Sood<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href=3D"http://cool.haxx.se/pipermail/libssh2-devel/attachments=
/20120629/30b0ca59/attachment-0001.html" target=3D"_blank">http://cool.haxx=
.se/pipermail/libssh2-devel/attachments/20120629/30b0ca59/attachment-0001.h=
tml</a>&gt;<br>

<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 28 Jun 2012 23:38:48 +0200 (CEST)<br>
From: Daniel Stenberg &lt;<a href=3D"mailto:daniel@haxx.se">daniel@haxx.se<=
/a>&gt;<br>
To: libssh2 development &lt;<a href=3D"mailto:libssh2-devel@cool.haxx.se">l=
ibssh2-devel@cool.haxx.se</a>&gt;<br>
Subject: Re: Is it possible to do session.startup and<br>
=A0 =A0 =A0 =A0 session.userauth_password in non blocking manner?<br>
Message-ID: &lt;<a href=3D"mailto:alpine.DEB.2.00.1206282337290.19812@tvnag=
.unkk.fr">alpine.DEB.2.00.1206282337290.19812@tvnag.unkk.fr</a>&gt;<br>
Content-Type: TEXT/PLAIN; charset=3DUS-ASCII; format=3Dflowed<br>
<br>
On Fri, 29 Jun 2012, aalok sood wrote:<br>
<br>
&gt; How do I make libssh2_session_startup(), libssh2_userauth_password() b=
ehave<br>
&gt; in a non-blocking manner?<br>
<br>
Set mode non-blocking and then call the functions.<br>
<br>
If they&#39;re not non-blocking then (when using the latest libssh2 version=
),<br>
there are bugs in there that we need to fix.<br>
<br>
Can you provide source code examples that reproduce problems for us?<br>
<br>
--<br>
<br>
=A0 / <a href=3D"http://daniel.haxx.se" target=3D"_blank">daniel.haxx.se</a=
><br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
libssh2-devel mailing list<br>
<a href=3D"mailto:libssh2-devel@cool.haxx.se">libssh2-devel@cool.haxx.se</a=
><br>
<a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel" targ=
et=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel</a=
><br>
<br>
<br>
End of libssh2-devel Digest, Vol 37, Issue 22<br>
*********************************************<br>
</blockquote></div><br></div>

--20cf306f722a16bfca04c3b63fe1--

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

--===============1969435867==--

