From libssh2-devel-bounces@cool.haxx.se  Fri Jan  1 16:23:03 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o01FMlv2005443;
	Fri, 1 Jan 2010 16:22:54 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o01FMkjt005434
	for <libssh2-devel@cool.haxx.se>; Fri, 1 Jan 2010 16:22:46 +0100
Date: Fri, 1 Jan 2010 16:22:46 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: RE: Unable to exchange encryption keys
In-Reply-To: <4B3CBCC2.5000300@ootbc.com>
Message-ID: <alpine.DEB.2.00.1001011620420.31607@tvnag.unkk.fr>
References: <mailman.9.1262257202.26029.libssh2-devel@cool.haxx.se>
	<4B3CBCC2.5000300@ootbc.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Thu, 31 Dec 2009, Oliver Nelson wrote:

>>    I don't have a very deep understanding of how SSH works.  I was under 
>> the impression that receiving the "Unable to exchange encryption keys" 
>> error I am getting was related to the reason that libssh2_session_hostkey 
>> isn't returning the hostkey.

As the negotiation failed and no SSH connection was made, there's not a valid 
session setup. Or what am I not understanding?

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan  1 18:07:58 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o01H7nfO008060;
	Fri, 1 Jan 2010 18:07:56 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o01H7mxJ008057
	for <libssh2-devel@cool.haxx.se>; Fri, 1 Jan 2010 18:07:48 +0100
Received: (qmail 14231 invoked by uid 501); 1 Jan 2010 17:07:47 -0000
Message-ID: <20100101170747.14230.qmail@stuge.se>
Date: Fri, 1 Jan 2010 18:07:47 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2 gmake check failed
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <26b41b990912290814o47390bbble95d8c585e14a461@mail.gmail.com>
	<87d41xpoc3.fsf@mocca.josefsson.org>
	<26b41b990912300743s744198fagfa4a46c67fc05e81@mail.gmail.com>
	<87fx6s73f5.fsf@mocca.josefsson.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <87fx6s73f5.fsf@mocca.josefsson.org>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Simon Josefsson wrote:
> >> > gmake[2]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/tests'
> >> > PASS: simple
> >> > Fingerprint: A0 90 21 22 20 7A 93 7F B9 7B 52 CE FA A6 08 7F
> >> > Authentication methods: publickey,password,keyboard-interactive
> >> >         Authentication by public key failed!
> >> > FAIL: ssh2.sh
> 
> Is this with OpenSSL or libgcrypt?

It would be helpful to have debug messages from the sshd that is
started in the test.

ctf, which version of OpenSSH do you have installed on this system?
You can check with the command: sshd -x


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan  1 19:38:08 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o01Ibu1K000361;
	Fri, 1 Jan 2010 19:38:04 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o01Ibsg2000353
	for <libssh2-devel@cool.haxx.se>; Fri, 1 Jan 2010 19:37:54 +0100
Received: (qmail 30265 invoked by uid 501); 1 Jan 2010 18:37:55 -0000
Message-ID: <20100101183755.30264.qmail@stuge.se>
Date: Fri, 1 Jan 2010 19:37:55 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Send special characters
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <1260110448.7605.6.camel@samuel-laptop>
	<20091206211629.1250.qmail@stuge.se>
	<1260136849.2794.10.camel@samuel-laptop>
	<200912062316.34963.kdudka@redhat.com>
	<1260207696.2803.6.camel@samuel-laptop>
	<20091208031013.17145.qmail@stuge.se>
	<1262103424.4507.4.camel@samuel-laptop>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <1262103424.4507.4.camel@samuel-laptop>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Samuel ROZE wrote:
> Actually, to fake a Ctrl-C command, I just have to send the ETX
> letter.
> (Number 3 in ASCII)

That will fail when using a different terminal emulation.

If you want to send a signal, you should use the protocol features
to _send signals_ instead of sending random binary bytes in a
channel, hoping that the software on the other side can guess what
you mean. There is a big difference, so you may end up having to do
it the right way later anyway.


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan  1 19:41:54 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o01IfoqB004264;
	Fri, 1 Jan 2010 19:41:51 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o01IfmKN004217
	for <libssh2-devel@cool.haxx.se>; Fri, 1 Jan 2010 19:41:48 +0100
Received: (qmail 31057 invoked by uid 501); 1 Jan 2010 18:41:49 -0000
Message-ID: <20100101184149.31056.qmail@stuge.se>
Date: Fri, 1 Jan 2010 19:41:49 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Re-use a session for others channels
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <1262104856.4507.11.camel@samuel-laptop>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <1262104856.4507.11.camel@samuel-laptop>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Samuel ROZE wrote:
> I've got an "Unable to request a channel from remote host" error
> because the libssh2_channel_open_session function didn't return a
> valid result.

In C you would call libssh2_channel_open_session() multiple times,
with the same session parameter, in order to open several channels
within one SSH session.

> 
> Is it a limitation of libssh2 or, normally, it can be done with
> libssh2 ?

C applications can easily open multiple channels using libssh2.


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan  1 19:43:36 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o01Ig67I004647;
	Fri, 1 Jan 2010 19:42:07 +0100
Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com
	[209.85.221.182])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o01Ig3pH004457
	for <libssh2-devel@cool.haxx.se>; Fri, 1 Jan 2010 19:42:04 +0100
Received: by qyk12 with SMTP id 12so172986qyk.21
	for <libssh2-devel@cool.haxx.se>; Fri, 01 Jan 2010 10:41:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=3E9q2gLhiIi4x5UABcE0jR4yS/CxEhMC+Id0s8PC4Qs=;
	b=qf34hfPQxGHrSyfzTUVEA7SC3dUBSwPXAt+3Urs4pq/v6A00yFHe3BrX1bWB65XJPA
	Rt7E5qiMPitVLBFA3TZ1DK93FE8pgFQw8IY4WCTB7X9OdXKp1r+W6L7pt4jZZ+iidr9X
	GdPXVEEvxhrh2HOg2Mt9YjsHOk2dwsPX7OcoE=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=dXddR/08EFyAzjBLHs9vCf1urH4T5ZEv2mcbtA2+Q5WgzCOzKdL/QGhw+hGd2AB9iQ
	uilTbjxzHTjjq9HuSiEwCF6cgoOTWBazklISIm/axKjiwfSnZ4cGQFKo9EVCr4mUiaM7
	3WcysUGfWrRdNEVEGLUxKzXwGu93eA0DDlbNc=
MIME-Version: 1.0
Received: by 10.229.90.68 with SMTP id h4mr8756814qcm.28.1262371319188; Fri, 
	01 Jan 2010 10:41:59 -0800 (PST)
In-Reply-To: <004801ca6741$faaa7250$efff56f0$@com>
References: <603122d70911161735n11a97bc6w8c8971298eb5af0@mail.gmail.com>
	<20091117031300.20107.qmail@stuge.se>
	<603122d70911162026v6ba3a34fic4d2d217f23336fa@mail.gmail.com>
	<004801ca6741$faaa7250$efff56f0$@com>
Date: Fri, 1 Jan 2010 10:41:59 -0800
Message-ID: <603122d71001011041m473db06bq4f3e916d54635eae@mail.gmail.com>
Subject: Re: SSH2 execute remote command question
From: salsa lover <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1909873754=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1909873754==
Content-Type: multipart/alternative; boundary=0016364ee45e0e0d01047c1eba0d

--0016364ee45e0e0d01047c1eba0d
Content-Type: text/plain; charset=ISO-8859-1

Hello !

I hope you will remember the discussion  we had on this topic.

I realized that I will not really be able to use the stdout of the executed
command on the remote server because it is being mostly used by the app
itself to communicate. So I'm wondering if there's a way to read stderr or
the best would be if i could find another way to send some messages back to
to the client through the ssh connection ? . Any suggestions ?

Thanks !

On Mon, Nov 16, 2009 at 8:54 PM, Neil Gierman <ngierman@roadrunn.com> wrote:

> And this one is just threads and libssh2:
>
> "A thread that loops on reading a non-blocking socket and updating
> your UI is also fine."
>
> Which one would you prefer ? I'm more bent on the second one since i never
> used select() before.
>
> Thanks !
>
> Alian
>
>
> I use a non-blocking socket and updating the UI (in my case a log file)
> with
> the output from the SSH exec command. Very simple and never had any issues
> with overhead.
>
> Neil
>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

Hello !<br><br>I hope you will remember the discussion=A0 we had on this to=
pic.<br><br>I realized that I will not really be able to use the stdout of =
the executed command on the remote server because it is being mostly used b=
y the app itself to communicate. So I&#39;m wondering if there&#39;s a way =
to read stderr or the best would be if i could find another way to send som=
e messages back to to the client through the ssh connection ? . Any suggest=
ions ?<br>
<br>Thanks !<br><br><div class=3D"gmail_quote">On Mon, Nov 16, 2009 at 8:54=
 PM, Neil Gierman <span dir=3D"ltr">&lt;<a href=3D"mailto:ngierman@roadrunn=
.com">ngierman@roadrunn.com</a>&gt;</span> wrote:<br><blockquote class=3D"g=
mail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt=
 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class=3D"im">And this one is just threads and libssh2:<br>
<br>
&quot;A thread that loops on reading a non-blocking socket and updating<br>
your UI is also fine.&quot;<br>
<br>
Which one would you prefer ? I&#39;m more bent on the second one since i ne=
ver<br>
used select() before.<br>
<br>
Thanks !<br>
<br>
Alian<br>
<br>
<br>
</div>I use a non-blocking socket and updating the UI (in my case a log fil=
e) with<br>
the output from the SSH exec command. Very simple and never had any issues<=
br>
with overhead.<br>
<font color=3D"#888888"><br>
Neil<br>
</font><div><div></div><div class=3D"h5"><br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</div></div></blockquote></div><br>

--0016364ee45e0e0d01047c1eba0d--

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

--===============1909873754==--

From libssh2-devel-bounces@cool.haxx.se  Fri Jan  1 19:44:43 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o01IibiO008462;
	Fri, 1 Jan 2010 19:44:40 +0100
Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com
	[209.85.221.182])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o01IiaMi008301
	for <libssh2-devel@cool.haxx.se>; Fri, 1 Jan 2010 19:44:36 +0100
Received: by qyk12 with SMTP id 12so173440qyk.21
	for <libssh2-devel@cool.haxx.se>; Fri, 01 Jan 2010 10:44:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:date:message-id:subject
	:from:to:content-type;
	bh=xDmOGh00MFUz89W/UAyx24SgjOQLEDVlXhIGcK3ZSpw=;
	b=xesYZbu+WhmH7Q1gX6QSH/C9ckg5erAfPX8UuJr+cA6MNp2ZOO5qIqBlz/UdzER+X+
	wc8g4MvYWcXAe8mMIimXpODoWBdnwnVrfIt+B/77Y7smHa9DoSw+QvWr4yPiOa1ijAGc
	Sg2FoPL/BGFGZNoalxNvnl+lD47nm7/3KdZE0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	b=LptO27yyMzWhSLCbLBT+SdR7NmO6LNY+SKx58iVRBxleRFNJt6edvehAudvBWOMY1o
	q47c0ODJ8uuV6+VqqwLi211t/ZJ7w91IJLMqDk7HeOwSvPpfz+KnHfAo0ij/p8CxuXGU
	pfhJUTnu4RochTxgy9rday35Nx/HLKdr/eEUQ=
MIME-Version: 1.0
Received: by 10.229.59.203 with SMTP id m11mr779424qch.94.1262371472138; Fri, 
	01 Jan 2010 10:44:32 -0800 (PST)
Date: Fri, 1 Jan 2010 10:44:32 -0800
Message-ID: <603122d71001011044u420ad9c4l7261addc1d461e97@mail.gmail.com>
Subject: block,non-block on same connection
From: salsa lover <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0881508243=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0881508243==
Content-Type: multipart/alternative; boundary=002354790cc82be193047c1ec354

--002354790cc82be193047c1ec354
Content-Type: text/plain; charset=ISO-8859-1

Hello !

Is it possible to create two sessions on the same connection one blocking
and another non-blocking ?

Thank you !

--002354790cc82be193047c1ec354
Content-Type: text/html; charset=ISO-8859-1

Hello !<br><br>Is it possible to create two sessions on the same connection one blocking and another non-blocking ?<br><br>Thank you !<br>

--002354790cc82be193047c1ec354--

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

--===============0881508243==--

From libssh2-devel-bounces@cool.haxx.se  Fri Jan  1 20:05:44 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o01J5dJC024687;
	Fri, 1 Jan 2010 20:05:43 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o01J5cFk024683
	for <libssh2-devel@cool.haxx.se>; Fri, 1 Jan 2010 20:05:38 +0100
Received: (qmail 2707 invoked by uid 501); 1 Jan 2010 19:05:39 -0000
Message-ID: <20100101190539.2706.qmail@stuge.se>
Date: Fri, 1 Jan 2010 20:05:39 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: block,non-block on same connection
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71001011044u420ad9c4l7261addc1d461e97@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <603122d71001011044u420ad9c4l7261addc1d461e97@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

salsa lover wrote:
> Is it possible to create two sessions on the same connection one
> blocking and another non-blocking ?

No. If you need to process input from more than one SSH channel or
file descriptor then you must use non-blocking I/O on everything.

Compare my direct_tcpip.c example with e.g. an SFTP or SCP example.

I consider this to be a fairly big problem in libssh2 that should be
fixed, but I think the API needs to change and I think we should have
at least one more release before that, quite possibly several.


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan  1 21:00:22 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o01K0EfQ025107;
	Fri, 1 Jan 2010 21:00:19 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o01K0Cgc024954
	for <libssh2-devel@cool.haxx.se>; Fri, 1 Jan 2010 21:00:12 +0100
Date: Fri, 1 Jan 2010 21:00:12 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: block,non-block on same connection
In-Reply-To: <20100101190539.2706.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1001012053340.20067@tvnag.unkk.fr>
References: <603122d71001011044u420ad9c4l7261addc1d461e97@mail.gmail.com>
	<20100101190539.2706.qmail@stuge.se>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Fri, 1 Jan 2010, Peter Stuge wrote:

> No. If you need to process input from more than one SSH channel or
> file descriptor then you must use non-blocking I/O on everything.

...

> I consider this to be a fairly big problem in libssh2 that should be fixed, 
> but I think the API needs to change and I think we should have at least one 
> more release before that, quite possibly several.

I disagree that this is a problem and even if you could consider it a problem 
it certainly cannot be seen as a bit one.

When you want to handle multiple streams, you use non-blocking APIs. That's 
not something libssh2 has invented, it's a well known and well used paradigm 
since ages. Why is this a problem at all?

If we wanted to, we could provide a function that allows different channels to 
be blocking / non-blocking but it would probably not be a very good idea 
anyway since the blocking one would risk somewhat destroy for the non-blocking 
ones.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan  2 04:31:16 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o023V4sg032117;
	Sat, 2 Jan 2010 04:31:10 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o023V1GJ032063
	for <libssh2-devel@cool.haxx.se>; Sat, 2 Jan 2010 04:31:02 +0100
Received: (qmail 13647 invoked by uid 501); 2 Jan 2010 03:31:01 -0000
Message-ID: <20100102033101.13646.qmail@stuge.se>
Date: Sat, 2 Jan 2010 04:31:00 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: block,non-block on same connection
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71001011044u420ad9c4l7261addc1d461e97@mail.gmail.com>
	<20100101190539.2706.qmail@stuge.se>
	<alpine.DEB.2.00.1001012053340.20067@tvnag.unkk.fr>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.00.1001012053340.20067@tvnag.unkk.fr>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg wrote:
> When you want to handle multiple streams, you use non-blocking
> APIs.

Or I could use select() together with blocking I/O.


> That's not something libssh2 has invented, it's a well known and
> well used paradigm since ages.

Yes, and that is true also for blocking I/O with select(). For me
personally that is even more well known than non-blocking.


> Why is this a problem at all?

The problem is that libssh2 design makes it impossible to use
blocking I/O - AFAIU only because you have bad experience from what
sounds to me like a very broken select() implementation in an as-yet
unnamed operating system. (Or several ones?)

If you doubt that blocking is impossible in the direct_tcpip.c
example then please convert it from non-blocking and run an
interactive ssh session (with OpenSSH or something else) on top of
the forwarded TCP port. I originally wrote the example using blocking
I/O in order to keep it as simple as possible, but unfortunately it
just can't work with the current API.


> If we wanted to, we could provide a function that allows different
> channels to be blocking / non-blocking but it would probably not be
> a very good idea anyway

Agree. I do like the idea to move I/O out of libssh2 and have the
library do processing only.

But, I like blocking I/O a whole lot better.


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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan  2 05:01:46 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0240Z2q024669;
	Sat, 2 Jan 2010 05:00:39 +0100
Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com
	[209.85.221.182])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0240XVB024546
	for <libssh2-devel@cool.haxx.se>; Sat, 2 Jan 2010 05:00:33 +0100
Received: by qyk12 with SMTP id 12so260477qyk.21
	for <libssh2-devel@cool.haxx.se>; Fri, 01 Jan 2010 20:00:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:date:message-id:subject
	:from:to:content-type;
	bh=iQ5sasn5Gq2pRtu71HdMAxjiolzndn02jqDNQ9vJFG8=;
	b=KyhErezd9SsG8c8M9e++MJssAz1BwURQqik508MyEreE6Df6lajZ/tVfj3t6r3hn5i
	rJg8qeRh6/adeSwQCfO1eN7VqI8W87l+wF5TE5E0hSprYZX+PFI5WqSjTNdcnsixwIIy
	eFc1qSAcVzfbeBmcr8VLZXBKXk4hWLxkjQo6E=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	b=PLAVcf21d8QKOXdFnivqAVTwa094DTK/ybhcqO/Bou3RdCU36QDVCcI4r7Yq0mVKKy
	NtMJP5py7r+goyuAhE2VtfXgjya/rKG7d87MqPS+t6u/RXfr5hr55lPEDJ2IShPpc8ab
	eP+ZBHjmguynA8sEJuAPGhMBkReFH3sLaZpWM=
MIME-Version: 1.0
Received: by 10.229.131.153 with SMTP id x25mr198686qcs.23.1262404828003; Fri, 
	01 Jan 2010 20:00:28 -0800 (PST)
Date: Fri, 1 Jan 2010 20:00:27 -0800
Message-ID: <603122d71001012000q56ddf1e7r7630faf075ad3d98@mail.gmail.com>
Subject: libssh2_exec read stderr ?
From: salsa lover <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1630245735=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1630245735==
Content-Type: multipart/alternative; boundary=0015175745bc55fdb8047c2687d2

--0015175745bc55fdb8047c2687d2
Content-Type: text/plain; charset=ISO-8859-1

Ok, so I'm still working on a client app using libssh2, it needs to execute
a remote app on a server and get report back maybe 100 bytes of data couple
times a second from it.
I bumped into two problems, one is that the remote app uses stdout
exculsively and thus it does not put and cannot output any reports to
stdout, so therefore all it's user messages go to stderr. I have not been
able to read anything from stderr via libss2_exec channel. So I'm pondering
what to do.
I'm wondering if there's a way to read stderr, or the best would be if i
could find another way to send some messages back to to the client through
the ssh connection ? Any suggestions, other than writing to a file and
reading it from the client side?

Thank you for all the suggestions so far !

Mark

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

Ok, so I&#39;m still working on a client app using libssh2, it needs to exe=
cute a remote app on a server and get report back maybe 100 bytes of data c=
ouple times a second from it.<br>I bumped into two problems, one is that th=
e remote app uses stdout exculsively and thus it does not put and cannot ou=
tput any reports to stdout, so therefore all it&#39;s user messages go to s=
tderr. I have not been able to read anything from stderr via libss2_exec ch=
annel. So I&#39;m pondering what to do.<br>
I&#39;m wondering if there&#39;s a way to
read stderr, or the best would be if i could find another way to send
some messages back to to the client through the ssh connection ? Any
suggestions, other than writing to a file and reading it from the client si=
de?<br>
<br>Thank you for all the suggestions so far !<br><br>Mark<br>

--0015175745bc55fdb8047c2687d2--

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

--===============1630245735==--

From libssh2-devel-bounces@cool.haxx.se  Sat Jan  2 06:01:09 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0250xs0002124;
	Sat, 2 Jan 2010 06:01:06 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0250wAj002093
	for <libssh2-devel@cool.haxx.se>; Sat, 2 Jan 2010 06:00:58 +0100
Received: (qmail 26825 invoked by uid 501); 2 Jan 2010 05:00:58 -0000
Message-ID: <20100102050058.26824.qmail@stuge.se>
Date: Sat, 2 Jan 2010 06:00:58 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2_exec read stderr ?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71001012000q56ddf1e7r7630faf075ad3d98@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <603122d71001012000q56ddf1e7r7630faf075ad3d98@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

salsa lover wrote:
> I'm wondering if there's a way to read stderr,

The SSH protocol has a way to do it, through
SSH_MSG_CHANNEL_EXTENDED_DATA packets on a channel otherwise sending
some other type of data.

libssh2 has a handy libssh2_channel_read_stderr() macro.


> or the best would be if i could find another way to send some
> messages back to to the client through the ssh connection ?

How generic must this be on the server side? If you control also what
is running on the server you could use a separate channel for the
status updates. It could exec or open up a subsystem or even a TCP
connection from the server side. (See the direct_tcpip.c example.)


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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan  2 06:53:32 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o025rQ0o009468;
	Sat, 2 Jan 2010 06:53:30 +0100
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o025rNn9009456
	for <libssh2-devel@cool.haxx.se>; Sat, 2 Jan 2010 06:53:23 +0100
Received: by qw-out-2122.google.com with SMTP id 8so556898qwh.41
	for <libssh2-devel@cool.haxx.se>; Fri, 01 Jan 2010 21:53:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=HNK0uLZU16tGJAIjXBE9jBLvZhF5u5rx93/2ljsG1M8=;
	b=mbyGbcF3ZimFxykHk/94NEqr1YkdIAl8mmuGPS+7Wp/qm1u3wdo7fWH5Z3eO2g0Gl2
	FayPnQWIgRN/gn2Xs4Y+e67gCJ6bjWH61AHx+RSmp0nzpjOrvH/hEJG0ifZ7gaQtfZ6x
	GQAv7t9j4qat/AedMUGFQS75Cbm2TMIrcgG/o=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=uzlLq6uGA8RTW0XcHlTkmNhPN/dMPk5eUihAQ9OjWFTsbfI1tAwU70n2wfzc2nvEHo
	/+vJuqttk3UEbDsKk1077/lJ1ncg1wtRi7YhlQ+Hv9MF6J9zYgEB5AHEYi09eSKJngfI
	sK6QAJog1QYBd3RM9q2eFo5v3qnIEs9gNNaOU=
MIME-Version: 1.0
Received: by 10.229.68.28 with SMTP id t28mr663943qci.95.1262411602952; Fri, 
	01 Jan 2010 21:53:22 -0800 (PST)
In-Reply-To: <20100102050058.26824.qmail@stuge.se>
References: <603122d71001012000q56ddf1e7r7630faf075ad3d98@mail.gmail.com>
	<20100102050058.26824.qmail@stuge.se>
Date: Fri, 1 Jan 2010 21:53:22 -0800
Message-ID: <603122d71001012153n604f86fhafe8bb913c1a9a5f@mail.gmail.com>
Subject: Re: libssh2_exec read stderr ?
From: salsa lover <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0364331089=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0364331089==
Content-Type: multipart/alternative; boundary=0021cc020bde2786dc047c281b33

--0021cc020bde2786dc047c281b33
Content-Type: text/plain; charset=ISO-8859-1

"How generic must this be on the server side? If you control also what
is running on the server you could use a separate channel for the
status updates. It could exec or open up a subsystem or even a TCP
connection from the server side. (See the direct_tcpip.c example.)"

I only need to read a set formated line in every other second to get all the
info i really need.
And I'd like this to be sent by the exec-ed app on the server. ( The one
that I executed and could be reading the stderr from)

P.S. thank you for letting me know about the stderr reading macro , This
might actually solve almost all my problems ! Of course a dedicated tcp/ip
would be ideal only trouble is i don't really how to work that. I don't see
the example code in the source tree. Am i missing something

Also I'm having to establish two connections one for sfttp functionality
blocking, and one for this one with non blocking for the exec channel, as i
understand there is no simpler way to do this.

Mark




On Fri, Jan 1, 2010 at 9:00 PM, Peter Stuge <peter@stuge.se> wrote:

> salsa lover wrote:
> > I'm wondering if there's a way to read stderr,
>
> The SSH protocol has a way to do it, through
> SSH_MSG_CHANNEL_EXTENDED_DATA packets on a channel otherwise sending
> some other type of data.
>
> libssh2 has a handy libssh2_channel_read_stderr() macro.
>
>
> > or the best would be if i could find another way to send some
> > messages back to to the client through the ssh connection ?
>
> How generic must this be on the server side? If you control also what
> is running on the server you could use a separate channel for the
> status updates. It could exec or open up a subsystem or even a TCP
> connection from the server side. (See the direct_tcpip.c example.)
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

<br>&quot;How generic must this be on the server side? If you control also =
what<br>
is running on the server you could use a separate channel for the<br>
status updates. It could exec or open up a subsystem or even a TCP<br>
connection from the server side. (See the direct_tcpip.c example.)&quot;<br=
><br>I only need to read a set formated line in every other second to get a=
ll the info i really need.<br>And I&#39;d like this to be sent by the exec-=
ed app on the server. ( The one that I executed and could be reading the st=
derr from)<br>
<br>P.S. thank you for letting me know about the stderr reading macro , Thi=
s might actually solve almost all my problems ! Of course a dedicated tcp/i=
p would be ideal only trouble is i don&#39;t really how to work that. I don=
&#39;t see the example code in the source tree. Am i missing something<br>
<br>Also I&#39;m having to establish two connections one for sfttp function=
ality blocking, and one for this one with non blocking for the exec channel=
, as i understand there is no simpler way to do this.<br><br>Mark<br><br>
<br><br><br><div class=3D"gmail_quote">On Fri, Jan 1, 2010 at 9:00 PM, Pete=
r Stuge <span dir=3D"ltr">&lt;<a href=3D"mailto:peter@stuge.se">peter@stuge=
.se</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"bor=
der-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-=
left: 1ex;">
<div class=3D"im">salsa lover wrote:<br>
&gt; I&#39;m wondering if there&#39;s a way to read stderr,<br>
<br>
</div>The SSH protocol has a way to do it, through<br>
SSH_MSG_CHANNEL_EXTENDED_DATA packets on a channel otherwise sending<br>
some other type of data.<br>
<br>
libssh2 has a handy libssh2_channel_read_stderr() macro.<br>
<div class=3D"im"><br>
<br>
&gt; or the best would be if i could find another way to send some<br>
&gt; messages back to to the client through the ssh connection ?<br>
<br>
</div>How generic must this be on the server side? If you control also what=
<br>
is running on the server you could use a separate channel for the<br>
status updates. It could exec or open up a subsystem or even a TCP<br>
connection from the server side. (See the direct_tcpip.c example.)<br>
<br>
<br>
//Peter<br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</blockquote></div><br>

--0021cc020bde2786dc047c281b33--

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

--===============0364331089==--

From libssh2-devel-bounces@cool.haxx.se  Sat Jan  2 10:07:01 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0296oxi006385;
	Sat, 2 Jan 2010 10:06:57 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0296nkt006379
	for <libssh2-devel@cool.haxx.se>; Sat, 2 Jan 2010 10:06:49 +0100
Date: Sat, 2 Jan 2010 10:06:49 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: block,non-block on same connection
In-Reply-To: <20100102033101.13646.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1001020940480.15447@tvnag.unkk.fr>
References: <603122d71001011044u420ad9c4l7261addc1d461e97@mail.gmail.com>
	<20100101190539.2706.qmail@stuge.se>
	<alpine.DEB.2.00.1001012053340.20067@tvnag.unkk.fr>
	<20100102033101.13646.qmail@stuge.se>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Sat, 2 Jan 2010, Peter Stuge wrote:

>> When you want to handle multiple streams, you use non-blocking
>> APIs.
>
> Or I could use select() together with blocking I/O.

You say this, but...

your definition of blocking operations that always do "short" reads and writes 
and never gets stuck on anything is virtually the same thing as non-blocking 
sockets so your blocking approach is hardly distinguishable from our current 
non-blocking way. Can you describe in clear terms how your "blocking i/o" 
would differ? If the calls always return write() and read() early and never 
blocks on any call that use the socket, then what's the difference and why 
does that make anything easier to an application?

I didn't invent non-blocking I/O and non-blocking has a purpose and has been 
used for ages. It is guaranteed to not block, while the blocking one can block 
at times. Multiplexing many streams CANNOT be done flawlessly and optimally in 
a single thread with blocking I/O. It can be made to work, yes. But that's not 
the same thing.

>> That's not something libssh2 has invented, it's a well known and well used 
>> paradigm since ages.
>
> Yes, and that is true also for blocking I/O with select(). For me personally 
> that is even more well known than non-blocking.

Yes, you can multiplex with blocking I/O and it's been done for ages and it 
mostly works too without problems. I wrote my first blocking I/O codes using 
select() in the early 90s. But during all this time there have been blocking 
and non-blocking operations. When we need to pick a blocking or a non-blocking 
call, it is kind of explicit that a call that blocks will ruin multiplexing to 
some degree. Quite possibly not significantly or even noticably in most cases, 
but blocking is blocking and blocking when an alternative would be 
non-blocking hampers multi-plexing.

Again, my understanding is that you say blocking I/O acts like the 
non-blocking I/O case so thus we won't gain anything from switching to 
blocking anyway...

>> Why is this a problem at all?
>
> The problem is that libssh2 design makes it impossible to use blocking I/O

I don't understand, but my question wasn't why you can't use blocking but why 
non-blocking is a problem.

libssh2 provides a blocking and a non-blocking I/O API, why does that make it 
impossible to use blocking I/O?

> - AFAIU only because you have bad experience from what sounds to me like a 
> very broken select() implementation in an as-yet unnamed operating system. 
> (Or several ones?)

Nope. Non-blocking I/O goes far beyond select() or any other single syscall. 
Non-blocking means that no operation on the file handle ever blocks. Blocking 
I/O implies that it can sometimes block. What else is the difference between 
blocking and non-blocking mode?

And again: your so called blocking I/O is never blocking anyway according to 
you so then by definition it will be non-blocking and that is exactly what we 
have today.

> If you doubt that blocking is impossible

I've never said that blocking is impossible. It is certainly possible, just 
inferior for the purposes where I use libssh2.

> I originally wrote the example using blocking I/O in order to keep it as 
> simple as possible, but unfortunately it just can't work with the current 
> API.

But we have a blocking API if you want it to be blocking. Why isn't that 
working? Isn't _that_ the problem we should fix?

> I do like the idea to move I/O out of libssh2 and have the library do 
> processing only.

That could be a cool approach, but couldn't we basically just provide an API 
that allows an app to provide its own recv() and send() functions?

Having the lib work on a buffer to generate a full output buffer to get 
returned (without any kind of callback) will be harder and possibly also cause 
even more memory copies.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Tue Jan  5 13:22:53 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o05CMoQE010636;
	Tue, 5 Jan 2010 13:22:51 +0100
Received: from ch3.sourceforge.net (ch3.sourceforge.net [216.34.181.60])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o05CMm6N010610
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 5 Jan 2010 13:22:49 +0100
Received: from www by d55xhf1.ch3.sourceforge.com with local (Exim 4.69)
	(envelope-from <noreply@sourceforge.net>)
	id 1NS8Qy-0004pf-Df; Tue, 05 Jan 2010 12:22:48 +0000
To: noreply@sourceforge.net
From: "SourceForge.net" <noreply@sourceforge.net>
Subject: [ libssh2-Bugs-2854355 ] ssh daemon drops connection if file size
	14MB or more
Mime-Version: 1.0
X-SourceForge-Tracker-unixname: libssh2
X-SourceForge-Tracker-trackerid: 703942
X-SourceForge-Tracker-itemid: 2854355
X-SourceForge-Tracker-itemstatus: Closed
X-SourceForge-Tracker-itemassignee: bagder
X-SourceForge-Tracker-itemupdate-reason: Settings changed
X-SourceForge-Tracker-itemupdate-username: schmittty
Message-Id: <E1NS8Qy-0004pf-Df@d55xhf1.ch3.sourceforge.com>
Date: Tue, 05 Jan 2010 12:22:48 +0000
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

QnVncyBpdGVtICMyODU0MzU1LCB3YXMgb3BlbmVkIGF0IDIwMDktMDktMDggMTU6NDcKTWVzc2Fn
ZSBnZW5lcmF0ZWQgZm9yIGNoYW5nZSAoU2V0dGluZ3MgY2hhbmdlZCkgbWFkZSBieSBzY2htaXR0
dHkKWW91IGNhbiByZXNwb25kIGJ5IHZpc2l0aW5nOiAKaHR0cHM6Ly9zb3VyY2Vmb3JnZS5uZXQv
dHJhY2tlci8/ZnVuYz1kZXRhaWwmYXRpZD03MDM5NDImYWlkPTI4NTQzNTUmZ3JvdXBfaWQ9MTI1
ODUyCgpQbGVhc2Ugbm90ZSB0aGF0IHRoaXMgbWVzc2FnZSB3aWxsIGNvbnRhaW4gYSBmdWxsIGNv
cHkgb2YgdGhlIGNvbW1lbnQgdGhyZWFkLAppbmNsdWRpbmcgdGhlIGluaXRpYWwgaXNzdWUgc3Vi
bWlzc2lvbiwgZm9yIHRoaXMgcmVxdWVzdCwKbm90IGp1c3QgdGhlIGxhdGVzdCB1cGRhdGUuCkNh
dGVnb3J5OiBTQ1AKR3JvdXA6IHYxLjAgKGV4YW1wbGUpCj5TdGF0dXM6IENsb3NlZApSZXNvbHV0
aW9uOiBXb3JrcyBGb3IgTWUKUHJpb3JpdHk6IDEKUHJpdmF0ZTogTm8KU3VibWl0dGVkIEJ5OiBB
bmRyZSAoc2NobWl0dHR5KQpBc3NpZ25lZCB0bzogRGFuaWVsIFN0ZW5iZXJnIChiYWdkZXIpClN1
bW1hcnk6IHNzaCBkYWVtb24gZHJvcHMgY29ubmVjdGlvbiBpZiBmaWxlIHNpemUgMTRNQiBvciBt
b3JlCgpJbml0aWFsIENvbW1lbnQ6CkhpIQoKQ3VycmVudGx5IEkgaGF2ZSBhbiBpc3N1ZSB0byBj
b3B5IGZpbGVzIGJpZ2dlciB0aGFuIDE0TUIgZnJvbSByZW1vdGUgaG9zdCB0byBsb2NhbCBob3N0
ICh0aGlzIGJhcnJpZXIgbWlnaHQgZGlmZmVyIG9uIG90aGVyKSBpZiBJIHVzZSB0aGUgbGlic3No
MiBsaWJyYXJ5IHZpYSBsaWJzc2gyX3NjcF9yZWN2KCkgYXBpIGNhbGwuIFNtYWxsZXIgZmlsZXMg
bGVzcyB0aGFuIDE0IE1CIGFyZSBjb3BpZWQgd2l0aG91dCBhbiBpc3N1ZSBmcm9tIHJlbW90ZSBo
b3N0IHRvIGxvY2FsIGhvc3QuIEZ1cnRoZXJtb3JlIHNjcCBjb21tYW5kIGZyb20gc2hlbGwgZG9l
c24ndCBzaG93IGFueSBpc3N1ZSBieSBjb3B5aW5nIGZpbGVzIGFib3ZlIDE0TUIgc2l6ZS4gRm9y
IHRoZSB0ZXN0IHRoZSBhdHRhY2hlZCBzb3VyY2Ug4oCcc2NwLmPigJ0gZnJvbSB0aGUgZXhhbXBs
ZS9zaW1wbGUgaXMgdXNlZCB3aXRoIHNtYWxsIG1vZGlmaWNhdGlvbi4KClRoZSBpZiBJIGxvb2sg
dG8gdGhlIGxpYnNzaDIgZGVidWcgaW5mb3JtYXRpb24gYW5kIHRjcCB0cmFjZSBJIHNlZSB0aGF0
IHRoZSBzc2ggZGFlbW9uIHJlZnVzZXMgdGhlIHRjcCBjb25uZWN0aW9uIGJ5IFRDUCBSRVNFVCBm
bGFnLiBDdXJyZW50bHkgSSBkb27igJl0IGhhdmUgZnVydGhlciB0cmFjZSBpbmZvcm1hdGlvbiBm
cm9tIHNzaCBkYWVtb24sIGFib3V0IGl0IHRoaXMgcXVpdGUgc3RyYW5nZSB0aGF0IHRoZSBzc2gg
ZGFlbW9uIHJlZnVzZSB0aGUgdGNwIGNvbm5lY3Rpb24gd2hlbiBtb3JlIGJ5dGVzIG5lZWQgdG8g
YmUgZXhjaGFuZ2VkIGJldHdlZW4gdGhlIHBlZXJzLgoKSSBob3BlIHlvdSBjYW4gbGV0IG1lIGtu
b3cgcm9vdCBjYXVzZSBmb3IgdGhlIOKAnHNjcCAtIGxpYnNzaDLigJ0gaXNzdWUuCgpTeXN0ZW0g
aW5mb3JtYXRpb246Ci0gU3VuIFNvbGFyaXMgU3BhcmMgNjQtYml0Ci0gT3BlbnNzbCBsaWJyYXJ5
IGlzIGNvbXBpbGVkIHdpdGggNjQtYml0IChmb3Igc3BhcmN2OSkKLSBsaWJzc2gyIGlzIGNvbXBp
bGVkIHdpdGggNjQtYml0ICh3aXRoIENGTEFHPW02NCkKLSBsaWJzc2gyIHVzZWQgT3BlbnNzbCBs
aWJyYXJ5Ci0gSXNzdWUgaXMgb2JzZXJ2ZWQgaWYgZmlsZXMgYXJlIGV4Y2hhbmdlZCBvbiBzaW5n
bGUgbWFjaGluZSBhbmQgYmV0d2VlbiB0d28gU3VuIFNvbGFyaXMgbWFjaGluZXMuCgpQbGVhc2Ug
bGV0IG1lIGtub3cgaWYgeW91IG5lZWQgZnVydGhlciBpbmZvcm1hdGlvbi4KClRoYW5rcyBmb3Ig
eW91ciBoZWxwIGluIGFkdmFuY2UuCiBBbmRyZQoKCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KCkNvbW1lbnQgQnk6
IEFuZHJlIChzY2htaXR0dHkpCkRhdGU6IDIwMTAtMDEtMDUgMTM6MjIKCk1lc3NhZ2U6Ck9mZmlj
aWFsIGZpeCwgUGF0Y2ggMTQzMTQwLTAyLCBpcyByZWxlYXNlZCBvbiBTdW5Tb2x2ZSBhbmQgcmVh
ZHkgZm9yIHVzZS4KSXRlbSB3aWxsIGJlIGNsb3NlZC4KCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KCkNvbW1lbnQg
Qnk6IEFuZHJlIChzY2htaXR0dHkpCkRhdGU6IDIwMDktMTEtMDQgMTY6NTAKCk1lc3NhZ2U6CkFm
dGVyIGF3aGlsZSBJIHJlY2VpdmVkIGEgcG9zaXRpdmUgcmVzcG9uc2UgYW5kIHRlbXBvcmFyeSBm
aXggKFNSIwo3MTYxMDgyOCkgZnJvbSBTdW4uIFRoZSBmaXggd29ya3MgZmluZSBhbmQgbm93IGl0
IGlzIHBvc3NpYmxlIHdpdGggdGhlIFN1bgpzc2ggZGFlbW9uIGFuZCBsaWJzc2gyIHRvIGNvcHkg
YmlnZ2VyIGZpbGVzLgoKU3VuIHBsYW5zIHRvIHByb3ZpZGUgdGhpcyBmaXggKGludGVyb3BlcmFi
aWxpdHkgZml4KSB3aXRoaW4gdGhlIG5leHQgdHdvCndlZWtzLCBpbiBoaXMgbmV4dCBzZXJ2aWNl
IHJlbGVhc2UuCgpQcm9ibGVtIHJlcG9ydCB3aWxsIGJlIGNsb3NlZCB3aGVuIHRoZSBvZmZpY2lh
bCBmaXggZnJvbSBTdW4gaXMKYXZhaWxhYmxlLgoKCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KCkNvbW1lbnQgQnk6
IERhbmllbCBTdGVuYmVyZyAoYmFnZGVyKQpEYXRlOiAyMDA5LTA5LTE3IDIzOjU4CgpNZXNzYWdl
OgpJIHJlcGhyYXNlZCB0aGUgc3VtbWFyeS4KCkJ1dCBzdGlsbCwgdGhpcyBpcyB0aGUgc2VydmVy
IGRyb3BwaW5nIGEgY29ubmVjdGlvbiB0aGF0IG90aGVyd2lzZSB3b3Jrcwp3aXRoIG90aGVyIHNl
cnZlcnMuIEkgY2FuJ3Qgc2VlIGhvdyB0aGlzIGlzbid0IHJhdGhlciBhIHNlcnZlci1zaWRlIGJ1
Zy4KCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0KCkNvbW1lbnQgQnk6IEFuZHJlIChzY2htaXR0dHkpCkRhdGU6IDIw
MDktMDktMDkgMTE6MTYKCk1lc3NhZ2U6CkluIG15IGNhc2UgU3VuIFNvbGFyaXMgU1NIIDEuMS4x
IGlzIHVzZWQsIHdoaWNoIG1pZ2h0IGJlIGJhc2VkIG9uIE9wZW5TU0gKMy41cDEgKGJhc2VkIG9u
IGluZm9ybWF0aW9uIGZyb20gb3BlbnNvbGFyaXMpLgoKLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQoKQ29tbWVudCBC
eTogYWxhbWFpc29uIChhbGFtYWlzb24pCkRhdGU6IDIwMDktMDktMDkgMTE6MDMKCk1lc3NhZ2U6
CldoaWNoIHZlcnNpb24gb2YgT3BlblNTSCBhcmUgeW91IGNvbm5lY3RpbmcgdG8/ICBJdCBsb29r
cyBsaWtlIHlvdSBtaWdodCBiZQpzdWZmZXJpbmcgdGhlIGZvbGxvd2luZyBTb2xhcmlzIE9wZW5T
U0ggYnVnOgpodHRwczovL2J1Z3ppbGxhLm1pbmRyb3Qub3JnL3Nob3dfYnVnLmNnaT9pZD0xMTMx
LiAgQXBwYXJlbnRseSwgaXQncyBmaXhlZAppbiB2NC40LgoKSFRICgpBbGV4CgotLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tCgpDb21tZW50IEJ5OiBBbmRyZSAoc2NobWl0dHR5KQpEYXRlOiAyMDA5LTA5LTA5IDEwOjM3
CgpNZXNzYWdlOgpZZXMsIHRoZSBvcmlnaW5hbCBzY3AuYyBleGFtcGxlIHNob3dzIHRoZSBzYW1l
IGJlaGF2aW91ci4KCkZ1cnRoZXJtb3JlIEkgYW5hbHlzZWQgdGhlIHNzaCBkYWVtb24gZGVidWcg
aW5mb3JtYXRpb24gYW5kIHNhdyBzZXZlcmFsCgoic3NoZFsyNzY4Nl06IFtJRCA4MDAwNDcgYXV0
aC5jcml0XSBmYXRhbDogYnVmZmVyX2FwcGVuZF9zcGFjZTogYWxsb2MKMTA0ODk4NTYgbm90IHN1
cHBvcnRlZCIKCnRyYWNlIG91dHB1dHMgYmVmb3JlIHRoZSBzc2ggZGFlbW9uIChzdW4gc3NoZCB2
ZXJzaW9uIFN1bl9TU0hfMS4xLjEpIGNsb3NlCnRoZSB0Y3AgY29ubmVjdGlvbiAocmVzcGVjdGl2
ZWx5IGluIHRoZSBzc2hkIHRyYWNlIHByaW50cyAiQ2FsbGluZyBjbGVhbnVwIgphbmQgImNoYW5u
ZWxfZnJlZSIpLgoKQW55IGlkZWEgd2hhdCBjYXVzZWQgdGhlIHNzaCBkYWVtb24gdG8gY2FsbCBi
dWZmZXJfYXBwZW5kX3NwYWNlPwoKVGhhbmtzCiBBbmRyZQoKLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQoKQ29tbWVu
dCBCeTogRGFuaWVsIFN0ZW5iZXJnIChiYWdkZXIpCkRhdGU6IDIwMDktMDktMDggMTk6NDMKCk1l
c3NhZ2U6CnNvIGRvZXMgdGhlIFVOTU9ESUZJRUQgc2NwLmMgZXhhbXBsZSB3b3JrPwoKLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLQoKWW91IGNhbiByZXNwb25kIGJ5IHZpc2l0aW5nOiAKaHR0cHM6Ly9zb3VyY2Vmb3Jn
ZS5uZXQvdHJhY2tlci8/ZnVuYz1kZXRhaWwmYXRpZD03MDM5NDImYWlkPTI4NTQzNTUmZ3JvdXBf
aWQ9MTI1ODUyCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
CmxpYnNzaDItZGV2ZWwgaHR0cDovL2Nvb2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGlu
Zm8vbGlic3NoMi1kZXZlbAo=

From libssh2-devel-bounces@cool.haxx.se  Tue Jan  5 13:22:59 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o05CMYW2010581;
	Tue, 5 Jan 2010 13:22:45 +0100
Received: from ch3.sourceforge.net (ch3.sourceforge.net [216.34.181.60])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o05CMWCI010561
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 5 Jan 2010 13:22:32 +0100
Received: from www by g45xhf1.ch3.sourceforge.com with local (Exim 4.69)
	(envelope-from <noreply@sourceforge.net>)
	id 1NS8Qc-0004eG-RU; Tue, 05 Jan 2010 12:22:26 +0000
To: noreply@sourceforge.net
From: "SourceForge.net" <noreply@sourceforge.net>
Subject: [ libssh2-Bugs-2854355 ] ssh daemon drops connection if file size
	14MB or more
Mime-Version: 1.0
X-SourceForge-Tracker-unixname: libssh2
X-SourceForge-Tracker-trackerid: 703942
X-SourceForge-Tracker-itemid: 2854355
X-SourceForge-Tracker-itemstatus: Open
X-SourceForge-Tracker-itemassignee: bagder
X-SourceForge-Tracker-itemupdate-reason: Comment added
X-SourceForge-Tracker-itemupdate-username: schmittty
Message-Id: <E1NS8Qc-0004eG-RU@g45xhf1.ch3.sourceforge.com>
Date: Tue, 05 Jan 2010 12:22:26 +0000
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

QnVncyBpdGVtICMyODU0MzU1LCB3YXMgb3BlbmVkIGF0IDIwMDktMDktMDggMTU6NDcKTWVzc2Fn
ZSBnZW5lcmF0ZWQgZm9yIGNoYW5nZSAoQ29tbWVudCBhZGRlZCkgbWFkZSBieSBzY2htaXR0dHkK
WW91IGNhbiByZXNwb25kIGJ5IHZpc2l0aW5nOiAKaHR0cHM6Ly9zb3VyY2Vmb3JnZS5uZXQvdHJh
Y2tlci8/ZnVuYz1kZXRhaWwmYXRpZD03MDM5NDImYWlkPTI4NTQzNTUmZ3JvdXBfaWQ9MTI1ODUy
CgpQbGVhc2Ugbm90ZSB0aGF0IHRoaXMgbWVzc2FnZSB3aWxsIGNvbnRhaW4gYSBmdWxsIGNvcHkg
b2YgdGhlIGNvbW1lbnQgdGhyZWFkLAppbmNsdWRpbmcgdGhlIGluaXRpYWwgaXNzdWUgc3VibWlz
c2lvbiwgZm9yIHRoaXMgcmVxdWVzdCwKbm90IGp1c3QgdGhlIGxhdGVzdCB1cGRhdGUuCkNhdGVn
b3J5OiBTQ1AKR3JvdXA6IHYxLjAgKGV4YW1wbGUpClN0YXR1czogT3BlbgpSZXNvbHV0aW9uOiBX
b3JrcyBGb3IgTWUKUHJpb3JpdHk6IDEKUHJpdmF0ZTogTm8KU3VibWl0dGVkIEJ5OiBBbmRyZSAo
c2NobWl0dHR5KQpBc3NpZ25lZCB0bzogRGFuaWVsIFN0ZW5iZXJnIChiYWdkZXIpClN1bW1hcnk6
IHNzaCBkYWVtb24gZHJvcHMgY29ubmVjdGlvbiBpZiBmaWxlIHNpemUgMTRNQiBvciBtb3JlCgpJ
bml0aWFsIENvbW1lbnQ6CkhpIQoKQ3VycmVudGx5IEkgaGF2ZSBhbiBpc3N1ZSB0byBjb3B5IGZp
bGVzIGJpZ2dlciB0aGFuIDE0TUIgZnJvbSByZW1vdGUgaG9zdCB0byBsb2NhbCBob3N0ICh0aGlz
IGJhcnJpZXIgbWlnaHQgZGlmZmVyIG9uIG90aGVyKSBpZiBJIHVzZSB0aGUgbGlic3NoMiBsaWJy
YXJ5IHZpYSBsaWJzc2gyX3NjcF9yZWN2KCkgYXBpIGNhbGwuIFNtYWxsZXIgZmlsZXMgbGVzcyB0
aGFuIDE0IE1CIGFyZSBjb3BpZWQgd2l0aG91dCBhbiBpc3N1ZSBmcm9tIHJlbW90ZSBob3N0IHRv
IGxvY2FsIGhvc3QuIEZ1cnRoZXJtb3JlIHNjcCBjb21tYW5kIGZyb20gc2hlbGwgZG9lc24ndCBz
aG93IGFueSBpc3N1ZSBieSBjb3B5aW5nIGZpbGVzIGFib3ZlIDE0TUIgc2l6ZS4gRm9yIHRoZSB0
ZXN0IHRoZSBhdHRhY2hlZCBzb3VyY2Ug4oCcc2NwLmPigJ0gZnJvbSB0aGUgZXhhbXBsZS9zaW1w
bGUgaXMgdXNlZCB3aXRoIHNtYWxsIG1vZGlmaWNhdGlvbi4KClRoZSBpZiBJIGxvb2sgdG8gdGhl
IGxpYnNzaDIgZGVidWcgaW5mb3JtYXRpb24gYW5kIHRjcCB0cmFjZSBJIHNlZSB0aGF0IHRoZSBz
c2ggZGFlbW9uIHJlZnVzZXMgdGhlIHRjcCBjb25uZWN0aW9uIGJ5IFRDUCBSRVNFVCBmbGFnLiBD
dXJyZW50bHkgSSBkb27igJl0IGhhdmUgZnVydGhlciB0cmFjZSBpbmZvcm1hdGlvbiBmcm9tIHNz
aCBkYWVtb24sIGFib3V0IGl0IHRoaXMgcXVpdGUgc3RyYW5nZSB0aGF0IHRoZSBzc2ggZGFlbW9u
IHJlZnVzZSB0aGUgdGNwIGNvbm5lY3Rpb24gd2hlbiBtb3JlIGJ5dGVzIG5lZWQgdG8gYmUgZXhj
aGFuZ2VkIGJldHdlZW4gdGhlIHBlZXJzLgoKSSBob3BlIHlvdSBjYW4gbGV0IG1lIGtub3cgcm9v
dCBjYXVzZSBmb3IgdGhlIOKAnHNjcCAtIGxpYnNzaDLigJ0gaXNzdWUuCgpTeXN0ZW0gaW5mb3Jt
YXRpb246Ci0gU3VuIFNvbGFyaXMgU3BhcmMgNjQtYml0Ci0gT3BlbnNzbCBsaWJyYXJ5IGlzIGNv
bXBpbGVkIHdpdGggNjQtYml0IChmb3Igc3BhcmN2OSkKLSBsaWJzc2gyIGlzIGNvbXBpbGVkIHdp
dGggNjQtYml0ICh3aXRoIENGTEFHPW02NCkKLSBsaWJzc2gyIHVzZWQgT3BlbnNzbCBsaWJyYXJ5
Ci0gSXNzdWUgaXMgb2JzZXJ2ZWQgaWYgZmlsZXMgYXJlIGV4Y2hhbmdlZCBvbiBzaW5nbGUgbWFj
aGluZSBhbmQgYmV0d2VlbiB0d28gU3VuIFNvbGFyaXMgbWFjaGluZXMuCgpQbGVhc2UgbGV0IG1l
IGtub3cgaWYgeW91IG5lZWQgZnVydGhlciBpbmZvcm1hdGlvbi4KClRoYW5rcyBmb3IgeW91ciBo
ZWxwIGluIGFkdmFuY2UuCiBBbmRyZQoKCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KCj5Db21tZW50IEJ5OiBBbmRy
ZSAoc2NobWl0dHR5KQpEYXRlOiAyMDEwLTAxLTA1IDEzOjIyCgpNZXNzYWdlOgpPZmZpY2lhbCBm
aXgsIFBhdGNoIDE0MzE0MC0wMiwgaXMgcmVsZWFzZWQgb24gU3VuU29sdmUgYW5kIHJlYWR5IGZv
ciB1c2UuCkl0ZW0gd2lsbCBiZSBjbG9zZWQuCgotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCgpDb21tZW50IEJ5OiBB
bmRyZSAoc2NobWl0dHR5KQpEYXRlOiAyMDA5LTExLTA0IDE2OjUwCgpNZXNzYWdlOgpBZnRlciBh
d2hpbGUgSSByZWNlaXZlZCBhIHBvc2l0aXZlIHJlc3BvbnNlIGFuZCB0ZW1wb3JhcnkgZml4IChT
UiMKNzE2MTA4MjgpIGZyb20gU3VuLiBUaGUgZml4IHdvcmtzIGZpbmUgYW5kIG5vdyBpdCBpcyBw
b3NzaWJsZSB3aXRoIHRoZSBTdW4Kc3NoIGRhZW1vbiBhbmQgbGlic3NoMiB0byBjb3B5IGJpZ2dl
ciBmaWxlcy4KClN1biBwbGFucyB0byBwcm92aWRlIHRoaXMgZml4IChpbnRlcm9wZXJhYmlsaXR5
IGZpeCkgd2l0aGluIHRoZSBuZXh0IHR3bwp3ZWVrcywgaW4gaGlzIG5leHQgc2VydmljZSByZWxl
YXNlLgoKUHJvYmxlbSByZXBvcnQgd2lsbCBiZSBjbG9zZWQgd2hlbiB0aGUgb2ZmaWNpYWwgZml4
IGZyb20gU3VuIGlzCmF2YWlsYWJsZS4KCgotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCgpDb21tZW50IEJ5OiBEYW5p
ZWwgU3RlbmJlcmcgKGJhZ2RlcikKRGF0ZTogMjAwOS0wOS0xNyAyMzo1OAoKTWVzc2FnZToKSSBy
ZXBocmFzZWQgdGhlIHN1bW1hcnkuCgpCdXQgc3RpbGwsIHRoaXMgaXMgdGhlIHNlcnZlciBkcm9w
cGluZyBhIGNvbm5lY3Rpb24gdGhhdCBvdGhlcndpc2Ugd29ya3MKd2l0aCBvdGhlciBzZXJ2ZXJz
LiBJIGNhbid0IHNlZSBob3cgdGhpcyBpc24ndCByYXRoZXIgYSBzZXJ2ZXItc2lkZSBidWcuCgot
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tCgpDb21tZW50IEJ5OiBBbmRyZSAoc2NobWl0dHR5KQpEYXRlOiAyMDA5LTA5
LTA5IDExOjE2CgpNZXNzYWdlOgpJbiBteSBjYXNlIFN1biBTb2xhcmlzIFNTSCAxLjEuMSBpcyB1
c2VkLCB3aGljaCBtaWdodCBiZSBiYXNlZCBvbiBPcGVuU1NICjMuNXAxIChiYXNlZCBvbiBpbmZv
cm1hdGlvbiBmcm9tIG9wZW5zb2xhcmlzKS4KCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KCkNvbW1lbnQgQnk6IGFs
YW1haXNvbiAoYWxhbWFpc29uKQpEYXRlOiAyMDA5LTA5LTA5IDExOjAzCgpNZXNzYWdlOgpXaGlj
aCB2ZXJzaW9uIG9mIE9wZW5TU0ggYXJlIHlvdSBjb25uZWN0aW5nIHRvPyAgSXQgbG9va3MgbGlr
ZSB5b3UgbWlnaHQgYmUKc3VmZmVyaW5nIHRoZSBmb2xsb3dpbmcgU29sYXJpcyBPcGVuU1NIIGJ1
ZzoKaHR0cHM6Ly9idWd6aWxsYS5taW5kcm90Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MTEzMS4gIEFw
cGFyZW50bHksIGl0J3MgZml4ZWQKaW4gdjQuNC4KCkhUSAoKQWxleAoKLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQoK
Q29tbWVudCBCeTogQW5kcmUgKHNjaG1pdHR0eSkKRGF0ZTogMjAwOS0wOS0wOSAxMDozNwoKTWVz
c2FnZToKWWVzLCB0aGUgb3JpZ2luYWwgc2NwLmMgZXhhbXBsZSBzaG93cyB0aGUgc2FtZSBiZWhh
dmlvdXIuCgpGdXJ0aGVybW9yZSBJIGFuYWx5c2VkIHRoZSBzc2ggZGFlbW9uIGRlYnVnIGluZm9y
bWF0aW9uIGFuZCBzYXcgc2V2ZXJhbAoKInNzaGRbMjc2ODZdOiBbSUQgODAwMDQ3IGF1dGguY3Jp
dF0gZmF0YWw6IGJ1ZmZlcl9hcHBlbmRfc3BhY2U6IGFsbG9jCjEwNDg5ODU2IG5vdCBzdXBwb3J0
ZWQiCgp0cmFjZSBvdXRwdXRzIGJlZm9yZSB0aGUgc3NoIGRhZW1vbiAoc3VuIHNzaGQgdmVyc2lv
biBTdW5fU1NIXzEuMS4xKSBjbG9zZQp0aGUgdGNwIGNvbm5lY3Rpb24gKHJlc3BlY3RpdmVseSBp
biB0aGUgc3NoZCB0cmFjZSBwcmludHMgIkNhbGxpbmcgY2xlYW51cCIKYW5kICJjaGFubmVsX2Zy
ZWUiKS4KCkFueSBpZGVhIHdoYXQgY2F1c2VkIHRoZSBzc2ggZGFlbW9uIHRvIGNhbGwgYnVmZmVy
X2FwcGVuZF9zcGFjZT8KClRoYW5rcwogQW5kcmUKCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KCkNvbW1lbnQgQnk6
IERhbmllbCBTdGVuYmVyZyAoYmFnZGVyKQpEYXRlOiAyMDA5LTA5LTA4IDE5OjQzCgpNZXNzYWdl
OgpzbyBkb2VzIHRoZSBVTk1PRElGSUVEIHNjcC5jIGV4YW1wbGUgd29yaz8KCi0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0KCllvdSBjYW4gcmVzcG9uZCBieSB2aXNpdGluZzogCmh0dHBzOi8vc291cmNlZm9yZ2UubmV0
L3RyYWNrZXIvP2Z1bmM9ZGV0YWlsJmF0aWQ9NzAzOTQyJmFpZD0yODU0MzU1Jmdyb3VwX2lkPTEy
NTg1MgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpsaWJz
c2gyLWRldmVsIGh0dHA6Ly9jb29sLmhheHguc2UvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL2xp
YnNzaDItZGV2ZWwK

From libssh2-devel-bounces@cool.haxx.se  Tue Jan  5 17:25:11 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o05GOv0i007563;
	Tue, 5 Jan 2010 17:25:07 +0100
Received: from relay-2.dnvr.twtelecom.net (relay-2.dnvr.twtelecom.net
	[64.129.67.72])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o05GOuvN007544
	for <libssh2-devel@cool.haxx.se>; Tue, 5 Jan 2010 17:24:57 +0100
Received: from localhost (unknown [127.0.0.1])
	by relay-2.dnvr.twtelecom.net (Postfix) with ESMTP id 7F5482FC084
	for <libssh2-devel@cool.haxx.se>; Tue,  5 Jan 2010 09:24:52 -0700 (MST)
X-Virus-Scanned: amavisd-new at twtelecom.net
Received: from relay-2.dnvr.twtelecom.net ([127.0.0.1])
	by localhost (relay-2.dnvr.twtelecom.net [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id MD29AlijxUo0 for <libssh2-devel@cool.haxx.se>;
	Tue,  5 Jan 2010 09:24:51 -0700 (MST)
Received: from univac.hallmarkins.internal (unknown [209.234.192.158])
	by relay-2.dnvr.twtelecom.net (Postfix) with ESMTP id F34DF2FC05A
	for <libssh2-devel@cool.haxx.se>; Tue,  5 Jan 2010 09:24:50 -0700 (MST)
Received: from [172.16.5.148] ([173.12.216.185])
	(authenticated user oliver@ootbc.com)
	by univac.hallmarkins.internal (Kerio MailServer 6.7.1)
	(using TLSv1/SSLv3 with cipher AES256-SHA (256 bits))
	for libssh2-devel@cool.haxx.se; Tue, 5 Jan 2010 08:24:49 -0800
Message-ID: <4B4367CF.60301@ootbc.com>
Date: Tue, 05 Jan 2010 08:24:47 -0800
From: Oliver Nelson <oliver@ootbc.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US;
	rv:1.9.1.5) Gecko/20091130 Thunderbird/3.0
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: RE: Unable to exchange encryption keys
References: <mailman.501.1262411605.2711.libssh2-devel@cool.haxx.se>
In-Reply-To: <mailman.501.1262411605.2711.libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On 1/1/2010 9:53 PM, libssh2-devel-request@cool.haxx.se wrote:
> Message: 1
> Date: Fri, 1 Jan 2010 16:22:46 +0100 (CET)
> From: Daniel Stenberg<daniel@haxx.se>
> To: libssh2 development<libssh2-devel@cool.haxx.se>
> Subject: RE: Unable to exchange encryption keys
> Message-ID:<alpine.DEB.2.00.1001011620420.31607@tvnag.unkk.fr>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Thu, 31 Dec 2009, Oliver Nelson wrote:
>
>    
>>> >>      I don't have a very deep understanding of how SSH works.  I was under
>>> >>  the impression that receiving the "Unable to exchange encryption keys"
>>> >>  error I am getting was related to the reason that libssh2_session_hostkey
>>> >>  isn't returning the hostkey.
>>>        
> As the negotiation failed and no SSH connection was made, there's not a valid
> session setup. Or what am I not understanding?
>
> If you look at the thread history you'll see that I am getting a successful connection even though I get this error and can't see the hostkey.  Also, the hash of the hostkey is correct.  I can login without a problem.  I'm using the connection in a port forwarding mode, and that works just fine.  But when I started the testing I wasn't doing any key verification.  I went to add that and came across this issue.
OLIVER


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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan  6 05:12:16 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o064C27A007239;
	Wed, 6 Jan 2010 05:12:10 +0100
Received: from ivory3.scn-net.ne.jp (ivory3.scn-net.ne.jp [219.117.176.191])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o064BwRU007181
	for <libssh2-devel@cool.haxx.se>; Wed, 6 Jan 2010 05:11:59 +0100
Received: from ([192.168.0.187]) (envelope sender: <ueno@unixuser.org>)
	by ivory3.scn-net.ne.jp with Active!Hunter esmtp server;
	Wed, 6 Jan 2010 13:11:55 +0900
Received: Received: from well-done.deisui.org (g187018.scn-net.ne.jp
	[202.83.187.18]) (authenticated)
	by blue17.scn-net.ne.jp (unknown) with ESMTP id o064Bt7a032081
	for <libssh2-devel@cool.haxx.se>; Wed, 6 Jan 2010 13:11:55 +0900
From: Daiki Ueno <ueno@unixuser.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2 master 1b3b7b2... Add test to check if the socket is
	connected.
References: <20091224075007.514.qmail@earth.stuge.se>
	<alpine.DEB.2.00.0912241056480.17033@tvnag.unkk.fr>
	<873a301vll.fsf@broken.deisui.org>
	<alpine.DEB.2.00.0912251918510.17033@tvnag.unkk.fr>
Date: Wed, 06 Jan 2010 13:11:53 +0900
In-Reply-To: <alpine.DEB.2.00.0912251918510.17033@tvnag.unkk.fr> (Daniel
	Stenberg's message of "Fri, 25 Dec 2009 19:19:53 +0100 (CET)")
Message-ID: <87hbqzeut2.fsf@broken.deisui.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg <daniel@haxx.se> writes:

>> BTW, related to portability (but a trifling issue), I would propose
>> eliminating "negative exit codes" in example/*.c.
>
> I just browsed through a few just now, but don't most of them return 0
> from main() ?

No, actually all the examples except ssh2_agent.c may return -1 on
failure.  For example:

    if (connect(sock, (struct sockaddr*)(&sin),
                sizeof(struct sockaddr_in)) != 0) {
        fprintf(stderr, "failed to connect!\n");
        return -1;
    }

in main() of ssh2.c.

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan  6 08:15:08 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o067ExvQ002678;
	Wed, 6 Jan 2010 08:15:06 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o067Evp2002671
	for <libssh2-devel@cool.haxx.se>; Wed, 6 Jan 2010 08:14:57 +0100
Date: Wed, 6 Jan 2010 08:14:57 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2 master 1b3b7b2... Add test to check if the socket is
	connected.
In-Reply-To: <87hbqzeut2.fsf@broken.deisui.org>
Message-ID: <alpine.DEB.2.00.1001060814190.28178@tvnag.unkk.fr>
References: <20091224075007.514.qmail@earth.stuge.se>
	<alpine.DEB.2.00.0912241056480.17033@tvnag.unkk.fr>
	<873a301vll.fsf@broken.deisui.org>
	<alpine.DEB.2.00.0912251918510.17033@tvnag.unkk.fr>
	<87hbqzeut2.fsf@broken.deisui.org>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Wed, 6 Jan 2010, Daiki Ueno wrote:

>    if (connect(sock, (struct sockaddr*)(&sin),
>                sizeof(struct sockaddr_in)) != 0) {
>        fprintf(stderr, "failed to connect!\n");
>        return -1;
>    }
>
> in main() of ssh2.c.

Oh, right. We should fix those even though I consider those mistakes rather 
minor as they are only examples...

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan  6 19:11:53 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o06IBcJQ028200;
	Wed, 6 Jan 2010 19:11:48 +0100
Received: from mail-pw0-f48.google.com (mail-pw0-f48.google.com
	[209.85.160.48])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o06IBa3m028195
	for <libssh2-devel@cool.haxx.se>; Wed, 6 Jan 2010 19:11:37 +0100
Received: by pwj14 with SMTP id 14so3301694pwj.7
	for <libssh2-devel@cool.haxx.se>; Wed, 06 Jan 2010 10:11:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:from:date:message-id
	:subject:to:content-type;
	bh=dJXXUHy3vgyPEozAl9H6DmJTMKGPkYE1zfnOjead22M=;
	b=Jo/vyDT20RUr5YqtZFKwex0ocHJUIjnyU4dI9K/In9qHOxiMJx7kP9IOlhDiwtvg7/
	4sfBa5t/3kzw3hVlNwL7cHWhoeUYE7ikOV+Yqny4MmTl6UWkfmSzEAmOJ/CQPFlcHT6Z
	spslyhaDVOMPkWewJY2e9MyaTV6gO4zF/P8UE=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:from:date:message-id:subject:to:content-type;
	b=QzhsMp67a7Q9P39wTq9C2FAd/m4PNQg1DctAABnRGLmkxMrYMP2zIYxyCRTsXGLVWW
	ZFdUWAGVNiO5iRXPjkpiUejhMgBAuUjynikowVqRJWFafr/9Yywu5OZMN29LYgzK5mtY
	k8IednH4pGeOpsotrFXMlUb65vMOKo+23hJwI=
MIME-Version: 1.0
Received: by 10.142.249.41 with SMTP id w41mr1554872wfh.347.1262801492095; 
	Wed, 06 Jan 2010 10:11:32 -0800 (PST)
From: Seth Grover <sethdgrover@gmail.com>
Date: Wed, 6 Jan 2010 11:11:12 -0700
Message-ID: <4f7c444e1001061011o3ff4b553r31e580e689298703@mail.gmail.com>
Subject: not getting all the data with libssh2_channel_exec and 
	libssh2_channel_read
To: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Greetings,

First, let me say that I'm new to this list (and libssh2 in general),
though I have spent the last several days researching, experimenting,
and reading mailing list archives. I hope that from my reading of past
mailing list submissions and the googling I've done that I'm not
coming to you with an oft-asked question. If so, please excuse me.

As for background on my system, I'm running my example on Ubuntu 9.10
x86 with libssh2-1 version 1.1.1 package (in libssh2.h I have #define
LIBSSH2_TIMESTAMP "Thu Apr  2 08:49:40 UTC 2009" and libssh2_version
returns "1.1").

I have slightly modified ssh2_exec.c for the purpose of this example.
I have provided the code I'm working with on pastebin:

http://pastebin.com/f2d9765eb

The problem I'm encountering is this:

When I run my program like so:

./ssh2_exec 1.2.3.4 user password 'ls -l /usr/lib'

I sometimes don't get all of the data before the loop breaks. Note
that the command 'ls -l /usr/lib' in my case is returning about 38000
bytes. Sometimes I get all of the data, but sometimes I'll get output
like this:

-------------------------------------------
1.1
Authentication by password succeeded
libssh2_channel_read returned -37
libssh2_channel_read returned -37
libssh2_channel_read returned -37
libssh2_channel_read returned -37
libssh2_channel_read returned -37
libssh2_channel_read returned 0

EXIT: 0 bytecount: 0
all done
-------------------------------------------

Note that in that case i didn't get ANY data, just
LIBSSH2_ERROR_EAGAIN several times and then libssh2_channel_read
returns 0 bytes, so the loop is exited. Other times I might read some
of the data, but libssh2_channel_read returns 0 before I got all of
it.

I experimented with libssh2_channel_eof but it didn't seem to help me.
What I did was modify the code right before the end of the while loop
to read thus:

-------------------------------------------
    if (rc == LIBSSH2_ERROR_EAGAIN) {
      fprintf(stderr, "told to wait...\n");
      waitsocket (sock, session);
    } else if (libssh2_channel_eof(channel)) {
      fprintf(stderr, "got libssh2_channel_eof, breaking\n");
      break;
    } else {
      fprintf(stderr, "got 0 bytes but no eof yet, sleeping\n");
      sleep(3);
    }
-------------------------------------------

When it works, the end of the output looks like this:

-------------------------------------------
libssh2_channel_read returned 0
got libssh2_channel_eof, breaking

EXIT: 0 bytecount: 38252
all done
-------------------------------------------

or this

-------------------------------------------
libssh2_channel_read returned -37
told to wait...
libssh2_channel_read returned 0
got libssh2_channel_eof, breaking

EXIT: 0 bytecount: 38252
all done
-------------------------------------------

but somtimes it looks like this:
-------------------------------------------
libssh2_channel_read returned -37
told to wait...
libssh2_channel_read returned 0
got 0 bytes but no eof yet, sleeping
libssh2_channel_read returned 0
got 0 bytes but no eof yet, sleeping
-------------------------------------------

and just loops forever, never receiving the EOF.

I have similar issues when i use blocking mode as well (but I really
need to use nonblocking mode).

I'm basically just trying to find the "correct" way to consistently
get ALL of the output from an executed command. Can anyone offer
suggestions?

Thanks,

-SG

--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.

Seth Grover
sethdgrover[at]gmail[dot]com
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Jan  6 21:30:44 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o06KUY31001772;
	Wed, 6 Jan 2010 21:30:41 +0100
Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com
	[209.85.221.175])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o06KUWhE001656
	for <libssh2-devel@cool.haxx.se>; Wed, 6 Jan 2010 21:30:32 +0100
Received: by qyk5 with SMTP id 5so7355701qyk.8
	for <libssh2-devel@cool.haxx.se>; Wed, 06 Jan 2010 12:30:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=+VDi24pYIdZZ05LJUc7AsCeuHCB2YJa0IQ3E94EEwwc=;
	b=iv4y2foLoPuRmqig27x1VXf25mTTPtsNmsr+ua1WgSlJdJTdMccuxy57Ta6LUs7U55
	58tOurp6yi0M75tWMosoDjeB80591QFdvealcstoE1nr8x15oOX25ebMcSP4e5ASfL49
	lMvoJkyijhq7V1oQu+9peh0NkQOZ4F2BY+ruM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=dI2izkuWVJpwTsyaJV/duhWl7Rc/IIdpYfjCx9qgys7uMn9IbM0OZ5e7NHzIe9HAg4
	cpydJ+Pcq+yR6bzSNDhVxQ7yCMtrKKJJ8SGTTWKyI99vcGz+b8fMbdGlQl8WASgzzAPY
	squQ4fWVatovxegKE3qL1y3V35CZH9YZxFWyI=
MIME-Version: 1.0
Received: by 10.229.15.203 with SMTP id l11mr11386524qca.43.1262809828109; 
	Wed, 06 Jan 2010 12:30:28 -0800 (PST)
In-Reply-To: <4f7c444e1001061011o3ff4b553r31e580e689298703@mail.gmail.com>
References: <4f7c444e1001061011o3ff4b553r31e580e689298703@mail.gmail.com>
Date: Wed, 6 Jan 2010 12:30:28 -0800
Message-ID: <603122d71001061230jd037e7drfd24a3a1469b9afe@mail.gmail.com>
Subject: Re: not getting all the data with libssh2_channel_exec and 
	libssh2_channel_read
From: salsa lover <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1166798942=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1166798942==
Content-Type: multipart/alternative; boundary=0015175ce0943930a8047c84d33f

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

First off, I would download the latest source and compile it and link to
that.
Second depending on what app you are executing the app may output to stdout
or stderr and you need to call the appropriate channel read to get the feed.
For stderr it is libssh2_channel_read_stderr() i beieve or sg like that.

On Wed, Jan 6, 2010 at 10:11 AM, Seth Grover <sethdgrover@gmail.com> wrote:

> Greetings,
>
> First, let me say that I'm new to this list (and libssh2 in general),
> though I have spent the last several days researching, experimenting,
> and reading mailing list archives. I hope that from my reading of past
> mailing list submissions and the googling I've done that I'm not
> coming to you with an oft-asked question. If so, please excuse me.
>
> As for background on my system, I'm running my example on Ubuntu 9.10
> x86 with libssh2-1 version 1.1.1 package (in libssh2.h I have #define
> LIBSSH2_TIMESTAMP "Thu Apr  2 08:49:40 UTC 2009" and libssh2_version
> returns "1.1").
>
> I have slightly modified ssh2_exec.c for the purpose of this example.
> I have provided the code I'm working with on pastebin:
>
> http://pastebin.com/f2d9765eb
>
> The problem I'm encountering is this:
>
> When I run my program like so:
>
> ./ssh2_exec 1.2.3.4 user password 'ls -l /usr/lib'
>
> I sometimes don't get all of the data before the loop breaks. Note
> that the command 'ls -l /usr/lib' in my case is returning about 38000
> bytes. Sometimes I get all of the data, but sometimes I'll get output
> like this:
>
> -------------------------------------------
> 1.1
> Authentication by password succeeded
> libssh2_channel_read returned -37
> libssh2_channel_read returned -37
> libssh2_channel_read returned -37
> libssh2_channel_read returned -37
> libssh2_channel_read returned -37
> libssh2_channel_read returned 0
>
> EXIT: 0 bytecount: 0
> all done
> -------------------------------------------
>
> Note that in that case i didn't get ANY data, just
> LIBSSH2_ERROR_EAGAIN several times and then libssh2_channel_read
> returns 0 bytes, so the loop is exited. Other times I might read some
> of the data, but libssh2_channel_read returns 0 before I got all of
> it.
>
> I experimented with libssh2_channel_eof but it didn't seem to help me.
> What I did was modify the code right before the end of the while loop
> to read thus:
>
> -------------------------------------------
>    if (rc == LIBSSH2_ERROR_EAGAIN) {
>      fprintf(stderr, "told to wait...\n");
>      waitsocket (sock, session);
>    } else if (libssh2_channel_eof(channel)) {
>      fprintf(stderr, "got libssh2_channel_eof, breaking\n");
>      break;
>    } else {
>      fprintf(stderr, "got 0 bytes but no eof yet, sleeping\n");
>      sleep(3);
>    }
> -------------------------------------------
>
> When it works, the end of the output looks like this:
>
> -------------------------------------------
> libssh2_channel_read returned 0
> got libssh2_channel_eof, breaking
>
> EXIT: 0 bytecount: 38252
> all done
> -------------------------------------------
>
> or this
>
> -------------------------------------------
> libssh2_channel_read returned -37
> told to wait...
> libssh2_channel_read returned 0
> got libssh2_channel_eof, breaking
>
> EXIT: 0 bytecount: 38252
> all done
> -------------------------------------------
>
> but somtimes it looks like this:
> -------------------------------------------
> libssh2_channel_read returned -37
> told to wait...
> libssh2_channel_read returned 0
> got 0 bytes but no eof yet, sleeping
> libssh2_channel_read returned 0
> got 0 bytes but no eof yet, sleeping
> -------------------------------------------
>
> and just loops forever, never receiving the EOF.
>
> I have similar issues when i use blocking mode as well (but I really
> need to use nonblocking mode).
>
> I'm basically just trying to find the "correct" way to consistently
> get ALL of the output from an executed command. Can anyone offer
> suggestions?
>
> Thanks,
>
> -SG
>
> --
> This email is fiction. Any resemblance to actual events
> or persons living or dead is purely coincidental.
>
> Seth Grover
> sethdgrover[at]gmail[dot]com
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

First off, I would download the latest source and compile it and link to th=
at.<br>Second depending on what app you are executing the app may output to=
 stdout or stderr and you need to call the appropriate channel read to get =
the feed. For stderr it is libssh2_channel_read_stderr() i beieve or sg lik=
e that.<br>
<br><div class=3D"gmail_quote">On Wed, Jan 6, 2010 at 10:11 AM, Seth Grover=
 <span dir=3D"ltr">&lt;<a href=3D"mailto:sethdgrover@gmail.com">sethdgrover=
@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; p=
adding-left: 1ex;">
Greetings,<br>
<br>
First, let me say that I&#39;m new to this list (and libssh2 in general),<b=
r>
though I have spent the last several days researching, experimenting,<br>
and reading mailing list archives. I hope that from my reading of past<br>
mailing list submissions and the googling I&#39;ve done that I&#39;m not<br=
>
coming to you with an oft-asked question. If so, please excuse me.<br>
<br>
As for background on my system, I&#39;m running my example on Ubuntu 9.10<b=
r>
x86 with libssh2-1 version 1.1.1 package (in libssh2.h I have #define<br>
LIBSSH2_TIMESTAMP &quot;Thu Apr =A02 08:49:40 UTC 2009&quot; and libssh2_ve=
rsion<br>
returns &quot;1.1&quot;).<br>
<br>
I have slightly modified ssh2_exec.c for the purpose of this example.<br>
I have provided the code I&#39;m working with on pastebin:<br>
<br>
<a href=3D"http://pastebin.com/f2d9765eb" target=3D"_blank">http://pastebin=
.com/f2d9765eb</a><br>
<br>
The problem I&#39;m encountering is this:<br>
<br>
When I run my program like so:<br>
<br>
./ssh2_exec 1.2.3.4 user password &#39;ls -l /usr/lib&#39;<br>
<br>
I sometimes don&#39;t get all of the data before the loop breaks. Note<br>
that the command &#39;ls -l /usr/lib&#39; in my case is returning about 380=
00<br>
bytes. Sometimes I get all of the data, but sometimes I&#39;ll get output<b=
r>
like this:<br>
<br>
-------------------------------------------<br>
1.1<br>
Authentication by password succeeded<br>
libssh2_channel_read returned -37<br>
libssh2_channel_read returned -37<br>
libssh2_channel_read returned -37<br>
libssh2_channel_read returned -37<br>
libssh2_channel_read returned -37<br>
libssh2_channel_read returned 0<br>
<br>
EXIT: 0 bytecount: 0<br>
all done<br>
-------------------------------------------<br>
<br>
Note that in that case i didn&#39;t get ANY data, just<br>
LIBSSH2_ERROR_EAGAIN several times and then libssh2_channel_read<br>
returns 0 bytes, so the loop is exited. Other times I might read some<br>
of the data, but libssh2_channel_read returns 0 before I got all of<br>
it.<br>
<br>
I experimented with libssh2_channel_eof but it didn&#39;t seem to help me.<=
br>
What I did was modify the code right before the end of the while loop<br>
to read thus:<br>
<br>
-------------------------------------------<br>
 =A0 =A0if (rc =3D=3D LIBSSH2_ERROR_EAGAIN) {<br>
 =A0 =A0 =A0fprintf(stderr, &quot;told to wait...\n&quot;);<br>
 =A0 =A0 =A0waitsocket (sock, session);<br>
 =A0 =A0} else if (libssh2_channel_eof(channel)) {<br>
 =A0 =A0 =A0fprintf(stderr, &quot;got libssh2_channel_eof, breaking\n&quot;=
);<br>
 =A0 =A0 =A0break;<br>
 =A0 =A0} else {<br>
 =A0 =A0 =A0fprintf(stderr, &quot;got 0 bytes but no eof yet, sleeping\n&qu=
ot;);<br>
 =A0 =A0 =A0sleep(3);<br>
 =A0 =A0}<br>
-------------------------------------------<br>
<br>
When it works, the end of the output looks like this:<br>
<br>
-------------------------------------------<br>
libssh2_channel_read returned 0<br>
got libssh2_channel_eof, breaking<br>
<br>
EXIT: 0 bytecount: 38252<br>
all done<br>
-------------------------------------------<br>
<br>
or this<br>
<br>
-------------------------------------------<br>
libssh2_channel_read returned -37<br>
told to wait...<br>
libssh2_channel_read returned 0<br>
got libssh2_channel_eof, breaking<br>
<br>
EXIT: 0 bytecount: 38252<br>
all done<br>
-------------------------------------------<br>
<br>
but somtimes it looks like this:<br>
-------------------------------------------<br>
libssh2_channel_read returned -37<br>
told to wait...<br>
libssh2_channel_read returned 0<br>
got 0 bytes but no eof yet, sleeping<br>
libssh2_channel_read returned 0<br>
got 0 bytes but no eof yet, sleeping<br>
-------------------------------------------<br>
<br>
and just loops forever, never receiving the EOF.<br>
<br>
I have similar issues when i use blocking mode as well (but I really<br>
need to use nonblocking mode).<br>
<br>
I&#39;m basically just trying to find the &quot;correct&quot; way to consis=
tently<br>
get ALL of the output from an executed command. Can anyone offer<br>
suggestions?<br>
<br>
Thanks,<br>
<br>
-SG<br>
<font color=3D"#888888"><br>
--<br>
This email is fiction. Any resemblance to actual events<br>
or persons living or dead is purely coincidental.<br>
<br>
Seth Grover<br>
sethdgrover[at]gmail[dot]com<br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</font></blockquote></div><br>

--0015175ce0943930a8047c84d33f--

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

--===============1166798942==--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan  6 21:54:51 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o06KsLs8017690;
	Wed, 6 Jan 2010 21:54:25 +0100
Received: from mail-px0-f202.google.com (mail-px0-f202.google.com
	[209.85.216.202])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o06KsI53017682
	for <libssh2-devel@cool.haxx.se>; Wed, 6 Jan 2010 21:54:19 +0100
Received: by pxi40 with SMTP id 40so13212626pxi.21
	for <libssh2-devel@cool.haxx.se>; Wed, 06 Jan 2010 12:54:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:from:date:message-id:subject:to:content-type;
	bh=zEgXDLPmogpW9KiOTgDkAHqm/yg7Q+ocLlIsQIk2J+Y=;
	b=KgUoKId3RwpDDEWgxQ5ACFL34Hti4XAGAiZCA44Of7CG8Co6cIKXsZ5NZ1M+S8AvmH
	amBY6kVhJqsYOHzVujamsSTqyuMAxYQYVSXcpZg+GahVU2wMhKXaZ+3Hoo+0F72afPkm
	PKv2L9l+/603DHZYMwa0sNqI9UOZguBrMqL1Q=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:content-type;
	b=CFFZMR381MTxwA5G7A9BXaKagzOfBRJbaW4sNJJttRJy76Z15tST6w2DPy7a1aMNId
	z0hUG0JCr0jvoFGmmUdf6YtChNMN0+Eqy05QFYjcYO+hNhuzrHC8AFiOuMwMVNtN2DYC
	66mhSKQBB/ieGH5ZSa+A5mCNza60LyUt4zsKM=
MIME-Version: 1.0
Received: by 10.142.56.7 with SMTP id e7mr238787wfa.191.1262811253374; Wed, 06 
	Jan 2010 12:54:13 -0800 (PST)
In-Reply-To: <4f7c444e1001061011o3ff4b553r31e580e689298703@mail.gmail.com>
References: <4f7c444e1001061011o3ff4b553r31e580e689298703@mail.gmail.com>
From: Seth Grover <sethdgrover@gmail.com>
Date: Wed, 6 Jan 2010 13:53:53 -0700
Message-ID: <4f7c444e1001061253x6fd40f15q4640c5a578cea940@mail.gmail.com>
Subject: Re: not getting all the data with libssh2_channel_exec and 
	libssh2_channel_read
To: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

I might have found the problem...

After reading http://www.libssh2.org/changes.html and seeing the
bugfix comment about "bad 0-return from libssh2_channel_read" I
downloaded libssh2 1.2.2 and tried it and it doesn't seem to have the
same problem.

Does anyone with particular knowledge of this bug think that it would
explain the problem I described using 1.1? If so I guess we can just
leave it at that.

It still does leave the question for me, which is the "correct" way to do it?

1. loop until libssh2_channel_read returns something <= 0 (other than
LIBSSH2_ERROR_EAGAIN)
or
2. loop until libssh2_channel_eof(channel)?

Both actually seem to work, which is correct?

-SG

--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.

Seth Grover
sethdgrover[at]gmail[dot]com
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Jan  7 05:37:32 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o074bGNT007418;
	Thu, 7 Jan 2010 05:37:26 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o074bFg1007414
	for <libssh2-devel@cool.haxx.se>; Thu, 7 Jan 2010 05:37:15 +0100
Received: (qmail 15330 invoked by uid 501); 7 Jan 2010 04:37:16 -0000
Message-ID: <20100107043716.15329.qmail@stuge.se>
Date: Thu, 7 Jan 2010 05:37:16 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: not getting all the data with libssh2_channel_exec and
	libssh2_channel_read
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <4f7c444e1001061011o3ff4b553r31e580e689298703@mail.gmail.com>
	<4f7c444e1001061253x6fd40f15q4640c5a578cea940@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <4f7c444e1001061253x6fd40f15q4640c5a578cea940@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Seth Grover wrote:
> Does anyone with particular knowledge of this bug think that it would
> explain the problem I described using 1.1? If so I guess we can just
> leave it at that.

There have been several problems with libssh2 data loss and incorrect
internal state found and fixed since August. The very last such bug
that has been fixed is not available in a release yet, but can be
gotten from git.


> It still does leave the question for me, which is the "correct" way
> to do it?
> 
> 1. loop until libssh2_channel_read returns something <= 0 (other than
> LIBSSH2_ERROR_EAGAIN)
> or
> 2. loop until libssh2_channel_eof(channel)?
> 
> Both actually seem to work, which is correct?

_channel_read() returning 0 is not neccessarily an error. I consider
this to be a bad property of the API, but currently it is what it is.

_channel_eof() makes the most sense to me, when the channel can
actually be expected to close remotely.


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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan  7 09:16:56 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o078GXbJ014604;
	Thu, 7 Jan 2010 09:16:45 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o078GVnv014574
	for <libssh2-devel@cool.haxx.se>; Thu, 7 Jan 2010 09:16:31 +0100
Date: Thu, 7 Jan 2010 09:16:31 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: not getting all the data with libssh2_channel_exec and
	libssh2_channel_read
In-Reply-To: <20100107043716.15329.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1001070915070.13873@tvnag.unkk.fr>
References: <4f7c444e1001061011o3ff4b553r31e580e689298703@mail.gmail.com>
	<4f7c444e1001061253x6fd40f15q4640c5a578cea940@mail.gmail.com>
	<20100107043716.15329.qmail@stuge.se>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Thu, 7 Jan 2010, Peter Stuge wrote:

> _channel_read() returning 0 is not neccessarily an error.

In my reading, the man page is quite clear that returning 0 is indeed not an 
error.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan  7 13:07:30 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o07C79TR012228;
	Thu, 7 Jan 2010 13:07:18 +0100
Received: from mail-pz0-f194.google.com (mail-pz0-f194.google.com
	[209.85.222.194])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o07C77l9012184
	for <libssh2-devel@cool.haxx.se>; Thu, 7 Jan 2010 13:07:08 +0100
Received: by pzk32 with SMTP id 32so11545768pzk.21
	for <libssh2-devel@cool.haxx.se>; Thu, 07 Jan 2010 04:07:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:from:date:message-id
	:subject:to:content-type;
	bh=hEwJsDehTxvfuKgmvByQn3ScrtcTy8KIOJ1kWqv9eXQ=;
	b=S3XFptr+fQ8tErzzaitG5UvULKZBtdQ8vinDRmCWu3wMV7xnyUYgZLToTNvhRKqSBC
	BQMJKSo8HxMxyzlYbaPa93SubuKR2ggEgaR59sN2S7iDVRs9bkICVKQ/6VGTLhE4l/Ft
	E3nOj0F/ypAR0DZaUMKt5NV/066MylsO2PC6E=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:from:date:message-id:subject:to:content-type;
	b=N5SUWK8cKEimYAD5mx5Pzu6qqPTysPktCbFrzQq1GysxLl+9GNVwEaoW9Sa/yF1hbx
	9mxxYo48n2DGywCgXN/W8QoqGdMJY2QTyF6zJCYa1DvtdWA/kpyyC4sHPtGr5zv1MB4f
	Y2Ie03TgotrlUFMCEbinmhERay4hxE/t//2to=
MIME-Version: 1.0
Received: by 10.142.55.20 with SMTP id d20mr5338138wfa.37.1262866023131; Thu, 
	07 Jan 2010 04:07:03 -0800 (PST)
From: Seth Grover <sethdgrover@gmail.com>
Date: Thu, 7 Jan 2010 05:06:43 -0700
Message-ID: <4f7c444e1001070406u40fe1523lb9f419f80e562a05@mail.gmail.com>
Subject: Re: not getting all the data with libssh2_channel_exec and 
	libssh2_channel_read
To: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Peter Stuge wrote
> There have been several problems with libssh2 data loss and incorrect
> internal state found and fixed since August. The very last such bug
> that has been fixed is not available in a release yet, but can be
> gotten from git.
> _channel_read() returning 0 is not neccessarily an error. I consider
> this to be a bad property of the API, but currently it is what it is.
> _channel_eof() makes the most sense to me, when the channel can
> actually be expected to close remotely.

Thank you, this makes sense to me! I think it's working great for me now.

Thanks again,

-SG

--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.

Seth Grover
sethdgrover[at]gmail[dot]com
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Jan  7 15:00:37 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o07E0PQr017681;
	Thu, 7 Jan 2010 15:00:35 +0100
Received: from mail-bw0-f226.google.com (mail-bw0-f226.google.com
	[209.85.218.226])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o07E0OUT017576
	for <libssh2-devel@cool.haxx.se>; Thu, 7 Jan 2010 15:00:24 +0100
Received: by bwz26 with SMTP id 26so12342347bwz.7
	for <libssh2-devel@cool.haxx.se>; Thu, 07 Jan 2010 06:00:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=v241ThfunPBYyfZl7ZVTuiVLIJUWtipHaelISSd8MwQ=;
	b=f3qQnP50cTOvXNAK1orBr/y+nj61ieEFznt+i82h/KBlwk2rHrw0TLTj8WYr38Waty
	ha8RMhShVoucvXLVo/W0M7l3ADX6luTykOk44kzNnSWSCLoDDUlsw1tTW70FkVnn8/6c
	a77VF73MLl0BM3x2dYqKhZzdfYqqu5lR+7tQQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=JH7oRDoabpUbFpzVIvXnoBZI5aYlXQlrkCUg4dIoSZdHS3X2Ewt9Y30pW8lMrC822B
	Yw83vs2pQy3FusOes1oces4ayZYkXvK+RIrmyZ8qU3qmRMlwrg9ekAuDtzWersCk/atM
	ZMdZ579qzcXA5oe1dfOgITpvJ/a3AhjEBrLto=
MIME-Version: 1.0
Received: by 10.204.36.201 with SMTP id u9mr481884bkd.81.1262872820586; Thu, 
	07 Jan 2010 06:00:20 -0800 (PST)
In-Reply-To: <20100101170747.14230.qmail@stuge.se>
References: <26b41b990912290814o47390bbble95d8c585e14a461@mail.gmail.com>
	<87d41xpoc3.fsf@mocca.josefsson.org>
	<26b41b990912300743s744198fagfa4a46c67fc05e81@mail.gmail.com>
	<87fx6s73f5.fsf@mocca.josefsson.org>
	<20100101170747.14230.qmail@stuge.se>
Date: Thu, 7 Jan 2010 08:00:20 -0600
Message-ID: <26b41b991001070600n72e6bbddu721406aa2d012f2@mail.gmail.com>
Subject: Re: libssh2 gmake check failed
From: ctf <serviceman36@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0229220493=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0229220493==
Content-Type: multipart/alternative; boundary=00032555e4b2de3141047c937d3a

--00032555e4b2de3141047c937d3a
Content-Type: text/plain; charset=ISO-8859-1

OpenSSH_5.3p1+sftpfilecontrol-v1.3-hpn13v5, OpenSSL 0.9.8g 19 Oct 2007

heres the complete gmake:
# gmake
Making all in src
gmake[1]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/src'
gmake  all-am
gmake[2]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/src'
gmake[2]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/src'
gmake[1]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/src'
Making all in example
gmake[1]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/example'
Making all in simple
gmake[2]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/example/simple'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/example/simple'
gmake[2]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/example'
gmake[2]: Nothing to be done for `all-am'.
gmake[2]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/example'
gmake[1]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/example'
Making all in tests
gmake[1]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/tests'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/tests'
Making all in docs
gmake[1]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/docs'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/docs'
gmake[1]: Entering directory `/var/tmp/Cary/libssh2-1.2.2'
gmake[1]: Nothing to be done for `all-am'.
gmake[1]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2'
# gmake check
Making check in src
gmake[1]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/src'
gmake[1]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/src'
Making check in example
gmake[1]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/example'
Making check in simple
gmake[2]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/example/simple'
gmake[2]: Nothing to be done for `check'.
gmake[2]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/example/simple'
gmake[2]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/example'
gmake[2]: Nothing to be done for `check-am'.
gmake[2]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/example'
gmake[1]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/example'
Making check in tests
gmake[1]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/tests'
gmake  simple
gmake[2]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/tests'
gmake[2]: `simple' is up to date.
gmake[2]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/tests'
gmake  check-TESTS
gmake[2]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/tests'
PASS: simple
Fingerprint: A0 90 21 52 25 7A 06 7F B9 7B 52 CE FA A6 93 7F
Authentication methods: publickey,password,keyboard-interactive
        Authentication by public key failed!
FAIL: ssh2.sh
====================================================
1 of 2 tests failed
Please report to libssh2-devel@lists.sourceforge.net
====================================================
gmake[2]: *** [check-TESTS] Error 1
gmake[2]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/tests'
gmake[1]: *** [check-am] Error 2
gmake[1]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/tests'
gmake: *** [check-recursive] Error 1

On Fri, Jan 1, 2010 at 11:07 AM, Peter Stuge <peter@stuge.se> wrote:

> Simon Josefsson wrote:
> > >> > gmake[2]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/tests'
> > >> > PASS: simple
> > >> > Fingerprint: A0 90 21 22 20 7A 93 7F B9 7B 52 CE FA A6 08 7F
> > >> > Authentication methods: publickey,password,keyboard-interactive
> > >> >         Authentication by public key failed!
> > >> > FAIL: ssh2.sh
> >
> > Is this with OpenSSL or libgcrypt?
>
> It would be helpful to have debug messages from the sshd that is
> started in the test.
>
> ctf, which version of OpenSSH do you have installed on this system?
> You can check with the command: sshd -x
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

OpenSSH_5.3p1+sftpfilecontrol-v1.3-hpn13v5, OpenSSL 0.9.8g 19 Oct 2007<br><=
br>heres the complete gmake:<br># gmake<br>Making all in src<br>gmake[1]: E=
ntering directory `/var/tmp/Cary/libssh2-1.2.2/src&#39;<br>gmake=A0 all-am<=
br>
gmake[2]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/src&#39;<br>gmake=
[2]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/src&#39;<br>gmake[1]: L=
eaving directory `/var/tmp/Cary/libssh2-1.2.2/src&#39;<br>Making all in exa=
mple<br>
gmake[1]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/example&#39;<br>M=
aking all in simple<br>gmake[2]: Entering directory `/var/tmp/Cary/libssh2-=
1.2.2/example/simple&#39;<br>gmake[2]: Nothing to be done for `all&#39;.<br=
>
gmake[2]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/example/simple&#39=
;<br>gmake[2]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/example&#39;=
<br>gmake[2]: Nothing to be done for `all-am&#39;.<br>gmake[2]: Leaving dir=
ectory `/var/tmp/Cary/libssh2-1.2.2/example&#39;<br>
gmake[1]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/example&#39;<br>Ma=
king all in tests<br>gmake[1]: Entering directory `/var/tmp/Cary/libssh2-1.=
2.2/tests&#39;<br>gmake[1]: Nothing to be done for `all&#39;.<br>gmake[1]: =
Leaving directory `/var/tmp/Cary/libssh2-1.2.2/tests&#39;<br>
Making all in docs<br>gmake[1]: Entering directory `/var/tmp/Cary/libssh2-1=
.2.2/docs&#39;<br>gmake[1]: Nothing to be done for `all&#39;.<br>gmake[1]: =
Leaving directory `/var/tmp/Cary/libssh2-1.2.2/docs&#39;<br>gmake[1]: Enter=
ing directory `/var/tmp/Cary/libssh2-1.2.2&#39;<br>
gmake[1]: Nothing to be done for `all-am&#39;.<br>gmake[1]: Leaving directo=
ry `/var/tmp/Cary/libssh2-1.2.2&#39;<br># gmake check<br>Making check in sr=
c<br>gmake[1]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/src&#39;<br>
gmake[1]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/src&#39;<br>Making=
 check in example<br>gmake[1]: Entering directory `/var/tmp/Cary/libssh2-1.=
2.2/example&#39;<br>Making check in simple<br>gmake[2]: Entering directory =
`/var/tmp/Cary/libssh2-1.2.2/example/simple&#39;<br>
gmake[2]: Nothing to be done for `check&#39;.<br>gmake[2]: Leaving director=
y `/var/tmp/Cary/libssh2-1.2.2/example/simple&#39;<br>gmake[2]: Entering di=
rectory `/var/tmp/Cary/libssh2-1.2.2/example&#39;<br>gmake[2]: Nothing to b=
e done for `check-am&#39;.<br>
gmake[2]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/example&#39;<br>gm=
ake[1]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/example&#39;<br>Maki=
ng check in tests<br>gmake[1]: Entering directory `/var/tmp/Cary/libssh2-1.=
2.2/tests&#39;<br>
gmake=A0 simple<br>gmake[2]: Entering directory `/var/tmp/Cary/libssh2-1.2.=
2/tests&#39;<br>gmake[2]: `simple&#39; is up to date.<br>gmake[2]: Leaving =
directory `/var/tmp/Cary/libssh2-1.2.2/tests&#39;<br>gmake=A0 check-TESTS<b=
r>
gmake[2]: Entering directory `/var/tmp/Cary/libssh2-1.2.2/tests&#39;<br>PAS=
S: simple<br>Fingerprint: A0 90 21 52 25 7A 06 7F B9 7B 52 CE FA A6 93 7F <=
br>Authentication methods: publickey,password,keyboard-interactive<br>=A0=
=A0=A0=A0=A0=A0=A0 Authentication by public key failed!<br>
FAIL: ssh2.sh<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D<br>1 of 2 tests failed<br>Please report to <a href=
=3D"mailto:libssh2-devel@lists.sourceforge.net">libssh2-devel@lists.sourcef=
orge.net</a><br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D<br>
gmake[2]: *** [check-TESTS] Error 1<br>gmake[2]: Leaving directory `/var/tm=
p/Cary/libssh2-1.2.2/tests&#39;<br>gmake[1]: *** [check-am] Error 2<br>gmak=
e[1]: Leaving directory `/var/tmp/Cary/libssh2-1.2.2/tests&#39;<br>gmake: *=
** [check-recursive] Error 1<br>
<br><div class=3D"gmail_quote">On Fri, Jan 1, 2010 at 11:07 AM, Peter Stuge=
 <span dir=3D"ltr">&lt;<a href=3D"mailto:peter@stuge.se">peter@stuge.se</a>=
&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"border-lef=
t: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1=
ex;">
<div class=3D"im">Simon Josefsson wrote:<br>
&gt; &gt;&gt; &gt; gmake[2]: Entering directory `/var/tmp/Cary/libssh2-1.2.=
2/tests&#39;<br>
&gt; &gt;&gt; &gt; PASS: simple<br>
&gt; &gt;&gt; &gt; Fingerprint: A0 90 21 22 20 7A 93 7F B9 7B 52 CE FA A6 0=
8 7F<br>
&gt; &gt;&gt; &gt; Authentication methods: publickey,password,keyboard-inte=
ractive<br>
&gt; &gt;&gt; &gt; =A0 =A0 =A0 =A0 Authentication by public key failed!<br>
&gt; &gt;&gt; &gt; FAIL: ssh2.sh<br>
&gt;<br>
</div><div class=3D"im">&gt; Is this with OpenSSL or libgcrypt?<br>
<br>
</div>It would be helpful to have debug messages from the sshd that is<br>
started in the test.<br>
<br>
ctf, which version of OpenSSH do you have installed on this system?<br>
You can check with the command: sshd -x<br>
<font color=3D"#888888"><br>
<br>
//Peter<br>
</font><div><div></div><div class=3D"h5">__________________________________=
_____________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</div></div></blockquote></div><br>

--00032555e4b2de3141047c937d3a--

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

--===============0229220493==--

From libssh2-devel-bounces@cool.haxx.se  Thu Jan  7 19:05:53 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o07I5gjh006529;
	Thu, 7 Jan 2010 19:05:51 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o07I5fi7006476
	for <libssh2-devel@cool.haxx.se>; Thu, 7 Jan 2010 19:05:41 +0100
Received: (qmail 5695 invoked by uid 501); 7 Jan 2010 18:05:41 -0000
Message-ID: <20100107180541.5694.qmail@stuge.se>
Date: Thu, 7 Jan 2010 19:05:41 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: not getting all the data with libssh2_channel_exec and
	libssh2_channel_read
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <4f7c444e1001061011o3ff4b553r31e580e689298703@mail.gmail.com>
	<4f7c444e1001061253x6fd40f15q4640c5a578cea940@mail.gmail.com>
	<20100107043716.15329.qmail@stuge.se>
	<alpine.DEB.2.00.1001070915070.13873@tvnag.unkk.fr>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.00.1001070915070.13873@tvnag.unkk.fr>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg wrote:
>> _channel_read() returning 0 is not neccessarily an error.
>
> In my reading, the man page is quite clear that returning 0 is
> indeed not an error.

Only implicitly. But even if it was more clear, the behavior is quite
counter-intuitive. (Compare read() or even SSL_read() where 0 is a
special case.)


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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan  7 19:45:22 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o07IjDns028747;
	Thu, 7 Jan 2010 19:45:18 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o07IjCYm028711
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 7 Jan 2010 19:45:12 +0100
Received: from mocca (c80-216-24-211.bredband.comhem.se [80.216.24.211])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o07IjAxk020722
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 7 Jan 2010 19:45:13 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2 gmake check failed
References: <26b41b990912290814o47390bbble95d8c585e14a461@mail.gmail.com>
	<87d41xpoc3.fsf@mocca.josefsson.org>
	<26b41b990912300743s744198fagfa4a46c67fc05e81@mail.gmail.com>
	<87fx6s73f5.fsf@mocca.josefsson.org>
	<20100101170747.14230.qmail@stuge.se>
	<26b41b991001070600n72e6bbddu721406aa2d012f2@mail.gmail.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100107:libssh2-devel@cool.haxx.se::txvLKvELupd7WMa6:Ps8O
Date: Thu, 07 Jan 2010 19:45:10 +0100
In-Reply-To: <26b41b991001070600n72e6bbddu721406aa2d012f2@mail.gmail.com>
	(ctf's message of "Thu, 7 Jan 2010 08:00:20 -0600")
Message-ID: <87fx6heouh.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Could you re-try with libssh2 from git and running 'env DEBUG=yes make
check'?  It will print out much more debug info that is useful.  Use
tomorrow's daily snapshot if you can't build from git directly.

I wonder if this is a genuine problem with libssh2, or an error in the
rather simplistic self-test.  Could be some compatibility issue with
sshd too.

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan  7 19:46:32 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o07IkTXc030324;
	Thu, 7 Jan 2010 19:46:31 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o07IkTGC030318
	for <libssh2-devel@cool.haxx.se>; Thu, 7 Jan 2010 19:46:29 +0100
Date: Thu, 7 Jan 2010 19:46:28 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: not getting all the data with libssh2_channel_exec and
	libssh2_channel_read
In-Reply-To: <20100107180541.5694.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1001071906510.29126@tvnag.unkk.fr>
References: <4f7c444e1001061011o3ff4b553r31e580e689298703@mail.gmail.com>
	<4f7c444e1001061253x6fd40f15q4640c5a578cea940@mail.gmail.com>
	<20100107043716.15329.qmail@stuge.se>
	<alpine.DEB.2.00.1001070915070.13873@tvnag.unkk.fr>
	<20100107180541.5694.qmail@stuge.se>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
	BOUNDARY="-1470944514-1133836866-1262889524=:29126"
Content-ID: <alpine.DEB.2.00.1001071940430.29126@tvnag.unkk.fr>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

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

---1470944514-1133836866-1262889524=:29126
Content-Type: TEXT/PLAIN; CHARSET=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT
Content-ID: <alpine.DEB.2.00.1001071940431.29126@tvnag.unkk.fr>

On Thu, 7 Jan 2010, Peter Stuge wrote:

>> In my reading, the man page is quite clear that returning 0 is
>> indeed not an error.
>
> Only implicitly.

Let me quote what the libssh2_channel_read_ex man page says:

      Note  that a return value of zero (0) can in fact be a legitimate value
      and only signals that no payload data was read. It is not an error.

That is about as explicit you can get in my book.

> But even if it was more clear, the behavior is quite counter-intuitive. 
> (Compare read() or even SSL_read() where 0 is a special case.)

My man page for read() says the following on RETURN VALUE:

        Upon successful completion, read()    and pread()  shall return a  non-
        negative  integer  indicating the number of bytes actually read. Other‐
        wise, the functions shall return -1  and  set  errno  to  indicate  the
        error.

... there's no special case for 0 there.

But yes, SSL_read() special cases 0 but that (again) only shows the need for 
a non-blocking mode...

You do surprise me though, as I was under the impression you wanted 0 to be a 
non-error case. If 0 is not a legitimate return code, what is the function to 
returned when no "payload data" has read and no error occurred?

-- 

  / daniel.haxx.se
---1470944514-1133836866-1262889524=:29126
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

---1470944514-1133836866-1262889524=:29126--

From libssh2-devel-bounces@cool.haxx.se  Fri Jan  8 01:32:53 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o080Whht006852;
	Fri, 8 Jan 2010 01:32:50 +0100
Received: from ch3.sourceforge.net (ch3.sourceforge.net [216.34.181.60])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o080WepW006834
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 8 Jan 2010 01:32:41 +0100
Received: from www by 155xhf1.ch3.sourceforge.com with local (Exim 4.69)
	(envelope-from <noreply@sourceforge.net>)
	id 1NT2mO-0006NF-Ph; Fri, 08 Jan 2010 00:32:40 +0000
To: noreply@sourceforge.net
From: "SourceForge.net" <noreply@sourceforge.net>
Subject: [ libssh2-Bugs-2927941 ] libssh2_scp_send_ex in libssh2 1.2 doesn't
	work
Mime-Version: 1.0
X-SourceForge-Tracker-unixname: libssh2
X-SourceForge-Tracker-trackerid: 703942
X-SourceForge-Tracker-itemid: 2927941
X-SourceForge-Tracker-itemstatus: Open
X-SourceForge-Tracker-itemassignee: nobody
X-SourceForge-Tracker-itemupdate-reason: Tracker Item Submitted
X-SourceForge-Tracker-itemupdate-username: nobody
Message-Id: <E1NT2mO-0006NF-Ph@155xhf1.ch3.sourceforge.com>
Date: Fri, 08 Jan 2010 00:32:40 +0000
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

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

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SCP
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: libssh2_scp_send_ex in libssh2 1.2 doesn't work

Initial Comment:
still have problem in lastest git. december 14 2009. centos 5.3.
problem same as amiroot

just simple running scp_write_non_blocking will hang in waiting eof

http://sourceforge.net/tracker/?func=detail&aid=2848195&group_id=125852&atid=703942

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

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan  8 09:55:33 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o088tMJG024211;
	Fri, 8 Jan 2010 09:55:29 +0100
Received: from ch3.sourceforge.net (ch3.sourceforge.net [216.34.181.60])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o088tKGq024203
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 8 Jan 2010 09:55:21 +0100
Received: from www by 155xhf1.ch3.sourceforge.com with local (Exim 4.69)
	(envelope-from <noreply@sourceforge.net>)
	id 1NTAcq-0005bx-Pg; Fri, 08 Jan 2010 08:55:20 +0000
To: noreply@sourceforge.net
From: "SourceForge.net" <noreply@sourceforge.net>
Subject: [ libssh2-Bugs-2927941 ] libssh2_scp_send_ex in libssh2 1.2 doesn't
	work
Mime-Version: 1.0
X-SourceForge-Tracker-unixname: libssh2
X-SourceForge-Tracker-trackerid: 703942
X-SourceForge-Tracker-itemid: 2927941
X-SourceForge-Tracker-itemstatus: Closed
X-SourceForge-Tracker-itemassignee: nobody
X-SourceForge-Tracker-itemupdate-reason: Settings changed
X-SourceForge-Tracker-itemupdate-username: bagder
Message-Id: <E1NTAcq-0005bx-Pg@155xhf1.ch3.sourceforge.com>
Date: Fri, 08 Jan 2010 08:55:20 +0000
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

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

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SCP
Group: None
>Status: Closed
>Resolution: Duplicate
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: libssh2_scp_send_ex in libssh2 1.2 doesn't work

Initial Comment:
still have problem in lastest git. december 14 2009. centos 5.3.
problem same as amiroot

just simple running scp_write_non_blocking will hang in waiting eof

http://sourceforge.net/tracker/?func=detail&aid=2848195&group_id=125852&atid=703942

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

>Comment By: Daniel Stenberg (bagder)
Date: 2010-01-08 09:55

Message:
duplicate of #2848195

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

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan  8 13:33:40 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o08CXQUT012609;
	Fri, 8 Jan 2010 13:33:36 +0100
Received: from mail-bw0-f226.google.com (mail-bw0-f226.google.com
	[209.85.218.226])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o08CXObq012577
	for <libssh2-devel@cool.haxx.se>; Fri, 8 Jan 2010 13:33:24 +0100
Received: by bwz26 with SMTP id 26so13056803bwz.7
	for <libssh2-devel@cool.haxx.se>; Fri, 08 Jan 2010 04:33:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=VdB+fCwqG2RLbhy1asuIU0wBVU0+RhsWw61WO2MKNss=;
	b=PucUPHuSa7Dt+sqGTz76fBMgSwzdxSuXRUSTFR5RnmKGHc91LarQyxr9F0lin41lz5
	ETV6B57D9fR7AG0Ih54YNvSr1S7B0Y66X+a1agSjiK9xP2v+/B4qMJdZGYFZOJ+lJnCR
	WhZcLMFF2OShIDqGkFE7qWce8iw18XDlalmEw=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=CFZVNUBeGjb1FyJBbIyMjIjxO+swQL8DS68n3ocAd1HCTCkPY4mUJW1AX1QxYp6SlQ
	MNk6i61v9kuLZAr/aHFzDy6Oo0ga1D8BbHfj8zWTicxG9tdzIvg3RzgeAKKGUAeaGgrX
	nljTWAsNxafgtOd2tOBpyRZUHgULy5rAZq7J0=
MIME-Version: 1.0
Received: by 10.204.25.82 with SMTP id y18mr1144030bkb.137.1262954000179; Fri, 
	08 Jan 2010 04:33:20 -0800 (PST)
In-Reply-To: <87fx6heouh.fsf@mocca.josefsson.org>
References: <26b41b990912290814o47390bbble95d8c585e14a461@mail.gmail.com>
	<87d41xpoc3.fsf@mocca.josefsson.org>
	<26b41b990912300743s744198fagfa4a46c67fc05e81@mail.gmail.com>
	<87fx6s73f5.fsf@mocca.josefsson.org>
	<20100101170747.14230.qmail@stuge.se>
	<26b41b991001070600n72e6bbddu721406aa2d012f2@mail.gmail.com>
	<87fx6heouh.fsf@mocca.josefsson.org>
Date: Fri, 8 Jan 2010 06:33:20 -0600
Message-ID: <26b41b991001080433h58db42f0na9346eb0de5df0e6@mail.gmail.com>
Subject: Re: libssh2 gmake check failed
From: ctf <serviceman36@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2076478108=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============2076478108==
Content-Type: multipart/alternative; boundary=00032555f9ca8c62dd047ca66447

--00032555f9ca8c62dd047ca66447
Content-Type: text/plain; charset=ISO-8859-1

Ok.  I tried it on some systems here, with
no highly satisfactory results.  On my HP-UX
(IA64 and PA-RISC) systems, the build seemed
to work, but I also got the "FAIL: ssh2.sh"
complaint.  On my Solaris system, the build
failed (miserably).  On my Tru64 system, the
build seemed to work, but the tests/ssh2.sh
script assumes many things about
/usr/sbin/sshd which aren't true there, so it
fails sooner there than on HP-UX.

Thus, to me, it doesn't seem to be highly
portable code, and that test isn't much
better (providing only a pass-fail status,
with no diagnostic info), so I'd either
complain to the maintainer, or ignore the
test and pretend that the code really works,
or else, if possible, try to find some better
code somewhere else.

Inspection of the failing test script reveals
that it's trying to run "/usr/sbin/sshd" (or
whatever SSHD is set to), listening on an
odd-ball port (4711), with a bunch of other
special-case options, and then it runs its
own "tests/ssh2" program, which tries to talk
to this instance of the "sshd" server.

Unfortunately, the "tests/ssh2" program (see
"tests/ssh2.c") expects, by default, to send
the user name "username", and if this is not
a valid user on your system, then the server
spits up.  Running it in a diagnostic mode
("-d -e"), and then running "tests/ssh2"
manually:

[...]
Invalid user username from 127.0.0.1
debug1: audit event euid 0 user (unknown user) event 9 (INVALID_USER)
debug1: aud_sav_flag=1
input_userauth_request: invalid user username
debug1: audit event euid 0 user (invalid user) event 9 (INVALID_USER)
debug1: aud_sav_flag=1
debug1: PAM: initializing for "username"
debug1: PAM: setting PAM_RHOST to "localhost"
Failed none for invalid user username from 127.0.0.1 port 52157 ssh2
debug1: audit event euid 0 user (invalid user) event 3 (AUTH_FAIL_NONE)
debug1: userauth-request for user username service ssh-connection method
publickey
debug1: attempt 1 failures 0
Failed publickey for invalid user username from 127.0.0.1 port 52157 ssh2
debug1: Entering record_failed_login uid 0
debug1: audit event euid 0 user (invalid user) event 6 (AUTH_FAIL_PUBKEY)
debug1: aud_sav_flag=1
Received disconnect from 127.0.0.1: 11: Normal Shutdown
debug1: do_cleanup
debug1: PAM: cleanup
debug1: audit event euid 0 user (invalid user) event 12 (CONNECTION_ABANDON)
debug1: aud_sav_flag=1


Without these debug options, the diagnostics
tend to go to the system log file
("/var/adm/syslog/syslog.log"), where you may
find the spoor of the previous test failures.

Luckily, the "tests/ssh2" program looks at
its environment, and if the environment
variable "USER" is defined, then its value is
used instead of "username".  So, define
"USER" as some valid user name, and things
may improve.

As before:

dyi # gmake check
Making check in src
gmake[1]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/src'
gmake[1]: Nothing to be done for `check'.
gmake[1]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/src'
Making check in example
gmake[1]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/example'
Making check in simple
gmake[2]: Entering directory
`/usr/local/src/libssh2/libssh2-1.2.2/example/simple'
gmake[2]: Nothing to be done for `check'.
gmake[2]: Leaving directory
`/usr/local/src/libssh2/libssh2-1.2.2/example/simple'
gmake[2]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/example'
gmake[2]: Nothing to be done for `check-am'.
gmake[2]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/example'
gmake[1]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/example'
Making check in tests
gmake[1]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/tests'
gmake  simple
gmake[2]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/tests'
gmake[2]: `simple' is up to date.
gmake[2]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/tests'
gmake  check-TESTS
gmake[2]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/tests'
PASS: simple
Fingerprint: A0 90 21 52 25 7A 06 7F B9 7B 52 CE FA A6 93 7F
Authentication methods: publickey,password,keyboard-interactive
        Authentication by public key failed!
FAIL: ssh2.sh
====================================================
1 of 2 tests failed
Please report to libssh2-devel@lists.sourceforge.net
====================================================
gmake[2]: *** [check-TESTS] Error 1
gmake[2]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/tests'
gmake[1]: *** [check-am] Error 2
gmake[1]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/tests'
gmake: *** [check-recursive] Error 1


Again, but defining "USER" ("sms" is valid
here):

dyi # USER=sms gmake check
Making check in src
gmake[1]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/src'
gmake[1]: Nothing to be done for `check'.
gmake[1]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/src'
Making check in example
gmake[1]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/example'
Making check in simple
gmake[2]: Entering directory
`/usr/local/src/libssh2/libssh2-1.2.2/example/simple'
gmake[2]: Nothing to be done for `check'.
gmake[2]: Leaving directory
`/usr/local/src/libssh2/libssh2-1.2.2/example/simple'
gmake[2]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/example'
gmake[2]: Nothing to be done for `check-am'.
gmake[2]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/example'
gmake[1]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/example'
Making check in tests
gmake[1]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/tests'
gmake  simple
gmake[2]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/tests'
gmake[2]: `simple' is up to date.
gmake[2]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/tests'
gmake  check-TESTS
gmake[2]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/tests'
PASS: simple
Fingerprint: A0 90 21 52 25 7A 06 7F B9 7B 52 CE FA A6 93 7F
Authentication methods: publickey,password,keyboard-interactive
        Authentication by public key succeeded.
PASS: ssh2.sh
==================
All 2 tests passed
==================
gmake[2]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/tests'
gmake[1]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/tests'
Making check in docs
gmake[1]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/docs'
gmake[1]: Nothing to be done for `check'.
gmake[1]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/docs'
gmake[1]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2'
gmake[1]: Nothing to be done for `check-am'.
gmake[1]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2'


This could all be documented somewhere, but I
didn't see it.  Perhaps the sshd programs on
the developers' systems are less fussy than
this one, and don't care if the specified
user name is valid.  (Or perhaps they all
have a user named "username".)

Could you re-try with libssh2 from git and running 'env DEBUG=yes make
> check'?  It will print out much more debug info that is useful.  Use
> tomorrow's daily snapshot if you can't build from git directly.
>
> I wonder if this is a genuine problem with libssh2, or an error in the
> rather simplistic self-test.  Could be some compatibility issue with sshd
> too.
>
> /Simon
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

Ok.=A0 I tried it on some systems here, with<br>no highly satisfactory resu=
lts.=A0 On my HP-UX<br>(IA64 and PA-RISC) systems, the build seemed<br>to w=
ork, but I also got the &quot;FAIL: ssh2.sh&quot;<br>complaint.=A0 On my So=
laris system, the build<br>
failed (miserably).=A0 On my Tru64 system, the<br>build seemed to work, but=
 the tests/ssh2.sh<br>script assumes many things about<br>/usr/sbin/sshd wh=
ich aren&#39;t true there, so it<br>fails sooner there than on HP-UX.<br>
<br>Thus, to me, it doesn&#39;t seem to be highly<br>portable code, and tha=
t test isn&#39;t much<br>better (providing only a pass-fail status,<br>with=
 no diagnostic info), so I&#39;d either<br>complain to the maintainer, or i=
gnore the<br>
test and pretend that the code really works,<br>or else, if possible, try t=
o find some better<br>code somewhere else.<br><br>Inspection of the failing=
 test script reveals<br>that it&#39;s trying to run &quot;/usr/sbin/sshd&qu=
ot; (or<br>
whatever SSHD is set to), listening on an<br>odd-ball port (4711), with a b=
unch of other<br>special-case options, and then it runs its<br>own &quot;te=
sts/ssh2&quot; program, which tries to talk<br>to this instance of the &quo=
t;sshd&quot; server.<br>
<br>Unfortunately, the &quot;tests/ssh2&quot; program (see<br>&quot;tests/s=
sh2.c&quot;) expects, by default, to send<br>the user name &quot;username&q=
uot;, and if this is not<br>a valid user on your system, then the server<br=
>
spits up.=A0 Running it in a diagnostic mode<br>(&quot;-d -e&quot;), and th=
en running &quot;tests/ssh2&quot;<br>manually:<br><br>[...]<br>Invalid user=
 username from 127.0.0.1<br>debug1: audit event euid 0 user (unknown user) =
event 9 (INVALID_USER)<br>
debug1: aud_sav_flag=3D1<br>input_userauth_request: invalid user username<b=
r>debug1: audit event euid 0 user (invalid user) event 9 (INVALID_USER)<br>=
debug1: aud_sav_flag=3D1<br>debug1: PAM: initializing for &quot;username&qu=
ot;<br>
debug1: PAM: setting PAM_RHOST to &quot;localhost&quot;<br>Failed none for =
invalid user username from 127.0.0.1 port 52157 ssh2<br>debug1: audit event=
 euid 0 user (invalid user) event 3 (AUTH_FAIL_NONE)<br>debug1: userauth-re=
quest for user username service ssh-connection method publickey<br>
debug1: attempt 1 failures 0<br>Failed publickey for invalid user username =
from 127.0.0.1 port 52157 ssh2<br>debug1: Entering record_failed_login uid =
0<br>debug1: audit event euid 0 user (invalid user) event 6 (AUTH_FAIL_PUBK=
EY)<br>
debug1: aud_sav_flag=3D1<br>Received disconnect from <a href=3D"http://127.=
0.0.1">127.0.0.1</a>: 11: Normal Shutdown<br>debug1: do_cleanup<br>debug1: =
PAM: cleanup<br>debug1: audit event euid 0 user (invalid user) event 12 (CO=
NNECTION_ABANDON)<br>
debug1: aud_sav_flag=3D1<br><br><br>Without these debug options, the diagno=
stics<br>tend to go to the system log file<br>(&quot;/var/adm/syslog/syslog=
.log&quot;), where you may<br>find the spoor of the previous test failures.=
<br>
<br>Luckily, the &quot;tests/ssh2&quot; program looks at<br>its environment=
, and if the environment<br>variable &quot;USER&quot; is defined, then its =
value is<br>used instead of &quot;username&quot;.=A0 So, define<br>&quot;US=
ER&quot; as some valid user name, and things<br>
may improve.<br><br>As before:<br><br>dyi # gmake check<br>Making check in =
src<br>gmake[1]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/s=
rc&#39;<br>gmake[1]: Nothing to be done for `check&#39;.<br>gmake[1]: Leavi=
ng directory `/usr/local/src/libssh2/libssh2-1.2.2/src&#39;<br>
Making check in example<br>gmake[1]: Entering directory `/usr/local/src/lib=
ssh2/libssh2-1.2.2/example&#39;<br>Making check in simple<br>gmake[2]: Ente=
ring directory `/usr/local/src/libssh2/libssh2-1.2.2/example/simple&#39;<br=
>
gmake[2]: Nothing to be done for `check&#39;.<br>gmake[2]: Leaving director=
y `/usr/local/src/libssh2/libssh2-1.2.2/example/simple&#39;<br>gmake[2]: En=
tering directory `/usr/local/src/libssh2/libssh2-1.2.2/example&#39;<br>
gmake[2]: Nothing to be done for `check-am&#39;.<br>gmake[2]: Leaving direc=
tory `/usr/local/src/libssh2/libssh2-1.2.2/example&#39;<br>gmake[1]: Leavin=
g directory `/usr/local/src/libssh2/libssh2-1.2.2/example&#39;<br>Making ch=
eck in tests<br>
gmake[1]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/tests&#3=
9;<br>gmake=A0 simple<br>gmake[2]: Entering directory `/usr/local/src/libss=
h2/libssh2-1.2.2/tests&#39;<br>gmake[2]: `simple&#39; is up to date.<br>gma=
ke[2]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/tests&#39;<b=
r>
gmake=A0 check-TESTS<br>gmake[2]: Entering directory `/usr/local/src/libssh=
2/libssh2-1.2.2/tests&#39;<br>PASS: simple<br>Fingerprint: A0 90 21 52 25 7=
A 06 7F B9 7B 52 CE FA A6 93 7F<br>Authentication methods: publickey,passwo=
rd,keyboard-interactive<br>
=A0=A0=A0=A0=A0=A0=A0 Authentication by public key failed!<br>FAIL: ssh2.sh=
<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D<br>1 of 2 tests failed<br>Please report to <a href=3D"mailto:l=
ibssh2-devel@lists.sourceforge.net">libssh2-devel@lists.sourceforge.net</a>=
<br>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D<br>gmake[2]: *** [check-TESTS] Error 1<br>gmake[2]: Leaving director=
y `/usr/local/src/libssh2/libssh2-1.2.2/tests&#39;<br>gmake[1]: *** [check-=
am] Error 2<br>gmake[1]: Leaving directory `/usr/local/src/libssh2/libssh2-=
1.2.2/tests&#39;<br>
gmake: *** [check-recursive] Error 1<br><br><br>Again, but defining &quot;U=
SER&quot; (&quot;sms&quot; is valid<br>here):<br><br>dyi # USER=3Dsms gmake=
 check<br>Making check in src<br>gmake[1]: Entering directory `/usr/local/s=
rc/libssh2/libssh2-1.2.2/src&#39;<br>
gmake[1]: Nothing to be done for `check&#39;.<br>gmake[1]: Leaving director=
y `/usr/local/src/libssh2/libssh2-1.2.2/src&#39;<br>Making check in example=
<br>gmake[1]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/exam=
ple&#39;<br>
Making check in simple<br>gmake[2]: Entering directory `/usr/local/src/libs=
sh2/libssh2-1.2.2/example/simple&#39;<br>gmake[2]: Nothing to be done for `=
check&#39;.<br>gmake[2]: Leaving directory `/usr/local/src/libssh2/libssh2-=
1.2.2/example/simple&#39;<br>
gmake[2]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2/example&=
#39;<br>gmake[2]: Nothing to be done for `check-am&#39;.<br>gmake[2]: Leavi=
ng directory `/usr/local/src/libssh2/libssh2-1.2.2/example&#39;<br>gmake[1]=
: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/example&#39;<br>
Making check in tests<br>gmake[1]: Entering directory `/usr/local/src/libss=
h2/libssh2-1.2.2/tests&#39;<br>gmake=A0 simple<br>gmake[2]: Entering direct=
ory `/usr/local/src/libssh2/libssh2-1.2.2/tests&#39;<br>gmake[2]: `simple&#=
39; is up to date.<br>
gmake[2]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/tests&#39=
;<br>gmake=A0 check-TESTS<br>gmake[2]: Entering directory `/usr/local/src/l=
ibssh2/libssh2-1.2.2/tests&#39;<br>PASS: simple<br>Fingerprint: A0 90 21 52=
 25 7A 06 7F B9 7B 52 CE FA A6 93 7F<br>
Authentication methods: publickey,password,keyboard-interactive<br>=A0=A0=
=A0=A0=A0=A0=A0 Authentication by public key succeeded.<br>PASS: ssh2.sh<br=
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>All 2 tests pass=
ed<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>gmake[2]: L=
eaving directory `/usr/local/src/libssh2/libssh2-1.2.2/tests&#39;<br>
gmake[1]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/tests&#39=
;<br>Making check in docs<br>gmake[1]: Entering directory `/usr/local/src/l=
ibssh2/libssh2-1.2.2/docs&#39;<br>gmake[1]: Nothing to be done for `check&#=
39;.<br>
gmake[1]: Leaving directory `/usr/local/src/libssh2/libssh2-1.2.2/docs&#39;=
<br>gmake[1]: Entering directory `/usr/local/src/libssh2/libssh2-1.2.2&#39;=
<br>gmake[1]: Nothing to be done for `check-am&#39;.<br>gmake[1]: Leaving d=
irectory `/usr/local/src/libssh2/libssh2-1.2.2&#39;<br>
<br><br>This could all be documented somewhere, but I<br>didn&#39;t see it.=
=A0 Perhaps the sshd programs on<br>the developers&#39; systems are less fu=
ssy than<br>this one, and don&#39;t care if the specified<br>user name is v=
alid.=A0 (Or perhaps they all<br>
have a user named &quot;username&quot;.)<br><div class=3D"gmail_quote"><br>=
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Could you re-try =
with libssh2 from git and running &#39;env DEBUG=3Dyes make<br>

check&#39;? =A0It will print out much more debug info that is useful. =A0Us=
e<br>
tomorrow&#39;s daily snapshot if you can&#39;t build from git directly.<br>
<br>
I wonder if this is a genuine problem with libssh2, or an error in the rath=
er simplistic self-test. =A0Could be some compatibility issue with
sshd too.<br>
<font color=3D"#888888"><br>
/Simon<br>
</font><div><div></div><div class=3D"h5">__________________________________=
_____________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</div></div></blockquote></div><br>

--00032555f9ca8c62dd047ca66447--

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

--===============2076478108==--

From libssh2-devel-bounces@cool.haxx.se  Fri Jan  8 13:41:13 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o08Cf8WL015716;
	Fri, 8 Jan 2010 13:41:11 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o08Cf7t8015710
	for <libssh2-devel@cool.haxx.se>; Fri, 8 Jan 2010 13:41:07 +0100
Date: Fri, 8 Jan 2010 13:41:07 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2 gmake check failed
In-Reply-To: <26b41b991001080433h58db42f0na9346eb0de5df0e6@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1001081335070.9523@tvnag.unkk.fr>
References: <26b41b990912290814o47390bbble95d8c585e14a461@mail.gmail.com>
	<87d41xpoc3.fsf@mocca.josefsson.org>
	<26b41b990912300743s744198fagfa4a46c67fc05e81@mail.gmail.com>
	<87fx6s73f5.fsf@mocca.josefsson.org>
	<20100101170747.14230.qmail@stuge.se>
	<26b41b991001070600n72e6bbddu721406aa2d012f2@mail.gmail.com>
	<87fx6heouh.fsf@mocca.josefsson.org>
	<26b41b991001080433h58db42f0na9346eb0de5df0e6@mail.gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Fri, 8 Jan 2010, ctf wrote:

> Thus, to me, it doesn't seem to be highly portable code

I beg to differ. The code is indeed portable but since we have very few people 
interested and involved with most of the platforms you refer to, they are 
rarely tested and bugs are to be expected.

> and that test isn't much better (providing only a pass-fail status, with no 
> diagnostic info)

Feel free to improve it. I don't think anyone of us is satisfied with our test 
suite situation!

> so I'd either complain to the maintainer

We're all reading your mails already.

> or ignore the test and pretend that the code really works, or else, if 
> possible, try to find some better code somewhere else.

While you're of course free to do whatever you want, I would be very 
interested to hear from you where you're going to find more portable and 
better code for a library that does SSH.

Perhaps a more productive way forward is to continue helping us improving what 
we have?

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan  9 18:36:08 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o09HZkXP001701;
	Sat, 9 Jan 2010 18:35:59 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o09HZiPq001692
	for <libssh2-devel@cool.haxx.se>; Sat, 9 Jan 2010 18:35:44 +0100
Received: (qmail 19490 invoked by uid 501); 9 Jan 2010 17:35:44 -0000
Message-ID: <20100109173544.19489.qmail@stuge.se>
Date: Sat, 9 Jan 2010 18:35:44 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2 gmake check failed
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <26b41b990912290814o47390bbble95d8c585e14a461@mail.gmail.com>
	<87d41xpoc3.fsf@mocca.josefsson.org>
	<26b41b990912300743s744198fagfa4a46c67fc05e81@mail.gmail.com>
	<87fx6s73f5.fsf@mocca.josefsson.org>
	<20100101170747.14230.qmail@stuge.se>
	<26b41b991001070600n72e6bbddu721406aa2d012f2@mail.gmail.com>
	<87fx6heouh.fsf@mocca.josefsson.org>
	<26b41b991001080433h58db42f0na9346eb0de5df0e6@mail.gmail.com>
	<alpine.DEB.2.00.1001081335070.9523@tvnag.unkk.fr>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.00.1001081335070.9523@tvnag.unkk.fr>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg wrote:
>> Thus, to me, it doesn't seem to be highly portable code
>
> I beg to differ.

I think you are talking past each other. The test case is not at all
portable, this is likely point.


> Perhaps a more productive way forward is to continue helping us
> improving what we have?

It is helpful - bugs in tests matter too. If noone can fix the test
(I can't) then I think it's better to take the test out.


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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan  9 20:24:25 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o09JODQD009335;
	Sat, 9 Jan 2010 20:24:21 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o09JOCc0009309
	for <libssh2-devel@cool.haxx.se>; Sat, 9 Jan 2010 20:24:12 +0100
Date: Sat, 9 Jan 2010 20:24:12 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2 gmake check failed
In-Reply-To: <20100109173544.19489.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1001092023250.32050@tvnag.unkk.fr>
References: <26b41b990912290814o47390bbble95d8c585e14a461@mail.gmail.com>
	<87d41xpoc3.fsf@mocca.josefsson.org>
	<26b41b990912300743s744198fagfa4a46c67fc05e81@mail.gmail.com>
	<87fx6s73f5.fsf@mocca.josefsson.org>
	<20100101170747.14230.qmail@stuge.se>
	<26b41b991001070600n72e6bbddu721406aa2d012f2@mail.gmail.com>
	<87fx6heouh.fsf@mocca.josefsson.org>
	<26b41b991001080433h58db42f0na9346eb0de5df0e6@mail.gmail.com>
	<alpine.DEB.2.00.1001081335070.9523@tvnag.unkk.fr>
	<20100109173544.19489.qmail@stuge.se>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Sat, 9 Jan 2010, Peter Stuge wrote:

> It is helpful - bugs in tests matter too. If noone can fix the test (I 
> can't) then I think it's better to take the test out.

But even though the tests aren't as portable as the lib itself, it is still 
useful to those who CAN run it so removing it would be counterproductive imho.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan  9 20:32:43 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o09JWdm4015166;
	Sat, 9 Jan 2010 20:32:42 +0100
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o09JWbSu015143
	for <libssh2-devel@cool.haxx.se>; Sat, 9 Jan 2010 20:32:37 +0100
Received: from int-mx03.intmail.prod.int.phx2.redhat.com
	(int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o09JWV37022495
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Sat, 9 Jan 2010 14:32:31 -0500
Received: from vpn1-7-163.ams2.redhat.com (vpn1-7-163.ams2.redhat.com
	[10.36.7.163])
	by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id o09JWUS2014918; Sat, 9 Jan 2010 14:32:30 -0500
From: Kamil Dudka <kdudka@redhat.com>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2 gmake check failed
Date: Sat, 9 Jan 2010 20:32:22 +0100
User-Agent: KMail/1.9.10
References: <26b41b990912290814o47390bbble95d8c585e14a461@mail.gmail.com>
	<20100109173544.19489.qmail@stuge.se>
	<alpine.DEB.2.00.1001092023250.32050@tvnag.unkk.fr>
In-Reply-To: <alpine.DEB.2.00.1001092023250.32050@tvnag.unkk.fr>
MIME-Version: 1.0
Content-Disposition: inline
Message-Id: <201001092032.22612.kdudka@redhat.com>
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16
Cc: Peter Stuge <peter@stuge.se>, Daniel Stenberg <daniel@haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Saturday 09 of January 2010 20:24:12 Daniel Stenberg wrote:
> On Sat, 9 Jan 2010, Peter Stuge wrote:
> > It is helpful - bugs in tests matter too. If noone can fix the test (I
> > can't) then I think it's better to take the test out.
>
> But even though the tests aren't as portable as the lib itself, it is still
> useful to those who CAN run it so removing it would be counterproductive
> imho.

Removing from what actually? I think everybody is free to decide if he wants 
to run the tests or not. At least Red Hat uses the tests while building 
packages. Please do not remove them from your releases!

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

From libssh2-devel-bounces@cool.haxx.se  Sun Jan 10 00:02:20 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o09N28Wn020898;
	Sun, 10 Jan 2010 00:02:15 +0100
Received: from dottedmag.net (burger.dottedmag.net [212.75.37.82])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o09N27Vx020877
	for <libssh2-devel@cool.haxx.se>; Sun, 10 Jan 2010 00:02:07 +0100
Received: from vertex.dottedmag (unknown [91.197.127.125])
	by dottedmag.net (Postfix) with ESMTPSA id 157D88C74A
	for <libssh2-devel@cool.haxx.se>; Sun, 10 Jan 2010 00:02:08 +0100 (CET)
Received: from dottedmag by vertex.dottedmag with local (Exim 4.69)
	(envelope-from <dottedmag@dottedmag.net>) id 1NTkJp-0007Qd-Dz
	for libssh2-devel@cool.haxx.se; Sun, 10 Jan 2010 05:02:05 +0600
From: Mikhail Gusarov <dottedmag@dottedmag.net>
To: libssh2-devel@cool.haxx.se
Subject: Re: libssh2 master e48907e... avoid a free(NULL)
References: <20100109230049.32039.qmail@earth.stuge.se>
Date: Sun, 10 Jan 2010 05:02:04 +0600
In-Reply-To: <20100109230049.32039.qmail@earth.stuge.se>
	(libssh2@git.stuge.se's message of "9 Jan 2010 23:00:49 -0000")
Message-ID: <87fx6ekhlf.fsf@vertex.dottedmag>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0804141955=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

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

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


Twas brillig at 23:00:49 09.01.2010 UTC+00 when libssh2@git.stuge.se did gy=
re and gimble:

 l> -    LIBSSH2_FREE(session, pubkeydata);
 l> +    if(pubkeydata)
 l> +        LIBSSH2_FREE(session, pubkeydata);

Why it's needed?

From=20man free(3): "If ptr is NULL, no operation is performed."

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

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

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

iQIcBAEBAgAGBQJLSQrsAAoJEJ0g9lA+M4iIkj4P/3dVxbC4ZoYs3XtqfC60KUvJ
3xdM0n8v5TfC0S2DSS6Q3FPklF5lLKdSz1sHYetJRWY5RPdU0BR6ITA19u/eSq1K
kTs9+QtK74rOT9LP28MID2Ue+d3x9uYi/CrlTqc/c/X6ESKikWzIQyqm3KqnJ/2I
djsa3YIZbCAi2DUCwQD+CWPTLNSmKkD5kr3xAz+1/Uzj2W5kwBKEKlnWp6VabES/
lwGai9L1X8ZG8APDb3D/UdWFBb+DgOQiHBCYjVKLgIodsmbk+YZ9vFteiAAWv9hF
OpVqEAcBqnRS6Wrd/qgjwWFkfnLsrx5yWkjwou1CqvIRPAtwkb8KsUbHxB5OmkCm
0KZ9SS81JsE+ZV3dDfqwh3HMr/p58jvCjSuLv6RvQ0UAmwIKmlo7s5HUrzk3O1dU
Yw3Jwp7Sj0O9PZOYfW/bu7DGujF1iHqCmP88cDWaK1aEfG/gkt8kkMJP5TqNQvEW
w8F4KAnAATfmJPruHMz4ZnMemKRYS5Dy99Z7eI4cyKKBgaLCkUDE/bk9hiamNe4f
Upl5rMNcTLvFtaS+RYqo7N+UyoQO973IuSiFUV1uBJyXGrdenR37e9lhqEdbV5/p
uEwTqlgcT4jTgn6C1hZ5N/BBN1XplE3Oo4mCiCzIXav/U0lN5LFBGpdjcr36zEM/
+oNrOjwNK47ivNdYgVYy
=2q1Y
-----END PGP SIGNATURE-----
--=-=-=--

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

--===============0804141955==--

From libssh2-devel-bounces@cool.haxx.se  Sun Jan 10 00:05:27 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o09N5NHp025744;
	Sun, 10 Jan 2010 00:05:24 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o09N5LSl025727
	for <libssh2-devel@cool.haxx.se>; Sun, 10 Jan 2010 00:05:21 +0100
Date: Sun, 10 Jan 2010 00:05:21 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2 master e48907e... avoid a free(NULL)
In-Reply-To: <87fx6ekhlf.fsf@vertex.dottedmag>
Message-ID: <alpine.DEB.2.00.1001100002560.30336@tvnag.unkk.fr>
References: <20100109230049.32039.qmail@earth.stuge.se>
	<87fx6ekhlf.fsf@vertex.dottedmag>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Sun, 10 Jan 2010, Mikhail Gusarov wrote:

> l> +    if(pubkeydata)
> l> +        LIBSSH2_FREE(session, pubkeydata);
>
> Why it's needed?
>
> From man free(3): "If ptr is NULL, no operation is performed."

It isn't strictly needed.

I want it for two reasons:

1 - aesthetics. I think calling the callback function to free something when
     we know there's nothing to free is useless.

2 - this triggered a problem in a debug setup of libssh2 that I use,
     that happen to have a trigger on free(NULL) to catch mistakes in the code

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sun Jan 10 00:21:47 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o09NLXPO004169;
	Sun, 10 Jan 2010 00:21:36 +0100
Received: from dottedmag.net (burger.dottedmag.net [212.75.37.82])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o09NLVKb004115
	for <libssh2-devel@cool.haxx.se>; Sun, 10 Jan 2010 00:21:32 +0100
Received: from vertex.dottedmag (unknown [91.197.127.125])
	by dottedmag.net (Postfix) with ESMTPSA id 6409E8C74A
	for <libssh2-devel@cool.haxx.se>; Sun, 10 Jan 2010 00:21:32 +0100 (CET)
Received: from dottedmag by vertex.dottedmag with local (Exim 4.69)
	(envelope-from <dottedmag@dottedmag.net>) id 1NTkcc-0007pC-9q
	for libssh2-devel@cool.haxx.se; Sun, 10 Jan 2010 05:21:30 +0600
From: Mikhail Gusarov <dottedmag@dottedmag.net>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2 master e48907e... avoid a free(NULL)
References: <20100109230049.32039.qmail@earth.stuge.se>
	<87fx6ekhlf.fsf@vertex.dottedmag>
	<alpine.DEB.2.00.1001100002560.30336@tvnag.unkk.fr>
Date: Sun, 10 Jan 2010 05:21:29 +0600
In-Reply-To: <alpine.DEB.2.00.1001100002560.30336@tvnag.unkk.fr> (Daniel
	Stenberg's message of "Sun, 10 Jan 2010 00:05:21 +0100 (CET)")
Message-ID: <87bph2kgp2.fsf@vertex.dottedmag>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0650160951=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

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

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


Twas brillig at 00:05:21 10.01.2010 UTC+01 when daniel@haxx.se did gyre and=
 gimble:

 DS> 1 - aesthetics. I think calling the callback function to free somethin=
g when
 DS>     we know there's nothing to free is useless.

OTOH, double-checking memory for NULL (one call outside of free(3) and
another one inside) is a bit slower.

 DS> 2 - this triggered a problem in a debug setup of libssh2 that I use,
 DS>     that happen to have a trigger on free(NULL) to catch mistakes in t=
he code

I'd call this setup broken, as lot of code relies on the fact free(NULL) =
=3D NOP.

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

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

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

iQIcBAEBAgAGBQJLSQ95AAoJEJ0g9lA+M4iI904P/iZD+xTPuhN0u489Fs+BkJZA
0mICRNE8lGx/F3ZFHfvn2Jmxhyt3Ur7g82F/TawXbECAkb5iA7lT3Trbh0gu20Aa
J6sjYhMttVQxFIua2t3hGoTSTggWYndKd+hKPQaZdsxFokTij9shBo7zEhsialgZ
EC6Dn4OL4U7cQFVfHo7IXYvIsPysZp5GW8UdQQpIilaug158w+3S5e5w0y02RpmF
0UDb/e3mWdZVPlYuDqwfQVDZXl4ZxJb4rPKy0D60a6z/D0T7LYLf4CNVuMge62oZ
IcGirLjL/fE+jkB+5Pb1ahR/eULmuFjSeadVwuZ2gMAISEmBSdRl+cniwDxTBfZl
ttC6P/uEPYc81KXM2xosDtTOYO/6pgiKMC5IucWpyH+S5IrKC+jEH3H0N/y5GtX2
Woh4P4WqeaAyOJlCR/iCOZOKCE9ZE1wth7KGMMk2poTm0DR4P88ErOvlM+rOUAO2
6rkhLHdyZ5aRC/zyhdO2e4jO7nUwRgGUhZZROVsJIy+WkeGGZL4k0AE+bblV7ALU
JdsBQ+n6XDYVh7KhHmdk66sTjL1ejtIecJT7sO8BJB18gxnrEJDEa3fgTHUbyYs1
kMyd59iPH5ihe8xlcBbcChp35lhoHAJFa4e/xnuYgzbYPkfV6+XYnT1j8Me311ht
OXuHOJ4DUY0Gwt6+g+qT
=A7M0
-----END PGP SIGNATURE-----
--=-=-=--

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

--===============0650160951==--

From libssh2-devel-bounces@cool.haxx.se  Sun Jan 10 00:29:17 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o09NTCYi015773;
	Sun, 10 Jan 2010 00:29:15 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o09NTBqc015738
	for <libssh2-devel@cool.haxx.se>; Sun, 10 Jan 2010 00:29:11 +0100
Date: Sun, 10 Jan 2010 00:29:11 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2 master e48907e... avoid a free(NULL)
In-Reply-To: <87bph2kgp2.fsf@vertex.dottedmag>
Message-ID: <alpine.DEB.2.00.1001100022190.30336@tvnag.unkk.fr>
References: <20100109230049.32039.qmail@earth.stuge.se>
	<87fx6ekhlf.fsf@vertex.dottedmag>
	<alpine.DEB.2.00.1001100002560.30336@tvnag.unkk.fr>
	<87bph2kgp2.fsf@vertex.dottedmag>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Sun, 10 Jan 2010, Mikhail Gusarov wrote:

> DS> 1 - aesthetics. I think calling the callback function to free something when
> DS>     we know there's nothing to free is useless.
>
> OTOH, double-checking memory for NULL (one call outside of free(3) and 
> another one inside) is a bit slower.

Well, it depends how often they are made. It is one check to avoid at least 
two calls when the callback for free is used. Possibly a lot more logic is 
avoided too. I think the fact that this might call a callback that replaces 
free makes the question a little wider than just the fact that free(NULL) is 
fine.

> I'd call this setup broken, as lot of code relies on the fact free(NULL) = 
> NOP.

You're entitled that opinion. I won't try to push that setup onto anyone, but 
it has helped me in the past and I've used it for many years. I don't use it 
on random code.

And for the record, this is the first time I noticed a free(NULL) in the 
libssh2 code, and I've been checking them like this since I joined the 
project.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sun Jan 10 00:37:20 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o09NbF9E020722;
	Sun, 10 Jan 2010 00:37:18 +0100
Received: from dottedmag.net (burger.dottedmag.net [212.75.37.82])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o09NbDhr020717
	for <libssh2-devel@cool.haxx.se>; Sun, 10 Jan 2010 00:37:13 +0100
Received: from vertex.dottedmag (unknown [91.197.127.125])
	by dottedmag.net (Postfix) with ESMTPSA id C09268C750
	for <libssh2-devel@cool.haxx.se>; Sun, 10 Jan 2010 00:37:13 +0100 (CET)
Received: from dottedmag by vertex.dottedmag with local (Exim 4.69)
	(envelope-from <dottedmag@dottedmag.net>) id 1NTkrn-00085O-Lt
	for libssh2-devel@cool.haxx.se; Sun, 10 Jan 2010 05:37:11 +0600
From: Mikhail Gusarov <dottedmag@dottedmag.net>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2 master e48907e... avoid a free(NULL)
References: <20100109230049.32039.qmail@earth.stuge.se>
	<87fx6ekhlf.fsf@vertex.dottedmag>
	<alpine.DEB.2.00.1001100002560.30336@tvnag.unkk.fr>
	<87bph2kgp2.fsf@vertex.dottedmag>
	<alpine.DEB.2.00.1001100022190.30336@tvnag.unkk.fr>
Date: Sun, 10 Jan 2010 05:37:10 +0600
In-Reply-To: <alpine.DEB.2.00.1001100022190.30336@tvnag.unkk.fr> (Daniel
	Stenberg's message of "Sun, 10 Jan 2010 00:29:11 +0100 (CET)")
Message-ID: <877hrqkfyx.fsf@vertex.dottedmag>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0941929820=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

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

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


Twas brillig at 00:29:11 10.01.2010 UTC+01 when daniel@haxx.se did gyre and=
 gimble:

 DS> I think the fact that this might call a callback that replaces free ma=
kes
 DS> the question a little wider than just the fact that free(NULL) is fine.

Yep. It would be useful to declare that user-provided free function
won't be called with NULL argument from library code.

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

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

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

iQIcBAEBAgAGBQJLSRMmAAoJEJ0g9lA+M4iI59gP/jlQCEeZT8cupUegT7X0zoLO
evYPZuLMc5DGiYQMVQHRDfAlqyCeJ1TFTuDbVwLfbQqaT9EbWhHTq6MNLXnwAIDP
xFCeaHh20aK4d9ocQMQveoXCdaMrhISdT6DIWLXxfHAivQ0eX4cuZKJoki3kmGZO
M5CrXYzqa1qgnvt6JyquF/urri4xKT8SuKSQBqzwe/qksBq/auF96u29tDw4EktY
m6j5fk2ULGpK8rXd3Vv2o1TlpsNU7ePyMQKpnYezRrmUINsBASLq85pWQ6GlHQBZ
erq3zYqAMM9pMJaIqWksehyWcrB8i+woRuCVEHU1tOM5h+s3vURYADdjyckhk6uZ
ctD4FvCYm3eXAk/6/LKRrhiKxpckVeqGmXUwxMU9Lf0v6i8qj6FpI4Y9/6mPpB6Z
nslVfbUU+1H60/sDmDUlo2VxpA9ctieeoRUo5cdCAF3RsEYOds6LFR15eesO7a7k
qnM5Ns+8Nw/q7ZiNUcrj5VVMSuoYrKZJY9Rw8pqhN12mr18wy/V4gLtP2UVFwXJl
PQg3WN/XYkkMDSZNz38U19zidnytHHIz9cn86TCP67xZVgv3iiWP8KhvidGfVPuX
v3TmYJi6UQd97IBdfFp5OmBI/GopBYqfjZ41ifhZ5n/afjHUXzJMUrKsJ0TztwC8
X5DVekr9cEa+Oia08o1X
=STTd
-----END PGP SIGNATURE-----
--=-=-=--

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

--===============0941929820==--

From libssh2-devel-bounces@cool.haxx.se  Sun Jan 10 18:42:56 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0AHgdwl007290;
	Sun, 10 Jan 2010 18:42:51 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0AHgcqx007268
	for <libssh2-devel@cool.haxx.se>; Sun, 10 Jan 2010 18:42:38 +0100
Date: Sun, 10 Jan 2010 18:42:38 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: libssh2 master e48907e... avoid a free(NULL)
In-Reply-To: <877hrqkfyx.fsf@vertex.dottedmag>
Message-ID: <alpine.DEB.2.00.1001101842050.30336@tvnag.unkk.fr>
References: <20100109230049.32039.qmail@earth.stuge.se>
	<87fx6ekhlf.fsf@vertex.dottedmag>
	<alpine.DEB.2.00.1001100002560.30336@tvnag.unkk.fr>
	<87bph2kgp2.fsf@vertex.dottedmag>
	<alpine.DEB.2.00.1001100022190.30336@tvnag.unkk.fr>
	<877hrqkfyx.fsf@vertex.dottedmag>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Sun, 10 Jan 2010, Mikhail Gusarov wrote:

> DS> I think the fact that this might call a callback that replaces free makes
> DS> the question a little wider than just the fact that free(NULL) is fine.
>
> Yep. It would be useful to declare that user-provided free function won't be 
> called with NULL argument from library code.

Uhm, in fact the man page that covers those callbacks is lacking a lot! ;-/

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Mon Jan 11 08:39:11 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0B7cxko011651;
	Mon, 11 Jan 2010 08:39:07 +0100
Received: from ch3.sourceforge.net (ch3.sourceforge.net [216.34.181.60])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0B7cuw0011623
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 11 Jan 2010 08:38:57 +0100
Received: from www by d45xhf1.ch3.sourceforge.com with local (Exim 4.69)
	(envelope-from <noreply@sourceforge.net>)
	id 1NUErY-00029o-8P; Mon, 11 Jan 2010 07:38:56 +0000
To: noreply@sourceforge.net
From: "SourceForge.net" <noreply@sourceforge.net>
Subject: [ libssh2-Bugs-2929647 ] memory leak when connection is lost
Mime-Version: 1.0
X-SourceForge-Tracker-unixname: libssh2
X-SourceForge-Tracker-trackerid: 703942
X-SourceForge-Tracker-itemid: 2929647
X-SourceForge-Tracker-itemstatus: Open
X-SourceForge-Tracker-itemassignee: nobody
X-SourceForge-Tracker-itemupdate-reason: Tracker Item Submitted
X-SourceForge-Tracker-itemupdate-username: yoichiwo7
Message-Id: <E1NUErY-00029o-8P@d45xhf1.ch3.sourceforge.com>
Date: Mon, 11 Jan 2010 07:38:56 +0000
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

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

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

Initial Comment:
Version: libssh2-1.2.2

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

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

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

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

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 01:18:38 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D0ILZB023319;
	Wed, 13 Jan 2010 01:18:32 +0100
Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com
	[209.85.221.175])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D0IK3P023302
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 01:18:20 +0100
Received: by qyk5 with SMTP id 5so833096qyk.8
	for <libssh2-devel@cool.haxx.se>; Tue, 12 Jan 2010 16:18:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:date:message-id:subject
	:from:to:content-type;
	bh=xvHWU8yL1ZYjw2GEAA7VokimpSyO9yxLKjpU+mq8fnE=;
	b=gVRydi3krd7YPBnCp38yOnNESYAfRzIdTVDZb8nnG8aMkwIZrBqSqHPpIYnXUAo/Ka
	gh4MvBmp7/kvmYLHCkaY4OFyWVo/aiwhTPAmO4ettsSUQDi0EfZZtN49wXWZrRtnI56l
	CxliYoViMjwPgolSg/YaojipfcTy7/IMFWXpE=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	b=CGsov/25QxbcbP/D7Klz2alqJNjDL9DmRG/P679Y5yD4mmDPLQKKFYXeXVvBJwMOAc
	cBx/Xd0sJEjWmR3ntQ3zp8hNadpoqstGcXnJw+IR8kOTBa8hIm5uE7Ihb5cpE8Xl4OM0
	+h1P2oK7FJro4Cp1FKpg5T3qrrmTZ+CJZJM80=
MIME-Version: 1.0
Received: by 10.229.33.15 with SMTP id f15mr1073924qcd.59.1263341896121; Tue, 
	12 Jan 2010 16:18:16 -0800 (PST)
Date: Tue, 12 Jan 2010 16:18:16 -0800
Message-ID: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
Subject: mingw32 cross
From: salsa lover <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1284351125=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1284351125==
Content-Type: multipart/alternative; boundary=0016364ed9d4f2bd1d047d00b43f

--0016364ed9d4f2bd1d047d00b43f
Content-Type: text/plain; charset=ISO-8859-1

Hello !

I've recently installed a new mingw32 cross compile environment on my debian
system using this package:

http://www.nongnu.org/mingw-cross-env/#introduction

...all is well, however i could not compile libssh2 latest stable, beyond
the libs. Actually I've yet to be able to accomplish this on any mingw env,
be it windows or cross.

Since i dont wanna a create issues by just copying over the precompiled
libssh2 win32 binaries over my existing deps since i already have those
nicely compiled, is there a quick fix here? i don't have time to mess around
with fixing makefiles too much right now ? I saw that the daily builds all
fail on the mingw32 systems...

I issued simply ./configure --host=i696-pc-mingw32 and i'd like to have
static libs ( should be default), actually the libs are built ok but not the
examples.

Thanks !

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

Hello !<br><br>I&#39;ve recently installed a new mingw32 cross compile envi=
ronment on my debian system using this package:<br><br><a href=3D"http://ww=
w.nongnu.org/mingw-cross-env/#introduction">http://www.nongnu.org/mingw-cro=
ss-env/#introduction</a><br>
<br>...all is well, however i could not compile libssh2 latest stable, beyo=
nd the libs. Actually I&#39;ve yet to be able to accomplish this on any min=
gw env, be it windows or cross.<br><br>Since i dont wanna a create issues b=
y just copying over the precompiled libssh2 win32 binaries over my existing=
 deps since i already have those nicely compiled, is there a quick fix here=
? i don&#39;t have time to mess around with fixing makefiles too much right=
 now ? I saw that the daily builds all fail on the mingw32 systems...<br>
<br>I issued simply ./configure --host=3Di696-pc-mingw32 and i&#39;d like t=
o have static libs ( should be default), actually the libs are built ok but=
 not the examples.<br><br>Thanks !<br>

--0016364ed9d4f2bd1d047d00b43f--

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

--===============1284351125==--

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

salsa lover wrote:
> Since i dont wanna a create issues by just copying over the
> precompiled libssh2 win32 binaries over my existing deps since i
> already have those nicely compiled, is there a quick fix here?

Find libssh2.a (it should be in src/.libs/) and copy it to your mingw
lib directory. Copy libssh2.h libssh2_sftp.h and libssh2_publickey.h
to the include directory.

For my mingw32 cross toolchain built with Gentoo crossdev that means
/usr/i686-mingw32/usr/lib/ and /usr/i686-mingw32/usr/include/ but I
don't know which paths debian uses.


> the libs are built ok but not the examples.

Please show us the error messages that you get.


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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 03:29:11 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D2T6We011443;
	Wed, 13 Jan 2010 03:29:08 +0100
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o0D2T3uU011417
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 03:29:03 +0100
Received: by qw-out-2122.google.com with SMTP id 8so2401055qwh.41
	for <libssh2-devel@cool.haxx.se>; Tue, 12 Jan 2010 18:29:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=e/HXUDkAfKUu/xm2FJ08N1aN7z5MvRIG3R/1QqjWYuI=;
	b=h1+Tz/xlheUzNdNzSAiq7a+Pj9jrg13wQlQHYrfySKXu3nMn9NIdDb8knJPoNvgWEa
	n+Xv1TLlb1smfqBoqRURShYFEsZMyB5MprcqnJrN0p7KsRGtH61jDb8wHX/GYfv6kk3h
	UDchu0lFfhwQ0/5MJQiyxfKoR5fBGrakfL5Lg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=s2RgrULJHvpTPui0AdOwFrt2gJffzFffbxYG7r2ge+Neoc0ZF6Pcx+wN+cbPCg+kWo
	jB+K2nAR+fepP42iaQvTvmFRcro6HgKfgKyu63/WsfBWjYsaeO4iWPfC26IzUeTRF+WE
	qyVfWrvAMoFhVOkcRSTMglrGq2rBjXwcPu/Ao=
MIME-Version: 1.0
Received: by 10.229.93.33 with SMTP id t33mr839482qcm.20.1263349744129; Tue, 
	12 Jan 2010 18:29:04 -0800 (PST)
In-Reply-To: <20100113015330.23355.qmail@stuge.se>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
Date: Tue, 12 Jan 2010 18:29:04 -0800
Message-ID: <603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
Subject: Re: mingw32 cross
From: salsa lover <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0936576801=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0936576801==
Content-Type: multipart/alternative; boundary=000e0cd6e464b9d854047d0288b5

--000e0cd6e464b9d854047d0288b5
Content-Type: text/plain; charset=ISO-8859-1

I'm using a custom built mingw32 environment under my homedir, (not from
repository).
I've already copied those files from libssh2 binary build into lib and
include. So as for cross compiling
libssh2 i've given up. I'm trying to integrate the cross compiler with
codeblocks now.

On Tue, Jan 12, 2010 at 5:53 PM, Peter Stuge <peter@stuge.se> wrote:

> salsa lover wrote:
> > Since i dont wanna a create issues by just copying over the
> > precompiled libssh2 win32 binaries over my existing deps since i
> > already have those nicely compiled, is there a quick fix here?
>
> Find libssh2.a (it should be in src/.libs/) and copy it to your mingw
> lib directory. Copy libssh2.h libssh2_sftp.h and libssh2_publickey.h
> to the include directory.
>
> For my mingw32 cross toolchain built with Gentoo crossdev that means
> /usr/i686-mingw32/usr/lib/ and /usr/i686-mingw32/usr/include/ but I
> don't know which paths debian uses.
>
>
> > the libs are built ok but not the examples.
>
> Please show us the error messages that you get.
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

I&#39;m using a custom built mingw32 environment under my homedir, (not fro=
m repository).<br>I&#39;ve already copied those files from libssh2 binary b=
uild into lib and include. So as for cross compiling<br>libssh2 i&#39;ve gi=
ven up. I&#39;m trying to integrate the cross compiler with codeblocks now.=
<br>
<br><div class=3D"gmail_quote">On Tue, Jan 12, 2010 at 5:53 PM, Peter Stuge=
 <span dir=3D"ltr">&lt;<a href=3D"mailto:peter@stuge.se">peter@stuge.se</a>=
&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"border-lef=
t: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1=
ex;">
<div class=3D"im">salsa lover wrote:<br>
&gt; Since i dont wanna a create issues by just copying over the<br>
&gt; precompiled libssh2 win32 binaries over my existing deps since i<br>
&gt; already have those nicely compiled, is there a quick fix here?<br>
<br>
</div>Find libssh2.a (it should be in src/.libs/) and copy it to your mingw=
<br>
lib directory. Copy libssh2.h libssh2_sftp.h and libssh2_publickey.h<br>
to the include directory.<br>
<br>
For my mingw32 cross toolchain built with Gentoo crossdev that means<br>
/usr/i686-mingw32/usr/lib/ and /usr/i686-mingw32/usr/include/ but I<br>
don&#39;t know which paths debian uses.<br>
<div class=3D"im"><br>
<br>
&gt; the libs are built ok but not the examples.<br>
<br>
</div>Please show us the error messages that you get.<br>
<br>
<br>
//Peter<br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</blockquote></div><br>

--000e0cd6e464b9d854047d0288b5--

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

--===============0936576801==--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 03:37:56 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D2bnIs031918;
	Wed, 13 Jan 2010 03:37:54 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0D2bm1Y031912
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 03:37:48 +0100
Received: (qmail 29792 invoked by uid 501); 13 Jan 2010 02:37:49 -0000
Message-ID: <20100113023749.29791.qmail@stuge.se>
Date: Wed, 13 Jan 2010 03:37:49 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: mingw32 cross
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

salsa lover wrote:
> I'm using a custom built mingw32 environment under my homedir, (not from
> repository).

Aha!


> I've already copied those files from libssh2 binary build into lib
> and include. So as for cross compiling libssh2 i've given up.

I think it would also have worked to run make on your libssh2 source,
wait for the examples failure, copy the files built by your mingw
into lib/include and then run make again.


> I'm trying to integrate the cross compiler with codeblocks now.

Ok. I'm not into IDEs so I have nothing to offer there. :)


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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 03:54:21 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D2s4IZ006192;
	Wed, 13 Jan 2010 03:54:10 +0100
Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com
	[209.85.221.181])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D2s1bD006127
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 03:54:02 +0100
Received: by qyk11 with SMTP id 11so307876qyk.16
	for <libssh2-devel@cool.haxx.se>; Tue, 12 Jan 2010 18:53:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=R0gYvTanBL3Ma9EMnJZuV5U/gSyyD6LlwB+cBMhKRww=;
	b=EiyT+c3/bpWp8N5mq2p4ULtNgJz0+qR8BICvt5ouE7Fz5oGKot4QEq9qhte/E4OAdl
	wvJupKD6YpfQksru+6ijhOhEublsg7AxnqGFMDbvg+bD6A3W2LcgJO00IyTIqZsWLPC+
	Lq8ogwtJ8xh53qNY1+bYlizqWcjtuPlnY1vJE=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=RillGqzpDa7VGXMBtWfW4b/NmAKmH3w8yevYosYeme8GXvG4aWV/teV13rfl6ou8+r
	dSxQx5ZxGix2qJ9xroawCT2KP2bVAQQD7q1ZEMipPxannvc2CwEhckonDLPFCLk5QyW+
	TqOXM0/ZxxAR0J0MH6ofTn1K+bCbxbkY7RHeA=
MIME-Version: 1.0
Received: by 10.229.28.16 with SMTP id k16mr2979621qcc.70.1263351237631; Tue, 
	12 Jan 2010 18:53:57 -0800 (PST)
In-Reply-To: <20100113023749.29791.qmail@stuge.se>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<20100113023749.29791.qmail@stuge.se>
Date: Tue, 12 Jan 2010 18:53:57 -0800
Message-ID: <603122d71001121853p26eca7c6h14cc208acbcc246@mail.gmail.com>
Subject: Re: mingw32 cross
From: salsa lover <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2001984053=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============2001984053==
Content-Type: multipart/alternative; boundary=001636426befbee16e047d02e1d4

--001636426befbee16e047d02e1d4
Content-Type: text/plain; charset=ISO-8859-1

Thanks I'll try that next time !

On Tue, Jan 12, 2010 at 6:37 PM, Peter Stuge <peter@stuge.se> wrote:

> salsa lover wrote:
> > I'm using a custom built mingw32 environment under my homedir, (not from
> > repository).
>
> Aha!
>
>
> > I've already copied those files from libssh2 binary build into lib
> > and include. So as for cross compiling libssh2 i've given up.
>
> I think it would also have worked to run make on your libssh2 source,
> wait for the examples failure, copy the files built by your mingw
> into lib/include and then run make again.
>
>
> > I'm trying to integrate the cross compiler with codeblocks now.
>
> Ok. I'm not into IDEs so I have nothing to offer there. :)
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

--001636426befbee16e047d02e1d4
Content-Type: text/html; charset=ISO-8859-1

Thanks I&#39;ll try that next time !<br><br><div class="gmail_quote">On Tue, Jan 12, 2010 at 6:37 PM, Peter Stuge <span dir="ltr">&lt;<a href="mailto:peter@stuge.se" target="_blank">peter@stuge.se</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>salsa lover wrote:<br>
&gt; I&#39;m using a custom built mingw32 environment under my homedir, (not from<br>
&gt; repository).<br>
<br>
</div>Aha!<br>
<div><br>
<br>
&gt; I&#39;ve already copied those files from libssh2 binary build into lib<br>
&gt; and include. So as for cross compiling libssh2 i&#39;ve given up.<br>
<br>
</div>I think it would also have worked to run make on your libssh2 source,<br>
wait for the examples failure, copy the files built by your mingw<br>
into lib/include and then run make again.<br>
<div><br>
<br>
&gt; I&#39;m trying to integrate the cross compiler with codeblocks now.<br>
<br>
</div>Ok. I&#39;m not into IDEs so I have nothing to offer there. :)<br>
<div><div></div><div><br>
<br>
//Peter<br>
_______________________________________________<br>
libssh2-devel <a href="http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel" target="_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel</a><br>
</div></div></blockquote></div><br>

--001636426befbee16e047d02e1d4--

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

--===============2001984053==--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 08:55:41 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D7tURb009006;
	Wed, 13 Jan 2010 08:55:38 +0100
Received: from relay-4.dnvr.twtelecom.net (relay-4.dnvr.twtelecom.net
	[64.129.67.77])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D7tSw2008999
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 08:55:29 +0100
Received: from localhost (unknown [127.0.0.1])
	by relay-4.dnvr.twtelecom.net (Postfix) with ESMTP id 2C464D406A
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 00:55:24 -0700 (MST)
X-Virus-Scanned: amavisd-new at twtelecom.net
Received: from relay-4.dnvr.twtelecom.net ([127.0.0.1])
	by localhost (relay-4.dnvr.twtelecom.net [127.0.0.1]) (amavisd-new,
	port 10024)
	with ESMTP id wdJdCTEaYsDB for <libssh2-devel@cool.haxx.se>;
	Wed, 13 Jan 2010 00:55:23 -0700 (MST)
Received: from univac.hallmarkins.internal (unknown [209.234.192.158])
	by relay-4.dnvr.twtelecom.net (Postfix) with ESMTP id AA245D404F
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 00:55:23 -0700 (MST)
Received: from [172.16.5.99] ([173.12.216.185])
	(authenticated user oliver@ootbc.com)
	by univac.hallmarkins.internal (Kerio MailServer 6.7.1)
	(using TLSv1/SSLv3 with cipher AES256-SHA (256 bits))
	for libssh2-devel@cool.haxx.se; Tue, 12 Jan 2010 23:55:22 -0800
Message-ID: <4B4D7C69.6070708@ootbc.com>
Date: Tue, 12 Jan 2010 23:55:21 -0800
From: Oliver Nelson <oliver@ootbc.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US;
	rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: RE: Unable to exchange encryption keys
References: <mailman.11.1262775603.16244.libssh2-devel@cool.haxx.se>
In-Reply-To: <mailman.11.1262775603.16244.libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel,

Here is the debug output from libssh2:

http://pastebin.com/f4f31eeb8

As you can see, after I get the failure event, I still get fingerprints 
and those fingerprints are correct.  But I can't actually see the 
hostkey at all.

OLIVER


On 1/6/2010 3:00 AM, libssh2-devel-request@cool.haxx.se wrote:
> Message: 3
> Date: Tue, 05 Jan 2010 08:24:47 -0800
> From: Oliver Nelson<oliver@ootbc.com>
> To:libssh2-devel@cool.haxx.se
> Subject: RE: Unable to exchange encryption keys
> Message-ID:<4B4367CF.60301@ootbc.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 1/1/2010 9:53 PM,libssh2-devel-request@cool.haxx.se  wrote:
>    
>> >  Message: 1
>> >  Date: Fri, 1 Jan 2010 16:22:46 +0100 (CET)
>> >  From: Daniel Stenberg<daniel@haxx.se>
>> >  To: libssh2 development<libssh2-devel@cool.haxx.se>
>> >  Subject: RE: Unable to exchange encryption keys
>> >  Message-ID:<alpine.DEB.2.00.1001011620420.31607@tvnag.unkk.fr>
>> >  Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>> >
>> >  On Thu, 31 Dec 2009, Oliver Nelson wrote:
>> >
>> >  
>>      
>>>>>> >>>  >>        I don't have a very deep understanding of how SSH works.  I was under
>>>>>> >>>  >>    the impression that receiving the "Unable to exchange encryption keys"
>>>>>> >>>  >>    error I am getting was related to the reason that libssh2_session_hostkey
>>>>>> >>>  >>    isn't returning the hostkey.
>>>>>>              
>>>> >>>  
>>>>          
>> >  As the negotiation failed and no SSH connection was made, there's not a valid
>> >  session setup. Or what am I not understanding?
>> >
>> >  If you look at the thread history you'll see that I am getting a successful connection even though I get this error and can't see the hostkey.  Also, the hash of the hostkey is correct.  I can login without a problem.  I'm using the connection in a port forwarding mode, and that works just fine.  But when I started the testing I wasn't doing any key verification.  I went to add that and came across this issue.
>>      
> OLIVER
>    


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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 10:32:09 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D9Vwrf013326;
	Wed, 13 Jan 2010 10:32:06 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D9VuH3013319
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 10:31:57 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0D9VqOH032022
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 10:31:56 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100113:libssh2-devel@cool.haxx.se::GH7paVJaJ0rvTMiK:B0j0
Date: Wed, 13 Jan 2010 10:31:51 +0100
In-Reply-To: <603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	(salsa lover's message of "Tue, 12 Jan 2010 18:29:04 -0800")
Message-ID: <87tyuqjqpk.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

salsa lover <gougolith@gmail.com> writes:

> I'm using a custom built mingw32 environment under my homedir, (not from
> repository).
> I've already copied those files from libssh2 binary build into lib and
> include. So as for cross compiling
> libssh2 i've given up. I'm trying to integrate the cross compiler with
> codeblocks now.

I'm cross compiling libssh2 using MinGW/Wine from debian, in fact all
the Windows binaries on http://josefsson.org/gnutls4win/ are generated
that way.  There shouldn't be any major problems doing this.  What
errors did you get?  I am aware that libssh2 in git doesn't currently
cross-compile well, but that's a separate issue.

/Simon

> On Tue, Jan 12, 2010 at 5:53 PM, Peter Stuge <peter@stuge.se> wrote:
>
>> salsa lover wrote:
>> > Since i dont wanna a create issues by just copying over the
>> > precompiled libssh2 win32 binaries over my existing deps since i
>> > already have those nicely compiled, is there a quick fix here?
>>
>> Find libssh2.a (it should be in src/.libs/) and copy it to your mingw
>> lib directory. Copy libssh2.h libssh2_sftp.h and libssh2_publickey.h
>> to the include directory.
>>
>> For my mingw32 cross toolchain built with Gentoo crossdev that means
>> /usr/i686-mingw32/usr/lib/ and /usr/i686-mingw32/usr/include/ but I
>> don't know which paths debian uses.
>>
>>
>> > the libs are built ok but not the examples.
>>
>> Please show us the error messages that you get.
>>
>>
>> //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
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 10:34:07 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D9Y4Qd013847;
	Wed, 13 Jan 2010 10:34:05 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D9Y2hK013820
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 10:34:02 +0100
Date: Wed, 13 Jan 2010 10:34:02 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
In-Reply-To: <87tyuqjqpk.fsf@mocca.josefsson.org>
Message-ID: <alpine.DEB.2.00.1001131033290.12562@tvnag.unkk.fr>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Wed, 13 Jan 2010, Simon Josefsson wrote:

> I am aware that libssh2 in git doesn't currently cross-compile well, but 
> that's a separate issue.

Do you have any build logs available from such current failures?

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 10:41:35 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D9fV7b018329;
	Wed, 13 Jan 2010 10:41:34 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D9fTBY018274
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 10:41:29 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0D9fSmH032242
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 10:41:30 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131033290.12562@tvnag.unkk.fr>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100113:libssh2-devel@cool.haxx.se::daRA9+G/fHsRQrO5:GIfA
Date: Wed, 13 Jan 2010 10:41:28 +0100
In-Reply-To: <alpine.DEB.2.00.1001131033290.12562@tvnag.unkk.fr> (Daniel
	Stenberg's message of "Wed, 13 Jan 2010 10:34:02 +0100 (CET)")
Message-ID: <874omqjq9j.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg <daniel@haxx.se> writes:

> On Wed, 13 Jan 2010, Simon Josefsson wrote:
>
>> I am aware that libssh2 in git doesn't currently cross-compile well,
>> but that's a separate issue.
>
> Do you have any build logs available from such current failures?

Yep. :-)

http://autobuild.josefsson.org/libssh2/

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 10:55:11 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D9shlW027471;
	Wed, 13 Jan 2010 10:55:06 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0D9sgab027465
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 10:54:42 +0100
Date: Wed, 13 Jan 2010 10:54:42 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
In-Reply-To: <874omqjq9j.fsf@mocca.josefsson.org>
Message-ID: <alpine.DEB.2.00.1001131052590.12562@tvnag.unkk.fr>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131033290.12562@tvnag.unkk.fr>
	<874omqjq9j.fsf@mocca.josefsson.org>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Wed, 13 Jan 2010, Simon Josefsson wrote:

>> Do you have any build logs available from such current failures?
>
> http://autobuild.josefsson.org/libssh2/

Ah yes, that shows that libssh2 itself builds fine but at least one example 
fails: direct_tcpip.c is clearly not portable enough.

Perhaps your autobuild could use make -k so that it'll continue and try the 
rest even if one fails?

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 11:02:39 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DA2Ytd000601;
	Wed, 13 Jan 2010 11:02:37 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DA2WEu000558
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 11:02:32 +0100
Date: Wed, 13 Jan 2010 11:02:32 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
In-Reply-To: <alpine.DEB.2.00.1001131052590.12562@tvnag.unkk.fr>
Message-ID: <alpine.DEB.2.00.1001131101170.12562@tvnag.unkk.fr>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131033290.12562@tvnag.unkk.fr>
	<874omqjq9j.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131052590.12562@tvnag.unkk.fr>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Wed, 13 Jan 2010, Daniel Stenberg wrote:

> Perhaps your autobuild could use make -k so that it'll continue and try the 
> rest even if one fails?

.. and I would also argue that we don't build the examples on the plain 'make' 
target to avoid examples problems to "taint" the main build like this.

The examples would then rather build on 'make examples' or similar.

Opinions?

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 11:05:36 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DA5WAQ004940;
	Wed, 13 Jan 2010 11:05:35 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DA5VHL004909
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 11:05:31 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0DA5USG032697
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 11:05:32 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131033290.12562@tvnag.unkk.fr>
	<874omqjq9j.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131052590.12562@tvnag.unkk.fr>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100113:libssh2-devel@cool.haxx.se::D4E1GNABs7u+R7do:6CWX
Date: Wed, 13 Jan 2010 11:05:30 +0100
In-Reply-To: <alpine.DEB.2.00.1001131052590.12562@tvnag.unkk.fr> (Daniel
	Stenberg's message of "Wed, 13 Jan 2010 10:54:42 +0100 (CET)")
Message-ID: <87eiluial1.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg <daniel@haxx.se> writes:

> On Wed, 13 Jan 2010, Simon Josefsson wrote:
>
>>> Do you have any build logs available from such current failures?
>>
>> http://autobuild.josefsson.org/libssh2/
>
> Ah yes, that shows that libssh2 itself builds fine but at least one
> example fails: direct_tcpip.c is clearly not portable enough.

Yes.  Maybe we can fix this, I pushed one obvious improvement now.

However, if we aren't using tools like gnulib (which will be problematic
from a licensing point of view), writing code that works both on POSIX
and Windows will be quite some work and leads to ugly example code.  I
don't think it is worth it, it is better to say that an example is
intended for POSIX systems, and disable the example on non-POSIX
platforms like MinGW/Wine.

> Perhaps your autobuild could use make -k so that it'll continue and
> try the rest even if one fails?

Let's see if we can fix the code first. :-)

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 11:09:15 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DA9AF8008344;
	Wed, 13 Jan 2010 11:09:13 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DA99EU008340
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 11:09:09 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0DA971j000307
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 11:09:10 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131033290.12562@tvnag.unkk.fr>
	<874omqjq9j.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131052590.12562@tvnag.unkk.fr>
	<alpine.DEB.2.00.1001131101170.12562@tvnag.unkk.fr>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100113:libssh2-devel@cool.haxx.se::4KBOWucM2vXkVpMu:XKQk
Date: Wed, 13 Jan 2010 11:09:07 +0100
In-Reply-To: <alpine.DEB.2.00.1001131101170.12562@tvnag.unkk.fr> (Daniel
	Stenberg's message of "Wed, 13 Jan 2010 11:02:32 +0100 (CET)")
Message-ID: <87aawiiaf0.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg <daniel@haxx.se> writes:

> On Wed, 13 Jan 2010, Daniel Stenberg wrote:
>
>> Perhaps your autobuild could use make -k so that it'll continue and
>> try the rest even if one fails?
>
> .. and I would also argue that we don't build the examples on the
> plain 'make' target to avoid examples problems to "taint" the main
> build like this.
>
> The examples would then rather build on 'make examples' or similar.
>
> Opinions?

My experience has been that this quickly leads to non-compiling
examples, which leads to user frustration.

For my other projects, I've decided that rather than having to do
massive fixes when someone reports that the examples are not building,
I'll include the examples in my daily builds where I'll quickly discover
that they aren't working -- and then I can either fix the problem or
back out the patch that broke the build.

But I don't feel strongly about it.

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 11:11:36 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DABXff009463;
	Wed, 13 Jan 2010 11:11:35 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DABTwo009433
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 11:11:31 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0DABPpD000345
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 11:11:29 +0100
X-Hashcash: 1:22:100113:libssh2-devel@cool.haxx.se::QneOKe2fEdw92FbI:auoC
From: Simon Josefsson <simon@josefsson.org>
To: libssh2-devel@cool.haxx.se
Subject: release time?
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
Date: Wed, 13 Jan 2010 11:11:24 +0100
Message-ID: <876376iab7.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

The agent code has been sitting in libssh2 for some time, and I don't
recall any reports about it.  Maybe it would help to get it more tested
if we make a release?  It would be great to have that support in debian
squeeze, since it allows applications to do smart-card authentication
with libssh2.

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 11:13:43 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DADeqm010093;
	Wed, 13 Jan 2010 11:13:41 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DADcBE010059
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 11:13:38 +0100
Date: Wed, 13 Jan 2010 11:13:38 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: release time?
In-Reply-To: <876376iab7.fsf@mocca.josefsson.org>
Message-ID: <alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
References: <876376iab7.fsf@mocca.josefsson.org>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Wed, 13 Jan 2010, Simon Josefsson wrote:

> The agent code has been sitting in libssh2 for some time, and I don't recall 
> any reports about it.  Maybe it would help to get it more tested if we make 
> a release?  It would be great to have that support in debian squeeze, since 
> it allows applications to do smart-card authentication with libssh2.

I'm all for it! Let's aim at a release next week to give a few more days to 
cleanup or whatever.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 13:36:49 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DCact7007887;
	Wed, 13 Jan 2010 13:36:46 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DCaa69007878
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 13:36:36 +0100
Date: Wed, 13 Jan 2010 13:36:36 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: examples depending on configure output
Message-ID: <alpine.DEB.2.00.1001131332550.6504@tvnag.unkk.fr>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi

The example direct_tcpip.c clearly cannot be compiled properly without 
inclusion of a config.h or similar that is generated by configure so that the 
HAVE_ defines exist properly.

But should we really "pollute" the examples by using something like that? It 
will make them more complicated... But OTOH, a more complex example such as 
that won't really be possible to do portable without using something 
configure-like.

Any thoughts?

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 15:47:46 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DElRQm002479;
	Wed, 13 Jan 2010 15:47:34 +0100
Received: from mail.intersystems.com (mail.intersys.com [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DElPkY002409
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 15:47:25 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
From: Dave McCaldon <davem@intersystems.com>
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: release time?
Date: Wed, 13 Jan 2010 09:47:17 -0500
In-Reply-To: <alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
To: libssh2 development <libssh2-devel@cool.haxx.se>
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
Message-Id: <F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1591020568=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


--===============1591020568==
Content-Type: multipart/alternative; boundary=Apple-Mail-112--528487401


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

On Jan 13, 2010, at 5:13 AM, Daniel Stenberg wrote:

> On Wed, 13 Jan 2010, Simon Josefsson wrote:
>=20
>> The agent code has been sitting in libssh2 for some time, and I don't =
recall any reports about it.  Maybe it would help to get it more tested =
if we make a release?  It would be great to have that support in debian =
squeeze, since it allows applications to do smart-card authentication =
with libssh2.
>=20
> I'm all for it! Let's aim at a release next week to give a few more =
days to cleanup or whatever.

There's still the fix for incorrect username/password in userauth.c that =
I don't think is in; here's the synopsis:

Begin forwarded message:

> From: Dave McCaldon <davem@intersystems.com>
> Date: November 25, 2009 4:18:50 PM EST
> To: libssh2 development <libssh2-devel@cool.haxx.se>
> Subject: [PATCH] userauth.c: libssh2_userauth_password() to handle =
SSH_MSG_USERAUTH_FAILURE
> Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
>=20
> Attached is a patch to libssh2_userauth_password() to handle a failed =
login (i.e. bad username and/or password).  When a failed login occurs, =
the server responds with SSH_MSG_USERAUTH_FAILURE which isn't handled in =
libssh2_userauth_password() and it ends up dropping out with -1, but the =
error code given is LIBSSH2_ERROR_EAGAIN, which isn't correct.







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

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><div>On Jan 13, 2010, at 5:13 AM, Daniel Stenberg wrote:</div><div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><div>On =
Wed, 13 Jan 2010, Simon Josefsson wrote:<br><br><blockquote =
type=3D"cite">The agent code has been sitting in libssh2 for some time, =
and I don't recall any reports about it. &nbsp;Maybe it would help to =
get it more tested if we make a release? &nbsp;It would be great to have =
that support in debian squeeze, since it allows applications to do =
smart-card authentication with libssh2.<br></blockquote><br>I'm all for =
it! Let's aim at a release next week to give a few more days to cleanup =
or whatever.<br></div></blockquote></div><br><div>There's still the fix =
for incorrect username/password in userauth.c that I don't think is in; =
here's the synopsis:</div><div><br></div><div><div>Begin forwarded =
message:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><span style=3D"font-family: =
Helvetica; font-size: medium; color: rgb(0, 0, 0); =
"><b>From:&nbsp;</b></span><span style=3D"font-family: Helvetica; =
font-size: medium; ">Dave McCaldon &lt;<a =
href=3D"mailto:davem@intersystems.com">davem@intersystems.com</a>&gt;<br><=
/span></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><span style=3D"font-family: =
Helvetica; font-size: medium; color: rgb(0, 0, 0); =
"><b>Date:&nbsp;</b></span><span style=3D"font-family: Helvetica; =
font-size: medium; ">November 25, 2009 4:18:50 PM =
EST<br></span></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><span style=3D"font-family: =
Helvetica; font-size: medium; color: rgb(0, 0, 0); =
"><b>To:&nbsp;</b></span><span style=3D"font-family: Helvetica; =
font-size: medium; ">libssh2 development &lt;<a =
href=3D"mailto:libssh2-devel@cool.haxx.se">libssh2-devel@cool.haxx.se</a>&=
gt;<br></span></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><span style=3D"font-family: =
Helvetica; font-size: medium; color: rgb(0, 0, 0); =
"><b>Subject:&nbsp;</b></span><span style=3D"font-family: Helvetica; =
font-size: medium; "><b>[PATCH] userauth.c: libssh2_userauth_password() =
to handle SSH_MSG_USERAUTH_FAILURE</b><br></span></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><span style=3D"font-family: Helvetica; font-size: =
medium; color: rgb(0, 0, 0); "><b>Reply-To:&nbsp;</b></span><span =
style=3D"font-family: Helvetica; font-size: medium; ">libssh2 =
development &lt;<a =
href=3D"mailto:libssh2-devel@cool.haxx.se">libssh2-devel@cool.haxx.se</a>&=
gt;<br></span></div><br><div>Attached is a patch to =
libssh2_userauth_password() to handle a failed login (i.e. bad username =
and/or password). &nbsp;When a failed login occurs, the server responds =
with SSH_MSG_USERAUTH_FAILURE which isn't handled in =
libssh2_userauth_password() and it ends up dropping out with -1, but the =
error code given is LIBSSH2_ERROR_EAGAIN, which isn't =
correct.<br></div></blockquote></div><div><br></div><div><br></div><div><b=
r></div><div><br></div><div><br></div></body></html>=

--Apple-Mail-112--528487401--

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

--===============1591020568==--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 18:24:11 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DHNpNZ001335;
	Wed, 13 Jan 2010 18:24:00 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0DHNoua001330
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 18:23:50 +0100
Received: (qmail 6777 invoked by uid 501); 13 Jan 2010 17:23:51 -0000
Message-ID: <20100113172351.6776.qmail@stuge.se>
Date: Wed, 13 Jan 2010 18:23:51 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: mingw32 cross
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131033290.12562@tvnag.unkk.fr>
	<874omqjq9j.fsf@mocca.josefsson.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <874omqjq9j.fsf@mocca.josefsson.org>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Simon Josefsson wrote:
> >> I am aware that libssh2 in git doesn't currently cross-compile
> >> well, but that's a separate issue.
> >
> > Do you have any build logs available from such current failures?
> 
> http://autobuild.josefsson.org/libssh2/

I would like the autobuilder to send email to this list or the
changes list (I prefer this list) whenever there is a failed build.


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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 18:26:10 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DHQ7ZW002591;
	Wed, 13 Jan 2010 18:26:08 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0DHQ5Qb002587
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 18:26:05 +0100
Received: (qmail 7255 invoked by uid 501); 13 Jan 2010 17:26:07 -0000
Message-ID: <20100113172607.7254.qmail@stuge.se>
Date: Wed, 13 Jan 2010 18:26:07 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: mingw32 cross
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131033290.12562@tvnag.unkk.fr>
	<874omqjq9j.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131052590.12562@tvnag.unkk.fr>
	<alpine.DEB.2.00.1001131101170.12562@tvnag.unkk.fr>
	<87aawiiaf0.fsf@mocca.josefsson.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <87aawiiaf0.fsf@mocca.josefsson.org>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Simon Josefsson wrote:
> For my other projects, I've decided that rather than having to do
> massive fixes when someone reports that the examples are not
> building, I'll include the examples in my daily builds where I'll
> quickly discover that they aren't working -- and then I can either
> fix the problem or back out the patch that broke the build.
> 
> But I don't feel strongly about it.

I feel more strongly about it. It makes no sense not to build
examples by default when we have some examples. That is the most
likely first impression a new user will have from the library, and it
should be available - and working.


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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 18:58:19 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DHwB38021373;
	Wed, 13 Jan 2010 18:58:16 +0100
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o0DHw9Rw021367
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 18:58:10 +0100
Received: by qw-out-2122.google.com with SMTP id 9so75404qwb.41
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 09:58:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=mpmX9s3Af3I2PmH3IxZvRsz/J4HKqvQRxw3CLSBU3qg=;
	b=MuxlM5lS3xZqaHZF/zG+hyDbHaNTrZbgKOJ9emMq3cZXPbSBUOyOYaabWypI3pYgh/
	wuaKsxjMre/ILF5DKRMDNlUk3jlzVzUs/HSE7dH3sCvdH4R70M4qc8q/IYPtQRbL4T9+
	WayBYSoP+m+R4nN8fopVjFDIjOyZmMaVVL9rg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=QZckOLTA0rcwY/o3w5Mefj96Srijd+cpQgA0RD+puPUTZfe3S1GIukqT60c66Bo9vW
	PiblKV8FrRNVw64OpaI01d19XDC/SzH4GxTJ4GePG0ivYVTXpbVZKa7PjF507ShenKo5
	ywZuwvN0uVZFQkUzuY/nVVMRoU9Wtj6RDynhQ=
MIME-Version: 1.0
Received: by 10.229.68.193 with SMTP id w1mr2184358qci.51.1263405490132; Wed, 
	13 Jan 2010 09:58:10 -0800 (PST)
In-Reply-To: <87tyuqjqpk.fsf@mocca.josefsson.org>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
Date: Wed, 13 Jan 2010 09:58:10 -0800
Message-ID: <603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
Subject: Re: mingw32 cross
From: salsa lover <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1112647645=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1112647645==
Content-Type: multipart/alternative; boundary=00032557c31272571e047d0f836c

--00032557c31272571e047d0f836c
Content-Type: text/plain; charset=ISO-8859-1

Here is the output, also remember i'm not using the debian repo mingw32
setup, but this one:

http://www.nongnu.org/mingw-cross-env/#introduction

alian@alian-laptop:~/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2$
./configure --host=i686-pc-mingw32 --build=i686-pc-linux-gnu
--with-libgcrypt-prefix=/home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/i686-pc-mingw32/
checking whether to enable maintainer-specific portions of Makefiles... no
checking for sed... /bin/sed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-mingw32-strip... i686-pc-mingw32-strip
checking libssh2 version... 1.2.2
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-mingw32
configure: autobuild project... libssh2
configure: autobuild revision... 1.2.2
configure: autobuild hostname... alian-laptop
configure: autobuild timestamp... 20100113-095330
checking for style of include used by make... GNU
checking for i686-pc-mingw32-gcc... i686-pc-mingw32-gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-mingw32-gcc accepts -g... yes
checking for i686-pc-mingw32-gcc option to accept ISO C89... none needed
checking dependency style of i686-pc-mingw32-gcc... gcc3
checking how to run the C preprocessor... i686-pc-mingw32-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for long long... yes
checking if _REENTRANT is already defined... no
checking if _REENTRANT is actually needed... no
checking if _REENTRANT is onwards defined... no
checking for library containing socket... no
checking for library containing inet_addr... no
checking for i686-pc-mingw32-gcc... (cached) i686-pc-mingw32-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether i686-pc-mingw32-gcc accepts -g... (cached) yes
checking for i686-pc-mingw32-gcc option to accept ISO C89... (cached) none
needed
checking dependency style of i686-pc-mingw32-gcc... (cached) gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for sshd... /usr/sbin/sshd
checking for i686-pc-mingw32-as... i686-pc-mingw32-as
checking for i686-pc-mingw32-dlltool... i686-pc-mingw32-dlltool
checking for i686-pc-mingw32-objdump... i686-pc-mingw32-objdump
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by i686-pc-mingw32-gcc...
/home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/i686-pc-mingw32/bin/ld
checking if the linker
(/home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/i686-pc-mingw32/bin/ld)
is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)...
/home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/bin/i686-pc-mingw32-nm -B
checking the name lister
(/home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/bin/i686-pc-mingw32-nm
-B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for
/home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/i686-pc-mingw32/bin/ld
option to reload object files... -r
checking for i686-pc-mingw32-objdump... (cached) i686-pc-mingw32-objdump
checking how to recognize dependent libraries... file_magic ^x86 archive
import|^x86 DLL
checking for i686-pc-mingw32-ar... i686-pc-mingw32-ar
checking for i686-pc-mingw32-strip... (cached) i686-pc-mingw32-strip
checking for i686-pc-mingw32-ranlib... i686-pc-mingw32-ranlib
checking command to parse
/home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/bin/i686-pc-mingw32-nm -B
output from i686-pc-mingw32-gcc object... ok
checking for dlfcn.h... no
checking for objdir... .libs
checking if i686-pc-mingw32-gcc supports -fno-rtti -fno-exceptions... no
checking for i686-pc-mingw32-gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if i686-pc-mingw32-gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if i686-pc-mingw32-gcc static flag -static works... yes
checking if i686-pc-mingw32-gcc supports -c -o file.o... yes
checking if i686-pc-mingw32-gcc supports -c -o file.o... (cached) yes
checking whether the i686-pc-mingw32-gcc linker
(/home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/i686-pc-mingw32/bin/ld)
supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether byte ordering is bigendian... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... unknown
checking for _LARGE_FILES value needed for large files... unknown
checking for ld used by GCC...
/home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/i686-pc-mingw32/bin/ld
checking if the linker
(/home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/i686-pc-mingw32/bin/ld)
is GNU ld... yes
checking for shared library run path origin... done
checking for libssl... yes
checking how to link with libssl... -lssl -lcrypto
checking for libz... yes
checking how to link with libz... -lz
checking whether to enable pedantic and debug compiler options... no
checking whether to enable hidden symbols in the library... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/uio.h usability... no
checking sys/uio.h presence... no
checking for sys/uio.h... no
checking sys/select.h usability... no
checking sys/select.h presence... no
checking for sys/select.h... no
checking sys/socket.h usability... no
checking sys/socket.h presence... no
checking for sys/socket.h... no
checking sys/ioctl.h usability... no
checking sys/ioctl.h presence... no
checking for sys/ioctl.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking arpa/inet.h usability... no
checking arpa/inet.h presence... no
checking for arpa/inet.h... no
checking netinet/in.h usability... no
checking netinet/in.h presence... no
checking for netinet/in.h... no
checking windows.h usability... yes
checking windows.h presence... yes
checking for windows.h... yes
checking winsock2.h usability... yes
checking winsock2.h presence... yes
checking for winsock2.h... yes
checking ws2tcpip.h usability... yes
checking ws2tcpip.h presence... yes
checking for ws2tcpip.h... yes
checking for poll... no
checking for gettimeofday... yes
checking for select... no
checking for strtoll... yes
checking for select in ws2_32... yes
checking for working alloca.h... no
checking for alloca... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking non-blocking sockets style... ioctlsocket
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating example/Makefile
config.status: creating example/simple/Makefile
config.status: creating docs/Makefile
config.status: creating libssh2.pc
config.status: creating src/libssh2_config.h
config.status: src/libssh2_config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
alian@alian-laptop:~/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2$
make
Making all in src
make[1]: Entering directory
`/home/alian/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2/src'
make  all-am
make[2]: Entering directory
`/home/alian/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2/src'
make[2]: Leaving directory
`/home/alian/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2/src'
make[1]: Leaving directory
`/home/alian/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2/src'
Making all in example
make[1]: Entering directory
`/home/alian/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2/example'
Making all in simple
make[2]: Entering directory
`/home/alian/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2/example/simple'
/bin/bash ../../libtool --tag=CC --mode=link i686-pc-mingw32-gcc
-DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200   -o ssh2.exe  ssh2.o ../../src/
libssh2.la -lws2_32
libtool: link: i686-pc-mingw32-gcc -DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200
-o .libs/ssh2.exe ssh2.o  ../../src/.libs/libssh2.a -lssl -lcrypto -lz
-lws2_32
ssh2.o:ssh2.c:(.text+0x17c): undefined reference to
`__imp__libssh2_session_init_ex'
ssh2.o:ssh2.c:(.text+0x193): undefined reference to
`__imp__libssh2_session_startup'
ssh2.o:ssh2.c:(.text+0x1de): undefined reference to
`__imp__libssh2_hostkey_hash'
ssh2.o:ssh2.c:(.text+0x250): undefined reference to
`__imp__libssh2_userauth_list'
ssh2.o:ssh2.c:(.text+0x39e): undefined reference to
`__imp__libssh2_userauth_password_ex'
ssh2.o:ssh2.c:(.text+0x3fe): undefined reference to
`__imp__libssh2_userauth_keyboard_interactive_ex'
ssh2.o:ssh2.c:(.text+0x474): undefined reference to
`__imp__libssh2_userauth_publickey_fromfile_ex'
ssh2.o:ssh2.c:(.text+0x4e5): undefined reference to
`__imp__libssh2_channel_open_ex'
ssh2.o:ssh2.c:(.text+0x548): undefined reference to
`__imp__libssh2_channel_setenv_ex'
ssh2.o:ssh2.c:(.text+0x595): undefined reference to
`__imp__libssh2_channel_request_pty_ex'
ssh2.o:ssh2.c:(.text+0x5f0): undefined reference to
`__imp__libssh2_channel_process_startup'
ssh2.o:ssh2.c:(.text+0x631): undefined reference to
`__imp__libssh2_channel_free'
ssh2.o:ssh2.c:(.text+0x65d): undefined reference to
`__imp__libssh2_session_disconnect_ex'
ssh2.o:ssh2.c:(.text+0x66a): undefined reference to
`__imp__libssh2_session_free'
collect2: ld returned 1 exit status
make[2]: *** [ssh2.exe] Error 1
make[2]: Leaving directory
`/home/alian/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2/example/simple'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/alian/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2/example'
make: *** [all-recursive] Error 1


On Wed, Jan 13, 2010 at 1:31 AM, Simon Josefsson <simon@josefsson.org>wrote:

> salsa lover <gougolith@gmail.com> writes:
>
> > I'm using a custom built mingw32 environment under my homedir, (not from
> > repository).
> > I've already copied those files from libssh2 binary build into lib and
> > include. So as for cross compiling
> > libssh2 i've given up. I'm trying to integrate the cross compiler with
> > codeblocks now.
>
> I'm cross compiling libssh2 using MinGW/Wine from debian, in fact all
> the Windows binaries on http://josefsson.org/gnutls4win/ are generated
> that way.  There shouldn't be any major problems doing this.  What
> errors did you get?  I am aware that libssh2 in git doesn't currently
> cross-compile well, but that's a separate issue.
>
> /Simon
>
> > On Tue, Jan 12, 2010 at 5:53 PM, Peter Stuge <peter@stuge.se> wrote:
> >
> >> salsa lover wrote:
> >> > Since i dont wanna a create issues by just copying over the
> >> > precompiled libssh2 win32 binaries over my existing deps since i
> >> > already have those nicely compiled, is there a quick fix here?
> >>
> >> Find libssh2.a (it should be in src/.libs/) and copy it to your mingw
> >> lib directory. Copy libssh2.h libssh2_sftp.h and libssh2_publickey.h
> >> to the include directory.
> >>
> >> For my mingw32 cross toolchain built with Gentoo crossdev that means
> >> /usr/i686-mingw32/usr/lib/ and /usr/i686-mingw32/usr/include/ but I
> >> don't know which paths debian uses.
> >>
> >>
> >> > the libs are built ok but not the examples.
> >>
> >> Please show us the error messages that you get.
> >>
> >>
> >> //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
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

Here is the output, also remember i&#39;m not using the debian repo mingw32=
 setup, but this one:<br><br><a href=3D"http://www.nongnu.org/mingw-cross-e=
nv/#introduction">http://www.nongnu.org/mingw-cross-env/#introduction</a><b=
r>
<br>alian@alian-laptop:~/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2=
.2$ ./configure --host=3Di686-pc-mingw32 --build=3Di686-pc-linux-gnu --with=
-libgcrypt-prefix=3D/home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/i686-=
pc-mingw32/<br>
checking whether to enable maintainer-specific portions of Makefiles... no<=
br>checking for sed... /bin/sed<br>checking for a BSD-compatible install...=
 /usr/bin/install -c<br>checking whether build environment is sane... yes<b=
r>
checking for gawk... no<br>checking for mawk... mawk<br>checking whether ma=
ke sets $(MAKE)... yes<br>checking for i686-pc-mingw32-strip... i686-pc-min=
gw32-strip<br>checking libssh2 version... 1.2.2<br>checking build system ty=
pe... i686-pc-linux-gnu<br>
checking host system type... i686-pc-mingw32<br>configure: autobuild projec=
t... libssh2<br>configure: autobuild revision... 1.2.2<br>configure: autobu=
ild hostname... alian-laptop<br>configure: autobuild timestamp... 20100113-=
095330<br>
checking for style of include used by make... GNU<br>checking for i686-pc-m=
ingw32-gcc... i686-pc-mingw32-gcc<br>checking for C compiler default output=
 file name... a.exe<br>checking whether the C compiler works... yes<br>
checking whether we are cross compiling... yes<br>checking for suffix of ex=
ecutables... .exe<br>checking for suffix of object files... o<br>checking w=
hether we are using the GNU C compiler... yes<br>checking whether i686-pc-m=
ingw32-gcc accepts -g... yes<br>
checking for i686-pc-mingw32-gcc option to accept ISO C89... none needed<br=
>checking dependency style of i686-pc-mingw32-gcc... gcc3<br>checking how t=
o run the C preprocessor... i686-pc-mingw32-gcc -E<br>checking for grep tha=
t handles long lines and -e... /bin/grep<br>
checking for egrep... /bin/grep -E<br>checking for ANSI C header files... y=
es<br>checking for sys/types.h... yes<br>checking for sys/stat.h... yes<br>=
checking for stdlib.h... yes<br>checking for string.h... yes<br>checking fo=
r memory.h... yes<br>
checking for strings.h... yes<br>checking for inttypes.h... yes<br>checking=
 for stdint.h... yes<br>checking for unistd.h... yes<br>checking for long l=
ong... yes<br>checking if _REENTRANT is already defined... no<br>checking i=
f _REENTRANT is actually needed... no<br>
checking if _REENTRANT is onwards defined... no<br>checking for library con=
taining socket... no<br>checking for library containing inet_addr... no<br>=
checking for i686-pc-mingw32-gcc... (cached) i686-pc-mingw32-gcc<br>checkin=
g whether we are using the GNU C compiler... (cached) yes<br>
checking whether i686-pc-mingw32-gcc accepts -g... (cached) yes<br>checking=
 for i686-pc-mingw32-gcc option to accept ISO C89... (cached) none needed<b=
r>checking dependency style of i686-pc-mingw32-gcc... (cached) gcc3<br>
checking whether ln -s works... yes<br>checking whether make sets $(MAKE)..=
. (cached) yes<br>checking for sshd... /usr/sbin/sshd<br>checking for i686-=
pc-mingw32-as... i686-pc-mingw32-as<br>checking for i686-pc-mingw32-dlltool=
... i686-pc-mingw32-dlltool<br>
checking for i686-pc-mingw32-objdump... i686-pc-mingw32-objdump<br>checking=
 for a sed that does not truncate output... (cached) /bin/sed<br>checking f=
or fgrep... /bin/grep -F<br>checking for ld used by i686-pc-mingw32-gcc... =
/home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/i686-pc-mingw32/bin/ld<br=
>
checking if the linker (/home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/i=
686-pc-mingw32/bin/ld) is GNU ld... yes<br>checking for BSD- or MS-compatib=
le name lister (nm)... /home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/bi=
n/i686-pc-mingw32-nm -B<br>
checking the name lister (/home/alian/Desktop/Temp/mingw-cross-env-2.10/usr=
/bin/i686-pc-mingw32-nm -B) interface... BSD nm<br>checking the maximum len=
gth of command line arguments... 1572864<br>checking whether the shell unde=
rstands some XSI constructs... yes<br>
checking whether the shell understands &quot;+=3D&quot;... yes<br>checking =
for /home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/i686-pc-mingw32/bin/l=
d option to reload object files... -r<br>checking for i686-pc-mingw32-objdu=
mp... (cached) i686-pc-mingw32-objdump<br>
checking how to recognize dependent libraries... file_magic ^x86 archive im=
port|^x86 DLL<br>checking for i686-pc-mingw32-ar... i686-pc-mingw32-ar<br>c=
hecking for i686-pc-mingw32-strip... (cached) i686-pc-mingw32-strip<br>
checking for i686-pc-mingw32-ranlib... i686-pc-mingw32-ranlib<br>checking c=
ommand to parse /home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/bin/i686-=
pc-mingw32-nm -B output from i686-pc-mingw32-gcc object... ok<br>checking f=
or dlfcn.h... no<br>
checking for objdir... .libs<br>checking if i686-pc-mingw32-gcc supports -f=
no-rtti -fno-exceptions... no<br>checking for i686-pc-mingw32-gcc option to=
 produce PIC... -DDLL_EXPORT -DPIC<br>checking if i686-pc-mingw32-gcc PIC f=
lag -DDLL_EXPORT -DPIC works... yes<br>
checking if i686-pc-mingw32-gcc static flag -static works... yes<br>checkin=
g if i686-pc-mingw32-gcc supports -c -o file.o... yes<br>checking if i686-p=
c-mingw32-gcc supports -c -o file.o... (cached) yes<br>checking whether the=
 i686-pc-mingw32-gcc linker (/home/alian/Desktop/Temp/mingw-cross-env-2.10/=
usr/i686-pc-mingw32/bin/ld) supports shared libraries... yes<br>
checking whether -lc should be explicitly linked in... yes<br>checking dyna=
mic linker characteristics... Win32 ld.exe<br>checking how to hardcode libr=
ary paths into programs... immediate<br>checking whether stripping librarie=
s is possible... yes<br>
checking if libtool supports shared libraries... yes<br>checking whether to=
 build shared libraries... yes<br>checking whether to build static librarie=
s... yes<br>checking whether byte ordering is bigendian... no<br>checking f=
or special C compiler options needed for large files... no<br>
checking for _FILE_OFFSET_BITS value needed for large files... unknown<br>c=
hecking for _LARGE_FILES value needed for large files... unknown<br>checkin=
g for ld used by GCC... /home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/i=
686-pc-mingw32/bin/ld<br>
checking if the linker (/home/alian/Desktop/Temp/mingw-cross-env-2.10/usr/i=
686-pc-mingw32/bin/ld) is GNU ld... yes<br>checking for shared library run =
path origin... done<br>checking for libssl... yes<br>checking how to link w=
ith libssl... -lssl -lcrypto<br>
checking for libz... yes<br>checking how to link with libz... -lz<br>checki=
ng whether to enable pedantic and debug compiler options... no<br>checking =
whether to enable hidden symbols in the library... no<br>checking errno.h u=
sability... yes<br>
checking errno.h presence... yes<br>checking for errno.h... yes<br>checking=
 fcntl.h usability... yes<br>checking fcntl.h presence... yes<br>checking f=
or fcntl.h... yes<br>checking stdio.h usability... yes<br>checking stdio.h =
presence... yes<br>
checking for stdio.h... yes<br>checking for stdlib.h... (cached) yes<br>che=
cking for unistd.h... (cached) yes<br>checking sys/uio.h usability... no<br=
>checking sys/uio.h presence... no<br>checking for sys/uio.h... no<br>check=
ing sys/select.h usability... no<br>
checking sys/select.h presence... no<br>checking for sys/select.h... no<br>=
checking sys/socket.h usability... no<br>checking sys/socket.h presence... =
no<br>checking for sys/socket.h... no<br>checking sys/ioctl.h usability... =
no<br>
checking sys/ioctl.h presence... no<br>checking for sys/ioctl.h... no<br>ch=
ecking sys/time.h usability... yes<br>checking sys/time.h presence... yes<b=
r>checking for sys/time.h... yes<br>checking arpa/inet.h usability... no<br=
>
checking arpa/inet.h presence... no<br>checking for arpa/inet.h... no<br>ch=
ecking netinet/in.h usability... no<br>checking netinet/in.h presence... no=
<br>checking for netinet/in.h... no<br>checking windows.h usability... yes<=
br>
checking windows.h presence... yes<br>checking for windows.h... yes<br>chec=
king winsock2.h usability... yes<br>checking winsock2.h presence... yes<br>=
checking for winsock2.h... yes<br>checking ws2tcpip.h usability... yes<br>
checking ws2tcpip.h presence... yes<br>checking for ws2tcpip.h... yes<br>ch=
ecking for poll... no<br>checking for gettimeofday... yes<br>checking for s=
elect... no<br>checking for strtoll... yes<br>checking for select in ws2_32=
... yes<br>
checking for working alloca.h... no<br>checking for alloca... yes<br>checki=
ng for an ANSI C-conforming const... yes<br>checking for inline... inline<b=
r>checking non-blocking sockets style... ioctlsocket<br>configure: creating=
 ./config.status<br>
config.status: creating Makefile<br>config.status: creating src/Makefile<br=
>config.status: creating tests/Makefile<br>config.status: creating example/=
Makefile<br>config.status: creating example/simple/Makefile<br>config.statu=
s: creating docs/Makefile<br>
config.status: creating libssh2.pc<br>config.status: creating src/libssh2_c=
onfig.h<br>config.status: src/libssh2_config.h is unchanged<br>config.statu=
s: executing depfiles commands<br>config.status: executing libtool commands=
<br>
alian@alian-laptop:~/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2$ =
make<br>Making all in src<br>make[1]: Entering directory `/home/alian/Deskt=
op/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2/src&#39;<br>make=A0 all-am<=
br>
make[2]: Entering directory `/home/alian/Desktop/Temp/mingw-cross-env-2.10/=
Temp/libssh2-1.2.2/src&#39;<br>make[2]: Leaving directory `/home/alian/Desk=
top/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2/src&#39;<br>make[1]: Leavi=
ng directory `/home/alian/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.=
2.2/src&#39;<br>
Making all in example<br>make[1]: Entering directory `/home/alian/Desktop/T=
emp/mingw-cross-env-2.10/Temp/libssh2-1.2.2/example&#39;<br>Making all in s=
imple<br>make[2]: Entering directory `/home/alian/Desktop/Temp/mingw-cross-=
env-2.10/Temp/libssh2-1.2.2/example/simple&#39;<br>
/bin/bash ../../libtool --tag=3DCC --mode=3Dlink i686-pc-mingw32-gcc=A0 -DL=
IBSSH2_WIN32 -DWINSOCK_VERSION=3D0x0200=A0=A0 -o ssh2.exe=A0 ssh2.o ../../s=
rc/<a href=3D"http://libssh2.la">libssh2.la</a> -lws2_32<br>libtool: link: =
i686-pc-mingw32-gcc -DLIBSSH2_WIN32 -DWINSOCK_VERSION=3D0x0200 -o .libs/ssh=
2.exe ssh2.o=A0 ../../src/.libs/libssh2.a -lssl -lcrypto -lz -lws2_32<br>
ssh2.o:ssh2.c:(.text+0x17c): undefined reference to `__imp__libssh2_session=
_init_ex&#39;<br>ssh2.o:ssh2.c:(.text+0x193): undefined reference to `__imp=
__libssh2_session_startup&#39;<br>ssh2.o:ssh2.c:(.text+0x1de): undefined re=
ference to `__imp__libssh2_hostkey_hash&#39;<br>
ssh2.o:ssh2.c:(.text+0x250): undefined reference to `__imp__libssh2_useraut=
h_list&#39;<br>ssh2.o:ssh2.c:(.text+0x39e): undefined reference to `__imp__=
libssh2_userauth_password_ex&#39;<br>ssh2.o:ssh2.c:(.text+0x3fe): undefined=
 reference to `__imp__libssh2_userauth_keyboard_interactive_ex&#39;<br>
ssh2.o:ssh2.c:(.text+0x474): undefined reference to `__imp__libssh2_useraut=
h_publickey_fromfile_ex&#39;<br>ssh2.o:ssh2.c:(.text+0x4e5): undefined refe=
rence to `__imp__libssh2_channel_open_ex&#39;<br>ssh2.o:ssh2.c:(.text+0x548=
): undefined reference to `__imp__libssh2_channel_setenv_ex&#39;<br>
ssh2.o:ssh2.c:(.text+0x595): undefined reference to `__imp__libssh2_channel=
_request_pty_ex&#39;<br>ssh2.o:ssh2.c:(.text+0x5f0): undefined reference to=
 `__imp__libssh2_channel_process_startup&#39;<br>ssh2.o:ssh2.c:(.text+0x631=
): undefined reference to `__imp__libssh2_channel_free&#39;<br>
ssh2.o:ssh2.c:(.text+0x65d): undefined reference to `__imp__libssh2_session=
_disconnect_ex&#39;<br>ssh2.o:ssh2.c:(.text+0x66a): undefined reference to =
`__imp__libssh2_session_free&#39;<br>collect2: ld returned 1 exit status<br=
>
make[2]: *** [ssh2.exe] Error 1<br>make[2]: Leaving directory `/home/alian/=
Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2/example/simple&#39;<br=
>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory `/home/=
alian/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2/example&#39;<br>
make: *** [all-recursive] Error 1<br><br><br><div class=3D"gmail_quote">On =
Wed, Jan 13, 2010 at 1:31 AM, Simon Josefsson <span dir=3D"ltr">&lt;<a href=
=3D"mailto:simon@josefsson.org">simon@josefsson.org</a>&gt;</span> wrote:<b=
r>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"=
>salsa lover &lt;<a href=3D"mailto:gougolith@gmail.com">gougolith@gmail.com=
</a>&gt; writes:<br>

<br>
&gt; I&#39;m using a custom built mingw32 environment under my homedir, (no=
t from<br>
&gt; repository).<br>
&gt; I&#39;ve already copied those files from libssh2 binary build into lib=
 and<br>
&gt; include. So as for cross compiling<br>
&gt; libssh2 i&#39;ve given up. I&#39;m trying to integrate the cross compi=
ler with<br>
&gt; codeblocks now.<br>
<br>
</div>I&#39;m cross compiling libssh2 using MinGW/Wine from debian, in fact=
 all<br>
the Windows binaries on <a href=3D"http://josefsson.org/gnutls4win/" target=
=3D"_blank">http://josefsson.org/gnutls4win/</a> are generated<br>
that way. =A0There shouldn&#39;t be any major problems doing this. =A0What<=
br>
errors did you get? =A0I am aware that libssh2 in git doesn&#39;t currently=
<br>
cross-compile well, but that&#39;s a separate issue.<br>
<font color=3D"#888888"><br>
/Simon<br>
</font><div><div></div><div class=3D"h5"><br>
&gt; On Tue, Jan 12, 2010 at 5:53 PM, Peter Stuge &lt;<a href=3D"mailto:pet=
er@stuge.se">peter@stuge.se</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; salsa lover wrote:<br>
&gt;&gt; &gt; Since i dont wanna a create issues by just copying over the<b=
r>
&gt;&gt; &gt; precompiled libssh2 win32 binaries over my existing deps sinc=
e i<br>
&gt;&gt; &gt; already have those nicely compiled, is there a quick fix here=
?<br>
&gt;&gt;<br>
&gt;&gt; Find libssh2.a (it should be in src/.libs/) and copy it to your mi=
ngw<br>
&gt;&gt; lib directory. Copy libssh2.h libssh2_sftp.h and libssh2_publickey=
.h<br>
&gt;&gt; to the include directory.<br>
&gt;&gt;<br>
&gt;&gt; For my mingw32 cross toolchain built with Gentoo crossdev that mea=
ns<br>
&gt;&gt; /usr/i686-mingw32/usr/lib/ and /usr/i686-mingw32/usr/include/ but =
I<br>
&gt;&gt; don&#39;t know which paths debian uses.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &gt; the libs are built ok but not the examples.<br>
&gt;&gt;<br>
&gt;&gt; Please show us the error messages that you get.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; //Peter<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listi=
nfo/libssh2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/li=
stinfo/libssh2-devel</a><br>
&gt;&gt;<br>
&gt; _______________________________________________<br>
&gt; libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/=
libssh2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listin=
fo/libssh2-devel</a><br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</div></div></blockquote></div><br>

--00032557c31272571e047d0f836c--

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

--===============1112647645==--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 18:59:41 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DHxdv8021732;
	Wed, 13 Jan 2010 18:59:40 +0100
Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com
	[209.85.221.175])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DHxbmb021711
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 18:59:37 +0100
Received: by qyk5 with SMTP id 5so1232037qyk.8
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 09:59:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=fUAcPGuR35UoMoK2d9OkwLYUBe/GeCkr0qjmyTiAc4U=;
	b=OhrNnWg2t2HDqZTb3DqW2acV4+GO9KLMjV8K8NUobvCk4LdwUFq1cxGfe2ZYHLIVuf
	PSyBKdnW1n5xQtHWHdqYTUTgsWv3hz3rDTq2FcsQQ+U2upOB/uZjE7LAcEgG1R0x3etE
	26GiruCtnxVU8fquFGgmi1QlwLHby2zEIQtx8=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=gp/VSk3vZYZ7FRGnhv5mfCz1n6Z5U95KrCr4AwNQ8yUWA034zJ7g64sA+AD2DTkG+Q
	DQuC5Ci7VqNkglMbJaDCL9D7ZcFAXfHs+MTo5zL000S2GlPOddT05A8nPvToQwvP7dvs
	yoiVRBEusp7X6L3LhkCBi73mmc1yXUWvDMXeA=
MIME-Version: 1.0
Received: by 10.229.92.211 with SMTP id s19mr3920748qcm.46.1263405572646; Wed, 
	13 Jan 2010 09:59:32 -0800 (PST)
In-Reply-To: <87tyuqjqpk.fsf@mocca.josefsson.org>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
Date: Wed, 13 Jan 2010 09:59:32 -0800
Message-ID: <603122d71001130959x7c24c77t48268fcd965187c6@mail.gmail.com>
Subject: Re: mingw32 cross
From: salsa lover <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1876092799=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1876092799==
Content-Type: multipart/alternative; boundary=000e0cd6b2ee5d66e4047d0f88d1

--000e0cd6b2ee5d66e4047d0f88d1
Content-Type: text/plain; charset=ISO-8859-1

Actually just for the record i've never been able to cross compile the lib
with any setup sadly on Xubuntu.

On Wed, Jan 13, 2010 at 1:31 AM, Simon Josefsson <simon@josefsson.org>wrote:

> salsa lover <gougolith@gmail.com> writes:
>
> > I'm using a custom built mingw32 environment under my homedir, (not from
> > repository).
> > I've already copied those files from libssh2 binary build into lib and
> > include. So as for cross compiling
> > libssh2 i've given up. I'm trying to integrate the cross compiler with
> > codeblocks now.
>
> I'm cross compiling libssh2 using MinGW/Wine from debian, in fact all
> the Windows binaries on http://josefsson.org/gnutls4win/ are generated
> that way.  There shouldn't be any major problems doing this.  What
> errors did you get?  I am aware that libssh2 in git doesn't currently
> cross-compile well, but that's a separate issue.
>
> /Simon
>
> > On Tue, Jan 12, 2010 at 5:53 PM, Peter Stuge <peter@stuge.se> wrote:
> >
> >> salsa lover wrote:
> >> > Since i dont wanna a create issues by just copying over the
> >> > precompiled libssh2 win32 binaries over my existing deps since i
> >> > already have those nicely compiled, is there a quick fix here?
> >>
> >> Find libssh2.a (it should be in src/.libs/) and copy it to your mingw
> >> lib directory. Copy libssh2.h libssh2_sftp.h and libssh2_publickey.h
> >> to the include directory.
> >>
> >> For my mingw32 cross toolchain built with Gentoo crossdev that means
> >> /usr/i686-mingw32/usr/lib/ and /usr/i686-mingw32/usr/include/ but I
> >> don't know which paths debian uses.
> >>
> >>
> >> > the libs are built ok but not the examples.
> >>
> >> Please show us the error messages that you get.
> >>
> >>
> >> //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
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

Actually just for the record i&#39;ve never been able to cross compile the =
lib with any setup sadly on Xubuntu.<br><br><div class=3D"gmail_quote">On W=
ed, Jan 13, 2010 at 1:31 AM, Simon Josefsson <span dir=3D"ltr">&lt;<a href=
=3D"mailto:simon@josefsson.org">simon@josefsson.org</a>&gt;</span> wrote:<b=
r>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"=
>salsa lover &lt;<a href=3D"mailto:gougolith@gmail.com">gougolith@gmail.com=
</a>&gt; writes:<br>

<br>
&gt; I&#39;m using a custom built mingw32 environment under my homedir, (no=
t from<br>
&gt; repository).<br>
&gt; I&#39;ve already copied those files from libssh2 binary build into lib=
 and<br>
&gt; include. So as for cross compiling<br>
&gt; libssh2 i&#39;ve given up. I&#39;m trying to integrate the cross compi=
ler with<br>
&gt; codeblocks now.<br>
<br>
</div>I&#39;m cross compiling libssh2 using MinGW/Wine from debian, in fact=
 all<br>
the Windows binaries on <a href=3D"http://josefsson.org/gnutls4win/" target=
=3D"_blank">http://josefsson.org/gnutls4win/</a> are generated<br>
that way. =A0There shouldn&#39;t be any major problems doing this. =A0What<=
br>
errors did you get? =A0I am aware that libssh2 in git doesn&#39;t currently=
<br>
cross-compile well, but that&#39;s a separate issue.<br>
<font color=3D"#888888"><br>
/Simon<br>
</font><div><div></div><div class=3D"h5"><br>
&gt; On Tue, Jan 12, 2010 at 5:53 PM, Peter Stuge &lt;<a href=3D"mailto:pet=
er@stuge.se">peter@stuge.se</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; salsa lover wrote:<br>
&gt;&gt; &gt; Since i dont wanna a create issues by just copying over the<b=
r>
&gt;&gt; &gt; precompiled libssh2 win32 binaries over my existing deps sinc=
e i<br>
&gt;&gt; &gt; already have those nicely compiled, is there a quick fix here=
?<br>
&gt;&gt;<br>
&gt;&gt; Find libssh2.a (it should be in src/.libs/) and copy it to your mi=
ngw<br>
&gt;&gt; lib directory. Copy libssh2.h libssh2_sftp.h and libssh2_publickey=
.h<br>
&gt;&gt; to the include directory.<br>
&gt;&gt;<br>
&gt;&gt; For my mingw32 cross toolchain built with Gentoo crossdev that mea=
ns<br>
&gt;&gt; /usr/i686-mingw32/usr/lib/ and /usr/i686-mingw32/usr/include/ but =
I<br>
&gt;&gt; don&#39;t know which paths debian uses.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &gt; the libs are built ok but not the examples.<br>
&gt;&gt;<br>
&gt;&gt; Please show us the error messages that you get.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; //Peter<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listi=
nfo/libssh2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/li=
stinfo/libssh2-devel</a><br>
&gt;&gt;<br>
&gt; _______________________________________________<br>
&gt; libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/=
libssh2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listin=
fo/libssh2-devel</a><br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</div></div></blockquote></div><br>

--000e0cd6b2ee5d66e4047d0f88d1--

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

--===============1876092799==--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 19:38:00 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DIbhng011166;
	Wed, 13 Jan 2010 19:37:49 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0DIbfPd011148
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 19:37:41 +0100
Received: (qmail 21828 invoked by uid 501); 13 Jan 2010 18:37:42 -0000
Message-ID: <20100113183742.21827.qmail@stuge.se>
Date: Wed, 13 Jan 2010 19:37:42 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: mingw32 cross
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

salsa lover wrote:
> make[2]: Entering directory
> `/home/alian/Desktop/Temp/mingw-cross-env-2.10/Temp/libssh2-1.2.2/example/simple'
> /bin/bash ../../libtool --tag=CC --mode=link i686-pc-mingw32-gcc
> -DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200   -o ssh2.exe  ssh2.o ../../src/
> libssh2.la -lws2_32
> libtool: link: i686-pc-mingw32-gcc -DLIBSSH2_WIN32 -DWINSOCK_VERSION=0x0200
> -o .libs/ssh2.exe ssh2.o  ../../src/.libs/libssh2.a -lssl -lcrypto -lz
> -lws2_32
> ssh2.o:ssh2.c:(.text+0x17c): undefined reference to
> `__imp__libssh2_session_init_ex'

Maybe we should think about changing how the examples are built to
actually make them use -l rather than include object archives?


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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 19:40:40 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DIebfh013023;
	Wed, 13 Jan 2010 19:40:38 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DIea1M012985
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 19:40:36 +0100
Date: Wed, 13 Jan 2010 19:40:36 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
In-Reply-To: <20100113183742.21827.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1001131939350.3422@tvnag.unkk.fr>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
	<20100113183742.21827.qmail@stuge.se>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Wed, 13 Jan 2010, Peter Stuge wrote:

> Maybe we should think about changing how the examples are built to actually 
> make them use -l rather than include object archives?

I believe we already use the correct way, and that Salsa Lover's configure or 
compiler setup is the explanation for the using of .a on the command line.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 19:45:08 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DIj38n018824;
	Wed, 13 Jan 2010 19:45:06 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0DIj2Es018643
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 19:45:02 +0100
Received: (qmail 23557 invoked by uid 501); 13 Jan 2010 18:45:03 -0000
Message-ID: <20100113184503.23556.qmail@stuge.se>
Date: Wed, 13 Jan 2010 19:45:03 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: mingw32 cross
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
	<20100113183742.21827.qmail@stuge.se>
	<alpine.DEB.2.00.1001131939350.3422@tvnag.unkk.fr>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.00.1001131939350.3422@tvnag.unkk.fr>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg wrote:
>> Maybe we should think about changing how the examples are built to 
>> actually make them use -l rather than include object archives?
>
> I believe we already use the correct way,

~/src/libssh2/example $ tail -n 2 Makefile.am
AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddir)/src
LDADD = $(top_builddir)/src/libssh2.la


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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 20:04:34 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DJ4S1D032307;
	Wed, 13 Jan 2010 20:04:32 +0100
Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com
	[209.85.221.175])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DJ4Qvc032134
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 20:04:26 +0100
Received: by qyk5 with SMTP id 5so1290790qyk.8
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 11:04:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=jw9gaq0FcGH+HMrYKyXd5gBV7Enb2Vc9JtgqrQ0qtLU=;
	b=N+UQe4jPImDl9DuMhQHVbkpsQq7iSDsVp3qIEVLRklRrAULQJfXcVy1BS+EIJSwm/Q
	0Yd68iQH01p+QbGX4ichKqHxmBJIzUmMpcMScgbTqXqLZfYELEgPVjoX1fcvFALswvnu
	aHjwqqiA1NlrNJ17KbxfZalsTNiCWUTmfKMwE=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=UZHnNCrLwxuPNNFR7vhq1qw6VgJcjSpfciSPwAl50wLbXVTlmwQJMLZdky9FABfYq+
	q/UbiM7+Su707DVEcx/v8mxNIdkReilOkws1fLGZJe1B1Sya5V0pF958xs4Y+f/UgtOO
	cld/QsRyfSppsTsm7l0WZ/UjPoFEQ3HnBurSI=
MIME-Version: 1.0
Received: by 10.229.19.11 with SMTP id y11mr2304996qca.53.1263409453297; Wed, 
	13 Jan 2010 11:04:13 -0800 (PST)
In-Reply-To: <20100113184503.23556.qmail@stuge.se>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
	<20100113183742.21827.qmail@stuge.se>
	<alpine.DEB.2.00.1001131939350.3422@tvnag.unkk.fr>
	<20100113184503.23556.qmail@stuge.se>
Date: Wed, 13 Jan 2010 11:04:13 -0800
Message-ID: <603122d71001131104u2db06cd6x35d926852dd05350@mail.gmail.com>
Subject: Re: mingw32 cross
From: salsa lover <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1070011545=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1070011545==
Content-Type: multipart/alternative; boundary=0016e64b90d2ac7d2c047d106f4c

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

It's probably because this mingw setup forces static libs on libssh2, matter
of fact all other libs with this setup are static built...

On Wed, Jan 13, 2010 at 10:45 AM, Peter Stuge <peter@stuge.se> wrote:

> Daniel Stenberg wrote:
> >> Maybe we should think about changing how the examples are built to
> >> actually make them use -l rather than include object archives?
> >
> > I believe we already use the correct way,
>
> ~/src/libssh2/example $ tail -n 2 Makefile.am
> AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include
> -I$(top_builddir)/src
> LDADD = $(top_builddir)/src/libssh2.la
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

It&#39;s probably because this mingw setup forces static libs on libssh2, m=
atter of fact all other libs with this setup are static built...<br><br><di=
v class=3D"gmail_quote">On Wed, Jan 13, 2010 at 10:45 AM, Peter Stuge <span=
 dir=3D"ltr">&lt;<a href=3D"mailto:peter@stuge.se">peter@stuge.se</a>&gt;</=
span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"=
>Daniel Stenberg wrote:<br>
&gt;&gt; Maybe we should think about changing how the examples are built to=
<br>
&gt;&gt; actually make them use -l rather than include object archives?<br>
&gt;<br>
&gt; I believe we already use the correct way,<br>
<br>
</div>~/src/libssh2/example $ tail -n 2 Makefile.am<br>
AM_CPPFLAGS =3D -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddi=
r)/src<br>
LDADD =3D $(top_builddir)/src/<a href=3D"http://libssh2.la" target=3D"_blan=
k">libssh2.la</a><br>
<font color=3D"#888888"><br>
<br>
//Peter<br>
</font><div><div></div><div class=3D"h5">__________________________________=
_____________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</div></div></blockquote></div><br>

--0016e64b90d2ac7d2c047d106f4c--

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

--===============1070011545==--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 20:12:40 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DJCYXx005726;
	Wed, 13 Jan 2010 20:12:38 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DJCXSl005718
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 20:12:33 +0100
Date: Wed, 13 Jan 2010 20:12:33 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
In-Reply-To: <20100113184503.23556.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1001132012240.3422@tvnag.unkk.fr>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
	<20100113183742.21827.qmail@stuge.se>
	<alpine.DEB.2.00.1001131939350.3422@tvnag.unkk.fr>
	<20100113184503.23556.qmail@stuge.se>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Wed, 13 Jan 2010, Peter Stuge wrote:

>> I believe we already use the correct way,
>
> ~/src/libssh2/example $ tail -n 2 Makefile.am
> AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddir)/src
> LDADD = $(top_builddir)/src/libssh2.la

Yes?

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 21:33:33 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DKXN3C002290;
	Wed, 13 Jan 2010 21:33:30 +0100
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o0DKXMNm002283
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 21:33:22 +0100
Received: by qw-out-2122.google.com with SMTP id 9so135666qwb.41
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 12:33:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=hJvx7xZC+HOAKbIoIbBMmirEyELxWEwcX8erEA5KBA4=;
	b=fQCc4TzrBNMDkx6Z/T2wr+Ns90f0IgXeBNaVE7p8dz9YRrT7KkDkwlA4fbHtSEy170
	2sXt54sQGpefY188tO9bqs5DL3omJbWp2maK+hmhNfoSUISPEai5vuf4lGL3ihp/ayh8
	Bx8zbWdm89MEAD+F3me+iqSFrh5+GqagjcUfo=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=pOYHKrYjJZcjfyXzp2NDLMSe1jbmAHbkhBLA+vDHzcOa6mstToFrB4pjzudGDO0LWE
	QwKQYZi5Pisp0Q/UIoiGXBBba9dK+47cxZ1KoSQWnmsjOoIsWDABuYuFiJSFULGP1125
	5Mff5DzgMuH8YRQSzMgdq44B8cpOXh2hT2eu0=
MIME-Version: 1.0
Received: by 10.229.19.11 with SMTP id y11mr2429563qca.53.1263414791168; Wed, 
	13 Jan 2010 12:33:11 -0800 (PST)
In-Reply-To: <alpine.DEB.2.00.1001132012240.3422@tvnag.unkk.fr>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
	<20100113183742.21827.qmail@stuge.se>
	<alpine.DEB.2.00.1001131939350.3422@tvnag.unkk.fr>
	<20100113184503.23556.qmail@stuge.se>
	<alpine.DEB.2.00.1001132012240.3422@tvnag.unkk.fr>
Date: Wed, 13 Jan 2010 12:33:10 -0800
Message-ID: <603122d71001131233j7447eb8aj969dd6d665645a66@mail.gmail.com>
Subject: Re: mingw32 cross
From: salsa lover <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1738374226=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1738374226==
Content-Type: multipart/alternative; boundary=0016e64b90d2d5e521047d11ad59

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

Can anyone confirm being able to cross compile on debian not using
mingw/wine but a real cross compile environment?

On Wed, Jan 13, 2010 at 11:12 AM, Daniel Stenberg <daniel@haxx.se> wrote:

> On Wed, 13 Jan 2010, Peter Stuge wrote:
>
>  I believe we already use the correct way,
>>>
>>
>> ~/src/libssh2/example $ tail -n 2 Makefile.am
>> AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include
>> -I$(top_builddir)/src
>> LDADD = $(top_builddir)/src/libssh2.la
>>
>
> Yes?
>
> --
>
>  / daniel.haxx.se
>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

Can anyone confirm being able to cross compile on debian not using mingw/wi=
ne but a real cross compile environment?<br><br><div class=3D"gmail_quote">=
On Wed, Jan 13, 2010 at 11:12 AM, Daniel Stenberg <span dir=3D"ltr">&lt;<a =
href=3D"mailto:daniel@haxx.se">daniel@haxx.se</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"=
>On Wed, 13 Jan 2010, Peter Stuge wrote:<br>
<br>
</div><div class=3D"im"><blockquote class=3D"gmail_quote" style=3D"border-l=
eft: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:=
 1ex;"><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rg=
b(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

I believe we already use the correct way,<br>
</blockquote>
<br>
~/src/libssh2/example $ tail -n 2 Makefile.am<br>
AM_CPPFLAGS =3D -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddi=
r)/src<br>
LDADD =3D $(top_builddir)/src/<a href=3D"http://libssh2.la" target=3D"_blan=
k">libssh2.la</a><br>
</blockquote>
<br></div>
Yes?<br><font color=3D"#888888">
<br>
-- <br>
<br>
=A0/ <a href=3D"http://daniel.haxx.se" target=3D"_blank">daniel.haxx.se</a>=
</font><div><div></div><div class=3D"h5"><br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</div></div></blockquote></div><br>

--0016e64b90d2d5e521047d11ad59--

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

--===============1738374226==--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 21:59:33 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DKwsjn018392;
	Wed, 13 Jan 2010 21:58:59 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DKwqNZ018348
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 21:58:52 +0100
Date: Wed, 13 Jan 2010 21:58:52 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
In-Reply-To: <603122d71001131233j7447eb8aj969dd6d665645a66@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1001132157520.3422@tvnag.unkk.fr>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
	<20100113183742.21827.qmail@stuge.se>
	<alpine.DEB.2.00.1001131939350.3422@tvnag.unkk.fr>
	<20100113184503.23556.qmail@stuge.se>
	<alpine.DEB.2.00.1001132012240.3422@tvnag.unkk.fr>
	<603122d71001131233j7447eb8aj969dd6d665645a66@mail.gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Wed, 13 Jan 2010, salsa lover wrote:

> Can anyone confirm being able to cross compile on debian not using 
> mingw/wine but a real cross compile environment?

Sorry, but how is the mingw32 on for example debian _not_ a "real cross 
compile environment" ?

And yes, Simon already confirmed it works for him.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 13 22:19:19 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0DLJB3a001198;
	Wed, 13 Jan 2010 22:19:16 +0100
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o0DLJ9m4001187
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 22:19:09 +0100
Received: by qw-out-2122.google.com with SMTP id 9so153065qwb.41
	for <libssh2-devel@cool.haxx.se>; Wed, 13 Jan 2010 13:19:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=C/M8554TIoRWv0cRTR3bodSsnRYTTI34yApkXE/j/Lw=;
	b=Y/lwuxyeKMyYwZ3gEfX8sallgWjsWTiH4W/F/Kp9bFQ1SPz6pP4fW11D/DeodDysLu
	M056PVHt3Vs9YraJbP0ERgx0Nmk4yCyZPw2q0kHcSdH+zEVjGLfYf+9Co3AVxP1MYcfp
	CZHrXzX4yWkjbGREabryOehtyt9kpkaB3T+tk=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=AIQzN/r6E+szysIzroQPKF49MjnyETQmFtb4kn4ToSLFfTK5U8ul2Gyl42OxyOxVau
	DPalpfFu9sEZTuzrcYCkgJZc1TRlDDR6yAqC+zI7Sq8mQyjKDxIdlcTmpVut8Q8TbQa+
	nEglRGvkRCIWk9kpWzQhvSspBDVWUxPRhZ0Po=
MIME-Version: 1.0
Received: by 10.229.78.24 with SMTP id i24mr2208788qck.74.1263417549898; Wed, 
	13 Jan 2010 13:19:09 -0800 (PST)
In-Reply-To: <alpine.DEB.2.00.1001132157520.3422@tvnag.unkk.fr>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
	<20100113183742.21827.qmail@stuge.se>
	<alpine.DEB.2.00.1001131939350.3422@tvnag.unkk.fr>
	<20100113184503.23556.qmail@stuge.se>
	<alpine.DEB.2.00.1001132012240.3422@tvnag.unkk.fr>
	<603122d71001131233j7447eb8aj969dd6d665645a66@mail.gmail.com>
	<alpine.DEB.2.00.1001132157520.3422@tvnag.unkk.fr>
Date: Wed, 13 Jan 2010 13:19:08 -0800
Message-ID: <603122d71001131319s6b23ca0bi8f6c7484cfb95a9d@mail.gmail.com>
Subject: Re: mingw32 cross
From: salsa lover <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1740568645=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1740568645==
Content-Type: multipart/alternative; boundary=00235433298a4421e0047d125278

--00235433298a4421e0047d125278
Content-Type: text/plain; charset=ISO-8859-1

Sorry for not being clear but i meant if someone for some reason had
installed mingw under wine.

On Wed, Jan 13, 2010 at 12:58 PM, Daniel Stenberg <daniel@haxx.se> wrote:

> On Wed, 13 Jan 2010, salsa lover wrote:
>
>  Can anyone confirm being able to cross compile on debian not using
>> mingw/wine but a real cross compile environment?
>>
>
> Sorry, but how is the mingw32 on for example debian _not_ a "real cross
> compile environment" ?
>
> And yes, Simon already confirmed it works for him.
>
>
> --
>
>  / daniel.haxx.se
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

Sorry for not being clear but i meant if someone for some reason had instal=
led mingw under wine.<br><br><div class=3D"gmail_quote">On Wed, Jan 13, 201=
0 at 12:58 PM, Daniel Stenberg <span dir=3D"ltr">&lt;<a href=3D"mailto:dani=
el@haxx.se">daniel@haxx.se</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"=
>On Wed, 13 Jan 2010, salsa lover wrote:<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Can anyone confirm being able to cross compile on debian not using mingw/wi=
ne but a real cross compile environment?<br>
</blockquote>
<br></div>
Sorry, but how is the mingw32 on for example debian _not_ a &quot;real cros=
s compile environment&quot; ?<br>
<br>
And yes, Simon already confirmed it works for him.<div><div></div><div clas=
s=3D"h5"><br>
<br>
-- <br>
<br>
=A0/ <a href=3D"http://daniel.haxx.se" target=3D"_blank">daniel.haxx.se</a>=
<br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</div></div></blockquote></div><br>

--00235433298a4421e0047d125278--

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

--===============1740568645==--

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 14 08:16:36 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0E7GL7e028848;
	Thu, 14 Jan 2010 08:16:30 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0E7GJTr028844
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Jan 2010 08:16:19 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0E7GHEM026335
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Jan 2010 08:16:19 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100114:libssh2-devel@cool.haxx.se::rrDbmC9syO9dba9m:8G4r
Date: Thu, 14 Jan 2010 08:16:17 +0100
In-Reply-To: <603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
	(salsa lover's message of "Wed, 13 Jan 2010 09:58:10 -0800")
Message-ID: <87bpgx17i6.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

salsa lover <gougolith@gmail.com> writes:

> Here is the output, also remember i'm not using the debian repo mingw32
> setup, but this one:

What autoconf/automake/libtool version?

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 14 18:23:35 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0EHNMYr027423;
	Thu, 14 Jan 2010 18:23:31 +0100
Received: from dns-factory.at (mail.dns-factory.at [194.242.35.75])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0EHNKor027386
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Jan 2010 18:23:20 +0100
Received: from [172.17.100.26] gk@gknw.net [84.63.9.218]
	by dns-factory.at with NetMail SMTP Agent $Revision: 8582 $ on Novell
	NetWare via secured & encrypted transport (TLS);
	Thu, 14 Jan 2010 18:23:11 +0100
Message-ID: <4B4F52F8.4000302@gknw.net>
Date: Thu, 14 Jan 2010 18:23:04 +0100
From: Guenter <lists@gknw.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de;
	rv:1.9.1.7) Gecko/20100104 SeaMonkey/2.0.2
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>	<20100113015330.23355.qmail@stuge.se>	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>	<87tyuqjqpk.fsf@mocca.josefsson.org>	<alpine.DEB.2.00.1001131033290.12562@tvnag.unkk.fr>	<874omqjq9j.fsf@mocca.josefsson.org>	<alpine.DEB.2.00.1001131052590.12562@tvnag.unkk.fr>	<alpine.DEB.2.00.1001131101170.12562@tvnag.unkk.fr>	<87aawiiaf0.fsf@mocca.josefsson.org>
	<20100113172607.7254.qmail@stuge.se>
In-Reply-To: <20100113172607.7254.qmail@stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi,
Peter Stuge schrieb:
> Simon Josefsson wrote:
>> For my other projects, I've decided that rather than having to do
>> massive fixes when someone reports that the examples are not
>> building, I'll include the examples in my daily builds where I'll
>> quickly discover that they aren't working -- and then I can either
>> fix the problem or back out the patch that broke the build.
>>
>> But I don't feel strongly about it.
>
> I feel more strongly about it. It makes no sense not to build
> examples by default when we have some examples. That is the most
I disagree; examples should be build optional. There are many users out =

there who really dont care about samples because they only build libssh2 =

because they want to another project which depends on it, f.e. Perl / =

PHP / any other language binding, curl ...

> likely first impression a new user will have from the library, and it
> should be available - and working.
and what about the non-new users? No, we waste time of many users if we =

force each and everyone to build the samples.
On the other side nobody has sugested to drop the samples, nor to leave =

them broken; so sure they should be working.
I second Daniel's proposal: lets make a makefile target for building =

them, and let those samples which need it include ssh2_config.h - thats =

acceptable for samples.

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 14 18:29:33 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0EHTTop032740;
	Thu, 14 Jan 2010 18:29:32 +0100
Received: from dns-factory.at (mx03.dns-factory.at [194.242.35.75])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0EHTRk5032735
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Jan 2010 18:29:27 +0100
Received: from [172.17.100.26] gk@gknw.net [84.63.9.218]
	by dns-factory.at with NetMail SMTP Agent $Revision: 8582 $ on Novell
	NetWare via secured & encrypted transport (TLS);
	Thu, 14 Jan 2010 18:29:19 +0100
Message-ID: <4B4F5468.3070302@gknw.net>
Date: Thu, 14 Jan 2010 18:29:12 +0100
From: Guenter <lists@gknw.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; de;
	rv:1.9.1.7) Gecko/20100104 SeaMonkey/2.0.2
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>	<20100113015330.23355.qmail@stuge.se>	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>	<87tyuqjqpk.fsf@mocca.josefsson.org>	<603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>	<20100113183742.21827.qmail@stuge.se>	<alpine.DEB.2.00.1001131939350.3422@tvnag.unkk.fr>	<20100113184503.23556.qmail@stuge.se>	<alpine.DEB.2.00.1001132012240.3422@tvnag.unkk.fr>	<603122d71001131233j7447eb8aj969dd6d665645a66@mail.gmail.com>
	<alpine.DEB.2.00.1001132157520.3422@tvnag.unkk.fr>
In-Reply-To: <alpine.DEB.2.00.1001132157520.3422@tvnag.unkk.fr>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Daniel Stenberg schrieb:
> On Wed, 13 Jan 2010, salsa lover wrote:
>
>> Can anyone confirm being able to cross compile on debian not using
>> mingw/wine but a real cross compile environment?
>
> Sorry, but how is the mingw32 on for example debian _not_ a "real cross
> compile environment" ?
>
> And yes, Simon already confirmed it works for him.
I understood same as salsa lover: sounds as if Simon for whatever reason =

runs the win32 mingw32 compiler on wine, and that's no cross-compile =

environment; I would call this a native compile ....

G=FCn.

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 14 21:55:28 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0EKtHaA011433;
	Thu, 14 Jan 2010 21:55:25 +0100
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o0EKtGXZ011423
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Jan 2010 21:55:16 +0100
Received: by qw-out-2122.google.com with SMTP id 5so359453qwi.41
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Jan 2010 12:55:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=SZ9qVCS8wIqC/TkSn97l9fXZC4F0WkMoI1apUCHqirI=;
	b=O6+7CY+4MdDmxN0AHRkI6hd9WFejCeaZoOg/wc2XBa5XTGeTKB4rDhLJRC+i0corVy
	NZTSAr+IDkekySPEYApOdZ3bPdGS4n2grsbefAivXLHE//foFWpomcXLq+WgNdpu8598
	TPRY+N9l02PQ2Y1bkGxw8nZHsDrbzek+ScyyU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=HLFICCE+RV0IrZPExiK+dHUX8WKKeEEnapRVGA4T8QHMnkns/Ka6Ta0qkiwnZVDv8m
	DMoOulGMFHDz4RCP83ttPXafUOZl4qkosMFGFsqCND6eb7qWHm/ZaqNZMUTP6/F3RiO7
	0GazNwoTf/JNo+Yip+s4yJOOCR31Xkhc5z+nk=
MIME-Version: 1.0
Received: by 10.229.119.159 with SMTP id z31mr1296395qcq.49.1263502516155; 
	Thu, 14 Jan 2010 12:55:16 -0800 (PST)
In-Reply-To: <87bpgx17i6.fsf@mocca.josefsson.org>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
	<87bpgx17i6.fsf@mocca.josefsson.org>
Date: Thu, 14 Jan 2010 12:55:15 -0800
Message-ID: <603122d71001141255l5081c0edv938f6a917f73281a@mail.gmail.com>
Subject: Re: mingw32 cross
From: salsa lover <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0098728821=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0098728821==
Content-Type: multipart/alternative; boundary=000e0cd5cc3ea5fb5b047d261aef

--000e0cd5cc3ea5fb5b047d261aef
Content-Type: text/plain; charset=ISO-8859-1

Here Simon:

alian@alian-laptop:~$ autoconf --version
autoconf (GNU Autoconf) 2.64
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later
<http://gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.
alian@alian-laptop:~$ automake
automake       automake-1.10  automake-1.11  automake-1.4   automake-1.7
automake-1.8   automake-1.9
alian@alian-laptop:~$ automake --version
automake (GNU automake) 1.11
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <
http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <tromey@redhat.com>
       and Alexandre Duret-Lutz <adl@gnu.org>.
alian@alian-laptop:~$ libtool --version
ltmain.sh (GNU libtool) 2.2.6
Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996

Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
alian@alian-laptop:~$ i686-pc-mingw32-
i686-pc-mingw32-addr2line            i686-pc-mingw32-gccbug
i686-pc-mingw32-ranlib
i686-pc-mingw32-ar                   i686-pc-mingw32-gcov
i686-pc-mingw32-rcc
i686-pc-mingw32-as                   i686-pc-mingw32-gfortran
i686-pc-mingw32-readelf
i686-pc-mingw32-c++                  i686-pc-mingw32-gprof
i686-pc-mingw32-size
i686-pc-mingw32-c++filt              i686-pc-mingw32-ld
i686-pc-mingw32-strings
i686-pc-mingw32-cpp                  i686-pc-mingw32-moc
i686-pc-mingw32-strip
i686-pc-mingw32-dlltool              i686-pc-mingw32-nm
i686-pc-mingw32-uic
i686-pc-mingw32-dllwrap              i686-pc-mingw32-objcopy
i686-pc-mingw32-windmc
i686-pc-mingw32-g++                  i686-pc-mingw32-objdump
i686-pc-mingw32-windres
i686-pc-mingw32-gcc                  i686-pc-mingw32-pkg-config
i686-pc-mingw32-wx-config
i686-pc-mingw32-gcc-4.4.0            i686-pc-mingw32-qmake
i686-pc-mingw32-wx-config-nounicode
alian@alian-laptop:~$

On Wed, Jan 13, 2010 at 11:16 PM, Simon Josefsson <simon@josefsson.org>wrote:

> salsa lover <gougolith@gmail.com> writes:
>
> > Here is the output, also remember i'm not using the debian repo mingw32
> > setup, but this one:
>
> What autoconf/automake/libtool version?
>
> /Simon
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

Here Simon:<br><br>alian@alian-laptop:~$ autoconf --version<br>autoconf (GN=
U Autoconf) 2.64<br>Copyright (C) 2009 Free Software Foundation, Inc.<br>Li=
cense GPLv2+: GNU GPL version 2 or later<br>&lt;<a href=3D"http://gnu.org/l=
icenses/old-licenses/gpl-2.0.html">http://gnu.org/licenses/old-licenses/gpl=
-2.0.html</a>&gt;<br>
This is free software: you are free to change and redistribute it.<br>There=
 is NO WARRANTY, to the extent permitted by law.<br><br>Written by David J.=
 MacKenzie and Akim Demaille.<br>alian@alian-laptop:~$ automake<br>automake=
=A0=A0=A0=A0=A0=A0 automake-1.10=A0 automake-1.11=A0 automake-1.4=A0=A0 aut=
omake-1.7=A0=A0 automake-1.8=A0=A0 automake-1.9=A0=A0 <br>
alian@alian-laptop:~$ automake --version<br>automake (GNU automake) 1.11<br=
>Copyright (C) 2009 Free Software Foundation, Inc.<br>License GPLv2+: GNU G=
PL version 2 or later &lt;<a href=3D"http://gnu.org/licenses/gpl-2.0.html">=
http://gnu.org/licenses/gpl-2.0.html</a>&gt;<br>
This is free software: you are free to change and redistribute it.<br>There=
 is NO WARRANTY, to the extent permitted by law.<br><br>Written by Tom Trom=
ey &lt;<a href=3D"mailto:tromey@redhat.com">tromey@redhat.com</a>&gt;<br>
=A0=A0=A0=A0=A0=A0 and Alexandre Duret-Lutz &lt;<a href=3D"mailto:adl@gnu.o=
rg">adl@gnu.org</a>&gt;.<br>alian@alian-laptop:~$ libtool --version<br>ltma=
in.sh (GNU libtool) 2.2.6<br>Written by Gordon Matzigkeit &lt;<a href=3D"ma=
ilto:gord@gnu.ai.mit.edu">gord@gnu.ai.mit.edu</a>&gt;, 1996<br>
<br>Copyright (C) 2008 Free Software Foundation, Inc.<br>This is free softw=
are; see the source for copying conditions.=A0 There is NO<br>warranty; not=
 even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br>alian@ali=
an-laptop:~$ i686-pc-mingw32-<br>
i686-pc-mingw32-addr2line=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i686-pc-mingw32-=
gccbug=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i686-pc-mingw32-ranlib<br>=
i686-pc-mingw32-ar=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i6=
86-pc-mingw32-gcov=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i686-pc-=
mingw32-rcc<br>i686-pc-mingw32-as=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0 i686-pc-mingw32-gfortran=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i=
686-pc-mingw32-readelf<br>
i686-pc-mingw32-c++=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i686=
-pc-mingw32-gprof=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i686-pc-ming=
w32-size<br>i686-pc-mingw32-c++filt=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
i686-pc-mingw32-ld=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i6=
86-pc-mingw32-strings<br>i686-pc-mingw32-cpp=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0 i686-pc-mingw32-moc=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0 i686-pc-mingw32-strip<br>
i686-pc-mingw32-dlltool=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i686-pc-ming=
w32-nm=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i686-pc-mingw3=
2-uic<br>i686-pc-mingw32-dllwrap=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i68=
6-pc-mingw32-objcopy=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i686-pc-mingw32=
-windmc<br>i686-pc-mingw32-g++=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0 i686-pc-mingw32-objdump=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i686-=
pc-mingw32-windres<br>
i686-pc-mingw32-gcc=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i686=
-pc-mingw32-pkg-config=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i686-pc-mingw32-wx-con=
fig<br>i686-pc-mingw32-gcc-4.4.0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i686-pc-m=
ingw32-qmake=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 i686-pc-mingw32-w=
x-config-nounicode<br>alian@alian-laptop:~$ <br>
<br><div class=3D"gmail_quote">On Wed, Jan 13, 2010 at 11:16 PM, Simon Jose=
fsson <span dir=3D"ltr">&lt;<a href=3D"mailto:simon@josefsson.org">simon@jo=
sefsson.org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" styl=
e=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; =
padding-left: 1ex;">
<div class=3D"im">salsa lover &lt;<a href=3D"mailto:gougolith@gmail.com">go=
ugolith@gmail.com</a>&gt; writes:<br>
<br>
</div><div class=3D"im">&gt; Here is the output, also remember i&#39;m not =
using the debian repo mingw32<br>
&gt; setup, but this one:<br>
<br>
</div>What autoconf/automake/libtool version?<br>
<font color=3D"#888888"><br>
/Simon<br>
</font><div><div></div><div class=3D"h5">__________________________________=
_____________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</div></div></blockquote></div><br>

--000e0cd5cc3ea5fb5b047d261aef--

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

--===============0098728821==--

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 14 22:38:06 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0ELc0dK007903;
	Thu, 14 Jan 2010 22:38:04 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0ELbwWd007900
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Jan 2010 22:37:59 +0100
Received: from [192.168.1.30] (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0ELbpDm011698
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Jan 2010 22:37:59 +0100
Subject: Re: mingw32 cross
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
In-Reply-To: <4B4F5468.3070302@gknw.net>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<20100113015330.23355.qmail@stuge.se>
	<603122d71001121829h319116f5n44237ba52e57c4d6@mail.gmail.com>
	<87tyuqjqpk.fsf@mocca.josefsson.org>
	<603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
	<20100113183742.21827.qmail@stuge.se>
	<alpine.DEB.2.00.1001131939350.3422@tvnag.unkk.fr>
	<20100113184503.23556.qmail@stuge.se>
	<alpine.DEB.2.00.1001132012240.3422@tvnag.unkk.fr>
	<603122d71001131233j7447eb8aj969dd6d665645a66@mail.gmail.com>
	<alpine.DEB.2.00.1001132157520.3422@tvnag.unkk.fr>
	<4B4F5468.3070302@gknw.net>
Date: Thu, 14 Jan 2010 22:37:50 +0100
Message-ID: <1263505070.2010.0.camel@sockerbit>
Mime-Version: 1.0
X-Mailer: Evolution 2.28.1 
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On tor, 2010-01-14 at 18:29 +0100, Guenter wrote:
> Daniel Stenberg schrieb:
> > On Wed, 13 Jan 2010, salsa lover wrote:
> >
> >> Can anyone confirm being able to cross compile on debian not using
> >> mingw/wine but a real cross compile environment?
> >
> > Sorry, but how is the mingw32 on for example debian _not_ a "real cross
> > compile environment" ?
> >
> > And yes, Simon already confirmed it works for him.
> I understood same as salsa lover: sounds as if Simon for whatever reason 
> runs the win32 mingw32 compiler on wine, and that's no cross-compile 
> environment; I would call this a native compile ....

No, I'm using mingw on debian, cross compiling from debian x86 to
windows.  Wine is only used to run the built self-tests under linux.

/Simon

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 14 22:47:28 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0ELlLCw017775;
	Thu, 14 Jan 2010 22:47:24 +0100
Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com
	[209.85.221.175])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0ELlKGP017766
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Jan 2010 22:47:21 +0100
Received: by qyk5 with SMTP id 5so8191qyk.8
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Jan 2010 13:47:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=zVW+9yXQP7CC37zm50Uf9NXLnjGXIR8gEVlV6E6VFgk=;
	b=sAcJ09RdWVhngoYNSUUL7EVx1USY7cmuulSx9wdYUsTQye07CDPYDn9DHc2LNMv9xb
	r9K+jfCSq0dAytSlSq8iw7rzs9OQ6vF9oFzvfQVFRqsvS5gWfLXI39D6RKHF/DN2iglm
	svKxOGhdjG3RWk2U1VlVgggWi7O8FEFQ8i3i0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=KUcL+pib96LacYK2WuhHsyh+Qk/4tijvE3e+NXBzd2ViyeD9kYtgEwX5aPCUFmQ1Zz
	jO7oYtSFpguZb/F0411GuPE42olix6pY5WkX7oJ4xoq+2Hy6/kcRcTTckN1uGzTnn0Y9
	g2XSUZ9sEZyBY8dqpwWLTl3oJ1wViFabP1opY=
MIME-Version: 1.0
Received: by 10.229.119.159 with SMTP id z31mr1381318qcq.49.1263505635591; 
	Thu, 14 Jan 2010 13:47:15 -0800 (PST)
In-Reply-To: <1263505070.2010.0.camel@sockerbit>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
	<20100113183742.21827.qmail@stuge.se>
	<alpine.DEB.2.00.1001131939350.3422@tvnag.unkk.fr>
	<20100113184503.23556.qmail@stuge.se>
	<alpine.DEB.2.00.1001132012240.3422@tvnag.unkk.fr>
	<603122d71001131233j7447eb8aj969dd6d665645a66@mail.gmail.com>
	<alpine.DEB.2.00.1001132157520.3422@tvnag.unkk.fr>
	<4B4F5468.3070302@gknw.net> <1263505070.2010.0.camel@sockerbit>
Date: Thu, 14 Jan 2010 13:47:15 -0800
Message-ID: <603122d71001141347q1bc3f61cyad9a86d83e6f3e79@mail.gmail.com>
Subject: Re: mingw32 cross
From: salsa lover <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1239930301=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1239930301==
Content-Type: multipart/alternative; boundary=000e0cd5cc3e94c78d047d26d403

--000e0cd5cc3e94c78d047d26d403
Content-Type: text/plain; charset=ISO-8859-1

Are you using the repo mingw setup ?

On Thu, Jan 14, 2010 at 1:37 PM, Simon Josefsson <simon@josefsson.org>wrote:

> On tor, 2010-01-14 at 18:29 +0100, Guenter wrote:
> > Daniel Stenberg schrieb:
> > > On Wed, 13 Jan 2010, salsa lover wrote:
> > >
> > >> Can anyone confirm being able to cross compile on debian not using
> > >> mingw/wine but a real cross compile environment?
> > >
> > > Sorry, but how is the mingw32 on for example debian _not_ a "real cross
> > > compile environment" ?
> > >
> > > And yes, Simon already confirmed it works for him.
> > I understood same as salsa lover: sounds as if Simon for whatever reason
> > runs the win32 mingw32 compiler on wine, and that's no cross-compile
> > environment; I would call this a native compile ....
>
> No, I'm using mingw on debian, cross compiling from debian x86 to
> windows.  Wine is only used to run the built self-tests under linux.
>
> /Simon
>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

Are you using the repo mingw setup ?<br><br><div class=3D"gmail_quote">On T=
hu, Jan 14, 2010 at 1:37 PM, Simon Josefsson <span dir=3D"ltr">&lt;<a href=
=3D"mailto:simon@josefsson.org">simon@josefsson.org</a>&gt;</span> wrote:<b=
r><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204=
, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class=3D"im">On tor, 2010-01-14 at 18:29 +0100, Guenter wrote:<br>
&gt; Daniel Stenberg schrieb:<br>
&gt; &gt; On Wed, 13 Jan 2010, salsa lover wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; Can anyone confirm being able to cross compile on debian not =
using<br>
&gt; &gt;&gt; mingw/wine but a real cross compile environment?<br>
&gt; &gt;<br>
&gt; &gt; Sorry, but how is the mingw32 on for example debian _not_ a &quot=
;real cross<br>
&gt; &gt; compile environment&quot; ?<br>
&gt; &gt;<br>
&gt; &gt; And yes, Simon already confirmed it works for him.<br>
&gt; I understood same as salsa lover: sounds as if Simon for whatever reas=
on<br>
&gt; runs the win32 mingw32 compiler on wine, and that&#39;s no cross-compi=
le<br>
&gt; environment; I would call this a native compile ....<br>
<br>
</div>No, I&#39;m using mingw on debian, cross compiling from debian x86 to=
<br>
windows. =A0Wine is only used to run the built self-tests under linux.<br>
<font color=3D"#888888"><br>
/Simon<br>
</font><div><div></div><div class=3D"h5"><br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</div></div></blockquote></div><br>

--000e0cd5cc3e94c78d047d26d403--

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

--===============1239930301==--

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 15 03:18:38 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0F2I7XO031445;
	Fri, 15 Jan 2010 03:18:17 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0F2I6A9031037
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 03:18:06 +0100
Received: (qmail 3260 invoked by uid 501); 15 Jan 2010 02:18:06 -0000
Message-ID: <20100115021806.3259.qmail@stuge.se>
Date: Fri, 15 Jan 2010 03:18:06 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: release time?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Dave McCaldon wrote:
> There's still the fix for incorrect username/password in userauth.c
> that I don't think is in; here's the synopsis:

Thanks for the ping! I hope we can finally solve this now.

Fact: libssh2 does not report password authentication failure.
Fact: libssh2 reports public key authentication failure using the
error code LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED.

There seemed to be good consensus that libssh2 should not invent new
error codes but rather stay close to errors in the protocol, and the
SSH Authentication Protocol (RFC4252) does not have method-specific
return codes.

So the problem we are facing is that we should actually rename
LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED to something like
LIBSSH2_ERROR_AUTHENTICATION_FAILED and use that error code for
all failed authentication attempts, regardless of the method used.

Can we do this rename? It means changing the API. We could keep a
backwards-compatible alias define and mark _PUBLICKEY_UNRECOGNIZED
as deprecated, I guess that is as good as it gets?


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 15 03:22:45 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0F2MfAE011415;
	Fri, 15 Jan 2010 03:22:43 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0F2MeM1011384
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 03:22:40 +0100
Received: (qmail 4448 invoked by uid 501); 15 Jan 2010 02:22:41 -0000
Message-ID: <20100115022241.4447.qmail@stuge.se>
Date: Fri, 15 Jan 2010 03:22:41 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: release time?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20100115021806.3259.qmail@stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Peter Stuge wrote:
> So the problem we are facing is that we should actually rename
> LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED to something like
> LIBSSH2_ERROR_AUTHENTICATION_FAILED and use that error code for
> all failed authentication attempts, regardless of the method used.
> 
> Can we do this rename? It means changing the API. We could keep a
> backwards-compatible alias define and mark _PUBLICKEY_UNRECOGNIZED
> as deprecated, I guess that is as good as it gets?

This is your suggestion from November, David. It has taken me some
time to sync up with you on this. I do believe it's the right
solution.


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 15 04:42:55 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0F3gj4p003151;
	Fri, 15 Jan 2010 04:42:53 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0F3ghf1003117
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 04:42:43 +0100
Received: (qmail 16581 invoked by uid 501); 15 Jan 2010 03:42:43 -0000
Message-ID: <20100115034243.16580.qmail@stuge.se>
Date: Fri, 15 Jan 2010 04:42:43 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: release time?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<20100115022241.4447.qmail@stuge.se>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20100115022241.4447.qmail@stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Peter Stuge wrote:
> This is your suggestion from November, David.

David? Dave! Sorry!


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 15 09:21:08 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0F8Ku9I005868;
	Fri, 15 Jan 2010 09:21:04 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0F8KspN005805
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 09:20:54 +0100
Date: Fri, 15 Jan 2010 09:20:54 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: release time?
In-Reply-To: <20100115021806.3259.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1001150920160.1097@tvnag.unkk.fr>
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Fri, 15 Jan 2010, Peter Stuge wrote:

> we should actually rename LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED to something 
> like LIBSSH2_ERROR_AUTHENTICATION_FAILED and use that error code for all 
> failed authentication attempts, regardless of the method used.
>
> Can we do this rename? It means changing the API. We could keep a 
> backwards-compatible alias define and mark _PUBLICKEY_UNRECOGNIZED as 
> deprecated, I guess that is as good as it gets?

I'm totally fine with doing the rename with a backwards-compatible alias 
define.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 15 12:26:57 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FBQkOE030592;
	Fri, 15 Jan 2010 12:26:54 +0100
Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com
	[209.85.219.226])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FBQiGv030570
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 12:26:44 +0100
Received: by ewy26 with SMTP id 26so615444ewy.3
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 03:26:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type; bh=i2E094NXv0VzynvUIIsptV1vnyPLYYiEgPsGvjVknzM=;
	b=iU55T/RDK3ARL5rMqjnwz7SIWJhlPVjzKlC0RhoLrvHfftKUdIkzegLybD9VusBhvw
	UMGy8Z5LIf8eMuMz5MbpYlETTiWURYqQBqVpM/4wqDqoYbW7fPkrr1xrcezHwOYbXtP5
	coeLP1Qa/CffK7qqe3s5lyby99LclpVOMBIbc=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type;
	b=CBEkwNTTQ1lr1SuOvBPH7AY+Lm2OySFZHOujU18cs1DbivsCxD2dzKTSBhUtIlhsu7
	OWSgIZ38L/uupftO0QFPQLfPIl6AYOAIUc8gKtPw1n8wuCxq1gMRjuZqdJYaPSCjF8EP
	OMtCuu3tW14MVmAT4RgxWqJf3dyDwupYcfeJA=
MIME-Version: 1.0
Received: by 10.213.100.168 with SMTP id y40mr811036ebn.28.1263554799896; Fri, 
	15 Jan 2010 03:26:39 -0800 (PST)
In-Reply-To: <20100115021806.3259.qmail@stuge.se>
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
Date: Fri, 15 Jan 2010 11:26:39 +0000
X-Google-Sender-Auth: c44a2ef1da0a6178
Message-ID: <9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
Subject: Re: release time?
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

2010/1/15 Peter Stuge <peter@stuge.se>:
> So the problem we are facing is that we should actually rename
> LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED to something like
> LIBSSH2_ERROR_AUTHENTICATION_FAILED and use that error code for
> all failed authentication attempts, regardless of the method used.
>
> Can we do this rename? It means changing the API. We could keep a
> backwards-compatible alias define and mark _PUBLICKEY_UNRECOGNIZED
> as deprecated, I guess that is as good as it gets?

As long as we do the backwards-compatibility alias, it doesn't even
change the API.  The other authentication functions didn't specify
error values.

... Which brings me to libssh2_userauth_keyboard_interactive_ex.  This
needs to be given the same treatment as
libssh2_userauth_password_ex().

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 15 15:02:49 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FE2aQM021067;
	Fri, 15 Jan 2010 15:02:45 +0100
Received: from mail.intersystems.com (mail.intersys.com [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FE2Yrb020843
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 15:02:34 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: release time?
From: Dave McCaldon <davem@intersystems.com>
In-Reply-To: <9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
Date: Fri, 15 Jan 2010 09:02:27 -0500
Message-Id: <FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Jan 15, 2010, at 6:26 AM, Alexander Lamaison wrote:

> 2010/1/15 Peter Stuge <peter@stuge.se>:
>> So the problem we are facing is that we should actually rename
>> LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED to something like
>> LIBSSH2_ERROR_AUTHENTICATION_FAILED and use that error code for
>> all failed authentication attempts, regardless of the method used.
>> 
>> Can we do this rename? It means changing the API. We could keep a
>> backwards-compatible alias define and mark _PUBLICKEY_UNRECOGNIZED
>> as deprecated, I guess that is as good as it gets?
> 
> As long as we do the backwards-compatibility alias, it doesn't even
> change the API.  The other authentication functions didn't specify
> error values.

Yes, my patch added LIBSSH2_ERROR_AUTHENTICATION_FAILED with the same value as LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED.

> ... Which brings me to libssh2_userauth_keyboard_interactive_ex.  This
> needs to be given the same treatment as
> libssh2_userauth_password_ex().

Absolutely.

Now, what's the best patch format?  A git patch from my copy of the repo? or a plain/regular diff?

Thanks!

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 15 15:04:43 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FE4dd0023809;
	Fri, 15 Jan 2010 15:04:41 +0100
Received: from mail.intersystems.com (mail.intersys.com [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FE4bbP023693
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 15:04:38 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: release time?
From: Dave McCaldon <davem@intersystems.com>
In-Reply-To: <20100115021806.3259.qmail@stuge.se>
Date: Fri, 15 Jan 2010 09:04:29 -0500
Message-Id: <129C2AB3-31C5-417A-9238-4D670C0DFCFA@intersystems.com>
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


On Jan 14, 2010, at 9:18 PM, Peter Stuge wrote:

> Dave McCaldon wrote:
>> There's still the fix for incorrect username/password in userauth.c
>> that I don't think is in; here's the synopsis:
> 
> Thanks for the ping! I hope we can finally solve this now.

While we're at it, I also submitted a patch that implemented an optional callback mechanism for libssh2_trace(), so you can override the default behavior of trace info being written to stderr (e.g. you might want to capture it to a file, put it into a window in your application etc).

I'd like to get that in too.

Thanks!

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 15 15:16:35 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FEGV66031968;
	Fri, 15 Jan 2010 15:16:33 +0100
Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com
	[209.85.219.226])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FEGTk2031944
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 15:16:29 +0100
Received: by ewy26 with SMTP id 26so800519ewy.3
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 06:16:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type:content-transfer-encoding;
	bh=MIj2dw5FMiKyQ6ilUXjjfd3qImdb42on6v3ZpsSQsLk=;
	b=qbj6+WjhV2gKcVuFL1ceRbh1nz2hrRvNXh3cpyILhfXbD9TQRvMkp/240Ni8/ppeEk
	9X5AJI/pCZxmN14PxlfTHx5eBEf/cEuGXSxE8IpJeSKV409DZrN1I1NlV1jhNFGatMml
	KqVgh0YjpKvNkm7b8rYoKFPjwCGNwOMcxdMig=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type
	:content-transfer-encoding;
	b=iur6ezGLQtb5UNSwKDY3vTCokCpEeTWjSe1FLTRH3rTnBNSLAELt8vu8zdpfIvTelL
	IwbuuKixe66vDgHf/bzvTdehHE6IyIuxW3cp4fc+nyr1Q7P30wR/WzTmCFTxDDbdRldr
	ltu5d1oW8mxWDL0ZsdKKHF4piY5fwF84QWnxU=
MIME-Version: 1.0
Received: by 10.213.102.133 with SMTP id g5mr2414168ebo.43.1263564984188; Fri, 
	15 Jan 2010 06:16:24 -0800 (PST)
In-Reply-To: <FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
Date: Fri, 15 Jan 2010 14:16:24 +0000
X-Google-Sender-Auth: e6bf2461a00283fb
Message-ID: <9c3275a91001150616k70c57d06pb15fd56b69dbb7f0@mail.gmail.com>
Subject: Re: release time?
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

2010/1/15 Dave McCaldon <davem@intersystems.com>:

> Now, what's the best patch format? =A0A git patch from my copy of the rep=
o? or a plain/regular diff?

Git patch.  Then we can apply it directly to the repo once we're happy with=
 it.

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 15 15:57:36 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FEvRk8023443;
	Fri, 15 Jan 2010 15:57:33 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FEvPCB023426
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 15:57:25 +0100
Date: Fri, 15 Jan 2010 15:57:25 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: release time?
In-Reply-To: <129C2AB3-31C5-417A-9238-4D670C0DFCFA@intersystems.com>
Message-ID: <alpine.DEB.2.00.1001151556570.24099@tvnag.unkk.fr>
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<129C2AB3-31C5-417A-9238-4D670C0DFCFA@intersystems.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Fri, 15 Jan 2010, Dave McCaldon wrote:

> While we're at it, I also submitted a patch that implemented an optional 
> callback mechanism for libssh2_trace(), so you can override the default 
> behavior of trace info being written to stderr (e.g. you might want to 
> capture it to a file, put it into a window in your application etc).

> I'd like to get that in too.

Oh right, I had forgot about that one. I'll give it some attention tonight.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 15 16:54:53 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FFsaWg032743;
	Fri, 15 Jan 2010 16:54:42 +0100
Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com
	[71.74.56.124])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FFsYup032714
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 16:54:34 +0100
X-Authority-Analysis: v=1.0 c=1 a=yoBBUw2Y1xXk79v7JfcA:9
	a=w_uCjEsG60E3n5x2kgfHRPYpipIA:4
X-Cloudmark-Score: 0
X-Originating-IP: 70.116.71.237
Received: from [70.116.71.237] ([70.116.71.237:42554] helo=dc7100.roadrunn.com)
	by hrndva-oedge03.mail.rr.com (envelope-from <ngierman@roadrunn.com>)
	(ecelerity 2.2.2.39 r()) with ESMTP
	id B9/07-17903-4BF805B4; Fri, 15 Jan 2010 15:54:29 +0000
Received: by dc7100.roadrunn.com (Postfix, from userid 501)
	id A7ED3830A17; Fri, 15 Jan 2010 10:48:15 -0600 (CST)
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on dc7100.roadrunn.com
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00
	autolearn=ham version=3.2.4
Received: from ngierman3 (dc7100 [192.168.1.6])
	by dc7100.roadrunn.com (Postfix) with ESMTP id 49EF0830A13
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 10:48:11 -0600 (CST)
From: "Neil Gierman" <ngierman@roadrunn.com>
To: "'libssh2 development'" <libssh2-devel@cool.haxx.se>
References: <876376iab7.fsf@mocca.josefsson.org>
In-Reply-To: <876376iab7.fsf@mocca.josefsson.org>
Subject: RE: release time?
Date: Fri, 15 Jan 2010 09:54:24 -0600
Message-ID: <000001ca95fb$02723710$0756a530$@com>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AcqUQPtlg4rubTqcR3+8Y9q/VwH2XABuai9g
Content-Language: en-us
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

> The agent code has been sitting in libssh2 for some time, and I don't
> recall any reports about it.  Maybe it would help to get it more tested
> if we make a release?  It would be great to have that support in debian
> squeeze, since it allows applications to do smart-card authentication
> with libssh2.
> 
> /Simon

It has been a while since we talked about this but what was the status of
the "SFTP transfers using buffer > 1K"? I remember there was a patch a while
back but there was some talk about it not being complete. Does anyone know
the status? I am still sitting on 0.18 in my production code because I
transfer many large files to many SSH servers at the same time and moving to
a 1K buffer affects performance beyond what is acceptable for my typical
users.

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 15 16:58:57 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FFvnF0001647;
	Fri, 15 Jan 2010 16:57:51 +0100
Received: from mail.ambrosiasw.com (xanadu.ambrosiasw.com [74.43.255.35])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FFvmuh001588
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 16:57:48 +0100
Received: from localhost (localhost [127.0.0.1])
	by mail.ambrosiasw.com (Postfix) with ESMTP id 1EF64EAB77AA
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 10:57:37 -0500 (EST)
Received: from mail.ambrosiasw.com ([127.0.0.1])
	by localhost (xanadu.ambrosiasw.com [127.0.0.1]) (amavisd-new,
	port 10024) with ESMTP id 13634-10 for <libssh2-devel@cool.haxx.se>;
	Fri, 15 Jan 2010 10:57:36 -0500 (EST)
Received: from inigo.ambrosiasw.com (inigo.ambrosiasw.com [74.43.255.19])
	by mail.ambrosiasw.com (Postfix) with ESMTP id D60E3EAB77A3
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 10:57:36 -0500 (EST)
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: release time?
From: Jeremy Knope <jerome@ambrosiasw.com>
In-Reply-To: <000001ca95fb$02723710$0756a530$@com>
Date: Fri, 15 Jan 2010 10:57:43 -0500
Message-Id: <B9418C19-030F-4DF4-933F-E8E35B551F19@ambrosiasw.com>
References: <876376iab7.fsf@mocca.josefsson.org>
	<000001ca95fb$02723710$0756a530$@com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1077)
X-Virus-Scanned: by amavisd-new at ambrosiasw.com
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se



On Jan 15, 2010, at 10:54 AM, Neil Gierman wrote:

>> The agent code has been sitting in libssh2 for some time, and I don't
>> recall any reports about it.  Maybe it would help to get it more tested
>> if we make a release?  It would be great to have that support in debian
>> squeeze, since it allows applications to do smart-card authentication
>> with libssh2.
>> 
>> /Simon
> 
> It has been a while since we talked about this but what was the status of
> the "SFTP transfers using buffer > 1K"? I remember there was a patch a while
> back but there was some talk about it not being complete. Does anyone know
> the status? I am still sitting on 0.18 in my production code because I
> transfer many large files to many SSH servers at the same time and moving to
> a 1K buffer affects performance beyond what is acceptable for my typical
> users.
> 


I believe it's fixed for the most part, I have my buffer at 32500 as there was a problem with going over 32k once all the protocol data is added.
--
Jeremy Knope / Software Developer / Ambrosia Software, Inc. -- http://www.AmbrosiaSW.com/
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 15 23:01:43 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FM1VBF014893;
	Fri, 15 Jan 2010 23:01:39 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FM1UWr014860; 
	Fri, 15 Jan 2010 23:01:30 +0100
Date: Fri, 15 Jan 2010 23:01:30 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: Dave McCaldon <davem@intersystems.com>
Subject: Re: [PATCH] Implement libssh2_trace_sethandler(), allows trace output
	to be captured
In-Reply-To: <B112B2FF-11F0-4E4D-A0F5-1A5902832EBB@intersystems.com>
Message-ID: <alpine.DEB.2.00.1001152300160.473@tvnag.unkk.fr>
References: <8DCE6BE1-84DD-421C-9ADD-B866CDBA7749@intersystems.com>
	<alpine.DEB.2.00.0911032345190.16787@tvnag.unkk.fr>
	<B112B2FF-11F0-4E4D-A0F5-1A5902832EBB@intersystems.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
Cc: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Tue, 3 Nov 2009, Dave McCaldon wrote:

> I do pass the LIBSSH2_SESSION pointer to allow the user to distinguish 
> between different sessions, but you're right in that there would need to be 
> a map from session to user data.
>
> Attached is an update that adds a void* context to the 
> libssh2_trace_sethandler() mechanism.  I'm a bit new to git, so it looks 
> like it builds on the previous patches.  I'm not sure how to coalesce these 
> into a single "squashed" patch ... if it's not ok in this format, let me 
> know.

Argh, I messed up and committed the earlier version of your patch just now. 
Could you please see if you can make a separate patch aginst current git that 
adds this void* context?

Sorry for that.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 15 23:22:18 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FMMDmf028293;
	Fri, 15 Jan 2010 23:22:16 +0100
Received: from mail.intersystems.com (mail.intersys.COM [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0FMMBe9028249
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jan 2010 23:22:12 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Subject: Re: [PATCH] Implement libssh2_trace_sethandler(),
	allows trace output to be captured
Mime-Version: 1.0 (Apple Message framework v1077)
From: Dave McCaldon <davem@intersystems.com>
In-Reply-To: <alpine.DEB.2.00.1001152300160.473@tvnag.unkk.fr>
Date: Fri, 15 Jan 2010 17:22:06 -0500
Message-Id: <167D7F8C-70FA-461C-9CFC-7C2495982A4A@intersystems.com>
References: <8DCE6BE1-84DD-421C-9ADD-B866CDBA7749@intersystems.com>
	<alpine.DEB.2.00.0911032345190.16787@tvnag.unkk.fr>
	<B112B2FF-11F0-4E4D-A0F5-1A5902832EBB@intersystems.com>
	<alpine.DEB.2.00.1001152300160.473@tvnag.unkk.fr>
To: Daniel Stenberg <daniel@haxx.se>
X-Mailer: Apple Mail (2.1077)
Cc: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


On Jan 15, 2010, at 5:01 PM, Daniel Stenberg wrote:

> On Tue, 3 Nov 2009, Dave McCaldon wrote:
> 
>> I do pass the LIBSSH2_SESSION pointer to allow the user to distinguish between different sessions, but you're right in that there would need to be a map from session to user data.
>> 
>> Attached is an update that adds a void* context to the libssh2_trace_sethandler() mechanism.  I'm a bit new to git, so it looks like it builds on the previous patches.  I'm not sure how to coalesce these into a single "squashed" patch ... if it's not ok in this format, let me know.
> 
> Argh, I messed up and committed the earlier version of your patch just now. Could you please see if you can make a separate patch aginst current git that adds this void* context?

Sure, let me take a look.

> Sorry for that.

No problem!

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

From libssh2-devel-bounces@cool.haxx.se  Mon Jan 18 07:38:28 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0I6c4aF023433;
	Mon, 18 Jan 2010 07:38:14 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0I6c2al023402
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 18 Jan 2010 07:38:03 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0I6c19N032663
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 18 Jan 2010 07:38:03 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<603122d71001130958s56b64b25t86f02f0ff3ca2368@mail.gmail.com>
	<20100113183742.21827.qmail@stuge.se>
	<alpine.DEB.2.00.1001131939350.3422@tvnag.unkk.fr>
	<20100113184503.23556.qmail@stuge.se>
	<alpine.DEB.2.00.1001132012240.3422@tvnag.unkk.fr>
	<603122d71001131233j7447eb8aj969dd6d665645a66@mail.gmail.com>
	<alpine.DEB.2.00.1001132157520.3422@tvnag.unkk.fr>
	<4B4F5468.3070302@gknw.net> <1263505070.2010.0.camel@sockerbit>
	<603122d71001141347q1bc3f61cyad9a86d83e6f3e79@mail.gmail.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100118:libssh2-devel@cool.haxx.se::kkYCUNXfRPXnL3ft:87VB
Date: Mon, 18 Jan 2010 07:38:01 +0100
In-Reply-To: <603122d71001141347q1bc3f61cyad9a86d83e6f3e79@mail.gmail.com>
	(salsa lover's message of "Thu, 14 Jan 2010 13:47:15 -0800")
Message-ID: <87636zapfa.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

salsa lover <gougolith@gmail.com> writes:

> Are you using the repo mingw setup ?

No, mingw from debian.

/Simon

> On Thu, Jan 14, 2010 at 1:37 PM, Simon Josefsson <simon@josefsson.org>wrote:
>
>> On tor, 2010-01-14 at 18:29 +0100, Guenter wrote:
>> > Daniel Stenberg schrieb:
>> > > On Wed, 13 Jan 2010, salsa lover wrote:
>> > >
>> > >> Can anyone confirm being able to cross compile on debian not using
>> > >> mingw/wine but a real cross compile environment?
>> > >
>> > > Sorry, but how is the mingw32 on for example debian _not_ a "real cross
>> > > compile environment" ?
>> > >
>> > > And yes, Simon already confirmed it works for him.
>> > I understood same as salsa lover: sounds as if Simon for whatever reason
>> > runs the win32 mingw32 compiler on wine, and that's no cross-compile
>> > environment; I would call this a native compile ....
>>
>> No, I'm using mingw on debian, cross compiling from debian x86 to
>> windows.  Wine is only used to run the built self-tests under linux.
>>
>> /Simon
>>
>> _______________________________________________
>> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Jan 18 08:55:31 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0I7tMgC014960;
	Mon, 18 Jan 2010 08:55:29 +0100
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o0I7tKNE014955
	for <libssh2-devel@cool.haxx.se>; Mon, 18 Jan 2010 08:55:20 +0100
Received: by qw-out-2122.google.com with SMTP id 5so257854qwi.41
	for <libssh2-devel@cool.haxx.se>; Sun, 17 Jan 2010 23:55:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=gnPtwy89N2l4PmJwJZiOjuuWvlHV7bsQ9HS9eOl4ASM=;
	b=bY/c+R2UQL5rHd3kjIPq/FV8mLeQP9pNauzdhiZWJVsm97JnfGtsoABUVVw5KJV7Av
	5EK5BcgbIZHrlX4ZEz9h7BQ3SJtkXsUJvtPDVmRaMvqotaTiUxHtUYHLKFU0Hchp3K1C
	LZkL8adPooiA6XNlWyfiXZJwQfYY6C7nsKuNw=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=jNQ2ATY8+hy+UcWtJ/SoNsWByxtEkofyUdfCxCMr/kJtUYtgfWuSHp4WzUWSe5X4h8
	dUgcS4lmbfW+zkrg7R9642Sd4dIZMY4Kt9bxUiqNFCpFYx2Gf8nHPEc32X927jU90A3m
	+7yOyWpyd6jkAv1/AO+85z8LMv83Oe6kDMp48=
MIME-Version: 1.0
Received: by 10.229.10.150 with SMTP id p22mr3705477qcp.106.1263801320414; 
	Sun, 17 Jan 2010 23:55:20 -0800 (PST)
In-Reply-To: <87636zapfa.fsf@mocca.josefsson.org>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<alpine.DEB.2.00.1001131939350.3422@tvnag.unkk.fr>
	<20100113184503.23556.qmail@stuge.se>
	<alpine.DEB.2.00.1001132012240.3422@tvnag.unkk.fr>
	<603122d71001131233j7447eb8aj969dd6d665645a66@mail.gmail.com>
	<alpine.DEB.2.00.1001132157520.3422@tvnag.unkk.fr>
	<4B4F5468.3070302@gknw.net> <1263505070.2010.0.camel@sockerbit>
	<603122d71001141347q1bc3f61cyad9a86d83e6f3e79@mail.gmail.com>
	<87636zapfa.fsf@mocca.josefsson.org>
Date: Sun, 17 Jan 2010 23:55:20 -0800
Message-ID: <603122d71001172355t5059ef8ax4d4b4c9d9e5cddde@mail.gmail.com>
Subject: Re: mingw32 cross
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0548061779=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0548061779==
Content-Type: multipart/alternative; boundary=001517574716c520a0047d6bac7e

--001517574716c520a0047d6bac7e
Content-Type: text/plain; charset=ISO-8859-1

That's what i meant, the mingw setup from the debian repository...
So can you tell me why i can't compile the examples from source?

On Sun, Jan 17, 2010 at 10:38 PM, Simon Josefsson <simon@josefsson.org>wrote:

> salsa lover <gougolith@gmail.com> writes:
>
> > Are you using the repo mingw setup ?
>
> No, mingw from debian.
>
> /Simon
>
> > On Thu, Jan 14, 2010 at 1:37 PM, Simon Josefsson <simon@josefsson.org
> >wrote:
> >
> >> On tor, 2010-01-14 at 18:29 +0100, Guenter wrote:
> >> > Daniel Stenberg schrieb:
> >> > > On Wed, 13 Jan 2010, salsa lover wrote:
> >> > >
> >> > >> Can anyone confirm being able to cross compile on debian not using
> >> > >> mingw/wine but a real cross compile environment?
> >> > >
> >> > > Sorry, but how is the mingw32 on for example debian _not_ a "real
> cross
> >> > > compile environment" ?
> >> > >
> >> > > And yes, Simon already confirmed it works for him.
> >> > I understood same as salsa lover: sounds as if Simon for whatever
> reason
> >> > runs the win32 mingw32 compiler on wine, and that's no cross-compile
> >> > environment; I would call this a native compile ....
> >>
> >> No, I'm using mingw on debian, cross compiling from debian x86 to
> >> windows.  Wine is only used to run the built self-tests under linux.
> >>
> >> /Simon
> >>
> >> _______________________________________________
> >> libssh2-devel
> http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
> >>
> > _______________________________________________
> > libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

<br>That&#39;s what i meant, the mingw setup from the debian repository...<=
br>So can you tell me why i can&#39;t compile the examples from source?<br>=
<br><div class=3D"gmail_quote">On Sun, Jan 17, 2010 at 10:38 PM, Simon Jose=
fsson <span dir=3D"ltr">&lt;<a href=3D"mailto:simon@josefsson.org">simon@jo=
sefsson.org</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"=
>salsa lover &lt;<a href=3D"mailto:gougolith@gmail.com">gougolith@gmail.com=
</a>&gt; writes:<br>

<br>
</div><div class=3D"im">&gt; Are you using the repo mingw setup ?<br>
<br>
</div>No, mingw from debian.<br>
<font color=3D"#888888"><br>
/Simon<br>
</font><div><div></div><div class=3D"h5"><br>
&gt; On Thu, Jan 14, 2010 at 1:37 PM, Simon Josefsson &lt;<a href=3D"mailto=
:simon@josefsson.org">simon@josefsson.org</a>&gt;wrote:<br>
&gt;<br>
&gt;&gt; On tor, 2010-01-14 at 18:29 +0100, Guenter wrote:<br>
&gt;&gt; &gt; Daniel Stenberg schrieb:<br>
&gt;&gt; &gt; &gt; On Wed, 13 Jan 2010, salsa lover wrote:<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt;&gt; Can anyone confirm being able to cross compile on de=
bian not using<br>
&gt;&gt; &gt; &gt;&gt; mingw/wine but a real cross compile environment?<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; Sorry, but how is the mingw32 on for example debian _not=
_ a &quot;real cross<br>
&gt;&gt; &gt; &gt; compile environment&quot; ?<br>
&gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt; &gt; And yes, Simon already confirmed it works for him.<br>
&gt;&gt; &gt; I understood same as salsa lover: sounds as if Simon for what=
ever reason<br>
&gt;&gt; &gt; runs the win32 mingw32 compiler on wine, and that&#39;s no cr=
oss-compile<br>
&gt;&gt; &gt; environment; I would call this a native compile ....<br>
&gt;&gt;<br>
&gt;&gt; No, I&#39;m using mingw on debian, cross compiling from debian x86=
 to<br>
&gt;&gt; windows. =A0Wine is only used to run the built self-tests under li=
nux.<br>
&gt;&gt;<br>
&gt;&gt; /Simon<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listi=
nfo/libssh2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/li=
stinfo/libssh2-devel</a><br>
&gt;&gt;<br>
&gt; _______________________________________________<br>
&gt; libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/=
libssh2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listin=
fo/libssh2-devel</a><br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</div></div></blockquote></div><br>

--001517574716c520a0047d6bac7e--

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

--===============0548061779==--

From libssh2-devel-bounces@cool.haxx.se  Mon Jan 18 09:15:15 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0I8FAOb027524;
	Mon, 18 Jan 2010 09:15:13 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0I8F88C027520
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 18 Jan 2010 09:15:08 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0I8F79H002051
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 18 Jan 2010 09:15:09 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<alpine.DEB.2.00.1001131939350.3422@tvnag.unkk.fr>
	<20100113184503.23556.qmail@stuge.se>
	<alpine.DEB.2.00.1001132012240.3422@tvnag.unkk.fr>
	<603122d71001131233j7447eb8aj969dd6d665645a66@mail.gmail.com>
	<alpine.DEB.2.00.1001132157520.3422@tvnag.unkk.fr>
	<4B4F5468.3070302@gknw.net> <1263505070.2010.0.camel@sockerbit>
	<603122d71001141347q1bc3f61cyad9a86d83e6f3e79@mail.gmail.com>
	<87636zapfa.fsf@mocca.josefsson.org>
	<603122d71001172355t5059ef8ax4d4b4c9d9e5cddde@mail.gmail.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100118:libssh2-devel@cool.haxx.se::9KLJlDjxA809cQvm:MZtB
Date: Mon, 18 Jan 2010 09:15:08 +0100
In-Reply-To: <603122d71001172355t5059ef8ax4d4b4c9d9e5cddde@mail.gmail.com>
	(A. Mark's message of "Sun, 17 Jan 2010 23:55:20 -0800")
Message-ID: <87y6jvrfqr.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

"A. Mark" <gougolith@gmail.com> writes:

> That's what i meant, the mingw setup from the debian repository...

Ok.  Those should work.

> So can you tell me why i can't compile the examples from source?

What commands are you using and what output do you get?  Earlier you
said you were using mingw32 from gentoo, are you using debian now?

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

From libssh2-devel-bounces@cool.haxx.se  Mon Jan 18 18:35:41 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0IHZ8Yi008016;
	Mon, 18 Jan 2010 18:35:20 +0100
Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com
	[209.85.221.175])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0IHZ5S2007633
	for <libssh2-devel@cool.haxx.se>; Mon, 18 Jan 2010 18:35:05 +0100
Received: by qyk5 with SMTP id 5so1712774qyk.8
	for <libssh2-devel@cool.haxx.se>; Mon, 18 Jan 2010 09:35:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=1jtSaTp2i2PeUUCM9jdeOaYQodjOzBFY3Ez+eK90YtE=;
	b=ClFTFmduTAWUrv9ghvGNgAofanlp5VpmyfKWXtQf8QO+IyhOSDQeVm0rLMtRdwgFgc
	BAVCN7ssfP66F84ZBZbj1tBrGeZllyMY4gnEKOWfrqckh06pOPKfR8nFi4RjCmHF9gW6
	LsxIOdx2nwQtM3oHwpkqOvEK0gAgbDZbU/aNQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=fAeTX6aG/GVMrDkn3FYUg3NHF0FPxZEplSY/8VNUt7ICvFMlIlcVkA366UFnFy9piF
	3nYzLRg/Pdt9lEQn8fkDlJ+PIdhmq7Wp+So4y2LeV2PxvyUS7M5ipALL8TZjbhYLmzdo
	l9h25BtJFtp7pR4m9a/QfkDpgIoZ81179hP3M=
MIME-Version: 1.0
Received: by 10.229.129.26 with SMTP id m26mr4193681qcs.97.1263836100633; Mon, 
	18 Jan 2010 09:35:00 -0800 (PST)
In-Reply-To: <87y6jvrfqr.fsf@mocca.josefsson.org>
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<alpine.DEB.2.00.1001132012240.3422@tvnag.unkk.fr>
	<603122d71001131233j7447eb8aj969dd6d665645a66@mail.gmail.com>
	<alpine.DEB.2.00.1001132157520.3422@tvnag.unkk.fr>
	<4B4F5468.3070302@gknw.net> <1263505070.2010.0.camel@sockerbit>
	<603122d71001141347q1bc3f61cyad9a86d83e6f3e79@mail.gmail.com>
	<87636zapfa.fsf@mocca.josefsson.org>
	<603122d71001172355t5059ef8ax4d4b4c9d9e5cddde@mail.gmail.com>
	<87y6jvrfqr.fsf@mocca.josefsson.org>
Date: Mon, 18 Jan 2010 09:35:00 -0800
Message-ID: <603122d71001180935s5e573d58k2ecb3252561e2b6d@mail.gmail.com>
Subject: Re: mingw32 cross
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0600362895=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0600362895==
Content-Type: multipart/alternative; boundary=0015175772f6d5271e047d73c51f

--0015175772f6d5271e047d73c51f
Content-Type: text/plain; charset=ISO-8859-1

No, I never used gentoo setup, that was someone else perhaps. I use the
setup that's from here:

http://www.nongnu.org/mingw-cross-env/#see-also

It builds all libs from source and static, no dll, seems very much up to
date too.


On Mon, Jan 18, 2010 at 12:15 AM, Simon Josefsson <simon@josefsson.org>wrote:

> "A. Mark" <gougolith@gmail.com> writes:
>
> > That's what i meant, the mingw setup from the debian repository...
>
> Ok.  Those should work.
>
> > So can you tell me why i can't compile the examples from source?
>
> What commands are you using and what output do you get?  Earlier you
> said you were using mingw32 from gentoo, are you using debian now?
>
> /Simon
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

<br>No, I never used gentoo setup, that was someone else perhaps. I use the=
 setup that&#39;s from here:<br><br><a href=3D"http://www.nongnu.org/mingw-=
cross-env/#see-also">http://www.nongnu.org/mingw-cross-env/#see-also</a><br=
>
<br>It builds all libs from source and static, no dll, seems very much up t=
o date too.<br><br><br><div class=3D"gmail_quote">On Mon, Jan 18, 2010 at 1=
2:15 AM, Simon Josefsson <span dir=3D"ltr">&lt;<a href=3D"mailto:simon@jose=
fsson.org">simon@josefsson.org</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"=
>&quot;A. Mark&quot; &lt;<a href=3D"mailto:gougolith@gmail.com">gougolith@g=
mail.com</a>&gt; writes:<br>

<br>
&gt; That&#39;s what i meant, the mingw setup from the debian repository...=
<br>
<br>
</div>Ok. =A0Those should work.<br>
<div class=3D"im"><br>
&gt; So can you tell me why i can&#39;t compile the examples from source?<b=
r>
<br>
</div>What commands are you using and what output do you get? =A0Earlier yo=
u<br>
said you were using mingw32 from gentoo, are you using debian now?<br>
<div><div></div><div class=3D"h5"><br>
/Simon<br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</div></div></blockquote></div><br>

--0015175772f6d5271e047d73c51f--

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

--===============0600362895==--

From libssh2-devel-bounces@cool.haxx.se  Mon Jan 18 21:38:49 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0IKcA2N006483;
	Mon, 18 Jan 2010 21:38:23 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0IKc8Qc006462
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 18 Jan 2010 21:38:09 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0IKc8qB016758
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Mon, 18 Jan 2010 21:38:09 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: mingw32 cross
References: <603122d71001121618u183a304fmb0be5653ebd1e7c5@mail.gmail.com>
	<alpine.DEB.2.00.1001132012240.3422@tvnag.unkk.fr>
	<603122d71001131233j7447eb8aj969dd6d665645a66@mail.gmail.com>
	<alpine.DEB.2.00.1001132157520.3422@tvnag.unkk.fr>
	<4B4F5468.3070302@gknw.net> <1263505070.2010.0.camel@sockerbit>
	<603122d71001141347q1bc3f61cyad9a86d83e6f3e79@mail.gmail.com>
	<87636zapfa.fsf@mocca.josefsson.org>
	<603122d71001172355t5059ef8ax4d4b4c9d9e5cddde@mail.gmail.com>
	<87y6jvrfqr.fsf@mocca.josefsson.org>
	<603122d71001180935s5e573d58k2ecb3252561e2b6d@mail.gmail.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100118:libssh2-devel@cool.haxx.se::yM9BbViYWhNex0+7:Dq/U
Date: Mon, 18 Jan 2010 21:38:07 +0100
In-Reply-To: <603122d71001180935s5e573d58k2ecb3252561e2b6d@mail.gmail.com>
	(A. Mark's message of "Mon, 18 Jan 2010 09:35:00 -0800")
Message-ID: <87ska3tahc.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

"A. Mark" <gougolith@gmail.com> writes:

> No, I never used gentoo setup, that was someone else perhaps.

Sorry, I confused you with salsa lover.

> I use the setup that's from here:
>
> http://www.nongnu.org/mingw-cross-env/#see-also
>
> It builds all libs from source and static, no dll, seems very much up to
> date too.

So what commands are you using what output do you get?  It is difficult
to know what the problem is without more details.

/Simon

>
> On Mon, Jan 18, 2010 at 12:15 AM, Simon Josefsson <simon@josefsson.org>wrote:
>
>> "A. Mark" <gougolith@gmail.com> writes:
>>
>> > That's what i meant, the mingw setup from the debian repository...
>>
>> Ok.  Those should work.
>>
>> > So can you tell me why i can't compile the examples from source?
>>
>> What commands are you using and what output do you get?  Earlier you
>> said you were using mingw32 from gentoo, are you using debian now?
>>
>> /Simon
>> _______________________________________________
>> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 20 18:24:10 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0KHNsSd020773;
	Wed, 20 Jan 2010 18:24:04 +0100
Received: from mail.intersystems.com (mail.intersys.COM [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0KHNp0S020706
	for <libssh2-devel@cool.haxx.se>; Wed, 20 Jan 2010 18:23:52 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Subject: Re: [PATCH] Implement libssh2_trace_sethandler(),
	allows trace output to be captured
Mime-Version: 1.0 (Apple Message framework v1077)
Content-Type: multipart/mixed; boundary=Apple-Mail-43-85701272
From: Dave McCaldon <davem@intersystems.com>
In-Reply-To: <alpine.DEB.2.00.1001152300160.473@tvnag.unkk.fr>
Date: Wed, 20 Jan 2010 12:23:46 -0500
Message-Id: <72BA02FF-C94A-4773-8F93-D809049111B3@intersystems.com>
References: <8DCE6BE1-84DD-421C-9ADD-B866CDBA7749@intersystems.com>
	<alpine.DEB.2.00.0911032345190.16787@tvnag.unkk.fr>
	<B112B2FF-11F0-4E4D-A0F5-1A5902832EBB@intersystems.com>
	<alpine.DEB.2.00.1001152300160.473@tvnag.unkk.fr>
To: Daniel Stenberg <daniel@haxx.se>
X-Mailer: Apple Mail (2.1077)
Cc: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


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

On Jan 15, 2010, at 5:01 PM, Daniel Stenberg wrote:

> On Tue, 3 Nov 2009, Dave McCaldon wrote:
>=20
>> I do pass the LIBSSH2_SESSION pointer to allow the user to =
distinguish between different sessions, but you're right in that there =
would need to be a map from session to user data.
>>=20
>> Attached is an update that adds a void* context to the =
libssh2_trace_sethandler() mechanism.  I'm a bit new to git, so it looks =
like it builds on the previous patches.  I'm not sure how to coalesce =
these into a single "squashed" patch ... if it's not ok in this format, =
let me know.
>=20
> Argh, I messed up and committed the earlier version of your patch just =
now. Could you please see if you can make a separate patch aginst =
current git that adds this void* context?

Attached is a git patch that adds the void* context to =
libssh2_trace_sethandler() based on the current git repo.  Please let me =
know if there are any problems with it.

Thanks!



--Apple-Mail-43-85701272
Content-Disposition: attachment;
	filename=0001-Pass-user-context-through-libssh2_trace_sethandler-t.patch
Content-Type: application/octet-stream;
	name="0001-Pass-user-context-through-libssh2_trace_sethandler-t.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=20c58fef3409228abe2c52bb855bc13dd50fe6aa63=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Dave=20McCaldon=20<dave@mccaldon.com>=0ADate:=20=
Wed,=2020=20Jan=202010=2012:02:13=20-0500=0ASubject:=20[PATCH]=20Pass=20=
user=20context=20through=20libssh2_trace_sethandler()=20to=20callback=0A=0A=
The=20libssh2_trace_sethandler()=20call=20allows=20the=20user=20to=20=
handle=20the=20output=20of=20libssh2=20rather=20than=20having=20it=20=
written=20to=20stderr.=20=20This=20patch=20updates=20=
libssh2_trace_sethandler()=20to=20allow=20a=20user-defined=20void*=20=
context=20value=20to=20be=20passed=20back=20to=20the=20output=20handler.=0A=
---=0A=20docs/libssh2_trace_sethandler.3=20|=20=20=20=204=20++++=0A=20=
include/libssh2.h=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20|=20=20=20=20=
5=20++++-=0A=20src/libssh2_priv.h=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
|=20=20=20=201=20+=0A=20src/misc.c=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20|=20=20=20=208=20+++++---=0A=20=
src/transport.c=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20|=20=20=
=20=204=20++--=0A=205=20files=20changed,=2016=20insertions(+),=206=20=
deletions(-)=0A=0Adiff=20--git=20a/docs/libssh2_trace_sethandler.3=20=
b/docs/libssh2_trace_sethandler.3=0Aindex=20a039a79..25fd2c8=20100644=0A=
---=20a/docs/libssh2_trace_sethandler.3=0A+++=20=
b/docs/libssh2_trace_sethandler.3=0A@@=20-8,10=20+8,12=20@@=20=
libssh2_trace_sethandler=20-=20set=20a=20trace=20output=20handler=0A=20=
#include=20<libssh2.h>=0A=20=0A=20typedef=20void=20=
(*libssh2_trace_handler_func)(LIBSSH2_SESSION=20*session,=0A+=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20void*=20context,=0A=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20const=20char=20*data,=0A=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20size_t=20length);=0A=20=
=0A=20int=20libssh2_trace_sethandler(LIBSSH2_SESSION=20*session,=0A+=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20void*=20context,=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20libssh2_trace_handler_func=20=
callback);=0A=20.SH=20DESCRIPTION=0A=20libssh2_trace_sethandler=20=
installs=20a=20trace=20output=20handler=20for=20your=20application.=0A@@=20=
-22,5=20+24,7=20@@=20libssh2=20will=20call=20back=20as=20it=20generates=20=
trace=20output.=20=20This=20can=20be=20used=20to=0A=20capture=20the=20=
trace=20output=20and=20put=20it=20into=20a=20log=20file=20or=20=
diagnostic=20window.=0A=20This=20function=20has=20no=20effect=20unless=20=
libssh2=20was=20built=20to=20support=20this=20option,=0A=20and=20a=20=
typical=20"release=20build"=20might=20not.=0A+=0A+\fBcontext\fP=20can=20=
be=20used=20to=20pass=20arbitrary=20user=20defined=20data=20back=20into=20=
the=20callback=20when=20invoked.=0A=20.SH=20AVAILABILITY=0A=20Added=20in=20=
libssh2=20version=201.2.3=0Adiff=20--git=20a/include/libssh2.h=20=
b/include/libssh2.h=0Aindex=2039817d3..890749e=20100644=0A---=20=
a/include/libssh2.h=0A+++=20b/include/libssh2.h=0A@@=20-987,9=20+987,12=20=
@@=20LIBSSH2_API=20int=20libssh2_trace(LIBSSH2_SESSION=20*session,=20int=20=
bitmask);=0A=20#define=20LIBSSH2_TRACE_PUBLICKEY=20(1<<8)=0A=20#define=20=
LIBSSH2_TRACE_SOCKET=20(1<<9)=0A=20=0A-typedef=20void=20=
(*libssh2_trace_handler_func)(LIBSSH2_SESSION*,=20const=20char=20*,=0A=
+typedef=20void=20(*libssh2_trace_handler_func)(LIBSSH2_SESSION*,=0A+=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20void*,=0A+=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20const=20char=20*,=0A=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20size_t);=0A=20LIBSSH2_API=20=
int=20libssh2_trace_sethandler(LIBSSH2_SESSION=20*session,=0A+=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20void*=20context,=0A=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20libssh2_trace_handler_func=20callback);=0A=
=20=0A=20#ifdef=20__cplusplus=0Adiff=20--git=20a/src/libssh2_priv.h=20=
b/src/libssh2_priv.h=0Aindex=208f26efb..f1b34dd=20100644=0A---=20=
a/src/libssh2_priv.h=0A+++=20b/src/libssh2_priv.h=0A@@=20-736,6=20+736,7=20=
@@=20struct=20_LIBSSH2_SESSION=0A=20#ifdef=20LIBSSH2DEBUG=0A=20=20=20=20=20=
int=20showmask;=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20/*=20what=20=
debug/trace=20messages=20to=20display=20*/=0A=20=20=20=20=20=
libssh2_trace_handler_func=20tracehandler;=20/*=20callback=20to=20=
display=20trace=20messages=20*/=0A+=20=20=20=20void*=20=
tracehandler_context;=20/*=20context=20for=20the=20trace=20handler=20*/=0A=
=20#endif=0A=20=0A=20=20=20=20=20/*=20State=20variables=20used=20in=20=
libssh2_banner_send()=20*/=0Adiff=20--git=20a/src/misc.c=20b/src/misc.c=0A=
index=203b55806..ea6859e=20100644=0A---=20a/src/misc.c=0A+++=20=
b/src/misc.c=0A@@=20-313,9=20+313,10=20@@=20=
libssh2_trace(LIBSSH2_SESSION=20*=20session,=20int=20bitmask)=0A=20}=0A=20=
=0A=20LIBSSH2_API=20int=0A-libssh2_trace_sethandler(LIBSSH2_SESSION=20=
*session,=20libssh2_trace_handler_func=20callback)=0A=
+libssh2_trace_sethandler(LIBSSH2_SESSION=20*session,=20void*=20=
handler_context,=20libssh2_trace_handler_func=20callback)=0A=20{=0A=20=20=
=20=20=20session->tracehandler=20=3D=20callback;=0A+=20=20=20=20=
session->tracehandler_context=20=3D=20handler_context;=0A=20=20=20=20=20=
return=200;=0A=20}=0A=20=0A@@=20-362,7=20+363,7=20@@=20=
_libssh2_debug(LIBSSH2_SESSION=20*=20session,=20int=20context,=20const=20=
char=20*format,=20...)=0A=20=20=20=20=20va_end(vargs);=0A=20=0A=20=20=20=20=
=20if=20(session->tracehandler)=20{=0A-=20=20=20=20=20=20=20=20=
(session->tracehandler)(session,=20buffer,=20len=20+=201);=0A+=20=20=20=20=
=20=20=20=20(session->tracehandler)(session,=20=
session->tracehandler_context,=20buffer,=20len=20+=201);=0A=20=20=20=20=20=
}=20else=20{=0A=20=20=20=20=20=20=20=20=20write(2,=20buffer,=20len=20+=20=
1);=0A=20=20=20=20=20}=0A@@=20-378,9=20+379,10=20@@=20=
libssh2_trace(LIBSSH2_SESSION=20*=20session,=20int=20bitmask)=0A=20}=0A=20=
=0A=20LIBSSH2_API=20int=0A-libssh2_trace_sethandler(LIBSSH2_SESSION=20=
*session,=20libssh2_trace_handler_func=20callback)=0A=
+libssh2_trace_sethandler(LIBSSH2_SESSION=20*session,=20void*=20=
handler_context,=20libssh2_trace_handler_func=20callback)=0A=20{=0A=20=20=
=20=20=20(void)=20session;=0A+=20=20=20=20(void)=20handler_context;=0A=20=
=20=20=20=20(void)=20callback;=0A=20=20=20=20=20return=200;=0A=20}=0A=
diff=20--git=20a/src/transport.c=20b/src/transport.c=0Aindex=20=
0be694d..1894485=20100644=0A---=20a/src/transport.c=0A+++=20=
b/src/transport.c=0A@@=20-71,7=20+71,7=20@@=20debugdump(LIBSSH2_SESSION=20=
*=20session,=0A=20=20=20=20=20used=20=3D=20snprintf(buffer,=20=
sizeof(buffer),=20"=3D>=20%s=20(%d=20bytes)\n",=0A=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20desc,=20(int)=20size);=0A=20=20=20=
=20=20if=20(session->tracehandler)=0A-=20=20=20=20=20=20=20=20=
(session->tracehandler)(session,=20buffer,=20used);=0A+=20=20=20=20=20=20=
=20=20(session->tracehandler)(session,=20session->tracehandler_context,=20=
buffer,=20used);=0A=20=20=20=20=20else=0A=20=20=20=20=20=20=20=20=20=
write(2=20/*=20stderr=20*/,=20buffer,=20used);=0A=20=0A@@=20-104,7=20=
+104,7=20@@=20debugdump(LIBSSH2_SESSION=20*=20session,=0A=20=20=20=20=20=20=
=20=20=20buffer[used]=20=3D=200;=0A=20=0A=20=20=20=20=20=20=20=20=20if=20=
(session->tracehandler)=0A-=20=20=20=20=20=20=20=20=20=20=20=20=
(session->tracehandler)(session,=20buffer,=20used);=0A+=20=20=20=20=20=20=
=20=20=20=20=20=20(session->tracehandler)(session,=20=
session->tracehandler_context,=20buffer,=20used);=0A=20=20=20=20=20=20=20=
=20=20else=0A=20=20=20=20=20=20=20=20=20=20=20=20=20write(2,=20buffer,=20=
used);=0A=20=20=20=20=20}=0A--=20=0A1.6.4.4=0A=0A=

--Apple-Mail-43-85701272
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--Apple-Mail-43-85701272--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 20 19:44:13 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0KIi3R8010674;
	Wed, 20 Jan 2010 19:44:10 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0KIi18P010625; 
	Wed, 20 Jan 2010 19:44:01 +0100
Date: Wed, 20 Jan 2010 19:44:01 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: Dave McCaldon <davem@intersystems.com>
Subject: Re: [PATCH] Implement libssh2_trace_sethandler(), allows trace output
	to be captured
In-Reply-To: <72BA02FF-C94A-4773-8F93-D809049111B3@intersystems.com>
Message-ID: <alpine.DEB.2.00.1001201943250.9276@tvnag.unkk.fr>
References: <8DCE6BE1-84DD-421C-9ADD-B866CDBA7749@intersystems.com>
	<alpine.DEB.2.00.0911032345190.16787@tvnag.unkk.fr>
	<B112B2FF-11F0-4E4D-A0F5-1A5902832EBB@intersystems.com>
	<alpine.DEB.2.00.1001152300160.473@tvnag.unkk.fr>
	<72BA02FF-C94A-4773-8F93-D809049111B3@intersystems.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
Cc: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Wed, 20 Jan 2010, Dave McCaldon wrote:

> Attached is a git patch that adds the void* context to 
> libssh2_trace_sethandler() based on the current git repo.  Please let me 
> know if there are any problems with it.

Excellent. am'ed and push'ed right now. Thanks!

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 20 19:47:20 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0KIlGJV015100;
	Wed, 20 Jan 2010 19:47:18 +0100
Received: from mail.intersystems.com (mail.intersys.COM [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0KIlEx4014993
	for <libssh2-devel@cool.haxx.se>; Wed, 20 Jan 2010 19:47:14 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Subject: Re: [PATCH] Implement libssh2_trace_sethandler(),
	allows trace output to be captured
Mime-Version: 1.0 (Apple Message framework v1077)
From: Dave McCaldon <davem@intersystems.com>
In-Reply-To: <alpine.DEB.2.00.1001201943250.9276@tvnag.unkk.fr>
Date: Wed, 20 Jan 2010 13:47:09 -0500
Message-Id: <88DA03AA-5E75-4C35-805F-5C328DB1BB4A@intersystems.com>
References: <8DCE6BE1-84DD-421C-9ADD-B866CDBA7749@intersystems.com>
	<alpine.DEB.2.00.0911032345190.16787@tvnag.unkk.fr>
	<B112B2FF-11F0-4E4D-A0F5-1A5902832EBB@intersystems.com>
	<alpine.DEB.2.00.1001152300160.473@tvnag.unkk.fr>
	<72BA02FF-C94A-4773-8F93-D809049111B3@intersystems.com>
	<alpine.DEB.2.00.1001201943250.9276@tvnag.unkk.fr>
To: Daniel Stenberg <daniel@haxx.se>
X-Mailer: Apple Mail (2.1077)
Cc: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


On Jan 20, 2010, at 1:44 PM, Daniel Stenberg wrote:

> On Wed, 20 Jan 2010, Dave McCaldon wrote:
> 
>> Attached is a git patch that adds the void* context to libssh2_trace_sethandler() based on the current git repo.  Please let me know if there are any problems with it.
> 
> Excellent. am'ed and push'ed right now. Thanks!

Glad that worked!  Let me get you a comprehensive fix for handling SSH_MSG_USERAUTH_FAILURE.


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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 20 22:19:46 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0KLJV5Y024487;
	Wed, 20 Jan 2010 22:19:42 +0100
Received: from mail.intersystems.com (mail.intersys.COM [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0KLJU1w024470
	for <libssh2-devel@cool.haxx.se>; Wed, 20 Jan 2010 22:19:30 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
From: Dave McCaldon <davem@intersystems.com>
Mime-Version: 1.0 (Apple Message framework v1077)
Content-Type: multipart/mixed; boundary=Apple-Mail-49-99840525
Subject: Re: release time?
Date: Wed, 20 Jan 2010 16:19:25 -0500
In-Reply-To: <FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
Message-Id: <5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


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


On Jan 15, 2010, at 9:02 AM, Dave McCaldon wrote:

> On Jan 15, 2010, at 6:26 AM, Alexander Lamaison wrote:
>=20
>> 2010/1/15 Peter Stuge <peter@stuge.se>:
>>> So the problem we are facing is that we should actually rename
>>> LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED to something like
>>> LIBSSH2_ERROR_AUTHENTICATION_FAILED and use that error code for
>>> all failed authentication attempts, regardless of the method used.
>>>=20
>>> Can we do this rename? It means changing the API. We could keep a
>>> backwards-compatible alias define and mark _PUBLICKEY_UNRECOGNIZED
>>> as deprecated, I guess that is as good as it gets?
>>=20
>> As long as we do the backwards-compatibility alias, it doesn't even
>> change the API.  The other authentication functions didn't specify
>> error values.
>=20
> Yes, my patch added LIBSSH2_ERROR_AUTHENTICATION_FAILED with the same =
value as LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED.
>=20
>> ... Which brings me to libssh2_userauth_keyboard_interactive_ex.  =
This
>> needs to be given the same treatment as
>> libssh2_userauth_password_ex().
>=20
> Absolutely.
>=20
> Now, what's the best patch format?  A git patch from my copy of the =
repo? or a plain/regular diff?


Attached is a git patch that implements handling of =
SSH_MSG_USERAUTH_FAILURE in both libssh2_userauth_password_ex() and =
libssh2_userauth_keyboard_interactive_ex().  The error code returned, is =
LIBSSH2_ERROR_AUTHENTICATION_FAILED and as discussed it replaces =
LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED, but leaves =
LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED as an alias for =
LIBSSH2_ERROR_AUTHENTICATION_FAILED.

Please let me know if there are any problems!

Thanks.


--Apple-Mail-49-99840525
Content-Disposition: attachment;
	filename=0002-Handle-SSH_MSG_USERAUTH_FAILURE-for-password-and-kbd.patch
Content-Type: application/octet-stream;
	name="0002-Handle-SSH_MSG_USERAUTH_FAILURE-for-password-and-kbd.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=2090b1f5bfff754b7190df6e59882e3b74869b2a92=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Dave=20McCaldon=20<dave@mccaldon.com>=0ADate:=20=
Wed,=2020=20Jan=202010=2016:07:22=20-0500=0ASubject:=20[PATCH=202/2]=20=
Handle=20SSH_MSG_USERAUTH_FAILURE=20for=20password=20and=20kbd-int=20=
authentication=0A=0ANeither=20of=20libssh2_userauth_password_ex()=20or=20=
libssh2_userauth_keyboard_interactive_ex()=20would=20return=20a=20login=20=
failure=20error=20if=20the=20server=20responded=20with=20a=20=
SSH_MSG_USERAUTH_FAILURE,=20you=20would=20see=20whatever=20previous=20=
error=20had=20occurred,=20typically=20LIBSSH2_ERROR_EAGAIN.=0A=0AThis=20=
patch=20changes=20error=20code=20-18=20to=20=
LIBSSH2_ERROR_AUTHENTICATION_FAILED=20and=20makes=20=
LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED=20an=20alias=20for=20=
LIBSSH2_ERROR_AUTHENTICATION_FAILED.=20=20In=20addition,=20new=20logic=20=
in=20userauth_password()=20properly=20handles=20SSH_MSG_USERAUTH_FAILURE=20=
and=20both=20this=20function=20and=20userauth_keyboard_interactive()=20=
now=20properly=20return=20LIBSSH2_ERROR_AUTHENTICATION_FAILED.=0A---=0A=20=
docs/libssh2_userauth_keyboard_interactive_ex.3=20|=20=20=20=202=20++=0A=20=
docs/libssh2_userauth_password_ex.3=20=20=20=20=20=20=20=20=20=20=20=20=20=
|=20=20=20=202=20++=0A=20include/libssh2.h=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20|=20=20=20=20=
3=20++-=0A=20src/userauth.c=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20|=20=20=2017=20=
+++++++++++++++++=0A=204=20files=20changed,=2023=20insertions(+),=201=20=
deletions(-)=0A=0Adiff=20--git=20=
a/docs/libssh2_userauth_keyboard_interactive_ex.3=20=
b/docs/libssh2_userauth_keyboard_interactive_ex.3=0Aindex=20=
80572ae..c70b4ab=20100644=0A---=20=
a/docs/libssh2_userauth_keyboard_interactive_ex.3=0A+++=20=
b/docs/libssh2_userauth_keyboard_interactive_ex.3=0A@@=20-39,5=20+39,7=20=
@@=20LIBSSH2_ERROR_EAGAIN=20is=20a=20negative=20number,=20it=20isn't=20=
really=20a=20failure=20per=20se.=0A=20=0A=20=
\fILIBSSH2_ERROR_SOCKET_SEND\fP=20-=20Unable=20to=20send=20data=20on=20=
socket.=0A=20=0A+\fLIBSSH2_ERROR_AUTHENTICATION_FAILED\fP=20-=20=20=
failed,=20invalid=20username/password=20or=20public/private=20key.=0A+=0A=
=20.SH=20SEE=20ALSO=0A=20.BR=20libssh2_session_init_ex(3)=0Adiff=20--git=20=
a/docs/libssh2_userauth_password_ex.3=20=
b/docs/libssh2_userauth_password_ex.3=0Aindex=2079a471f..a18d3c4=20=
100644=0A---=20a/docs/libssh2_userauth_password_ex.3=0A+++=20=
b/docs/libssh2_userauth_password_ex.3=0A@@=20-46,5=20+46,7=20@@=20=
LIBSSH2_ERROR_EAGAIN=20is=20a=20negative=20number,=20it=20isn't=20really=20=
a=20failure=20per=20se.=0A=20=0A=20\fILIBSSH2_ERROR_PASSWORD_EXPIRED\fP=20=
-=20=0A=20=0A+\fLIBSSH2_ERROR_AUTHENTICATION_FAILED\fP=20-=20=20failed,=20=
invalid=20username/password=20or=20public/private=20key.=0A+=0A=20.SH=20=
SEE=20ALSO=0A=20.BR=20libssh2_session_init_ex(3)=0Adiff=20--git=20=
a/include/libssh2.h=20b/include/libssh2.h=0Aindex=20890749e..91b51cc=20=
100644=0A---=20a/include/libssh2.h=0A+++=20b/include/libssh2.h=0A@@=20=
-341,7=20+341,8=20@@=20typedef=20struct=20_LIBSSH2_POLLFD=20{=0A=20=
#define=20LIBSSH2_ERROR_PASSWORD_EXPIRED=20=20=20=20=20=20=20=20=20=20=
-15=0A=20#define=20LIBSSH2_ERROR_FILE=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20-16=0A=20#define=20=
LIBSSH2_ERROR_METHOD_NONE=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
-17=0A-#define=20LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED=20=20=20=20-18=0A=
+#define=20LIBSSH2_ERROR_AUTHENTICATION_FAILED=20=20=20=20=20-18=0A=
+#define=20LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED=20=20=20=20=
LIBSSH2_ERROR_AUTHENTICATION_FAILED=0A=20#define=20=
LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED=20=20=20=20=20=20-19=0A=20#define=20=
LIBSSH2_ERROR_CHANNEL_OUTOFORDER=20=20=20=20=20=20=20=20-20=0A=20#define=20=
LIBSSH2_ERROR_CHANNEL_FAILURE=20=20=20=20=20=20=20=20=20=20=20-21=0Adiff=20=
--git=20a/src/userauth.c=20b/src/userauth.c=0Aindex=20ee7fee9..2bb84bc=20=
100644=0A---=20a/src/userauth.c=0A+++=20b/src/userauth.c=0A@@=20-310,6=20=
+310,17=20@@=20userauth_password(LIBSSH2_SESSION=20*session,=20const=20=
char=20*username,=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
session->state=20|=3D=20LIBSSH2_STATE_AUTHENTICATED;=0A=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20session->userauth_pswd_state=20=3D=20=
libssh2_NB_state_idle;=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20return=200;=0A+=20=20=20=20=20=20=20=20=20=20=20=20}=20else=20if=20=
(session->userauth_pswd_data[0]=20=3D=3D=20SSH_MSG_USERAUTH_FAILURE)=20{=0A=
+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20_libssh2_debug(session,=20=
LIBSSH2_TRACE_AUTH,=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20"Password=20authentication=20=
failed");=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
LIBSSH2_FREE(session,=20session->userauth_pswd_data);=0A+=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20session->userauth_pswd_data=20=3D=20NULL;=0A=
+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
session->userauth_pswd_state=20=3D=20libssh2_NB_state_idle;=0A+=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20libssh2_error(session,=0A+=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20LIBSSH2_ERROR_AUTHENTICATION_FAILED,=0A+=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
"Authentication=20failed=20(username/password)",=0A+=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=200);=0A=
+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20return=20-1;=0A=20=20=20=
=20=20=20=20=20=20=20=20=20=20}=0A=20=0A=20=20=20=20=20=20=20=20=20=20=20=
=20=20session->userauth_pswd_newpw=20=3D=20NULL;=0A@@=20-1473,9=20=
+1484,15=20@@=20userauth_keyboard_interactive(LIBSSH2_SESSION=20*=20=
session,=0A=20=20=20=20=20=20=20=20=20=20=20=20=20}=0A=20=0A=20=20=20=20=20=
=20=20=20=20=20=20=20=20if=20(session->userauth_kybd_data[0]=20=3D=3D=20=
SSH_MSG_USERAUTH_FAILURE)=20{=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20_libssh2_debug(session,=20LIBSSH2_TRACE_AUTH,=0A+=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
"Keyboard-interactive=20authentication=20failed");=0A=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20LIBSSH2_FREE(session,=20=
session->userauth_kybd_data);=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20session->userauth_kybd_data=20=3D=20NULL;=0A=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20session->userauth_kybd_state=20=3D=20=
libssh2_NB_state_idle;=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
libssh2_error(session,=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
LIBSSH2_ERROR_AUTHENTICATION_FAILED,=0A+=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20"Authentication=20=
failed=20(keyboard-interactive)",=0A+=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=200);=0A=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20return=20-1;=0A=20=20=20=20=20=20=20=20=
=20=20=20=20=20}=0A=20=0A--=20=0A1.6.4.4=0A=0A=

--Apple-Mail-49-99840525
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--Apple-Mail-49-99840525--

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 14:08:48 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LD8Z8w018067;
	Thu, 21 Jan 2010 14:08:41 +0100
Received: from outbound-mail-01.bluehost.com (outbound-mail-01.bluehost.com
	[69.89.21.11])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0LD73XP017264
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 14:07:03 +0100
Received: (qmail 16007 invoked by uid 0); 21 Jan 2010 13:07:02 -0000
Received: from unknown (HELO box439.bluehost.com) (69.89.31.239)
	by outboundproxy4.bluehost.com with SMTP; 21 Jan 2010 13:07:02 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default;
	d=moontechnolabs.com; 
	h=Received:Message-Id:From:To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:X-Mailer:X-Identified-User;
	b=BLrvxqnZTQGDKsa1ezynBaDaoOMCstTwme00pWFcBPqgsO33pBVC7tRWtXp+V9YZ1sccu2ogk+jcF36HifsaB8rglnZFKFPiT37LDAa31kRZZZa/PA1cNM/8s2/omFG3;
Received: from [122.169.80.59] (helo=[192.168.1.11])
	by box439.bluehost.com with esmtpsa (TLSv1:AES128-SHA:128)
	(Exim 4.69) (envelope-from <paresh.thakor@moontechnolabs.com>)
	id 1NXwkY-0001Yb-Bq
	for libssh2-devel@cool.haxx.se; Thu, 21 Jan 2010 06:07:02 -0700
Message-Id: <0D8D8DC9-0B0B-4FB2-BD67-180216101613@moontechnolabs.com>
From: Paresh <paresh.thakor@moontechnolabs.com>
To: libssh2-devel@cool.haxx.se
Mime-Version: 1.0 (Apple Message framework v935.3)
Subject: Multiple Command executions pipeline
Date: Thu, 21 Jan 2010 18:36:58 +0530
X-Mailer: Apple Mail (2.935.3)
X-Identified-User: {1089:box439.bluehost.com:moonsoft:moontechnolabs.com}
	{sentby:smtp auth 122.169.80.59 authed with
	paresh.thakor@moontechnolabs.com}
X-Mailman-Approved-At: Thu, 21 Jan 2010 14:08:34 +0100
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hello,


I am working on an iPhone application and used libssh2 library to  
excute commands on remote host.
Our application is working good to execute simple individual commands  
but it is not storing sessions.

I mean, i need help over such issues described below:

e.g.
mkdir xyz
cd xyz
pwd


if I execute this sequence of commands, then, i want it to be executed  
like we execute it at terminal. i.e. it must display XYZ as pwd. Our  
application displays root directory as PWD.

also, i wanna implement script execution, i.e. if i make a script of  
commands, then, it would be executed like the script, at once, i don't  
need to execute command one by one.

Please help me, I'm using libssh2.

If anything we can do with libssh2 functions, like, session_init(),  
channel, etc?

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 17:36:00 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LGZn5W025762;
	Thu, 21 Jan 2010 17:35:57 +0100
Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o0LGZlre025758
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 17:35:47 +0100
Received: by ey-out-2122.google.com with SMTP id d26so62858eyd.31
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 08:35:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type:content-transfer-encoding;
	bh=p9Ns9GRdJmnBnutX8TDoTg8nJuSFFpnF1z6uU+NgBjc=;
	b=cJncs4sP8195AP07J7h9Vsoh9QWQkMDMLOXLIEpvFYIDrLA40VaRNI9YAEwxPJLzHx
	jPD2ZJmKNvr48mychlJyugwaikDnw2s7JNLZQvbb5dfYTw2jTtXGeHeACGmsXfn08giO
	1abOwsLsvQQNvTUo+H00VVoNh7q6K2rQ59RG8=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type
	:content-transfer-encoding;
	b=L30mk8vjzgZTkBAE66dzjGqUmUnVi44fxMbWgfQxiJKMga1B6ZqGr5buGHd48rtRtV
	bP+cPTCQBArm3rtYWlgrvR0MbatOCCWeJaR5CL9G5BvfuIapqB17OLxLZOz+v/OYXt/r
	SQIk6HuYlRZz+rwxEBUwDyXya6MYMAVm4t1xQ=
MIME-Version: 1.0
Received: by 10.213.41.133 with SMTP id o5mr1483300ebe.79.1264091748295; Thu, 
	21 Jan 2010 08:35:48 -0800 (PST)
In-Reply-To: <5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
	<5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
Date: Thu, 21 Jan 2010 16:35:48 +0000
X-Google-Sender-Auth: 68186cf6c1260f88
Message-ID: <9c3275a91001210835r417a7b68xa69b5844d9624f20@mail.gmail.com>
Subject: Re: release time?
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

2010/1/20 Dave McCaldon <davem@intersystems.com>:
>
> On Jan 15, 2010, at 9:02 AM, Dave McCaldon wrote:
>
>> Yes, my patch added LIBSSH2_ERROR_AUTHENTICATION_FAILED with the same va=
lue as LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED.
>>
> Attached is a git patch that implements handling of SSH_MSG_USERAUTH_FAIL=
URE in both libssh2_userauth_password_ex() and libssh2_userauth_keyboard_in=
teractive_ex(). =A0The error code returned, is LIBSSH2_ERROR_AUTHENTICATION=
_FAILED and as discussed it replaces LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED, =
but leaves LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED as an alias for LIBSSH2_ERR=
OR_AUTHENTICATION_FAILED.

Thanks Dave, it looks great.  My only suggestions are that the patch
should also change all existing uses of
LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED to
LIBSSH2_ERROR_AUTHENTICATION_FAILED for consistency and add a comment
to the #define explaining that's its for backward-compat.

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 20:19:35 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LJJMno001503;
	Thu, 21 Jan 2010 20:19:30 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0LJJL8s001453
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 20:19:21 +0100
Received: (qmail 25754 invoked by uid 501); 21 Jan 2010 19:19:21 -0000
Message-ID: <20100121191921.25753.qmail@stuge.se>
Date: Thu, 21 Jan 2010 20:19:21 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Multiple Command executions pipeline
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <0D8D8DC9-0B0B-4FB2-BD67-180216101613@moontechnolabs.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <0D8D8DC9-0B0B-4FB2-BD67-180216101613@moontechnolabs.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Paresh wrote:
> Our application is working good to execute simple individual
> commands but it is not storing sessions.

libssh2 does not help you with this. You must implement it yourself.


> if I execute this sequence of commands, then, i want it to be
> executed like we execute it at terminal.
> i.e. it must display XYZ as pwd.

So you want to create a terminal program, but perhaps with an API
instead of a user interface. Please study what a terminal emulator
is, and all the software that it interacts with on the server. Also
investigate how to control a user shell from an application.

Please note that the shell is a USER interface, so it is very badly
suited for being controlled by your program.


> Our application displays root directory as PWD.

I don't understand what this means.


> also, i wanna implement script execution, i.e. if i make a script
> of commands, then, it would be executed like the script, at once, i
> don't need to execute command one by one.

I also don't understand this. As I am sure that you know, a script is
nothing but a series of commands. If you do not want to store this
series of commands on the server, then you must store them in your
client. If you store them in your client then you must send them one
at a time to the shell on the server.


> Please help me, I'm using libssh2.

You have not posted any question about libssh2, and the problem with
your application that you are trying to solve has nothing to do with
SSH or libssh2, so don't expect to get much help with it here.


> If anything we can do with libssh2 functions, like, session_init(),
> channel, etc?

No. These are all related to details in the SSH protocol, and it
seems to me that your problem is with remotely controlling a user
interface from a program. If anything I would suggest that you
contact shell developers and talk to them about the most suitable way
for another program to interact with a shell, but don't expect to get
much enthousiasm from them either.


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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 20:44:29 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LJiJR8020352;
	Thu, 21 Jan 2010 20:44:24 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0LJiH7I020320
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 20:44:17 +0100
Received: (qmail 30433 invoked by uid 501); 21 Jan 2010 19:44:18 -0000
Message-ID: <20100121194418.30432.qmail@stuge.se>
Date: Thu, 21 Jan 2010 20:44:18 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: release time?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
	<5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Dave McCaldon wrote:
> Please let me know if there are any problems!

I agree with Alexander, fix up uses of the now-deprecated pubkey
define and this is good for a commit!


> +            } else if (session->userauth_pswd_data[0] == SSH_MSG_USERAUTH_FAILURE) {
> +                _libssh2_debug(session, LIBSSH2_TRACE_AUTH,
> +                               "Password authentication failed");
> +                LIBSSH2_FREE(session, session->userauth_pswd_data);
> +                session->userauth_pswd_data = NULL;
> +                session->userauth_pswd_state = libssh2_NB_state_idle;
> +                libssh2_error(session,
> +                              LIBSSH2_ERROR_AUTHENTICATION_FAILED,
> +                              "Authentication failed (username/password)",
> +                              0);
> +                return -1;

Somewhat related, but not criticism on your patch Dave. I know that
the above is the same style as the rest of the library and it's fine.

Would anyone veto changes that reduce mindless code duplication such
as above with the use of forward gotos to the end of functions?


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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 20:52:38 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LJqWiu026593;
	Thu, 21 Jan 2010 20:52:36 +0100
Received: from mail.intersystems.com (mail.intersys.com [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LJqUDv026584
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 20:52:30 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: release time?
From: Dave McCaldon <davem@intersystems.com>
In-Reply-To: <20100121194418.30432.qmail@stuge.se>
Date: Thu, 21 Jan 2010 14:52:24 -0500
Message-Id: <7B67CB3F-FB41-46DA-9BE5-FFB629E25128@intersystems.com>
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
	<5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
	<20100121194418.30432.qmail@stuge.se>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


On Jan 21, 2010, at 2:44 PM, Peter Stuge wrote:

> Dave McCaldon wrote:
>> Please let me know if there are any problems!
> 
> I agree with Alexander, fix up uses of the now-deprecated pubkey
> define and this is good for a commit!

I hate to open up another can of worms, but I left this alone because there's another, similar define LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED.  I'm not sure how this relates to LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED.

Is it reasonable to simply supply and additional patch, or do I need to roll this back and create a new patch? (or maybe squish the two into one -- my O'Reilly Git book just arrived today!).

Thanks.

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 20:53:38 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LJrZCn026900;
	Thu, 21 Jan 2010 20:53:36 +0100
Received: from mail-ew0-f217.google.com (mail-ew0-f217.google.com
	[209.85.219.217])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LJrXbm026885
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 20:53:33 +0100
Received: by ewy9 with SMTP id 9so397911ewy.11
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 11:53:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type:content-transfer-encoding;
	bh=j1qClNsx6FBg3bTWOy1vq149xa885qc5nSk9wc0cgyI=;
	b=GJ68tj2R24vfz0KKZpUOBL3Hllulm6H9m7eC/QTf2X0m8Xo/CY1+DNsR+fuGGjcKgD
	XwBZfVkUg6tgWshzvyB9j6dgD2GysT70P1SieD2uNftv8z+r4FQ2zFQNwpSY7Hwrtfe2
	a8eVdzUhc0FccaEJ7gni6zotlBPFIOYAcg/P0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type
	:content-transfer-encoding;
	b=g4iQ3z/xklqTGaUKeEMt+RMBK2Pdfhmop+R89Fdu5NvPwqa9WUQjfjf5mc/pnGuHUX
	Skg2LKPQVUgjaya7fVtOLwLyqlKDwMgc7P6CSkzp5i52r7qszLAlgeZUuJM8N9NF+I6H
	KqnN+/GKNQbRGnMiq3ntbm/nz8Z0aPI+kZxkQ=
MIME-Version: 1.0
Received: by 10.213.39.203 with SMTP id h11mr2593376ebe.0.1264103608596; Thu, 
	21 Jan 2010 11:53:28 -0800 (PST)
In-Reply-To: <20100121194418.30432.qmail@stuge.se>
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
	<5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
	<20100121194418.30432.qmail@stuge.se>
Date: Thu, 21 Jan 2010 19:53:28 +0000
X-Google-Sender-Auth: a1f333f7bbad4d42
Message-ID: <9c3275a91001211153j4bcefb89x6c051f11f3b38960@mail.gmail.com>
Subject: Re: release time?
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

2010/1/21 Peter Stuge <peter@stuge.se>:
>> + =A0 =A0 =A0 =A0 =A0 =A0} else if (session->userauth_pswd_data[0] =3D=
=3D SSH_MSG_USERAUTH_FAILURE) {
>> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0_libssh2_debug(session, LIBSSH2_TRACE_A=
UTH,
>> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "Password =
authentication failed");
>> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0LIBSSH2_FREE(session, session->userauth=
_pswd_data);
>> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0session->userauth_pswd_data =3D NULL;
>> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0session->userauth_pswd_state =3D libssh=
2_NB_state_idle;
>> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0libssh2_error(session,
>> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0LIBSSH2_ERR=
OR_AUTHENTICATION_FAILED,
>> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"Authentica=
tion failed (username/password)",
>> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A00);
>> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return -1;
>
>
> Would anyone veto changes that reduce mindless code duplication such
> as above with the use of forward gotos to the end of functions?

Rather than gotos, how about a helper function e.g.:

...
    } else if (session->userauth_pswd_data[0] =3D=3D SSH_MSG_USERAUTH_FAILU=
RE) {
        return auth_fail(session, "Authentication failed (username/password=
)");
...

static int auth_fail(LIBSSH2_SESSION* session, const char* message)
{
    _libssh2_debug(session, LIBSSH2_TRACE_AUTH, message);
    LIBSSH2_FREE(session, session->userauth_pswd_data);
    session->userauth_pswd_data =3D NULL;
    session->userauth_pswd_state =3D libssh2_NB_state_idle;
    libssh2_error(session, LIBSSH2_ERROR_AUTHENTICATION_FAILED, message, 0);
    return -1;
}

Or am I missing the need for gotos (not got the code in front of me)?

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 21:22:24 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LKMDnj011844;
	Thu, 21 Jan 2010 21:22:21 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0LKMCKv011841
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 21:22:12 +0100
Received: (qmail 5363 invoked by uid 501); 21 Jan 2010 20:22:13 -0000
Message-ID: <20100121202213.5362.qmail@stuge.se>
Date: Thu, 21 Jan 2010 21:22:13 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: release time?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
	<5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
	<20100121194418.30432.qmail@stuge.se>
	<9c3275a91001211153j4bcefb89x6c051f11f3b38960@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <9c3275a91001211153j4bcefb89x6c051f11f3b38960@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Alexander Lamaison wrote:
> > Would anyone veto changes that reduce mindless code duplication such
> > as above with the use of forward gotos to the end of functions?
> 
> Rather than gotos, how about a helper function e.g.:

A function brings a new scope which may not always work. goto is not
a bad thing if used right. I think forward gotos for error handling
is an excellent way to keep code clean, coherent and short:

main() {
  int ret=1;
  char *ptr=NULL;
..
  if(some_error)
    goto done;
  ptr=malloc(1024*1024);
  if(NULL==ptr) {
    perror("malloc");
    goto done;
  }

  /* main stuff */
  ret=0;

done:
  if(ptr)
    free(ptr);
  return ret;
}


> Or am I missing the need for gotos (not got the code in front of me)?

Cleaning up ptr in the above example is the point. Instead of
duplicating cleanup code in every single error handling branch within
main stuff, all cleanup code is in one single location.

That way, there is much less code overall and writing error handling
is greatly simplified, which means more likely to be done and much
more likely to not introduce new bugs because of overlooked cleanup.


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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 21:32:46 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LKWeQL020341;
	Thu, 21 Jan 2010 21:32:44 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0LKWcjQ020331
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 21:32:38 +0100
Received: (qmail 7603 invoked by uid 501); 21 Jan 2010 20:32:39 -0000
Message-ID: <20100121203239.7602.qmail@stuge.se>
Date: Thu, 21 Jan 2010 21:32:39 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Finally fixing password and kbd-int userauth, and git talk
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
	<5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
	<20100121194418.30432.qmail@stuge.se>
	<7B67CB3F-FB41-46DA-9BE5-FFB629E25128@intersystems.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <7B67CB3F-FB41-46DA-9BE5-FFB629E25128@intersystems.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Dave McCaldon wrote:
> > I agree with Alexander, fix up uses of the now-deprecated pubkey
> > define and this is good for a commit!
> 
> I hate to open up another can of worms, but I left this alone
> because there's another, similar define
> LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED.  I'm not sure how this relates
> to LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED.

I'm surprised you're not sure. It is unrelated and does not need to
be touched.


> Is it reasonable to simply supply and additional patch, or do I
> need to roll this back and create a new patch? (or maybe squish
> the two into one -- my O'Reilly Git book just arrived today!).

Please send a single patch, since it greatly helps when applying your
changes.


If anyone has questions about how to work with git to prepare patches
then please just ask them and we'll try to answer. There is also a
very helpful IRC channel #git on irc.freenode.net where you can get
help from git experts almost 24/7.

It is totally possible to change history in git, you can go back and
make changes to an old commit, and then rebase any later events onto
the new version of the old commit. Another pattern is to use branches
a lot. I'm not using branches very much, but they can be very handy.

This patch you sent was 2/2, so apparently it is not the only patch
you have against current master? Or was the first one already pushed
by Daniel? In that case you can git pull --rebase and after that
would you only be a single commit ahead? If you only need to change
the very latest commit in your repo then things are very simple, just
change files, git add them, then git commit --amend

Or do you need to change an older commit?


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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 21:48:49 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LKmiEf031666;
	Thu, 21 Jan 2010 21:48:47 +0100
Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com
	[209.85.221.175])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LKmgTn031634
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 21:48:42 +0100
Received: by qyk5 with SMTP id 5so232918qyk.8
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 12:48:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:date:message-id:subject
	:from:to:content-type;
	bh=FZ0XtlC1HD7hhXK5Lhs2vLV+jZZ5Gcq85fb7KSPf5Eo=;
	b=GXV3Z4zAHy+/0iJIWJYsBdaNihlaZfzFkUzjVQ5NFserX59S7w4Qpej0Oh5DVD0S6V
	3h7HrweR2HuzIrQ9qZGmon60WeBJ76nNkf/bqZHYEwaRmIX56JDD/2j7JSqTapcwu2Zk
	0ajXmMhrB+Blcpfkz7ZTjqh8617yn2yVhVpaU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	b=OOLmv3dpdUSHjAfUwFgwXJyUH2yOo3BlAf7S+MmRAoYqaRRNkoRqVkSs90lx8vFaPV
	yEk3LnwgHrPlWDOfalbfxurVabti8s3USXKYvKF7ghTElAaNS9AMOSpRuTQM24ecigda
	MQr+2bdlZpeBrg5XmZvyVXzDSjoamCiA42HlE=
MIME-Version: 1.0
Received: by 10.229.50.12 with SMTP id x12mr1222178qcf.76.1264106917440; Thu, 
	21 Jan 2010 12:48:37 -0800 (PST)
Date: Thu, 21 Jan 2010 12:48:37 -0800
Message-ID: <603122d71001211248w302f8b86h809b806a286f0a9f@mail.gmail.com>
Subject: multiple exec
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0977827492=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0977827492==
Content-Type: multipart/alternative; boundary=001636833de2c6106a047db2d3b7

--001636833de2c6106a047db2d3b7
Content-Type: text/plain; charset=ISO-8859-1

Hello All !

I was wondering what would be the simplest way to execute two commands
simultaneously using libssh2.
My gross idea is that i could create an extra connection and do it that way,
but that seems like probably overkill.
I'm afraid however that I can't do another channel exec until the previous
process has finished and the channel has closed.
So what do you think ?

--001636833de2c6106a047db2d3b7
Content-Type: text/html; charset=ISO-8859-1

Hello All !<br><br>I was wondering what would be the simplest way to execute two commands simultaneously using libssh2.<br>My gross idea is that i could create an extra connection and do it that way, but that seems like probably overkill.<br>
I&#39;m afraid however that I can&#39;t do another channel exec until the previous process has finished and the channel has closed.<br>So what do you think ?<br>

--001636833de2c6106a047db2d3b7--

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

--===============0977827492==--

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 22:01:09 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LL10tZ004595;
	Thu, 21 Jan 2010 22:01:06 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0LL0wWM004592
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 22:00:58 +0100
Received: (qmail 14931 invoked by uid 501); 21 Jan 2010 21:00:59 -0000
Message-ID: <20100121210059.14930.qmail@stuge.se>
Date: Thu, 21 Jan 2010 22:00:59 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: multiple exec
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71001211248w302f8b86h809b806a286f0a9f@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <603122d71001211248w302f8b86h809b806a286f0a9f@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

A. Mark wrote:
> I was wondering what would be the simplest way to execute two
> commands simultaneously using libssh2.
..
> I'm afraid however that I can't do another channel exec until the
> previous process has finished and the channel has closed.

The channel may even be destroyed after the exec:ed command returns.

One solution is to simply create many channels. That works just fine.


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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 22:22:45 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LLMIMO018869;
	Thu, 21 Jan 2010 22:22:25 +0100
Received: from mail-ew0-f217.google.com (mail-ew0-f217.google.com
	[209.85.219.217])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LLMG1B018828
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 22:22:16 +0100
Received: by ewy9 with SMTP id 9so501221ewy.11
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 13:22:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type:content-transfer-encoding;
	bh=THhSLUFZ1qDaj9Z76VoIJuWckNIuVnoTw4wwc29oQ6c=;
	b=CZi5Dk5z/R/uPscVQDHcH3AbRYAfJQTLsbmFYwV3lxIfZt5aeFn61Krelz5qDODlMf
	XgDnjeXTMkwupv0rUigqwPYJkj2mAfrpbDtmSABT1u8jaYrH5kTQ0pADciJ/so8/1ABP
	bdDvMawRYP1F7qmPNQUVntH/S5xN/9rBb8O5s=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type
	:content-transfer-encoding;
	b=mVWP2jq+GhNNxF7+QnPNZ4MdsxBMCg8ahlF4+He3EunlGglFavwjBL1oXDIWyzd4Wr
	ysY7C7H5nvY2ge9jA424iaa601dpiugtUxRvebvuhprAfBukGo6lFzt9vcxcAlN9waem
	fWC4iKLzELK5If5MFrwDmWeGu12b+l6ZSL3NM=
MIME-Version: 1.0
Received: by 10.213.96.13 with SMTP id f13mr1884349ebn.41.1264108931135; Thu, 
	21 Jan 2010 13:22:11 -0800 (PST)
In-Reply-To: <20100121202213.5362.qmail@stuge.se>
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
	<5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
	<20100121194418.30432.qmail@stuge.se>
	<9c3275a91001211153j4bcefb89x6c051f11f3b38960@mail.gmail.com>
	<20100121202213.5362.qmail@stuge.se>
Date: Thu, 21 Jan 2010 21:22:11 +0000
X-Google-Sender-Auth: 7d58d19129188754
Message-ID: <9c3275a91001211322o7a7d71d2kf1255a566736164a@mail.gmail.com>
Subject: Re: release time?
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

2010/1/21 Peter Stuge <peter@stuge.se>:
> Alexander Lamaison wrote:
>> > Would anyone veto changes that reduce mindless code duplication such
>> > as above with the use of forward gotos to the end of functions?
>>
>> Rather than gotos, how about a helper function e.g.:
>
> A function brings a new scope which may not always work. goto is not
> a bad thing if used right. I think forward gotos for error handling
> is an excellent way to keep code clean, coherent and short:
>
> main() {
> =A0int ret=3D1;
> =A0char *ptr=3DNULL;
> ..
> =A0if(some_error)
> =A0 =A0goto done;
> =A0ptr=3Dmalloc(1024*1024);
> =A0if(NULL=3D=3Dptr) {
> =A0 =A0perror("malloc");
> =A0 =A0goto done;
> =A0}
>
> =A0/* main stuff */
> =A0ret=3D0;
>
> done:
> =A0if(ptr)
> =A0 =A0free(ptr);
> =A0return ret;
> }
>
>
>> Or am I missing the need for gotos (not got the code in front of me)?
>
> Cleaning up ptr in the above example is the point. Instead of
> duplicating cleanup code in every single error handling branch within
> main stuff, all cleanup code is in one single location.

This should still be done with a function.  Arguably, that's what they
were invented for.

static int cleanup(char * ptr, int ret)
{
    if(ptr)
        free(ptr);
    return ret;
}

main() {
    int ret=3D1;
    char *ptr=3DNULL;
..
    if(some_error)
        return cleanup(ptr, ret);
    ptr=3Dmalloc(1024*1024);
    if(NULL=3D=3Dptr) {
        perror("malloc");
        return cleanup(ptr, ret);
    }

    /* main stuff */
    return cleanup(ptr, 0)
}

This makes very clear what is being cleaned up when and where.
Passing the return code in and out of cleanup may look pointless in
this example but as a general technique it allows the cleanup process
itself to signal an error.

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 22:36:27 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LLaNNR029963;
	Thu, 21 Jan 2010 22:36:26 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0LLaMFA029954
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 22:36:22 +0100
Received: (qmail 20187 invoked by uid 501); 21 Jan 2010 21:36:22 -0000
Message-ID: <20100121213622.20186.qmail@stuge.se>
Date: Thu, 21 Jan 2010 22:36:22 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: release time?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
	<5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
	<20100121194418.30432.qmail@stuge.se>
	<9c3275a91001211153j4bcefb89x6c051f11f3b38960@mail.gmail.com>
	<20100121202213.5362.qmail@stuge.se>
	<9c3275a91001211322o7a7d71d2kf1255a566736164a@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <9c3275a91001211322o7a7d71d2kf1255a566736164a@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Alexander Lamaison wrote:
> > A function brings a new scope which may not always work.
..

> > Cleaning up ptr in the above example is the point. Instead of
> > duplicating cleanup code in every single error handling branch within
> > main stuff, all cleanup code is in one single location.
> 
> This should still be done with a function.  Arguably, that's what
> they were invented for.

I will argue that to no end. What is this about though? goto? The
point Ken or whoever it was wanted to make is that goto should not be
used to jump between scopes. What people seem to have interpreted
that into is that gotos should never be used. I have so far not seen
a big advantage of backwards gotos in C, so my simplest rule becomes
that forward gotos are usually if not always OK.


> static int cleanup(char * ptr, int ret)
> {
>     if(ptr)
>         free(ptr);
>     return ret;
> }
> 
> main() {
>     int ret=1;
>     char *ptr=NULL;
> ..
>     if(some_error)
>         return cleanup(ptr, ret);
>     ptr=malloc(1024*1024);
>     if(NULL==ptr) {
>         perror("malloc");
>         return cleanup(ptr, ret);
>     }
> 
>     /* main stuff */
>     return cleanup(ptr, 0)
> }
> 
> This makes very clear what is being cleaned up when and where.

Wow, eh, ok.. I don't like this, to say the least. It might look neat
now that it only needs to consider one single variable for cleanup,
but it already duplicates two things (return and ret) without gain.
And what will this look like when there's not just one variable to
clean up but say four or five? (probably not so uncommon)
Not to mention that it makes for an assymmetric code flow, where ptr
is allocated in one function, but freed in another. This needs more
resources when keeping the program in one's head.


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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 22:48:04 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LLlx1V007588;
	Thu, 21 Jan 2010 22:48:02 +0100
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o0LLluhM007580
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 22:47:57 +0100
Received: by qw-out-2122.google.com with SMTP id 3so102121qwe.41
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 13:47:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=A5Yp9/NAyzg+bRF3ZjXn8glcs5RQBO0gDiPnRzFTbRg=;
	b=WhzOM6B1VJK7TPeHjN6p3a8usCrq+5qOX+Dj8KQlfBBXFlgxOPOci62rrx9EvR/WhN
	bPHWTrABeVLqANUEaclXvM7zyEVWuQTSM0mYe9ngTOB0+Bby9VA0emtgB3MiAAHC622R
	3gVJyrcozZP3YW60lY+mY0oBF8Cmn4+OCE6Sg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=UD9O3wPV3ucRXlSdTBalhN39sRgbl78CTOzFyAGIMikZZdyy1pP9SWRDjFnCowGSZo
	9i43DEFnyov0WVlvCKTv7/u7cN5j5H45e0NiuhXpQVcvEl7rbVVrPPRT8Ij+b7T/CIn+
	R6Qzq3ssB9THG7jxvmDlWSLK25W7fDn1vQOfo=
MIME-Version: 1.0
Received: by 10.229.130.194 with SMTP id u2mr1317474qcs.17.1264110477253; Thu, 
	21 Jan 2010 13:47:57 -0800 (PST)
In-Reply-To: <20100121210059.14930.qmail@stuge.se>
References: <603122d71001211248w302f8b86h809b806a286f0a9f@mail.gmail.com>
	<20100121210059.14930.qmail@stuge.se>
Date: Thu, 21 Jan 2010 13:47:57 -0800
Message-ID: <603122d71001211347t15be670al551604d893dc7c3c@mail.gmail.com>
Subject: Re: multiple exec
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1653532407=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1653532407==
Content-Type: multipart/alternative; boundary=00151750d8bcf41bf4047db3a74d

--00151750d8bcf41bf4047db3a74d
Content-Type: text/plain; charset=ISO-8859-1

Thanks Peter !

On Thu, Jan 21, 2010 at 1:00 PM, Peter Stuge <peter@stuge.se> wrote:

> A. Mark wrote:
> > I was wondering what would be the simplest way to execute two
> > commands simultaneously using libssh2.
> ..
> > I'm afraid however that I can't do another channel exec until the
> > previous process has finished and the channel has closed.
>
> The channel may even be destroyed after the exec:ed command returns.
>
> One solution is to simply create many channels. That works just fine.
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

Thanks Peter !<br><br><div class=3D"gmail_quote">On Thu, Jan 21, 2010 at 1:=
00 PM, Peter Stuge <span dir=3D"ltr">&lt;<a href=3D"mailto:peter@stuge.se">=
peter@stuge.se</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" s=
tyle=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8e=
x; padding-left: 1ex;">
<div class=3D"im">A. Mark wrote:<br>
&gt; I was wondering what would be the simplest way to execute two<br>
&gt; commands simultaneously using libssh2.<br>
</div><div class=3D"im">..<br>
&gt; I&#39;m afraid however that I can&#39;t do another channel exec until =
the<br>
&gt; previous process has finished and the channel has closed.<br>
<br>
</div>The channel may even be destroyed after the exec:ed command returns.<=
br>
<br>
One solution is to simply create many channels. That works just fine.<br>
<br>
<br>
//Peter<br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</blockquote></div><br>

--00151750d8bcf41bf4047db3a74d--

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

--===============1653532407==--

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 23:01:51 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LM1jvb014442;
	Thu, 21 Jan 2010 23:01:49 +0100
Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com
	[209.85.221.175])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LM1hLq014431
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 23:01:43 +0100
Received: by qyk5 with SMTP id 5so268626qyk.8
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 14:01:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=PMja2ZHihria4CMzhWhzx9GQRBGhlBqqm3Q++8BkrYs=;
	b=XARyEZ6N6QqMpBz7PfxHn36DBJ8oHTHcmvWS30bfnUM8CQ8XCq2nvfpmlVcpmHCw+Z
	Os5JjDMZZO4PYAgUQTdwDT0tIt8psRw8Ytpe64nnR4htPFGsQ2cWS2uwFHKWt2ndiTlv
	H4WhYMCJYt+e3oCWmjHdJKmOFG/3dKmMKyhdo=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=kw1qB+6wKsT/PS04Ft4fvb3JvTWgLaS6WGiewCRbU3vunfVd7ngAtOevqX0NWpVIr1
	OfSqx/7a3HDipEw2pGUTWE9Mrx8n5ZYxoJH7HY5Zs1dhX7JMSKaQWmREnIQ0PFpdWsdS
	dRV355kFNXqC4aDOs3zLIe8TM3xkXJlHau5Ao=
MIME-Version: 1.0
Received: by 10.229.117.199 with SMTP id s7mr619916qcq.49.1264111298744; Thu, 
	21 Jan 2010 14:01:38 -0800 (PST)
In-Reply-To: <20100121210059.14930.qmail@stuge.se>
References: <603122d71001211248w302f8b86h809b806a286f0a9f@mail.gmail.com>
	<20100121210059.14930.qmail@stuge.se>
Date: Thu, 21 Jan 2010 14:01:38 -0800
Message-ID: <603122d71001211401s5285c538j483d9672cde77fe8@mail.gmail.com>
Subject: Re: multiple exec
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1696179300=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1696179300==
Content-Type: multipart/alternative; boundary=000e0cd6e5cceb11f0047db3d85f

--000e0cd6e5cceb11f0047db3d85f
Content-Type: text/plain; charset=ISO-8859-1

Can I create multiple channels blocking and non-blocking together on the
same connection ?

On Thu, Jan 21, 2010 at 1:00 PM, Peter Stuge <peter@stuge.se> wrote:

> A. Mark wrote:
> > I was wondering what would be the simplest way to execute two
> > commands simultaneously using libssh2.
> ..
> > I'm afraid however that I can't do another channel exec until the
> > previous process has finished and the channel has closed.
>
> The channel may even be destroyed after the exec:ed command returns.
>
> One solution is to simply create many channels. That works just fine.
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

Can I create multiple channels blocking and non-blocking together on the sa=
me connection ?<br><br><div class=3D"gmail_quote">On Thu, Jan 21, 2010 at 1=
:00 PM, Peter Stuge <span dir=3D"ltr">&lt;<a href=3D"mailto:peter@stuge.se"=
>peter@stuge.se</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"=
>A. Mark wrote:<br>
&gt; I was wondering what would be the simplest way to execute two<br>
&gt; commands simultaneously using libssh2.<br>
</div><div class=3D"im">..<br>
&gt; I&#39;m afraid however that I can&#39;t do another channel exec until =
the<br>
&gt; previous process has finished and the channel has closed.<br>
<br>
</div>The channel may even be destroyed after the exec:ed command returns.<=
br>
<br>
One solution is to simply create many channels. That works just fine.<br>
<br>
<br>
//Peter<br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</blockquote></div><br>

--000e0cd6e5cceb11f0047db3d85f--

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

--===============1696179300==--

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 23:07:28 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LM7NYe021891;
	Thu, 21 Jan 2010 23:07:26 +0100
Received: from mail.intersystems.com (mail.intersys.com [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LM7LB7021864
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 23:07:22 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: Finally fixing password and kbd-int userauth, and git talk
From: Dave McCaldon <davem@intersystems.com>
In-Reply-To: <20100121203239.7602.qmail@stuge.se>
Date: Thu, 21 Jan 2010 17:07:16 -0500
Message-Id: <CC36890C-B7FF-4104-9290-EA5CDDFBAD2B@intersystems.com>
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
	<5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
	<20100121194418.30432.qmail@stuge.se>
	<7B67CB3F-FB41-46DA-9BE5-FFB629E25128@intersystems.com>
	<20100121203239.7602.qmail@stuge.se>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


On Jan 21, 2010, at 3:32 PM, Peter Stuge wrote:

> Dave McCaldon wrote:
>>> I agree with Alexander, fix up uses of the now-deprecated pubkey
>>> define and this is good for a commit!
>> 
>> I hate to open up another can of worms, but I left this alone
>> because there's another, similar define
>> LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED.  I'm not sure how this relates
>> to LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED.
> 
> I'm surprised you're not sure. It is unrelated and does not need to
> be touched.

The descriptions are vague:

LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED:
The username/public key combination was invalid.

LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED:
The username/public key combination was invalid, or the signature for the supplied public key was invalid.

It sounds like UNVERIFIED is a superset of UNRECOGNIZED plus the invalid signature, which is why I left both existing usages alone.


>> Is it reasonable to simply supply and additional patch, or do I
>> need to roll this back and create a new patch? (or maybe squish
>> the two into one -- my O'Reilly Git book just arrived today!).
> 
> Please send a single patch, since it greatly helps when applying your
> changes.
> 
> 
> If anyone has questions about how to work with git to prepare patches
> then please just ask them and we'll try to answer. There is also a
> very helpful IRC channel #git on irc.freenode.net where you can get
> help from git experts almost 24/7.
> 
> It is totally possible to change history in git, you can go back and
> make changes to an old commit, and then rebase any later events onto
> the new version of the old commit. Another pattern is to use branches
> a lot. I'm not using branches very much, but they can be very handy.
> 
> This patch you sent was 2/2, so apparently it is not the only patch
> you have against current master? Or was the first one already pushed
> by Daniel?

Correct, I did a 'git pull', but not with --rebase.

> In that case you can git pull --rebase and after that
> would you only be a single commit ahead? If you only need to change
> the very latest commit in your repo then things are very simple, just
> change files, git add them, then git commit --amend
> 
> Or do you need to change an older commit?

I have since committed a fix to the context strings in libssh_debug().


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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 21 23:39:35 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LMdQEF032726;
	Thu, 21 Jan 2010 23:39:33 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0LMdPDn032721
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 23:39:25 +0100
Received: (qmail 31515 invoked by uid 501); 21 Jan 2010 22:39:26 -0000
Message-ID: <20100121223926.31514.qmail@stuge.se>
Date: Thu, 21 Jan 2010 23:39:26 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: multiple exec
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71001211248w302f8b86h809b806a286f0a9f@mail.gmail.com>
	<20100121210059.14930.qmail@stuge.se>
	<603122d71001211401s5285c538j483d9672cde77fe8@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <603122d71001211401s5285c538j483d9672cde77fe8@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

A. Mark wrote:
> Can I create multiple channels blocking and non-blocking together
> on the same connection ?

Blockingness is set per session = per connection. The way the library
works internally forces you to use non-blocking IO if there is more
than one channel open.


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 22 00:11:38 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LNBU9r017733;
	Fri, 22 Jan 2010 00:11:35 +0100
Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com
	[209.85.221.175])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0LNBRbS017674
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 00:11:28 +0100
Received: by qyk5 with SMTP id 5so299476qyk.8
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 15:11:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=OZPfOuoEwePQPVnZoFGJAektsPjW3R/OEeyIDtcoZjU=;
	b=TZG+23qRF8zofXC1Cdn6nuVM8CA0qkrpjf5pYGkp1+iNofglmMisfxqCluNpN7+Ypj
	mhu1uT9HNK8pm7MCfni6eX/0GmCceQTlJaHC+LK1qtI6nRB+l4MAQ7hDOpe8ZLSXqhzE
	42l3o2oftOJHmeR4wWp1QYDgFau4vFzbELg3I=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=jawqXtd2e/PonbAmAQY4o1i3Ctit5B1nTu4Ct/e9f65Op+Pnd+JK8LHGb9jHJKo1bf
	k4ILiRZtT3hzXtmdQZOV8ai6rX4G5qsiaMTCRcnBbinZfCrGwqCtELxgWnjpMJOhQ95b
	HOZN824hy30OdM3uHkOxU0k2Uxpcr3fz+Kd2A=
MIME-Version: 1.0
Received: by 10.229.50.12 with SMTP id x12mr1325227qcf.76.1264115483308; Thu, 
	21 Jan 2010 15:11:23 -0800 (PST)
In-Reply-To: <20100121223926.31514.qmail@stuge.se>
References: <603122d71001211248w302f8b86h809b806a286f0a9f@mail.gmail.com>
	<20100121210059.14930.qmail@stuge.se>
	<603122d71001211401s5285c538j483d9672cde77fe8@mail.gmail.com>
	<20100121223926.31514.qmail@stuge.se>
Date: Thu, 21 Jan 2010 15:11:23 -0800
Message-ID: <603122d71001211511o23651c50ia5412dfc940fa301@mail.gmail.com>
Subject: Re: multiple exec
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1159247757=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1159247757==
Content-Type: multipart/alternative; boundary=001636833de256739c047db4d22f

--001636833de256739c047db4d22f
Content-Type: text/plain; charset=ISO-8859-1

Ok, so I will have to use more than one channel on the non-blocking session
to have multiple exec.

Do I need to  have a  separate waitsocket for each channel , I assume the
answer is yes ?



On Thu, Jan 21, 2010 at 2:39 PM, Peter Stuge <peter@stuge.se> wrote:

> A. Mark wrote:
> > Can I create multiple channels blocking and non-blocking together
> > on the same connection ?
>
> Blockingness is set per session = per connection. The way the library
> works internally forces you to use non-blocking IO if there is more
> than one channel open.
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

Ok, so I will have to use more than one channel on the non-blocking session=
 to have multiple exec.<br><br>Do I need to=A0 have a=A0 separate waitsocke=
t for each channel , I assume the answer is yes ?<br><br><br><br><div class=
=3D"gmail_quote">
On Thu, Jan 21, 2010 at 2:39 PM, Peter Stuge <span dir=3D"ltr">&lt;<a href=
=3D"mailto:peter@stuge.se">peter@stuge.se</a>&gt;</span> wrote:<br><blockqu=
ote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204=
); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class=3D"im">A. Mark wrote:<br>
&gt; Can I create multiple channels blocking and non-blocking together<br>
&gt; on the same connection ?<br>
<br>
</div>Blockingness is set per session =3D per connection. The way the libra=
ry<br>
works internally forces you to use non-blocking IO if there is more<br>
than one channel open.<br>
<div><div></div><div class=3D"h5"><br>
<br>
//Peter<br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</div></div></blockquote></div><br>

--001636833de256739c047db4d22f--

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

--===============1159247757==--

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 22 07:19:55 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0M6JffC008666;
	Fri, 22 Jan 2010 07:19:51 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0M6Je3W008652
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 07:19:41 +0100
Received: (qmail 2587 invoked by uid 501); 22 Jan 2010 06:19:41 -0000
Message-ID: <20100122061941.2586.qmail@stuge.se>
Date: Fri, 22 Jan 2010 07:19:41 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: multiple exec
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71001211248w302f8b86h809b806a286f0a9f@mail.gmail.com>
	<20100121210059.14930.qmail@stuge.se>
	<603122d71001211401s5285c538j483d9672cde77fe8@mail.gmail.com>
	<20100121223926.31514.qmail@stuge.se>
	<603122d71001211511o23651c50ia5412dfc940fa301@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <603122d71001211511o23651c50ia5412dfc940fa301@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

A. Mark wrote:
> Ok, so I will have to use more than one channel on the non-blocking
> session to have multiple exec.

Unless you control the server side and can implement something there.


> Do I need to  have a  separate waitsocket for each channel , I
> assume the answer is yes ?

What's a waitsocket?


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 22 07:35:45 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0M6ZfnT020089;
	Fri, 22 Jan 2010 07:35:43 +0100
Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com
	[209.85.221.175])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0M6ZcQF020080
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 07:35:39 +0100
Received: by qyk5 with SMTP id 5so459505qyk.8
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 22:35:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=wxE+RUKDTe4gSHu3dc+wtpitpqoyJSNHOrLqvnt99Nc=;
	b=KNtIjui295cp9AEH4A5ry7dXGWPNo318UEEGW5RX/t7IXsyAQMMRpjundMFRYVadPo
	LmAUmAPFYMgm3xZ8PvJrMkg0/nIZdWr5qbnMM89q4yUL/nHumksmmJO8AHr0i7TzrX9N
	HZ2taJwE7R9hZK3/Omyl/XZYgyrXSiOf9Kcqs=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=XOb8YLDy/URIKV2mhAwTn9ovpuVtaGj22Ze5U5gHsrwHUG9XMNpJBJNQRLGhp8krF1
	i+7M7+AO4q/w7pyCjzkflsu+GVOOotW5dJCJcbSzns8NHkOskxIgp/hlM28lgm+zJpyq
	10eTWQk5xAelgvwRh+bTQ3nEiZ5n1YPsk5KOI=
MIME-Version: 1.0
Received: by 10.229.131.22 with SMTP id v22mr1558795qcs.77.1264142133476; Thu, 
	21 Jan 2010 22:35:33 -0800 (PST)
In-Reply-To: <20100122061941.2586.qmail@stuge.se>
References: <603122d71001211248w302f8b86h809b806a286f0a9f@mail.gmail.com>
	<20100121210059.14930.qmail@stuge.se>
	<603122d71001211401s5285c538j483d9672cde77fe8@mail.gmail.com>
	<20100121223926.31514.qmail@stuge.se>
	<603122d71001211511o23651c50ia5412dfc940fa301@mail.gmail.com>
	<20100122061941.2586.qmail@stuge.se>
Date: Thu, 21 Jan 2010 22:35:33 -0800
Message-ID: <603122d71001212235y5c90142na8875abdf428dfbb@mail.gmail.com>
Subject: Re: multiple exec
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1739690644=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1739690644==
Content-Type: multipart/alternative; boundary=0015174be3facfbdd9047dbb0660

--0015174be3facfbdd9047dbb0660
Content-Type: text/plain; charset=ISO-8859-1

The  function to be called while I channel exec...obviously if i have to
simultaneous channel executing then this function may be reentered by  both
threads.

On Thu, Jan 21, 2010 at 10:19 PM, Peter Stuge <peter@stuge.se> wrote:

> A. Mark wrote:
> > Ok, so I will have to use more than one channel on the non-blocking
> > session to have multiple exec.
>
> Unless you control the server side and can implement something there.
>
>
> > Do I need to  have a  separate waitsocket for each channel , I
> > assume the answer is yes ?
>
> What's a waitsocket?
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

<br>The=A0 function to be called while I channel exec...obviously if i have=
 to simultaneous channel executing then this function may be reentered by=
=A0 both threads.=A0 <br><br><div class=3D"gmail_quote">On Thu, Jan 21, 201=
0 at 10:19 PM, Peter Stuge <span dir=3D"ltr">&lt;<a href=3D"mailto:peter@st=
uge.se">peter@stuge.se</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"=
>A. Mark wrote:<br>
&gt; Ok, so I will have to use more than one channel on the non-blocking<br=
>
&gt; session to have multiple exec.<br>
<br>
</div>Unless you control the server side and can implement something there.=
<br>
<div class=3D"im"><br>
<br>
&gt; Do I need to =A0have a =A0separate waitsocket for each channel , I<br>
&gt; assume the answer is yes ?<br>
<br>
</div>What&#39;s a waitsocket?<br>
<div><div></div><div class=3D"h5"><br>
<br>
//Peter<br>
_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" target=3D"_blank">http://cool.haxx.se/cgi-bin/mailman/listinfo/li=
bssh2-devel</a><br>
</div></div></blockquote></div><br>

--0015174be3facfbdd9047dbb0660--

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

--===============1739690644==--

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 22 07:44:42 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0M6ibK9025906;
	Fri, 22 Jan 2010 07:44:40 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0M6iavI025873
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 07:44:36 +0100
Received: (qmail 6180 invoked by uid 501); 22 Jan 2010 06:44:37 -0000
Message-ID: <20100122064437.6179.qmail@stuge.se>
Date: Fri, 22 Jan 2010 07:44:36 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Finally fixing password and kbd-int userauth, and git talk
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
	<5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
	<20100121194418.30432.qmail@stuge.se>
	<7B67CB3F-FB41-46DA-9BE5-FFB629E25128@intersystems.com>
	<20100121203239.7602.qmail@stuge.se>
	<CC36890C-B7FF-4104-9290-EA5CDDFBAD2B@intersystems.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CC36890C-B7FF-4104-9290-EA5CDDFBAD2B@intersystems.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Dave McCaldon wrote:
> >> another, similar define LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED.  I'm
> >> not sure how this relates to LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED.
> > 
> > I'm surprised you're not sure. It is unrelated and does not need to
> > be touched.
> 
> The descriptions are vague:

So look at the code. It's used for a very different auth failure.


> > This patch you sent was 2/2, so apparently it is not the only patch
> > you have against current master? Or was the first one already pushed
> > by Daniel?
> 
> Correct, I did a 'git pull', but not with --rebase.

Okey. Now there are more changes, so I guess you should pull again.
Please make sure to always use rebase when working on a shared repo.


> > In that case you can git pull --rebase and after that
> > would you only be a single commit ahead? If you only need to change
> > the very latest commit in your repo then things are very simple, just
> > change files, git add them, then git commit --amend
> > 
> > Or do you need to change an older commit?
> 
> I have since committed a fix to the context strings in libssh_debug().

Okey. Then you need to checkout the authfix commit, amend it, and
finally rebase the debugstring fix onto the amended authfix commit.
One way is with branches:

git branch debugstrings
git checkout -b authfix theauthfixcommitid
change files
git add files
git commit --amend
git rebase authfix debugstrings
git branch -D master
git checkout -b master debugstrings
git branch -d authfix debugstrings

(Read git-branch and git-rebase man pages for descriptions, or ask.)


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 22 07:48:06 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0M6m241029566;
	Fri, 22 Jan 2010 07:48:04 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0M6m1Fr029472
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 07:48:01 +0100
Received: (qmail 6668 invoked by uid 501); 22 Jan 2010 06:48:01 -0000
Message-ID: <20100122064801.6667.qmail@stuge.se>
Date: Fri, 22 Jan 2010 07:48:01 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: multiple exec
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71001211248w302f8b86h809b806a286f0a9f@mail.gmail.com>
	<20100121210059.14930.qmail@stuge.se>
	<603122d71001211401s5285c538j483d9672cde77fe8@mail.gmail.com>
	<20100121223926.31514.qmail@stuge.se>
	<603122d71001211511o23651c50ia5412dfc940fa301@mail.gmail.com>
	<20100122061941.2586.qmail@stuge.se>
	<603122d71001212235y5c90142na8875abdf428dfbb@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <603122d71001212235y5c90142na8875abdf428dfbb@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Please don't top-post, and make sure to quote only what is relevant.
Thanks - this helps save a lot of time for all the readers on the
mailing list.


A. Mark wrote:
> The  function to be called while I channel exec...obviously if i
> have to simultaneous channel executing then this function may be
> reentered by  both threads.

No need for threads. Yes, you need some kind of data pump for both
channels. Either you could use two threads with a single-channel data
pump (and maybe actually get away with blocking IO, please report if
this works if you decide to try it) or you could use a single thread
using non-blocking IO that takes care of both channels.


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 22 08:49:37 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0M7nRSH003416;
	Fri, 22 Jan 2010 08:49:35 +0100
Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com
	[209.85.221.175])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0M7nP2n003409
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 08:49:25 +0100
Received: by qyk5 with SMTP id 5so481674qyk.8
	for <libssh2-devel@cool.haxx.se>; Thu, 21 Jan 2010 23:49:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=0mtbn+82M3GnOTDhYiV87hVQrSqNpukphDJB5q9Je+k=;
	b=PmcV7KLJ3F2U4tNXFS8F/KW2w2pCRxNL70PvtoH9xs6fX229kb0ha4hP9DQHHp30Q8
	ks2V4GXEH46sT3CoF7vN41lHts3EZbLi209caQCuHAMyiypscB7D/G+7W4uk5PFta9sl
	VAq1PY8DA0hmKF2WJMniidm3cHHQhcLw5lwK0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=NmQs4VAhTY3cYFMimZDK9JcV99EAa0DXxU4G1WBh/kEKAEhS2xhC8+duO5C3KnUYVo
	79Wjwh57E+Fj9nrhu91uS5TxqEI8E7l2UeJKDSK5qQiI7UJr4MfZx3/g8+LW2GRCW+Nv
	CdbX+RUDx0AgaS7tC5k+295OEY0HlqEMQcr5I=
MIME-Version: 1.0
Received: by 10.229.102.73 with SMTP id f9mr1616525qco.3.1264146559807; Thu, 
	21 Jan 2010 23:49:19 -0800 (PST)
In-Reply-To: <20100122064801.6667.qmail@stuge.se>
References: <603122d71001211248w302f8b86h809b806a286f0a9f@mail.gmail.com>
	<20100121210059.14930.qmail@stuge.se>
	<603122d71001211401s5285c538j483d9672cde77fe8@mail.gmail.com>
	<20100121223926.31514.qmail@stuge.se>
	<603122d71001211511o23651c50ia5412dfc940fa301@mail.gmail.com>
	<20100122061941.2586.qmail@stuge.se>
	<603122d71001212235y5c90142na8875abdf428dfbb@mail.gmail.com>
	<20100122064801.6667.qmail@stuge.se>
Date: Thu, 21 Jan 2010 23:49:19 -0800
Message-ID: <603122d71001212349q5f7d6d61o14d1e162bf3c9773@mail.gmail.com>
Subject: Re: multiple exec
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0132672506=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0132672506==
Content-Type: multipart/alternative; boundary=002354471dd8a432c3047dbc0ed8

--002354471dd8a432c3047dbc0ed8
Content-Type: text/plain; charset=ISO-8859-1

How do I not top post, I've been trying to just simply reply to you ?

Thanks!

--002354471dd8a432c3047dbc0ed8
Content-Type: text/html; charset=ISO-8859-1

<br>How do I not top post, I&#39;ve been trying to just simply reply to you ?<br><br>Thanks!<br>

--002354471dd8a432c3047dbc0ed8--

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

--===============0132672506==--

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 22 09:12:28 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0M8CNGu017416;
	Fri, 22 Jan 2010 09:12:26 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0M8CMfT017400
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 09:12:22 +0100
Received: (qmail 19138 invoked by uid 501); 22 Jan 2010 08:12:22 -0000
Message-ID: <20100122081222.19137.qmail@stuge.se>
Date: Fri, 22 Jan 2010 09:12:22 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: multiple exec
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71001211248w302f8b86h809b806a286f0a9f@mail.gmail.com>
	<20100121210059.14930.qmail@stuge.se>
	<603122d71001211401s5285c538j483d9672cde77fe8@mail.gmail.com>
	<20100121223926.31514.qmail@stuge.se>
	<603122d71001211511o23651c50ia5412dfc940fa301@mail.gmail.com>
	<20100122061941.2586.qmail@stuge.se>
	<603122d71001212235y5c90142na8875abdf428dfbb@mail.gmail.com>
	<20100122064801.6667.qmail@stuge.se>
	<603122d71001212349q5f7d6d61o14d1e162bf3c9773@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <603122d71001212349q5f7d6d61o14d1e162bf3c9773@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi A,

A. Mark wrote:
> How do I not top post,

Please read these two pages:

http://www.catb.org/~esr/jargon/html/T/top-post.html
http://en.wikipedia.org/wiki/Posting_style


> I've been trying to just simply reply to you ?

Mailing lists, at least for open source projects, tend to require
extensive trimming and inline replying. That is because this is
considered by most to be the most efficient method by far for using
email, and many people who read and post on mailing lists process
hundreds of emails every day - so it had better be efficient.

Conversely, the act of not trimming and not replying in a clear
manner could be considered rude on purpose, although it is usually
taken to simply be because the poster hasn't yet seen the reasons to
do anything other than what their email software might suggest.

Especially on a mailing list with potentially hundreds or thousands
of readers it makes a lot of sense for those who post to spend some
extra time on writing good messages - in order to save time for
everyone who reads them. :)


Thanks!

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 22 09:28:08 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0M8S1qv029115;
	Fri, 22 Jan 2010 09:28:05 +0100
Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com
	[209.85.221.175])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0M8S0H8029055
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 09:28:00 +0100
Received: by qyk5 with SMTP id 5so492616qyk.8
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 00:27:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=eUpb+xlcK5bq29LD7XN/MWffSW5CIl2EbgUwLBLYQF8=;
	b=fEqrhQcKJWRvdT/VLYVNwpMiEKMNeD3iz79DUAb3aFkWPz3k7mOgh/ruBBpRQph1nj
	Fn04F9JtskljEfdTu0tNgAqtEu1pL88bo6/28bI59PLytEdGbD0710AKFM3gBdlMVC61
	puxF9ah9adhdh8fNvjwXtgbrGy8Z/Eq1LVioc=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=MTrqua1QEFt/POVdYRamTu3iuieYpJBhB2SA6CuEPbMlOWVyKLNQCVh5mR0l+xdgez
	ym1nqjPkXjqdBlNRzu+XTREM6kSeRRXhiUC6xBPLwCeK/dHbOXosiu/tY+k+n1EVxERW
	s8M6ZYXhjQrp/hmWZKj0MsOdv9KAux1M47rUM=
MIME-Version: 1.0
Received: by 10.229.59.203 with SMTP id m11mr1582995qch.94.1264148875636; Fri, 
	22 Jan 2010 00:27:55 -0800 (PST)
In-Reply-To: <20100122081222.19137.qmail@stuge.se>
References: <603122d71001211248w302f8b86h809b806a286f0a9f@mail.gmail.com>
	<20100121210059.14930.qmail@stuge.se>
	<603122d71001211401s5285c538j483d9672cde77fe8@mail.gmail.com>
	<20100121223926.31514.qmail@stuge.se>
	<603122d71001211511o23651c50ia5412dfc940fa301@mail.gmail.com>
	<20100122061941.2586.qmail@stuge.se>
	<603122d71001212235y5c90142na8875abdf428dfbb@mail.gmail.com>
	<20100122064801.6667.qmail@stuge.se>
	<603122d71001212349q5f7d6d61o14d1e162bf3c9773@mail.gmail.com>
	<20100122081222.19137.qmail@stuge.se>
Date: Fri, 22 Jan 2010 00:27:55 -0800
Message-ID: <603122d71001220027q30c7eb6bgbd5a88107e167094@mail.gmail.com>
Subject: Re: multiple exec
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0110943395=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0110943395==
Content-Type: multipart/alternative; boundary=002354790cc8acf000047dbc9880

--002354790cc8acf000047dbc9880
Content-Type: text/plain; charset=ISO-8859-1

Thanks Peter I'm just going try to emulate the way you post.

--002354790cc8acf000047dbc9880
Content-Type: text/html; charset=ISO-8859-1

Thanks Peter I&#39;m just going try to emulate the way you post. <br>

--002354790cc8acf000047dbc9880--

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

--===============0110943395==--

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 22 11:37:43 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0MAbWWA023487;
	Fri, 22 Jan 2010 11:37:40 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0MAbV7b023482
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 11:37:31 +0100
Date: Fri, 22 Jan 2010 11:37:31 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: release time?
In-Reply-To: <20100121194418.30432.qmail@stuge.se>
Message-ID: <alpine.DEB.2.00.1001221136090.16714@tvnag.unkk.fr>
References: <876376iab7.fsf@mocca.josefsson.org>
	<alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
	<5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
	<20100121194418.30432.qmail@stuge.se>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Thu, 21 Jan 2010, Peter Stuge wrote:

> Would anyone veto changes that reduce mindless code duplication such as 
> above with the use of forward gotos to the end of functions?

For the record: no, I'm not against such code. My only requirement is that it 
is clearly written, but that's the same requirement I'd have on just about any 
code! ;-)

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 22 13:23:25 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0MCNHnd002643;
	Fri, 22 Jan 2010 13:23:23 +0100
Received: from mail-ew0-f212.google.com (mail-ew0-f212.google.com
	[209.85.219.212])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0MCNFJt002516
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 13:23:15 +0100
Received: by ewy4 with SMTP id 4so1295205ewy.7
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 04:23:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=googlemail.com; s=gamma;
	h=domainkey-signature:mime-version:sender:received:in-reply-to
	:references:date:x-google-sender-auth:message-id:subject:from:to
	:content-type:content-transfer-encoding;
	bh=MMeDyQEHUUOeBN3g31/JQEX/MrrVBN1thNMufQ8YhNY=;
	b=nqu+VlHKA1JWkHCdD9fRYKIqGmFEu4mMYxWNV7oQLbGwb5HT3C0l2CzrI3mopABobs
	+dtQUDvb0dA48jW+vuTjexHMwqGXGo9GhzHgkC1UaDLf9l9yyj5xMr+IGaUesoI5cnwS
	4IAZUDFdosVwf0N9GcuTGXOL7sahtDk/dm1Cw=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma;
	h=mime-version:sender:in-reply-to:references:date
	:x-google-sender-auth:message-id:subject:from:to:content-type
	:content-transfer-encoding;
	b=kfMmwPyQ90qxvmKMtygLh5bePFToUgE0kSd6hnCujzY98eui4GgJwGO8sEmLEtoG3N
	3AoGgYXE5xuEWSNXL45jbCAAvvV7QCS6zU1F1QryOFZ49maU6bEZet6o87rxjv2KocOI
	cYRapW1R+TKMqJq8RGRM1SWWPBony3cK0iCpE=
MIME-Version: 1.0
Received: by 10.213.39.206 with SMTP id h14mr3749796ebe.97.1264162990847; Fri, 
	22 Jan 2010 04:23:10 -0800 (PST)
In-Reply-To: <20100121213622.20186.qmail@stuge.se>
References: <alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
	<5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
	<20100121194418.30432.qmail@stuge.se>
	<9c3275a91001211153j4bcefb89x6c051f11f3b38960@mail.gmail.com>
	<20100121202213.5362.qmail@stuge.se>
	<9c3275a91001211322o7a7d71d2kf1255a566736164a@mail.gmail.com>
	<20100121213622.20186.qmail@stuge.se>
Date: Fri, 22 Jan 2010 12:23:10 +0000
X-Google-Sender-Auth: a9deb292d2ee3ddb
Message-ID: <9c3275a91001220423w4dba8e41hdc8a87ce6934870d@mail.gmail.com>
Subject: Re: release time?
From: Alexander Lamaison <swish@lammy.co.uk>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

2010/1/21 Peter Stuge <peter@stuge.se>:
> Alexander Lamaison wrote:
>
>> > Cleaning up ptr in the above example is the point. Instead of
>> > duplicating cleanup code in every single error handling branch within
>> > main stuff, all cleanup code is in one single location.
>>
>> This should still be done with a function. =A0Arguably, that's what
>> they were invented for.
>
> I will argue that to no end. What is this about though? goto? The
> point Ken or whoever it was wanted to make is that goto should not be
> used to jump between scopes. What people seem to have interpreted
> that into is that gotos should never be used. I have so far not seen
> a big advantage of backwards gotos in C, so my simplest rule becomes
> that forward gotos are usually if not always OK.

You make a good point here about scope so in the end it boils down to
an issue of style.  As such, I remove my objection to using goto for
these cases.

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 22 20:01:08 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0MIxf4b014783;
	Fri, 22 Jan 2010 20:00:32 +0100
Received: from web113515.mail.gq1.yahoo.com (web113515.mail.gq1.yahoo.com
	[98.136.167.55])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0MIxcjw014723
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 19:59:39 +0100
Received: (qmail 97794 invoked by uid 60001); 22 Jan 2010 18:59:34 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
	t=1264186774; bh=tQAG0+wxcLcqnIyLk0mYz8dOnJQW2AMZdfSkmLQvJoM=;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type;
	b=c6YGMG4iT2Sh8VVGsAY0cBeF88sPwy812MFe7oLXO+Ch7fxowih55TgQs5eFclQjl36cwGLPBPnGVqCXJBH2Rwe0gjshuA9TdAtWV39M/E8+CYJssgfgngfbzGugl3EfmvN5n2iAyLWcFCeuVCmXQDMzyXC/Vlw0JOs5Xx1uPM0=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type;
	b=J/nctt6wyTT4R2bJGD8lbP/eiM5KhBXNDjaMu7UzW57eXcIYDYUuU0CdrojwzHH6dkBOqiHUzmQup43Wq9EZNRc6SwyuH3ryJD4zHW89tjZHNtjLkbcWWTA+2XADrnMz679EPv9Pu2BvNcP1QRilxceNQlFovy/4qMCxKa2OU2s=;
Message-ID: <150615.96331.qm@web113515.mail.gq1.yahoo.com>
X-YMail-OSG: iM1QKXkVM1n2J4XH5nu4SCPAUkAw8.moQZE17J4FpPnK5UNjXZ_e3NLNRS4.P8zOR_fGzq35EJUoNWxl2oSpb2xV2Y0qqOyhDmnsJIsuXJyOrmKXiYfPWCALvY2PAO._aFgrbDp3CUL3N.LCC.3gtRg75fPzenw7btDKxaxJCrYqE0Dxvd7d7rhtQ0UDZNxYWMuKbqI8Zt1ZyA178l37.k32KtXfVT9WanE57jInJX8.C.Z7rdtNJxAW_IVlZkfPSuLIjUaGzloZl7LlgmhfJfoYjbDXCQ5XlkYt5y7WKW94hfRepYDyGYMQnVqkhK.KpbldFnrXqkKvJ2ENiDOzeA--
Received: from [76.191.227.38] by web113515.mail.gq1.yahoo.com via HTTP;
	Fri, 22 Jan 2010 10:59:33 PST
X-Mailer: YahooMailClassic/9.1.10 YahooMailWebService/0.8.100.260964
Date: Fri, 22 Jan 2010 10:59:33 -0800 (PST)
From: Lawson <lawson08@yahoo.com>
Subject: client-side only vs. libssh?
To: libssh2-devel@cool.haxx.se
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi,

I have been working with libssh for a while and was looking to switch over to libssh2, primarily because of the claims that libssh2 can do all things in a non-blocking style (I have run into some blocking issues with libssh) plus I no longer have a requirement to support SSHv1.

However I am now realizing that libssh2 may only be a client-side library.  Is this still true?  If so, you need to be way more upfront about that.  It is not obvious from the description on the website.  Especially in your "comparison against libssh" because that one does server-side also.

Are these two the only choices for an SSH library (with a decent API) ?



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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 22 21:13:48 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0MKDQOW002747;
	Fri, 22 Jan 2010 21:13:36 +0100
Received: from mail.intersystems.com (mail.intersys.com [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0MKDNFk002671
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 21:13:24 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
From: Dave McCaldon <davem@intersystems.com>
Mime-Version: 1.0 (Apple Message framework v1077)
Content-Type: multipart/mixed; boundary=Apple-Mail-9-268672564
Subject: Re: Finally fixing password and kbd-int userauth, and git talk
Date: Fri, 22 Jan 2010 15:13:17 -0500
In-Reply-To: <20100122064437.6179.qmail@stuge.se>
To: libssh2 development <libssh2-devel@cool.haxx.se>
References: <alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
	<5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
	<20100121194418.30432.qmail@stuge.se>
	<7B67CB3F-FB41-46DA-9BE5-FFB629E25128@intersystems.com>
	<20100121203239.7602.qmail@stuge.se>
	<CC36890C-B7FF-4104-9290-EA5CDDFBAD2B@intersystems.com>
	<20100122064437.6179.qmail@stuge.se>
Message-Id: <871F0CB8-9EC7-4281-A648-24CDD71865D7@intersystems.com>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


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


On Jan 22, 2010, at 1:44 AM, Peter Stuge wrote:

>>> In that case you can git pull --rebase and after that
>>> would you only be a single commit ahead? If you only need to change
>>> the very latest commit in your repo then things are very simple, =
just
>>> change files, git add them, then git commit --amend
>>>=20
>>> Or do you need to change an older commit?
>>=20
>> I have since committed a fix to the context strings in =
libssh_debug().
>=20
> Okey. Then you need to checkout the authfix commit, amend it, and
> finally rebase the debugstring fix onto the amended authfix commit.
> One way is with branches:
>=20
> git branch debugstrings
> git checkout -b authfix theauthfixcommitid
> change files
> git add files
> git commit --amend
> git rebase authfix debugstrings
> git branch -D master
> git checkout -b master debugstrings
> git branch -d authfix debugstrings
>=20
> (Read git-branch and git-rebase man pages for descriptions, or ask.)

I think I have it now (there was only one instance of =
LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED in the code and one in the man =
page).  It's attached, please let me know if this is ok.


--Apple-Mail-9-268672564
Content-Disposition: attachment;
	filename=0004-Handle-SSH_MSG_USERAUTH_FAILURE-for-password-and-kbd.patch
Content-Type: application/octet-stream;
	name="0004-Handle-SSH_MSG_USERAUTH_FAILURE-for-password-and-kbd.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=202f6193a8c5c07e238fb8347aa75522cc5f6029e7=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Dave=20McCaldon=20<dave@mccaldon.com>=0ADate:=20=
Wed,=2020=20Jan=202010=2016:07:22=20-0500=0ASubject:=20[PATCH=204/4]=20=
Handle=20SSH_MSG_USERAUTH_FAILURE=20for=20password=20and=20kbd-int=20=
authentication=0A=0ANeither=20of=20libssh2_userauth_password_ex()=20or=20=
libssh2_userauth_keyboard_interactive_ex()=20would=20return=20a=20login=20=
failure=20error=20if=20the=20server=20responded=20with=20a=20=
SSH_MSG_USERAUTH_FAILURE,=20you=20would=20see=20whatever=20previous=20=
error=20had=20occurred,=20typically=20LIBSSH2_ERROR_EAGAIN.=0A=0AThis=20=
patch=20changes=20error=20code=20-18=20to=20=
LIBSSH2_ERROR_AUTHENTICATION_FAILED=20and=20makes=20=
LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED=20an=20alias=20for=20=
LIBSSH2_ERROR_AUTHENTICATION_FAILED.=20=20In=20addition,=20new=20logic=20=
in=20userauth_password()=20properly=20handles=20SSH_MSG_USERAUTH_FAILURE=20=
and=20both=20this=20function=20and=20userauth_keyboard_interactive()=20=
now=20properly=20return=20LIBSSH2_ERROR_AUTHENTICATION_FAILED.=0A---=0A=20=
docs/libssh2_userauth_keyboard_interactive_ex.3=20|=20=20=20=202=20++=0A=20=
docs/libssh2_userauth_password_ex.3=20=20=20=20=20=20=20=20=20=20=20=20=20=
|=20=20=20=202=20++=0A=20docs/libssh2_userauth_publickey_fromfile_ex.3=20=
=20=20|=20=20=20=202=20+-=0A=20include/libssh2.h=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20|=20=20=
=20=203=20++-=0A=20src/userauth.c=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20|=20=20=2019=20=
++++++++++++++++++-=0A=205=20files=20changed,=2025=20insertions(+),=203=20=
deletions(-)=0A=0Adiff=20--git=20=
a/docs/libssh2_userauth_keyboard_interactive_ex.3=20=
b/docs/libssh2_userauth_keyboard_interactive_ex.3=0Aindex=20=
80572ae..c70b4ab=20100644=0A---=20=
a/docs/libssh2_userauth_keyboard_interactive_ex.3=0A+++=20=
b/docs/libssh2_userauth_keyboard_interactive_ex.3=0A@@=20-39,5=20+39,7=20=
@@=20LIBSSH2_ERROR_EAGAIN=20is=20a=20negative=20number,=20it=20isn't=20=
really=20a=20failure=20per=20se.=0A=20=0A=20=
\fILIBSSH2_ERROR_SOCKET_SEND\fP=20-=20Unable=20to=20send=20data=20on=20=
socket.=0A=20=0A+\fLIBSSH2_ERROR_AUTHENTICATION_FAILED\fP=20-=20=20=
failed,=20invalid=20username/password=20or=20public/private=20key.=0A+=0A=
=20.SH=20SEE=20ALSO=0A=20.BR=20libssh2_session_init_ex(3)=0Adiff=20--git=20=
a/docs/libssh2_userauth_password_ex.3=20=
b/docs/libssh2_userauth_password_ex.3=0Aindex=2079a471f..a18d3c4=20=
100644=0A---=20a/docs/libssh2_userauth_password_ex.3=0A+++=20=
b/docs/libssh2_userauth_password_ex.3=0A@@=20-46,5=20+46,7=20@@=20=
LIBSSH2_ERROR_EAGAIN=20is=20a=20negative=20number,=20it=20isn't=20really=20=
a=20failure=20per=20se.=0A=20=0A=20\fILIBSSH2_ERROR_PASSWORD_EXPIRED\fP=20=
-=20=0A=20=0A+\fLIBSSH2_ERROR_AUTHENTICATION_FAILED\fP=20-=20=20failed,=20=
invalid=20username/password=20or=20public/private=20key.=0A+=0A=20.SH=20=
SEE=20ALSO=0A=20.BR=20libssh2_session_init_ex(3)=0Adiff=20--git=20=
a/docs/libssh2_userauth_publickey_fromfile_ex.3=20=
b/docs/libssh2_userauth_publickey_fromfile_ex.3=0Aindex=20=
0e21e92..6c7b7cf=20100644=0A---=20=
a/docs/libssh2_userauth_publickey_fromfile_ex.3=0A+++=20=
b/docs/libssh2_userauth_publickey_fromfile_ex.3=0A@@=20-40,7=20+40,7=20=
@@=20LIBSSH2_ERROR_EAGAIN=20is=20a=20negative=20number,=20it=20isn't=20=
really=20a=20failure=20per=20se.=0A=20=0A=20=
\fILIBSSH2_ERROR_SOCKET_TIMEOUT\fP=20-=20=0A=20=0A=
-\fILIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED\fP=20-=20>The=20username/public=20=
key=20=0A+\fILIBSSH2_ERROR_AUTHENTICATION_FAILED\fP=20-=20>The=20=
username/public=20key=20=0A=20combination=20was=20invalid.=0A=20=0A=20=
\fILIBSSH2_ERROR_PUBLICKEY_UNVERIFIED\fP=20-=20The=20username/public=20=
key=20=0Adiff=20--git=20a/include/libssh2.h=20b/include/libssh2.h=0A=
index=20890749e..91b51cc=20100644=0A---=20a/include/libssh2.h=0A+++=20=
b/include/libssh2.h=0A@@=20-341,7=20+341,8=20@@=20typedef=20struct=20=
_LIBSSH2_POLLFD=20{=0A=20#define=20LIBSSH2_ERROR_PASSWORD_EXPIRED=20=20=20=
=20=20=20=20=20=20=20-15=0A=20#define=20LIBSSH2_ERROR_FILE=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20-16=0A=20#define=20=
LIBSSH2_ERROR_METHOD_NONE=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
-17=0A-#define=20LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED=20=20=20=20-18=0A=
+#define=20LIBSSH2_ERROR_AUTHENTICATION_FAILED=20=20=20=20=20-18=0A=
+#define=20LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED=20=20=20=20=
LIBSSH2_ERROR_AUTHENTICATION_FAILED=0A=20#define=20=
LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED=20=20=20=20=20=20-19=0A=20#define=20=
LIBSSH2_ERROR_CHANNEL_OUTOFORDER=20=20=20=20=20=20=20=20-20=0A=20#define=20=
LIBSSH2_ERROR_CHANNEL_FAILURE=20=20=20=20=20=20=20=20=20=20=20-21=0Adiff=20=
--git=20a/src/userauth.c=20b/src/userauth.c=0Aindex=20ee7fee9..e860fd7=20=
100644=0A---=20a/src/userauth.c=0A+++=20b/src/userauth.c=0A@@=20-310,6=20=
+310,17=20@@=20userauth_password(LIBSSH2_SESSION=20*session,=20const=20=
char=20*username,=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
session->state=20|=3D=20LIBSSH2_STATE_AUTHENTICATED;=0A=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20session->userauth_pswd_state=20=3D=20=
libssh2_NB_state_idle;=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20return=200;=0A+=20=20=20=20=20=20=20=20=20=20=20=20}=20else=20if=20=
(session->userauth_pswd_data[0]=20=3D=3D=20SSH_MSG_USERAUTH_FAILURE)=20{=0A=
+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20_libssh2_debug(session,=20=
LIBSSH2_TRACE_AUTH,=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20"Password=20authentication=20=
failed");=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
LIBSSH2_FREE(session,=20session->userauth_pswd_data);=0A+=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20session->userauth_pswd_data=20=3D=20NULL;=0A=
+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
session->userauth_pswd_state=20=3D=20libssh2_NB_state_idle;=0A+=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20libssh2_error(session,=0A+=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20LIBSSH2_ERROR_AUTHENTICATION_FAILED,=0A+=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
"Authentication=20failed=20(username/password)",=0A+=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=200);=0A=
+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20return=20-1;=0A=20=20=20=
=20=20=20=20=20=20=20=20=20=20}=0A=20=0A=20=20=20=20=20=20=20=20=20=20=20=
=20=20session->userauth_pswd_newpw=20=3D=20NULL;=0A@@=20-1100,7=20=
+1111,7=20@@=20userauth_publickey(LIBSSH2_SESSION=20*session,=0A=20=20=20=
=20=20=20=20=20=20=20=20=20=20session->userauth_pblc_packet=20=3D=20=
NULL;=0A=20=20=20=20=20=20=20=20=20=20=20=20=20LIBSSH2_FREE(session,=20=
session->userauth_pblc_method);=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=
session->userauth_pblc_method=20=3D=20NULL;=0A-=20=20=20=20=20=20=20=20=20=
=20=20=20libssh2_error(session,=20LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED,=0A=
+=20=20=20=20=20=20=20=20=20=20=20=20libssh2_error(session,=20=
LIBSSH2_ERROR_AUTHENTICATION_FAILED,=0A=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20"Username/PublicKey=20=
combination=20invalid",=200);=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=
session->userauth_pblc_state=20=3D=20libssh2_NB_state_idle;=0A=20=20=20=20=
=20=20=20=20=20=20=20=20=20return=20-1;=0A@@=20-1473,9=20+1484,15=20@@=20=
userauth_keyboard_interactive(LIBSSH2_SESSION=20*=20session,=0A=20=20=20=20=
=20=20=20=20=20=20=20=20=20}=0A=20=0A=20=20=20=20=20=20=20=20=20=20=20=20=
=20if=20(session->userauth_kybd_data[0]=20=3D=3D=20=
SSH_MSG_USERAUTH_FAILURE)=20{=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20_libssh2_debug(session,=20LIBSSH2_TRACE_AUTH,=0A+=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
"Keyboard-interactive=20authentication=20failed");=0A=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20LIBSSH2_FREE(session,=20=
session->userauth_kybd_data);=0A=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20session->userauth_kybd_data=20=3D=20NULL;=0A=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20session->userauth_kybd_state=20=3D=20=
libssh2_NB_state_idle;=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
libssh2_error(session,=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
LIBSSH2_ERROR_AUTHENTICATION_FAILED,=0A+=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20"Authentication=20=
failed=20(keyboard-interactive)",=0A+=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=200);=0A=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20return=20-1;=0A=20=20=20=20=20=20=20=20=
=20=20=20=20=20}=0A=20=0A--=20=0A1.6.4.4=0A=0A=

--Apple-Mail-9-268672564
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii




--Apple-Mail-9-268672564
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--Apple-Mail-9-268672564--

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 22 21:17:04 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0MKH0xL004116;
	Fri, 22 Jan 2010 21:17:01 +0100
Received: from mail.intersystems.com (mail.intersys.com [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0MKGwBG004105
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 21:16:58 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: Finally fixing password and kbd-int userauth, and git talk
From: Dave McCaldon <davem@intersystems.com>
In-Reply-To: <871F0CB8-9EC7-4281-A648-24CDD71865D7@intersystems.com>
Date: Fri, 22 Jan 2010 15:16:53 -0500
Message-Id: <5A234796-A004-4155-9771-0818EF27759A@intersystems.com>
References: <alpine.DEB.2.00.1001131113040.12562@tvnag.unkk.fr>
	<F349DBB1-4AB7-4CCA-BB63-1CCCF0154C45@intersystems.com>
	<20100115021806.3259.qmail@stuge.se>
	<9c3275a91001150326k1fea4822h57d0bd02e851dd04@mail.gmail.com>
	<FB691933-6040-4BEA-84C7-6D44DAA809E1@intersystems.com>
	<5F7E459D-012D-4F3E-BED0-6287959BCD32@intersystems.com>
	<20100121194418.30432.qmail@stuge.se>
	<7B67CB3F-FB41-46DA-9BE5-FFB629E25128@intersystems.com>
	<20100121203239.7602.qmail@stuge.se>
	<CC36890C-B7FF-4104-9290-EA5CDDFBAD2B@intersystems.com>
	<20100122064437.6179.qmail@stuge.se>
	<871F0CB8-9EC7-4281-A648-24CDD71865D7@intersystems.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


On Jan 22, 2010, at 3:13 PM, Dave McCaldon wrote:
> I think I have it now (there was only one instance of LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED in the code and one in the man page).  It's attached, please let me know if this is ok.
> 
> <0004-Handle-SSH_MSG_USERAUTH_FAILURE-for-password-and-kbd.patch>

BTW: This is the amended version of the previous patch, so it should have everything in it, not just the above edit.

Assuming this works, I'll shortly submit my other patch for the context message lookup in libssh2_debug().

Thanks!

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 22 21:25:26 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0MKPKRn011587;
	Fri, 22 Jan 2010 21:25:24 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0MKPJZY011549
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 21:25:19 +0100
Date: Fri, 22 Jan 2010 21:25:19 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: client-side only vs. libssh?
In-Reply-To: <150615.96331.qm@web113515.mail.gq1.yahoo.com>
Message-ID: <alpine.DEB.2.00.1001222119300.8894@tvnag.unkk.fr>
References: <150615.96331.qm@web113515.mail.gq1.yahoo.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Fri, 22 Jan 2010, Lawson wrote:

> I have been working with libssh for a while and was looking to switch over 
> to libssh2, primarily because of the claims that libssh2 can do all things 
> in a non-blocking style (I have run into some blocking issues with libssh) 
> plus I no longer have a requirement to support SSHv1.

If libssh2 can't do everything non-blocking, it would be a bug we should fix. 
But I'm not aware of anything particular in that way right now.

> However I am now realizing that libssh2 may only be a client-side library. 
> Is this still true?  If so, you need to be way more upfront about that.  It 
> is not obvious from the description on the website.

It is true and I've updated the front page of the site to make it more 
obvious.

We wouldn't object to make it do server-side too of course, and I've heard a 
few people in the past express interest to work on that. But unfortunately we 
haven't yet seen any work towards that. Would you be interested to work on it?

> Especially in your "comparison against libssh" because that one does 
> server-side also.

I didn't know it did. I'll update the comparison as well!

> Are these two the only choices for an SSH library (with a decent API) ?

To my knowledge these two are the only free and open SSH libraries that are 
written in C, yes.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 22 23:30:26 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0MMUBi3026398;
	Fri, 22 Jan 2010 23:30:22 +0100
Received: from web113515.mail.gq1.yahoo.com (web113515.mail.gq1.yahoo.com
	[98.136.167.55])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0MMU8Wi026099
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jan 2010 23:30:09 +0100
Received: (qmail 12491 invoked by uid 60001); 22 Jan 2010 22:30:04 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
	t=1264199404; bh=adpevGz4j8ifVVHIVFNansR0bPnlTDcs7CcunLRRzmQ=;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=nXG5DOaixUmjA/FnvwkYSku2uC2XrAM/M2PyqiqkPPijZurXrTLWxrhoZsPg4NZ5sdLcj9Syk5TQVI+wZPtFYNvR3skGw6Tco6wyYbuKbcbWT3Cg5Y2enRpa5hFLUKuT1SVrptTP+F3tOdzY+a8yrQacbHgAtFVK1ddNfWajGcc=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=szhsVKFhSAszwPYqDwZYW8zQ5Jm1lAaFSlyt82n0QmBSH0Fm+ed/IX3vysHUI4mrXq/TGqZXylyfHlEq1cLjcN/dS/NMf0P9/g+6oj2Ah3z4QGmL2zJKI+AgM6ETxYFB14i6KhGwmR9fl4rKLQMGGjRIA1mZL59sMiGDPOyOdps=;
Message-ID: <234465.10616.qm@web113515.mail.gq1.yahoo.com>
X-YMail-OSG: rD1wNc0VM1ntdgM07PI_wqqWzxVUyAHLpfrUWWPVA0Fp.Tv9mcw4gROIqpq9wTwEqwLs3dH3Ios3Q6_Y7OoLmyWaSmZSlpB_GwHBDMATVXLSJ0Ov75ieJcVosVBJBZ6p8ZcZpHKAonkVWHbtmQKeE_YTFc57.78Jykvh7ikDXeTFuslyGsLU2FPpLBkbc2NSshprd70UGssJyJ9a_jAe.zLLzv4R4t3WbGBZpFqER50PQNf1oQh5rX7oZUNDyowb4mixF4OVaMScpYkZpnXlZoxJJx8sdcQeK6c.nMxPC405OIRkbtRCPX.5N_SD6AJIKB0UTjInhcaOzmTS5ALcGj6AZ82mARr9FguWEcinya1i22.E8xg-
Received: from [76.191.227.38] by web113515.mail.gq1.yahoo.com via HTTP;
	Fri, 22 Jan 2010 14:30:04 PST
X-Mailer: YahooMailClassic/9.1.10 YahooMailWebService/0.8.100.260964
Date: Fri, 22 Jan 2010 14:30:04 -0800 (PST)
From: Lawson <lawson08@yahoo.com>
Subject: Re: client-side only vs. libssh?
To: libssh2 development <libssh2-devel@cool.haxx.se>
In-Reply-To: <alpine.DEB.2.00.1001222119300.8894@tvnag.unkk.fr>
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

OK, thanks...

In case I wasn't clear it was the other library (libssh) that had the block=
ing issues.

I probably won't be allowed (by work) the time to do the server side.  Howe=
ver one thing I might be interested in is adding the capability of using th=
e NSPR socket library as the base socket for libssh2.

What that would give is the ability to make the ultimate socket library, ca=
pable of doing plain, SSL, and SSH sockets all of which use the same underl=
ying base type, for the sake of reuse and stability (it is also highly port=
able)




--- On Fri, 1/22/10, Daniel Stenberg <daniel@haxx.se> wrote:

> From: Daniel Stenberg <daniel@haxx.se>
> Subject: Re: client-side only vs. libssh?
> To: "libssh2 development" <libssh2-devel@cool.haxx.se>
> Date: Friday, January 22, 2010, 12:25 PM
> On Fri, 22 Jan 2010, Lawson wrote:
> =

> > I have been working with libssh for a while and was
> looking to switch over to libssh2, primarily because of the
> claims that libssh2 can do all things in a non-blocking
> style (I have run into some blocking issues with libssh)
> plus I no longer have a requirement to support SSHv1.
> =

> If libssh2 can't do everything non-blocking, it would be a
> bug we should fix. But I'm not aware of anything particular
> in that way right now.
> =

> > However I am now realizing that libssh2 may only be a
> client-side library. Is this still true?=A0 If so, you
> need to be way more upfront about that.=A0 It is not
> obvious from the description on the website.
> =

> It is true and I've updated the front page of the site to
> make it more obvious.
> =

> We wouldn't object to make it do server-side too of course,
> and I've heard a few people in the past express interest to
> work on that. But unfortunately we haven't yet seen any work
> towards that. Would you be interested to work on it?
> =

> > Especially in your "comparison against libssh" because
> that one does server-side also.
> =

> I didn't know it did. I'll update the comparison as well!
> =

> > Are these two the only choices for an SSH library
> (with a decent API) ?
> =

> To my knowledge these two are the only free and open SSH
> libraries that are written in C, yes.
> =

> -- =

>  / 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  Sat Jan 23 01:16:13 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0N0G0r7027121;
	Sat, 23 Jan 2010 01:16:10 +0100
Received: from lmailproxy03.edpnet.net (lmailproxy03.edpnet.net [212.71.1.196])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0N0Fw25027093
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Sat, 23 Jan 2010 01:15:58 +0100
Received: from [192.168.1.17] (213.219.141.101.adsl.dyn.edpnet.net
	[213.219.141.101])
	by lmailproxy03.edpnet.net (8.14.3/8.14.3) with ESMTP id o0N0Freq006092
	for <libssh2-devel@cool.haxx.se>; Sat, 23 Jan 2010 01:15:53 +0100
Message-ID: <4B5A3FB9.60809@0xbadc0de.be>
Date: Sat, 23 Jan 2010 01:15:53 +0100
From: Aris Adamantiadis <aris@0xbadc0de.be>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: client-side only vs. libssh?
References: <150615.96331.qm@web113515.mail.gq1.yahoo.com>
	<alpine.DEB.2.00.1001222119300.8894@tvnag.unkk.fr>
In-Reply-To: <alpine.DEB.2.00.1001222119300.8894@tvnag.unkk.fr>
X-Virus-Scanned: clamav-milter 0.95.2 at lmailproxy03.edpnet.net
X-Virus-Status: Clean
X-Spam-Status: No, score=0.2 required=5.0 tests=FH_DATE_PAST_20XX,RDNS_NONE
	autolearn=disabled version=3.2.4
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on
	lmailproxy03.edpnet.net
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi Daniel, others,

While you are at it, I am thinking about that "libssh2 vs libssh" page 
[1] which is disturbing me since a good time. For the followers of this 
thread, I am the libssh[2] founder and one of the few developers.
Let me develop my objections to this page:

-"not threadsafe": libssh is as much threadsafe as libssh2, in the 
sense that all operations made on different sessions are threadsafe. 
That is consistent with "Thread-safe: just don't share handles 
simultaneously" on libssh2.org front page[3].

-"Some limitations on >4gb files": Not any that I am aware of. Could 
you explain what's actually lacking in libssh 0.4 ? There is a 
sftp_seek64 call which takes a uint64_t parameter. That function exists 
since 0.3 released one year ago.[4]

-"Optional libgcrypt support": there is full libgcrypt support in 
libssh since 0.2 release, which was released at least 4 years ago. The 
support for libgcrypt is written in plain text in the "about" page of 
our site,  3 lines before the "thread safety" claims.[5]

-Speed claims: Please don't be ridiculous. No competent network 
developer will take you seriously when you tell that libssh2 is 2.3 
times faster that libssh. I am amazed that nobody ever discussed your 
"benchmark method" [6].
The benchmark was made that way : you cat'd some big file in a channel 
of samplessh and saw that it was slower than the libssh2 scp thing.
Would that person have read the source of the program he used, he'd 
have seen that
1- Purpose of this program was to test the console interactivity 
features of libssh.
2- As the goal was to test the features, the input buffer was set to 10 
bytes and output was not buffered.
3- The "benchmark" was done without any protocol or specifications. 
Testing a network protocol using a file on the local hard disk on 
localhost is a beginner's mistake. Not even telling anything about the 
cryptographic algorithms chosen for the test. I am not saying that 
libssh 0.3 may or may not be slower than libssh2, I am saying that it's 
ridiculous to make precise speed claims out of that single biased test.

I wanted to develop a complete benchmark testbed, including perfectly 
similar tests for libssh, libssh2 and openssh, in order to test these 
claims. But finally my time is restricted and I prefer coding useful 
features, so I decided to invest time in the next version of libssh.

I do not discuss the license of libssh and the blocking issues. These 
are real and will hopefully be resolved in next major libssh release.

In short, the diff I propose to that page is the following:
libssh2 1.2
-#  is thread-safe
-#  is much faster than libssh (2.3 times faster for raw SSH has been 
measured)
-#  optionally runs with libgcrypt instead of OpenSSL for the crypto layer
-libssh 0.3
+libssh 0.4
-#  is not thread-safe
-#  has some limitations on >4GB files on 32bit systems

Table
-Limits on >4GB files 	yes 	yes
+Limits on >4GB files 	yes 	no
-Optional libgcrypt crypto 	yes 	no
+Optional libgcrypt crypto 	yes 	yes
-Relative SSH transfer-speed 	2.3 	1

Don't take it as a personal offense. I think a bit of competition in 
opensource is fair and leads to innovation, when it is fair. I hope we 
can both also work on some constructive document which would guide the 
newcomers into a choice between the two possibilities, instead of 
misleading them with wrong or outdated info.
Thanks for reading until that point and for your attention :) I am of 
course available for remarks and comments.

With kind regards,

Aris Adamantiadis,
libssh project Founder and lead.


[1] http://www.libssh2.org/libssh2-vs-libssh.html
[2] http://www.libssh.org/
[3] http://www.libssh2.org/
[4] 
http://dev.libssh.org/browser/include/libssh/sftp.h?rev=fecbdff17943767a79046cb34ffea56859fd8c62#L459
[5] http://www.libssh.org/about/
[6] http://www.libssh2.org/mail/libssh2-devel-archive-2009-06/0039.shtml

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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan 23 09:00:51 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0N80ai5023938;
	Sat, 23 Jan 2010 09:00:47 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0N80ZKP023892
	for <libssh2-devel@cool.haxx.se>; Sat, 23 Jan 2010 09:00:35 +0100
Date: Sat, 23 Jan 2010 09:00:35 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: client-side only vs. libssh?
In-Reply-To: <4B5A3FB9.60809@0xbadc0de.be>
Message-ID: <alpine.DEB.2.00.1001230828020.8894@tvnag.unkk.fr>
References: <150615.96331.qm@web113515.mail.gq1.yahoo.com>
	<alpine.DEB.2.00.1001222119300.8894@tvnag.unkk.fr>
	<4B5A3FB9.60809@0xbadc0de.be>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Sat, 23 Jan 2010, Aris Adamantiadis wrote:

> While you are at it, I am thinking about that "libssh2 vs libssh" page [1] 
> which is disturbing me since a good time.

I'm happy to correct all flaws and errors existing there. I've been open about 
that page since day 1 to get help to make it better.

> -"not threadsafe": libssh is as much threadsafe as libssh2, in the sense that 
> all operations made on different sessions are threadsafe. That is consistent 
> with "Thread-safe: just don't share handles simultaneously" on libssh2.org 
> front page[3].

I based that on comments in your mails/documentation. I'll update.

> -"Some limitations on >4gb files": Not any that I am aware of. Could you 
> explain what's actually lacking in libssh 0.4 ? There is a sftp_seek64 call 
> which takes a uint64_t parameter. That function exists since 0.3 released 
> one year ago.[4]

First, the page says it compares against libssh 0.3 so details in 0.4 would of 
course not be covered. I based this on the API/docs/source and it claimed 
this. But with your feedback here I can update that to say it is a comparison 
against 0.4. Thanks!

> -"Optional libgcrypt support": there is full libgcrypt support in libssh 
> since 0.2 release, which was released at least 4 years ago. The support for 
> libgcrypt is written in plain text in the "about" page of our site,  3 lines 
> before the "thread safety" claims.[5]

Updated. Your site is entirely different compared to when I checked this. I 
actually checked for the gcrypt support even in the source then AFAIR but I 
must've simply missed it.

> -Speed claims: Please don't be ridiculous. No competent network developer 
> will take you seriously when you tell that libssh2 is 2.3 times faster that 
> libssh.

I did my tests and I presented what I did and I showed the results. Again, 
nobody else (including you) have argued or discussed them with me. I do not 
claim to have done any thorough and extensive tests but I did check the code 
and it looked like they were roughly comparable.

I guess that makes me "no competent network developer".

> I am saying that it's ridiculous to make precise speed claims out of that 
> single biased test.

They were not "precise" and all tests done by me will be biased.

> I do not discuss the license of libssh and the blocking issues. These are 
> real and will hopefully be resolved in next major libssh release.

Are you considering to change the license?

> I think a bit of competition in opensource is fair and leads to innovation

In this particular case, I'm far from convinced that this competition is good. 
We're making two separate and roughly comparable libs, both free and open with 
roughly the same purpose. I'd say we're dividing our efforts on two places 
instead of putting them all in one place...

Thanks for all the corrections and clarifications!

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan 23 16:08:06 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NF7ovT023666;
	Sat, 23 Jan 2010 16:08:01 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NF7ndW023660
	for <libssh2-devel@cool.haxx.se>; Sat, 23 Jan 2010 16:07:49 +0100
Date: Sat, 23 Jan 2010 16:07:49 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: client-side only vs. libssh?
In-Reply-To: <234465.10616.qm@web113515.mail.gq1.yahoo.com>
Message-ID: <alpine.DEB.2.00.1001231604440.13963@tvnag.unkk.fr>
References: <234465.10616.qm@web113515.mail.gq1.yahoo.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Fri, 22 Jan 2010, Lawson wrote:

> However one thing I might be interested in is adding the capability of using 
> the NSPR socket library as the base socket for libssh2.

Why?

> What that would give is the ability to make the ultimate socket library, 
> capable of doing plain, SSL, and SSH sockets all of which use the same 
> underlying base type, for the sake of reuse and stability (it is also highly 
> portable)

NSPR has no SSL support, that comes with NSS that is built upon NSPR (iirc). I 
don't get what benefits libssh2 on NSPR would bring. Can you elaborate?

libssh2 is an SSH library, I don't think it should become "the ultimate socket 
library" nor should it do SSL.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan 23 17:51:18 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NGoSGC022363;
	Sat, 23 Jan 2010 17:50:35 +0100
Received: from web113510.mail.gq1.yahoo.com (web113510.mail.gq1.yahoo.com
	[98.136.167.50])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0NGoQUZ022245
	for <libssh2-devel@cool.haxx.se>; Sat, 23 Jan 2010 17:50:26 +0100
Received: (qmail 97032 invoked by uid 60001); 23 Jan 2010 16:50:21 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
	t=1264265421; bh=WH0ZKEpKKc6rDrY6nqMCTuqw3OPup5xw3GZiSu62Uwg=;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=UylgTfvP/qOksInaIrnkWP2L96wX/P/iAUoG6aYDXWKDKW3aLEOkzBFrLDKRYc8SRa1bTGtWUzMyRRn497VBYOKciTYARTAFEQSgs4x+D9UBkxA72jVtTj4GNN0qzbuTjk+bF6TjIY7fndne2Onpli0/rS6h8++P3ia3OOCJWBE=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type;
	b=UB0IJVHwCw6jUOr5Akm3z0E5zEdnz7UCH7ui5zFrMLKNkkluiaJQ9DhThFnmLyduX1yurVyM8lwh7NeG2KoJ8SfziRPEEWBgcNxPjV9qmaz2DIxcZbN81B6clqEjkGxKIMBPkJ8X9jvCKqz/rN1mdhQ7wXWg0htt75aszROo4R8=;
Message-ID: <83092.95959.qm@web113510.mail.gq1.yahoo.com>
X-YMail-OSG: 8m3sXiEVM1myuHJYp6n5pMatWLnC5yNmsz6CCD1i5wMy2LQhXpzB6N9Mskn3.bmW09YIafoxQOSQFoNQacPvPkYx81lXiiisXa_TTwDCxEzMScWkVpD4ACbKbh6hv4iR3MlXZVBjiZNkz_4slHSeUodhO9QEwaZX8EN3yzb3qfB_pkP3vo1HGIkHNqeBIGHcY06WJBRNuLyhlDivyQfCloPpP3Pe9JzwbobX6eCnfi5KndjoP7i0K14NHu4KTHVzwdrcRM4YM229DzJYlQ6g3OV4b3F9Aex_OSF.LZ2iA35jsTXCUwMHMXO6ooE3QyZP2s06X_RB8uY4Oic41JDHABqshbNDBf1Vs5lo.ud9Pg--
Received: from [76.191.227.38] by web113510.mail.gq1.yahoo.com via HTTP;
	Sat, 23 Jan 2010 08:50:20 PST
X-Mailer: YahooMailClassic/9.1.10 YahooMailWebService/0.8.100.260964
Date: Sat, 23 Jan 2010 08:50:20 -0800 (PST)
From: Lawson <lawson08@yahoo.com>
Subject: Re: client-side only vs. libssh?
To: libssh2 development <libssh2-devel@cool.haxx.se>
In-Reply-To: <alpine.DEB.2.00.1001231604440.13963@tvnag.unkk.fr>
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


> NSPR has no SSL support, that comes with NSS that is built
> upon NSPR (iirc). I don't get what benefits libssh2 on NSPR
> would bring. Can you elaborate?

I'm looking for a common denominator that can be re-used. Yes NSS is built on top of NSPR.

If it sounds trivial and you don't see the value that's fine, I may do it for my own use anyway.  But the difference is the amount of [re-]testing I have to do to make sure a product is really behaving reliably.  When evaluating any socket library, I have to consider all the behavior.  Now I'm speaking generically here and not about any particular library:

-  does it offer timeouts on its functions, including on connect
-  can it be used as both blocking and non-blocking
-  test every possible way that it can be disconnected from its remote side.  Can it always detect the dropped connection without hanging?  In the case of something like SSL or SSH you have to consider that the other side may stop responding at any stage of the process including negotiation and shutdown.  Do I have a way to timeout from that?
-  What kind of options does it support?
-  How does it interact with the signal handling?
-  Is it thread-safe?  How do I use it in a multi-threaded situation?  
-  How fast is it?
-  Does it leak memory or otherwise consume system resources?  What if it runs continuously for a year?
-  Will it be portable if I have to move it to another OS?  Linux?  BSD?  Windows?
-  Retest everything whenever the version is upgraded

Now assume I have an app that wants to be able to speak in all 3 flavors (plain, SSL, SSH).  That means everything in the above list I have to do x3 and re-testing when it's upgraded x3.  If they can all be built on a common building block it's less maintenance, and less code overall.

Another thing you could do is do a select() on all of them at once to see if any of them are ready to talk.  As it is now, different socket types (typically) each have their own select() that are incompatible.


> libssh2 is an SSH library, I don't think it should become
> "the ultimate socket library" nor should it do SSL.

I wasn't saying to put SSL in libssh.  I was saying I would build my own library or app which uses NSPR for plain sockets, NSPR+NSS for SSL and NSPR+libssh2 for SSH.


Anyway, that's what I was thinking; that's the end of my effort to explain it.

In fairness to libssh, I have been using it for 2.5 years and the blocking issues I have don't happen very often, even using an old version.  I sort of fell off the wagon when it switched to cmake, don't remember offhand what the issue was.  

In my initial tests of libssh2 it wasn't long before I found myself stuck in _libssh2_wait_socket (I think that's the name) without a timeout (it *almost* implemented a timeout!  :)  So probably nothing is perfect.

At the end of the day, I am responsible for providing something to others that I have to be able to prove will behave a certain way.  So I have to know how everything I depend on will behave.



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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan 23 18:02:55 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NH2nqx028646;
	Sat, 23 Jan 2010 18:02:53 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0NH2lq7028594
	for <libssh2-devel@cool.haxx.se>; Sat, 23 Jan 2010 18:02:47 +0100
Received: (qmail 28509 invoked by uid 501); 23 Jan 2010 17:02:48 -0000
Message-ID: <20100123170248.28508.qmail@stuge.se>
Date: Sat, 23 Jan 2010 18:02:48 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: client-side only vs. libssh?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <alpine.DEB.2.00.1001231604440.13963@tvnag.unkk.fr>
	<83092.95959.qm@web113510.mail.gq1.yahoo.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <83092.95959.qm@web113510.mail.gq1.yahoo.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Lawson wrote:
> Now assume I have an app that wants to be able to speak in all 3
> flavors (plain, SSL, SSH).

Are you familiar with the SSH protocol? It's not really comparable to
TCP or SSL.

If an app wants to speak SSH it will need an API very different from
what TCP or SSL offers.


> In my initial tests of libssh2 it wasn't long before I found myself
> stuck in _libssh2_wait_socket (I think that's the name) without a
> timeout (it *almost* implemented a timeout!  :)

What version of libssh2 was this? Did you report it? If you set
non-blocking and the library hung then that's obviously a bug.

Several fairly severe issues regarding communications stability have
been resolved lately, so if you haven't tried the very latest code in
git, I would suggest to see if the problem is still present there.


> So I have to know how everything I depend on will behave.

I found that the best way to do this is to get involved in the
codebase, see what problems others are experiencing and maybe even
fixing some of their bugs if you know they will also matter to you.


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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan 23 18:12:34 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NHCRMw004099;
	Sat, 23 Jan 2010 18:12:30 +0100
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NHCP5V004076
	for <libssh2-devel@cool.haxx.se>; Sat, 23 Jan 2010 18:12:25 +0100
Received: from int-mx03.intmail.prod.int.phx2.redhat.com
	(int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0NHCKrJ003175
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Sat, 23 Jan 2010 12:12:20 -0500
Received: from vpn1-4-251.ams2.redhat.com (vpn1-4-251.ams2.redhat.com
	[10.36.4.251])
	by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id o0NHCJeU009837; Sat, 23 Jan 2010 12:12:20 -0500
From: Kamil Dudka <kdudka@redhat.com>
To: Lawson <lawson08@yahoo.com>
Subject: Re: client-side only vs. libssh?
Date: Sat, 23 Jan 2010 18:12:11 +0100
User-Agent: KMail/1.9.10
References: <83092.95959.qm@web113510.mail.gq1.yahoo.com>
In-Reply-To: <83092.95959.qm@web113510.mail.gq1.yahoo.com>
MIME-Version: 1.0
Content-Disposition: inline
Message-Id: <201001231812.11435.kdudka@redhat.com>
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Saturday 23 of January 2010 17:50:20 Lawson wrote:
> I wasn't saying to put SSL in libssh.  I was saying I would build my own
> library or app which uses NSPR for plain sockets, NSPR+NSS for SSL and
> NSPR+libssh2 for SSH.

I believe the above is already possible, even without libssh2 and even without 
changing anything in your library or app.  Look at the ssh(1) man page,
in particular, the option -L.

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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan 23 18:18:14 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NHI8cm006027;
	Sat, 23 Jan 2010 18:18:12 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0NHI8Wi006024
	for <libssh2-devel@cool.haxx.se>; Sat, 23 Jan 2010 18:18:08 +0100
Received: (qmail 31008 invoked by uid 501); 23 Jan 2010 17:18:09 -0000
Message-ID: <20100123171809.31007.qmail@stuge.se>
Date: Sat, 23 Jan 2010 18:18:09 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: client-side only vs. libssh?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <83092.95959.qm@web113510.mail.gq1.yahoo.com>
	<201001231812.11435.kdudka@redhat.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <201001231812.11435.kdudka@redhat.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Kamil Dudka wrote:
> Look at the ssh(1) man page, in particular, the option -L.

That implements a direct-tcpip channel, similar in principle to what
the libssh2 direct_tcpip.c example does.


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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan 23 18:32:05 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NHVugQ011620;
	Sat, 23 Jan 2010 18:32:02 +0100
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NHVrtj011565
	for <libssh2-devel@cool.haxx.se>; Sat, 23 Jan 2010 18:31:54 +0100
Received: from int-mx05.intmail.prod.int.phx2.redhat.com
	(int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0NHVmHv007170
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Sat, 23 Jan 2010 12:31:49 -0500
Received: from vpn1-4-251.ams2.redhat.com (vpn1-4-251.ams2.redhat.com
	[10.36.4.251])
	by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
	id o0NHVmXk011980; Sat, 23 Jan 2010 12:31:48 -0500
From: Kamil Dudka <kdudka@redhat.com>
To: Peter Stuge <peter@stuge.se>
Subject: Re: client-side only vs. libssh?
Date: Sat, 23 Jan 2010 18:31:39 +0100
User-Agent: KMail/1.9.10
References: <83092.95959.qm@web113510.mail.gq1.yahoo.com>
	<201001231812.11435.kdudka@redhat.com>
	<20100123171809.31007.qmail@stuge.se>
In-Reply-To: <20100123171809.31007.qmail@stuge.se>
MIME-Version: 1.0
Content-Disposition: inline
Message-Id: <201001231831.40036.kdudka@redhat.com>
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Saturday 23 of January 2010 18:18:09 Peter Stuge wrote:
> Kamil Dudka wrote:
> > Look at the ssh(1) man page, in particular, the option -L.
>
> That implements a direct-tcpip channel, similar in principle to what
> the libssh2 direct_tcpip.c example does.

Indeed.  It looks like that.  Then libssh2 should be also ready for NSPR based 
applications :-)

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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan 23 20:43:26 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NJhE7s009648;
	Sat, 23 Jan 2010 20:43:23 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NJhD4T009643
	for <libssh2-devel@cool.haxx.se>; Sat, 23 Jan 2010 20:43:13 +0100
Date: Sat, 23 Jan 2010 20:43:13 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: client-side only vs. libssh?
In-Reply-To: <83092.95959.qm@web113510.mail.gq1.yahoo.com>
Message-ID: <alpine.DEB.2.00.1001232034010.27478@tvnag.unkk.fr>
References: <83092.95959.qm@web113510.mail.gq1.yahoo.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Sat, 23 Jan 2010, Lawson wrote:

> I'm looking for a common denominator that can be re-used. Yes NSS is built 
> on top of NSPR.

Right, but building a lib on top of NSPR doesn't necessarily mean that the lib 
works automatically fine just because NSPR happens to be fine.

> If it sounds trivial and you don't see the value that's fine, I may do it 
> for my own use anyway.  But the difference is the amount of [re-]testing I 
> have to do to make sure a product is really behaving reliably.

You can't avoid that re-testing just because they all use the same socket or 
portability abstraction. They already use the same libc and that doesn't help 
you much either.

> Another thing you could do is do a select() on all of them at once to see if 
> any of them are ready to talk.  As it is now, different socket types 
> (typically) each have their own select() that are incompatible.

Yeah those things are really terrible (and was one of the reasons why I once 
upon the time didn't go with libssh). I claim good network-related libs 
provide access to the sockets in a way so that you can select() on them.

> In my initial tests of libssh2 it wasn't long before I found myself stuck in 
> _libssh2_wait_socket (I think that's the name) without a timeout (it 
> *almost* implemented a timeout!  :)  So probably nothing is perfect.

Did you really use it non-blocking then? That function is used internally in 
the lib for waiting for socket actions and that implies blocking. But yes, 
when using libssh2 in a blocking mode we don't really have many ways to 
configure timeouts (yet).

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan 23 21:24:53 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NKOkUH027111;
	Sat, 23 Jan 2010 21:24:50 +0100
Received: from lmailproxy02.edpnet.net (lmailproxy02.edpnet.net [212.71.1.195])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NKOiop027106
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Sat, 23 Jan 2010 21:24:45 +0100
Received: from [192.168.1.17] (213.219.141.101.adsl.dyn.edpnet.net
	[213.219.141.101])
	by lmailproxy02.edpnet.net (8.14.3/8.14.3) with ESMTP id o0NKOdnt005473
	for <libssh2-devel@cool.haxx.se>; Sat, 23 Jan 2010 21:24:40 +0100
Message-ID: <4B5B5B09.3080508@0xbadc0de.be>
Date: Sat, 23 Jan 2010 21:24:41 +0100
From: Aris Adamantiadis <aris@0xbadc0de.be>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: client-side only vs. libssh?
References: <150615.96331.qm@web113515.mail.gq1.yahoo.com>	<alpine.DEB.2.00.1001222119300.8894@tvnag.unkk.fr>	<4B5A3FB9.60809@0xbadc0de.be>
	<alpine.DEB.2.00.1001230828020.8894@tvnag.unkk.fr>
In-Reply-To: <alpine.DEB.2.00.1001230828020.8894@tvnag.unkk.fr>
X-Virus-Scanned: clamav-milter 0.95.2 at lmailproxy02.edpnet.net
X-Virus-Status: Clean
X-Spam-Status: No, score=0.2 required=5.0 tests=FH_DATE_PAST_20XX,RDNS_NONE
	autolearn=disabled version=3.2.4
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on
	lmailproxy02.edpnet.net
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hello Daniel,

> I'm happy to correct all flaws and errors existing there. I've been open 
> about that page since day 1 to get help to make it better.
I am happy we can work together on making that page better and more 
realistic.
> 
>> -"not threadsafe": libssh is as much threadsafe as libssh2, in the 
>> sense that all operations made on different sessions are threadsafe. 
>> That is consistent with "Thread-safe: just don't share handles 
>> simultaneously" on libssh2.org front page[3].
> 
> I based that on comments in your mails/documentation. I'll update.
Hmm, I don't remember having written in the doc the thread-safety was 
wrong. It's a closed case anyway.
> 
>> -"Some limitations on >4gb files": Not any that I am aware of. Could 
>> you explain what's actually lacking in libssh 0.4 ? There is a 
>> sftp_seek64 call which takes a uint64_t parameter. That function 
>> exists since 0.3 released one year ago.[4]
> 
> First, the page says it compares against libssh 0.3 so details in 0.4 
> would of course not be covered. I based this on the API/docs/source and 
> it claimed this. But with your feedback here I can update that to say it 
> is a comparison against 0.4. Thanks!
Thanks for making the update. I was relating to 0.3, but of course now 
the state of the art with libssh is 0.4.
> 
> 
>> -Speed claims: Please don't be ridiculous. No competent network 
>> developer will take you seriously when you tell that libssh2 is 2.3 
>> times faster that libssh.
> 
> I did my tests and I presented what I did and I showed the results. 
> Again, nobody else (including you) have argued or discussed them with 
> me. I do not claim to have done any thorough and extensive tests but I 
> did check the code and it looked like they were roughly comparable.
> 
I saw the results several weeks after you wrote them. I began working 
on real benchmarks before giving up. I'm sorry I waited so long before 
writing this mail.
> I guess that makes me "no competent network developer".
You'd be no competent network developer if you seriously believed your 
benchmark was representative of anything. By your explanation, I see 
that was not your intent, but the way it was described on the page 
could lead to confusion.
> 
>> I am saying that it's ridiculous to make precise speed claims out of 
>> that single biased test.
> 
> They were not "precise" and all tests done by me will be biased.
2.3 is precise for me. I think it's all possible to do a test in an 
unbiased manner. Thanks again for having removed the litigious parts.

> 
>> I do not discuss the license of libssh and the blocking issues. These 
>> are real and will hopefully be resolved in next major libssh release.
> 
> Are you considering to change the license?
> 
I was considering but other developers did not want. We do not see the 
licensing as an issue.

>> I think a bit of competition in opensource is fair and leads to 
>> innovation
> 
> In this particular case, I'm far from convinced that this competition is 
> good. We're making two separate and roughly comparable libs, both free 
> and open with roughly the same purpose. I'd say we're dividing our 
> efforts on two places instead of putting them all in one place...
> 
What you say is true in a sense, but as been shown to be false for 
other communities such as kde and gnome. We are at a point where we 
have two codebase largely different and incompatible, having different 
features, strengths, weaknesses and bugs. This makes the choice 
possible for the final user, when a one-size-fits-all approach may not 
be suited to the particular needs of that user.
I know you weren't at the origin of the libssh2 project. I just want to 
add that the first release of libssh was made in 2003 and I never 
refused any contribution.

> Thanks for all the corrections and clarifications!

I thank you for your quick intervention and cooperation. I want our two
projects to communicate and exchange in a constructive manner. Would 
you want that we provide a comparison page between libssh and libssh2 
on libssh.org ?

Regards,

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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan 23 22:46:54 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NLkjHL028368;
	Sat, 23 Jan 2010 22:46:51 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0NLkhJx028352
	for <libssh2-devel@cool.haxx.se>; Sat, 23 Jan 2010 22:46:43 +0100
Received: (qmail 12397 invoked by uid 501); 23 Jan 2010 21:46:44 -0000
Message-ID: <20100123214644.12396.qmail@stuge.se>
Date: Sat, 23 Jan 2010 22:46:44 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: client-side only vs. libssh?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <150615.96331.qm@web113515.mail.gq1.yahoo.com>
	<alpine.DEB.2.00.1001222119300.8894@tvnag.unkk.fr>
	<4B5A3FB9.60809@0xbadc0de.be>
	<alpine.DEB.2.00.1001230828020.8894@tvnag.unkk.fr>
	<4B5B5B09.3080508@0xbadc0de.be>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <4B5B5B09.3080508@0xbadc0de.be>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Aris Adamantiadis wrote:
> Would you want that we provide a comparison page between libssh and
> libssh2 on libssh.org ?

I think that's a good idea, and only fair. Each site will no doubt
have a little bit of bias in their comparison anyway, and that's
fine. :) Better for people to have input from as many sources as
possible.


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

From libssh2-devel-bounces@cool.haxx.se  Sun Jan 24 00:15:13 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NNF0KY028562;
	Sun, 24 Jan 2010 00:15:10 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0NNExom028557
	for <libssh2-devel@cool.haxx.se>; Sun, 24 Jan 2010 00:14:59 +0100
Date: Sun, 24 Jan 2010 00:14:59 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: client-side only vs. libssh?
In-Reply-To: <4B5B5B09.3080508@0xbadc0de.be>
Message-ID: <alpine.DEB.2.00.1001232204500.30191@tvnag.unkk.fr>
References: <150615.96331.qm@web113515.mail.gq1.yahoo.com>
	<alpine.DEB.2.00.1001222119300.8894@tvnag.unkk.fr>
	<4B5A3FB9.60809@0xbadc0de.be>
	<alpine.DEB.2.00.1001230828020.8894@tvnag.unkk.fr>
	<4B5B5B09.3080508@0xbadc0de.be>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Sat, 23 Jan 2010, Aris Adamantiadis wrote:

>> Are you considering to change the license?
>> 
> I was considering but other developers did not want. We do not see the 
> licensing as an issue.

Sorry, I just wanted to get your previous comment clarified when you said 
you'd work on it for the next major release. Obviously you then referred to 
the non-blocking parts.

I've worked with a sufficient amount of companies using libssh2 to realize 
that anything with a copyleft, including LGPL, will be less attractive. We've 
so far had a few companies paying for development and I see great value in 
using the BSD or a BSD-like license for something like this. I'm also aware 
that this is a sensitive issue and people are entitled to think differently. 
License issues tend to be more like religion.

Funnily enough, you can borrow code from us but we can't borrow anything from 
you...

>> In this particular case, I'm far from convinced that this competition is 
>> good.
>> 
> What you say is true in a sense, but as been shown to be false for other 
> communities such as kde and gnome.

Perhaps. Who knows what greatness we would've had without their divide?

> We are at a point where we have two codebase largely different and 
> incompatible, having different features, strengths, weaknesses and bugs. 
> This makes the choice possible for the final user, when a one-size-fits-all 
> approach may not be suited to the particular needs of that user.

This are the facts today yes, but personally I don't see these as obvious 
benefits to users or developers. Sure, they can pick from two libs but if we 
had been one united lib we should've been able to make that single one better 
than any of these two's current state given the same time and man power.

In reality that doesn't matter of course. We can't change history.

> I know you weren't at the origin of the libssh2 project. I just want to add 
> that the first release of libssh was made in 2003 and I never refused any 
> contribution.

Back in 2006 I did a comparison among what was available at the time as I was 
ready to select one for my work on libcurl:

 	http://curl.haxx.se/mail/lib-2006-09/0060.html

... which turned out favourably for libssh2. I also posted to both mailing 
lists and asked about how they viewed the state of non-blocking and what would 
be needed to get it done. (Sep 17th 2009 I posted to your mailing list.) The 
reply I got on the libssh list "you should use threads" didn't help to make a 
good impression on me either, so I jumped on libssh2. I've also invested quite 
a bit in libssh2-using stuff so I'm also a bit married to the API now (in 
spite of its set of flaws).

> I thank you for your quick intervention and cooperation. I want our two 
> projects to communicate and exchange in a constructive manner. Would you 
> want that we provide a comparison page between libssh and libssh2 on 
> libssh.org ?

I really would like to provide an accurate and as little biased comparison as 
possible on our site, which then would basically could be the same as you'd 
show on your site...

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Sun Jan 24 11:43:57 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0OAhiuq005781;
	Sun, 24 Jan 2010 11:43:53 +0100
Received: from mail-pz0-f178.google.com (mail-pz0-f178.google.com
	[209.85.222.178])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0OAhfPP005735
	for <libssh2-devel@cool.haxx.se>; Sun, 24 Jan 2010 11:43:41 +0100
Received: by pzk8 with SMTP id 8so376844pzk.8
	for <libssh2-devel@cool.haxx.se>; Sun, 24 Jan 2010 02:43:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:date:message-id:subject
	:from:to:content-type;
	bh=9sY+6kL78JnfRNMhlrHw/IT4S+9JE5DSUKJlLhtioZA=;
	b=Yr0YYk7GUqTlUmNcf6wVYKf+gx8L3r9Lj7XySYuKMMdTg+Ok5mXcCSqk2mRtlWuruO
	ZQY/aRhGjGyVBDKc4LCChkm6K7jVEOE7E5VowOkFNSmgkV+ds5rZqohIHdtZCXKsskM3
	vToM1wGYi5JQWFKBaqow63yygiLchwCpP4fqg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	b=HNwAXVnZN07I+d0D87XPSVzapnrrN6ZyRLeEg2Hr4J4LMukpHd7LN0P5enV0dl+h9d
	sNrQF7Pd0BfCCDVRVauaRzKcEDlIJxHR5K7R8r84Rnp+ENxggeUWLDQshEhYBwcU429j
	UAEGUqbgEqH5zdADnuu7KSEPVnNuhoYpMrQD4=
MIME-Version: 1.0
Received: by 10.114.54.3 with SMTP id c3mr1509252waa.2.1264329816056; Sun, 24 
	Jan 2010 02:43:36 -0800 (PST)
Date: Sun, 24 Jan 2010 16:13:36 +0530
Message-ID: <dfd97ba41001240243y65453942re28317f133c70a7e@mail.gmail.com>
Subject: Help needed
From: sandeep patra <kernel32.dll1981@gmail.com>
To: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1466936089=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1466936089==
Content-Type: multipart/alternative; boundary=001636b1495e90a38a047de6b904

--001636b1495e90a38a047de6b904
Content-Type: text/plain; charset=ISO-8859-1

Hi,
I am new to this mailing list and 2 days back. I have downloaded libssh2
1.2.2 <http://www.libssh2.org/download/libssh2-1.2.2.tar.gz> from
http://www.libssh2.org/.
I have also downloaded few test programs. I have tried two test programs
"x11.c" and "ssh2_blocking.c" on my system but failed to successed.

problem with x11.c is "libssh2_userauth_password(session, username,
password);" returns me -1. irony is if i use ssh hostname -l username then
password it works. but not with the code.

problem with ssh2_blocking.c is that it fails in the "connect" call.


Is something I am missing here?
Kindly help me.

Thanks and Regards,
Sandeep Kumar Patra

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

Hi,<br>I am new to this mailing list and 2 days back. I have downloaded  <a=
 href=3D"http://www.libssh2.org/download/libssh2-1.2.2.tar.gz">libssh2
1.2.2</a> from <a href=3D"http://www.libssh2.org/">http://www.libssh2.org/<=
/a>.<br>I have also downloaded few test programs. I have tried two test pro=
grams &quot;x11.c&quot; and &quot;ssh2_blocking.c&quot; on my system but fa=
iled to successed. <br>
<br>problem with x11.c is &quot;libssh2_userauth_password(session, username=
, password);&quot; returns me -1. irony is if i use ssh hostname -l usernam=
e then password it works. but not with the code.<br><br>problem with ssh2_b=
locking.c is that it fails in the &quot;connect&quot; call.<br>
<br><br>Is something I am missing here? <br>Kindly help me. <br><br>Thanks =
and Regards,<br>Sandeep Kumar Patra<br>

--001636b1495e90a38a047de6b904--

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

--===============1466936089==--

From libssh2-devel-bounces@cool.haxx.se  Sun Jan 24 12:09:34 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0OB9Tus014561;
	Sun, 24 Jan 2010 12:09:32 +0100
Received: from mail-pz0-f178.google.com (mail-pz0-f178.google.com
	[209.85.222.178])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0OB9Qui014553
	for <libssh2-devel@cool.haxx.se>; Sun, 24 Jan 2010 12:09:27 +0100
Received: by pzk8 with SMTP id 8so382588pzk.8
	for <libssh2-devel@cool.haxx.se>; Sun, 24 Jan 2010 03:09:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=/d1d4B+4R7h1GFCuyYXT7omcvde/I5LEg76paTt4u0A=;
	b=HJIvmzx2lxLR2TRt6dqlBXKtGd5vEtiV9Rl4tJR57mCnM2PLYV+ECE1f+dcwCPZk1n
	8TDtJmO78xMQdrEFMAWo4ZCk4T1dF+gTlicMHzgpdmpFMucDRcwcrNT+8F02pcVaHRwk
	ngRmL6wTm9XzP0jWl9X4se1AoNKH4PpILvE8k=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=azlMqS0062+ctixWxiE5DvSrmhVvnS4ZzE/OGBoodLh4xoeOH5iIDiNeMRVbIea0RO
	kg9aJPJFjAPmunt3JGrMipTKWo313brefUF2ZUtOrvpeH0VbKl/h5ltHfy2fIj2g2XNi
	1vSeqjKkv4C5aY8Vp6inOdFt4cuaPDNL87aIs=
MIME-Version: 1.0
Received: by 10.114.7.10 with SMTP id 10mr3597371wag.90.1264331361455; Sun, 24 
	Jan 2010 03:09:21 -0800 (PST)
In-Reply-To: <dfd97ba41001240243y65453942re28317f133c70a7e@mail.gmail.com>
References: <dfd97ba41001240243y65453942re28317f133c70a7e@mail.gmail.com>
Date: Sun, 24 Jan 2010 16:39:21 +0530
Message-ID: <dfd97ba41001240309r407d459n38499a5bac51a248@mail.gmail.com>
Subject: Re: Help needed
From: sandeep patra <kernel32.dll1981@gmail.com>
To: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1250918237=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1250918237==
Content-Type: multipart/alternative; boundary=0016e648afbaad9023047de7154b

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

Small update from my side:

I am using gentoo system, where i am unable to authenticate by my own
system.
I tested the same piece of code on redhat, I was able to authenticate.
Moreover from my gentoo system i am able to authenticated by redhat system
also.

Is the problem related to the OS ?


On Sun, Jan 24, 2010 at 4:13 PM, sandeep patra
<kernel32.dll1981@gmail.com>wrote:

> Hi,
> I am new to this mailing list and 2 days back. I have downloaded libssh2
> 1.2.2 <http://www.libssh2.org/download/libssh2-1.2.2.tar.gz> from
> http://www.libssh2.org/.
> I have also downloaded few test programs. I have tried two test programs
> "x11.c" and "ssh2_blocking.c" on my system but failed to successed.
>
> problem with x11.c is "libssh2_userauth_password(session, username,
> password);" returns me -1. irony is if i use ssh hostname -l username then
> password it works. but not with the code.
>
> problem with ssh2_blocking.c is that it fails in the "connect" call.
>
>
> Is something I am missing here?
> Kindly help me.
>
> Thanks and Regards,
> Sandeep Kumar Patra
>

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

Small update from my side:<br><br>I am using gentoo system, where i am unab=
le to authenticate by my own system.<br>I tested the same piece of code on =
redhat, I was able to authenticate. Moreover from my gentoo system i am abl=
e to authenticated by redhat system also.<br>
<br>Is the problem related to the OS ?<br><br><br><div class=3D"gmail_quote=
">On Sun, Jan 24, 2010 at 4:13 PM, sandeep patra <span dir=3D"ltr">&lt;<a h=
ref=3D"mailto:kernel32.dll1981@gmail.com">kernel32.dll1981@gmail.com</a>&gt=
;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>I am new t=
o this mailing list and 2 days back. I have downloaded  <a href=3D"http://w=
ww.libssh2.org/download/libssh2-1.2.2.tar.gz" target=3D"_blank">libssh2
1.2.2</a> from <a href=3D"http://www.libssh2.org/" target=3D"_blank">http:/=
/www.libssh2.org/</a>.<br>I have also downloaded few test programs. I have =
tried two test programs &quot;x11.c&quot; and &quot;ssh2_blocking.c&quot; o=
n my system but failed to successed. <br>

<br>problem with x11.c is &quot;libssh2_userauth_password(session, username=
, password);&quot; returns me -1. irony is if i use ssh hostname -l usernam=
e then password it works. but not with the code.<br><br>problem with ssh2_b=
locking.c is that it fails in the &quot;connect&quot; call.<br>

<br><br>Is something I am missing here? <br>Kindly help me. <br><br>Thanks =
and Regards,<br>Sandeep Kumar Patra<br>
</blockquote></div><br>

--0016e648afbaad9023047de7154b--

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

--===============1250918237==--

From libssh2-devel-bounces@cool.haxx.se  Sun Jan 24 12:16:29 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0OBGO9Z016931;
	Sun, 24 Jan 2010 12:16:27 +0100
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0OBGL5X016922
	for <libssh2-devel@cool.haxx.se>; Sun, 24 Jan 2010 12:16:22 +0100
Received: from int-mx03.intmail.prod.int.phx2.redhat.com
	(int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0OBGLDP023455
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Sun, 24 Jan 2010 06:16:21 -0500
Received: from vpn1-5-4.ams2.redhat.com (vpn1-5-4.ams2.redhat.com [10.36.5.4])
	by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with
	ESMTP id o0OBGKE5012876; Sun, 24 Jan 2010 06:16:21 -0500
From: Kamil Dudka <kdudka@redhat.com>
To: sandeep patra <kernel32.dll1981@gmail.com>
Subject: Re: Help needed
Date: Sun, 24 Jan 2010 12:16:11 +0100
User-Agent: KMail/1.9.10
References: <dfd97ba41001240243y65453942re28317f133c70a7e@mail.gmail.com>
	<dfd97ba41001240309r407d459n38499a5bac51a248@mail.gmail.com>
In-Reply-To: <dfd97ba41001240309r407d459n38499a5bac51a248@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
Message-Id: <201001241216.11789.kdudka@redhat.com>
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Sunday 24 of January 2010 12:09:21 sandeep patra wrote:
> Small update from my side:
>
> I am using gentoo system, where i am unable to authenticate by my own
> system.
> I tested the same piece of code on redhat, I was able to authenticate.
> Moreover from my gentoo system i am able to authenticated by redhat system
> also.
>
> Is the problem related to the OS ?

I suspect there are some differences in your OpenSSH configuration.  I would 
start with diffing /etc/ssh/sshd_config among that systems.

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

From libssh2-devel-bounces@cool.haxx.se  Sun Jan 24 12:27:01 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0OBQuAM020595;
	Sun, 24 Jan 2010 12:26:59 +0100
Received: from mail-px0-f202.google.com (mail-px0-f202.google.com
	[209.85.216.202])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0OBQrxX020585
	for <libssh2-devel@cool.haxx.se>; Sun, 24 Jan 2010 12:26:54 +0100
Received: by pxi40 with SMTP id 40so1872611pxi.21
	for <libssh2-devel@cool.haxx.se>; Sun, 24 Jan 2010 03:26:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:cc:content-type;
	bh=2Qqc5iNKLmR2XIfzO0anBucuIqGB/N5xkfLjwTMc+20=;
	b=Nnbha1FjrerxI8FShW6RBrIT37WEjM0VA8VW1nRtRcmatG6lxIdZBwT+9aOrTNUhZh
	263SulG1L3QmGGpH7h/swZ2eW1KeeYU9BxQ80OhU35+rGfHBcMUSQUn3etVdrgZJRrew
	DBAiHNA7XMAoBasx7m6UFWuSet8bATcvfIryA=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	b=g8t8icgzu/+IdiAHpNQTtOqwYOvYegdz7haIr1lKuY69T48j7gW3yeY30ibyQK97B4
	a6/qyf9jOWhfvR/uJxZWaNBbOqh+UeyzML7M/4+6dpfVunx7RlL56flPrh7EyGWL8b52
	yvh6Fy4ujrFngz7DUcWAHHrTwjPHbet4QlJQI=
MIME-Version: 1.0
Received: by 10.114.162.26 with SMTP id k26mr3440690wae.186.1264332408350; 
	Sun, 24 Jan 2010 03:26:48 -0800 (PST)
In-Reply-To: <201001241216.11789.kdudka@redhat.com>
References: <dfd97ba41001240243y65453942re28317f133c70a7e@mail.gmail.com>
	<dfd97ba41001240309r407d459n38499a5bac51a248@mail.gmail.com>
	<201001241216.11789.kdudka@redhat.com>
Date: Sun, 24 Jan 2010 16:56:48 +0530
Message-ID: <dfd97ba41001240326w5b859861g9335e4d0bb914e88@mail.gmail.com>
Subject: Re: Help needed
From: sandeep patra <kernel32.dll1981@gmail.com>
To: Kamil Dudka <kdudka@redhat.com>
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0452354220=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0452354220==
Content-Type: multipart/alternative; boundary=00504502f57813e8d8047de754a7

--00504502f57813e8d8047de754a7
Content-Type: text/plain; charset=ISO-8859-1

Hi Kamil,
Thanks for your reply.
I have copied that system's sshd_config file to mine. Now its working fine

Thanks and Regards,
Sandeep Patra

On Sun, Jan 24, 2010 at 4:46 PM, Kamil Dudka <kdudka@redhat.com> wrote:

> On Sunday 24 of January 2010 12:09:21 sandeep patra wrote:
> > Small update from my side:
> >
> > I am using gentoo system, where i am unable to authenticate by my own
> > system.
> > I tested the same piece of code on redhat, I was able to authenticate.
> > Moreover from my gentoo system i am able to authenticated by redhat
> system
> > also.
> >
> > Is the problem related to the OS ?
>
> I suspect there are some differences in your OpenSSH configuration.  I
> would
> start with diffing /etc/ssh/sshd_config among that systems.
>
> Kamil
>

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

Hi Kamil,<br>Thanks for your reply.<br>I have copied that system&#39;s sshd=
_config file to mine. Now its working fine<br><br>Thanks and Regards,<br>Sa=
ndeep Patra<br><br><div class=3D"gmail_quote">On Sun, Jan 24, 2010 at 4:46 =
PM, Kamil Dudka <span dir=3D"ltr">&lt;<a href=3D"mailto:kdudka@redhat.com">=
kdudka@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"=
>On Sunday 24 of January 2010 12:09:21 sandeep patra wrote:<br>
&gt; Small update from my side:<br>
&gt;<br>
&gt; I am using gentoo system, where i am unable to authenticate by my own<=
br>
&gt; system.<br>
&gt; I tested the same piece of code on redhat, I was able to authenticate.=
<br>
&gt; Moreover from my gentoo system i am able to authenticated by redhat sy=
stem<br>
&gt; also.<br>
&gt;<br>
&gt; Is the problem related to the OS ?<br>
<br>
</div>I suspect there are some differences in your OpenSSH configuration. =
=A0I would<br>
start with diffing /etc/ssh/sshd_config among that systems.<br>
<font color=3D"#888888"><br>
Kamil<br>
</font></blockquote></div><br>

--00504502f57813e8d8047de754a7--

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

--===============0452354220==--

From libssh2-devel-bounces@cool.haxx.se  Sun Jan 24 12:32:43 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0OBWUKT022497;
	Sun, 24 Jan 2010 12:32:33 +0100
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0OBWRNg022450
	for <libssh2-devel@cool.haxx.se>; Sun, 24 Jan 2010 12:32:28 +0100
Received: from int-mx05.intmail.prod.int.phx2.redhat.com
	(int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0OBWM16007434
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Sun, 24 Jan 2010 06:32:22 -0500
Received: from vpn1-5-4.ams2.redhat.com (vpn1-5-4.ams2.redhat.com [10.36.5.4])
	by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with
	ESMTP id o0OBWLoY013711; Sun, 24 Jan 2010 06:32:22 -0500
From: Kamil Dudka <kdudka@redhat.com>
To: sandeep patra <kernel32.dll1981@gmail.com>
Subject: Re: Help needed
Date: Sun, 24 Jan 2010 12:32:12 +0100
User-Agent: KMail/1.9.10
References: <dfd97ba41001240243y65453942re28317f133c70a7e@mail.gmail.com>
	<201001241216.11789.kdudka@redhat.com>
	<dfd97ba41001240326w5b859861g9335e4d0bb914e88@mail.gmail.com>
In-Reply-To: <dfd97ba41001240326w5b859861g9335e4d0bb914e88@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
Message-Id: <201001241232.12764.kdudka@redhat.com>
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Sunday 24 of January 2010 12:26:48 sandeep patra wrote:
> I have copied that system's sshd_config file to mine. Now its working fine

Anyway it would be good to diff them with each other and investigate what 
exactly was the cause.  If you simply copy the file from one system to 
another, you can create a security hole this way, especially if the server
is listening from outside.  There is e.g. different PAM stack among RH and 
Gentoo Linux.

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

From libssh2-devel-bounces@cool.haxx.se  Sun Jan 24 12:37:06 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0OBb3Tb024247;
	Sun, 24 Jan 2010 12:37:04 +0100
Received: from mail-pw0-f48.google.com (mail-pw0-f48.google.com
	[209.85.160.48])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0OBb0fQ024196
	for <libssh2-devel@cool.haxx.se>; Sun, 24 Jan 2010 12:37:01 +0100
Received: by pwj14 with SMTP id 14so1846025pwj.7
	for <libssh2-devel@cool.haxx.se>; Sun, 24 Jan 2010 03:36:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:cc:content-type;
	bh=meHFuguuXgjOjCTryzA4MhUd5+Rp1jT8a6lGI2rfZBg=;
	b=l0yCfyUUW5q+/+tIV/tYcdWXO+j6ojCPwIrzci9i6pmLcXjBOI9r1HC/QgFc8EQREI
	5X00MPse/1cR6fVpOagKg35VDEpoPV2nzTQpxiVHwQu7iEgpAAt++AOLxgb9sDRRmyAd
	m38x/QV4I9KnWPZ9XzlLjnr2XJH7DGUfB3hWk=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	b=MURPbB94jcd6fpRFekHoS/FBDmrCNNShfZsfnl3Sy3Ng8mV53hNe6/FdhZ4cH7VQqa
	xp7o5Slqc1GaOoL+ROxhBVxQHHWTgLrl83v7v878LBYduzs+dSZjYn5FXkNqULpkYxj6
	TEN4S0cwfasA11+MHnhOSRuMqN5yWVc/GQHl4=
MIME-Version: 1.0
Received: by 10.115.24.12 with SMTP id b12mr3632724waj.86.1264333015470; Sun, 
	24 Jan 2010 03:36:55 -0800 (PST)
In-Reply-To: <201001241232.12764.kdudka@redhat.com>
References: <dfd97ba41001240243y65453942re28317f133c70a7e@mail.gmail.com>
	<201001241216.11789.kdudka@redhat.com>
	<dfd97ba41001240326w5b859861g9335e4d0bb914e88@mail.gmail.com>
	<201001241232.12764.kdudka@redhat.com>
Date: Sun, 24 Jan 2010 17:06:55 +0530
Message-ID: <dfd97ba41001240336l66ca0419v39249fa44c5ebec6@mail.gmail.com>
Subject: Re: Help needed
From: sandeep patra <kernel32.dll1981@gmail.com>
To: Kamil Dudka <kdudka@redhat.com>
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0513925038=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0513925038==
Content-Type: multipart/alternative; boundary=0016367b6c3a43d204047de77835

--0016367b6c3a43d204047de77835
Content-Type: text/plain; charset=ISO-8859-1

In my Gentoo system I was nothing in my sshd_config file

On Sun, Jan 24, 2010 at 5:02 PM, Kamil Dudka <kdudka@redhat.com> wrote:

> On Sunday 24 of January 2010 12:26:48 sandeep patra wrote:
> > I have copied that system's sshd_config file to mine. Now its working
> fine
>
> Anyway it would be good to diff them with each other and investigate what
> exactly was the cause.  If you simply copy the file from one system to
> another, you can create a security hole this way, especially if the server
> is listening from outside.  There is e.g. different PAM stack among RH and
> Gentoo Linux.
>
> Kamil
>

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

In my Gentoo system I was nothing in my sshd_config file<br><br><div class=
=3D"gmail_quote">On Sun, Jan 24, 2010 at 5:02 PM, Kamil Dudka <span dir=3D"=
ltr">&lt;<a href=3D"mailto:kdudka@redhat.com">kdudka@redhat.com</a>&gt;</sp=
an> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class=3D"im"=
>On Sunday 24 of January 2010 12:26:48 sandeep patra wrote:<br>
&gt; I have copied that system&#39;s sshd_config file to mine. Now its work=
ing fine<br>
<br>
</div>Anyway it would be good to diff them with each other and investigate =
what<br>
exactly was the cause. =A0If you simply copy the file from one system to<br=
>
another, you can create a security hole this way, especially if the server<=
br>
is listening from outside. =A0There is e.g. different PAM stack among RH an=
d<br>
Gentoo Linux.<br>
<font color=3D"#888888"><br>
Kamil<br>
</font></blockquote></div><br>

--0016367b6c3a43d204047de77835--

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

--===============0513925038==--

From libssh2-devel-bounces@cool.haxx.se  Sun Jan 24 12:46:13 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0OBk4Ox028243;
	Sun, 24 Jan 2010 12:46:10 +0100
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0OBk21A028143
	for <libssh2-devel@cool.haxx.se>; Sun, 24 Jan 2010 12:46:02 +0100
Received: from int-mx03.intmail.prod.int.phx2.redhat.com
	(int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0OBjuwI020056
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
	Sun, 24 Jan 2010 06:45:56 -0500
Received: from vpn1-5-4.ams2.redhat.com (vpn1-5-4.ams2.redhat.com [10.36.5.4])
	by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with
	ESMTP id o0OBjtp9017583; Sun, 24 Jan 2010 06:45:55 -0500
From: Kamil Dudka <kdudka@redhat.com>
To: sandeep patra <kernel32.dll1981@gmail.com>
Subject: Re: Help needed
Date: Sun, 24 Jan 2010 12:45:46 +0100
User-Agent: KMail/1.9.10
References: <dfd97ba41001240243y65453942re28317f133c70a7e@mail.gmail.com>
	<201001241232.12764.kdudka@redhat.com>
	<dfd97ba41001240336l66ca0419v39249fa44c5ebec6@mail.gmail.com>
In-Reply-To: <dfd97ba41001240336l66ca0419v39249fa44c5ebec6@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
Message-Id: <201001241245.46441.kdudka@redhat.com>
X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Sunday 24 of January 2010 12:36:55 sandeep patra wrote:
> In my Gentoo system I was nothing in my sshd_config file

Really?  It must have been caused by some misconfiguration of your system.
I have /etc/ssh/sshd_config on all my Gentoo Linux boxes.  It's installed
by default and its content depends on the state of your "pam" USE flag.

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

From libssh2-devel-bounces@cool.haxx.se  Mon Jan 25 23:32:43 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0PMWKta007641;
	Mon, 25 Jan 2010 23:32:29 +0100
Received: from mail.intersystems.com (mail.intersys.com [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0PMWIS5007636
	for <libssh2-devel@cool.haxx.se>; Mon, 25 Jan 2010 23:32:18 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
From: Dave McCaldon <davem@intersystems.com>
Content-Type: multipart/mixed; boundary=Apple-Mail-26-536207310
Subject: [PATCH] Fix trace context lookup in libssh2_debug()
Date: Mon, 25 Jan 2010 17:32:12 -0500
Message-Id: <638889E2-58D6-4EB4-AD23-3FB6F52522B0@intersystems.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Mime-Version: 1.0 (Apple Message framework v1077)
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


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

The logic in libssh2_debug() that prints out the context was incorrectly =
looking up the context text.  The context flags are in fact a bitmask, =
not an enumeration (see libssh2.h), but the logic was indexing the =
context text array with the context as if it were an enumeration.

This patch updates the code to search the context text array based on =
the bits set in the context; if multiple bits are set, then it will use =
the first one it finds.


--Apple-Mail-26-536207310
Content-Disposition: attachment;
	filename=0003-Fix-trace-context-lookup-in-libssh2_debug.patch
Content-Type: application/octet-stream;
	name="0003-Fix-trace-context-lookup-in-libssh2_debug.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=2087a2f26dde834652abcb1c358579c018422a6a8d=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20Dave=20McCaldon=20<davem@intersys.com>=0ADate:=20=
Thu,=2021=20Jan=202010=2009:06:34=20-0500=0ASubject:=20[PATCH]=20Fix=20=
trace=20context=20lookup=20in=20libssh2_debug()=0A=0AThe=20trace=20=
context=20is=20actually=20a=20bitmask=20so=20that=20tracing=20output=20=
can=20be=20controlled=20by=20setting=20a=20bitmask=20using=20=
libssh2_trace().=20=20However,=20the=20logic=20in=20libssh2_debug()=20=
that=20converted=20the=20context=20to=20a=20string=20was=20using=20the=20=
context=20value=20as=20an=20array=20index.=20=20Because=20the=20code=20=
used=20a=20bounds=20check=20on=20the=20array,=20there=20was=20never=20a=20=
danger=20of=20a=20crash,=20but=20you=20would=20certainly=20either=20get=20=
the=20wrong=20string,=20or=20"unknown".=0A=0AThis=20patch=20adds=20a=20=
lookup=20that=20iterates=20over=20the=20context=20strings=20and=20uses=20=
it's=20index=20to=20check=20for=20the=20corresponding=20bit=20in=20the=20=
context.=0A---=0A=20src/misc.c=20|=20=20=2016=20++++++++++++----=0A=201=20=
files=20changed,=2012=20insertions(+),=204=20deletions(-)=0A=0Adiff=20=
--git=20a/src/misc.c=20b/src/misc.c=0Aindex=20ea6859e..44e68e1=20100644=0A=
---=20a/src/misc.c=0A+++=20b/src/misc.c=0A@@=20-340,14=20+340,22=20@@=20=
_libssh2_debug(LIBSSH2_SESSION=20*=20session,=20int=20context,=20const=20=
char=20*format,=20...)=0A=20=20=20=20=20=20=20=20=20"Publickey",=0A=20=20=
=20=20=20=20=20=20=20"Socket",=0A=20=20=20=20=20};=0A+=20=20=20=20const=20=
char*=20contexttext=20=3D=20contexts[0];=0A+=20=20=20=20unsigned=20int=20=
contextindex;=0A=20=0A-=20=20=20=20if=20(context=20<=201=20||=20context=20=
>=3D=20(int)ARRAY_SIZE(contexts))=20{=0A-=20=20=20=20=20=20=20=20context=20=
=3D=200;=0A-=20=20=20=20}=0A=20=20=20=20=20if=20(!(session->showmask=20&=20=
context))=20{=0A=20=20=20=20=20=20=20=20=20/*=20no=20such=20output=20=
asked=20for=20*/=0A=20=20=20=20=20=20=20=20=20return;=0A=20=20=20=20=20}=0A=
+=0A+=20=20=20=20/*=20Find=20the=20first=20matching=20context=20string=20=
for=20this=20message=20*/=0A+=20=20=20=20for=20(contextindex=20=3D=200;=20=
contextindex=20<=20ARRAY_SIZE(contexts);=20contextindex++)=20{=0A+=20=20=20=
=20=20=20=20=20if=20((context=20&=20(1=20<<=20contextindex))=20!=3D=200)=20=
{=0A+=20=20=20=20=20=20=20=20=20=20=20=20contexttext=20=3D=20=
contexts[contextindex];=0A+=20=20=20=20=20=20=20=20=20=20=20=20break;=0A=
+=20=20=20=20=20=20=20=20}=0A+=20=20=20=20}=0A+=0A=20=20=20=20=20=
gettimeofday(&now,=20NULL);=0A=20=20=20=20=20if(!firstsec)=20{=0A=20=20=20=
=20=20=20=20=20=20firstsec=20=3D=20now.tv_sec;=0A@@=20-355,7=20+363,7=20=
@@=20_libssh2_debug(LIBSSH2_SESSION=20*=20session,=20int=20context,=20=
const=20char=20*format,=20...)=0A=20=20=20=20=20now.tv_sec=20-=3D=20=
firstsec;=0A=20=0A=20=20=20=20=20len=20=3D=20snprintf(buffer,=20=
sizeof(buffer),=20"[libssh2]=20%d.%06d=20%s:=20",=0A-=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20(int)now.tv_sec,=20(int)now.tv_usec,=20=
contexts[context]);=0A+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20(int)now.tv_sec,=20(int)now.tv_usec,=20contexttext);=0A=20=0A=20=20=
=20=20=20va_start(vargs,=20format);=0A=20=20=20=20=20len=20+=3D=20=
vsnprintf(buffer=20+=20len,=201535=20-=20len,=20format,=20vargs);=0A--=20=
=0A1.6.4.4=0A=0A=

--Apple-Mail-26-536207310
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii




--Apple-Mail-26-536207310
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--Apple-Mail-26-536207310--

From libssh2-devel-bounces@cool.haxx.se  Tue Jan 26 17:16:09 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QGFpWN018674;
	Tue, 26 Jan 2010 17:16:03 +0100
Received: from cengen.atlanticasp.com (cengen.atlanticasp.com [38.119.104.215])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QEg2q9016050
	for <libssh2-devel@cool.haxx.se>; Tue, 26 Jan 2010 15:42:04 +0100
Received: from [192.168.70.13] ([24.89.138.170]) by cengen.com with MailEnable
	ESMTP; Tue, 26 Jan 2010 09:41:58 -0500
Message-ID: <4B5EFF12.1080400@cengen.com>
Date: Tue, 26 Jan 2010 09:41:22 -0500
From: Piotr Sipika <psipika@cengen.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Thunderbird/3.0.1
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: [libssh2] Tunnelling using libssh2
X-Mailman-Approved-At: Tue, 26 Jan 2010 17:15:50 +0100
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2102073665=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

This is a cryptographically signed message in MIME format.

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

This is a cryptographically signed message in MIME format.

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

Hi All,
I'm trying to execute a command on the remote host which uses=20
stdin/stdout as its input/output sources.
Currently, after calling libssh2_channel_exec(), I am only able to read=20
the output (stdout) of the command from the channel. Is there a way for=20
me to also write to the channel (to the command's stdin), having issued=20
the libssh2_channel_exec() call?

I would like to avoid having to use a pty/shell for this as it=20
introduces additional complexity in dealing with motd message(s) and=20
having to explicitly 'logout' from the shell, among others.

Thanks in advance,
Pete


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

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIO4jCC
BEYwggOvoAMCAQICEGb9R+PCGeToms2Z3fU6yyQwDQYJKoZIhvcNAQEFBQAwXzELMAkGA1UE
BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAxIFB1Ymxp
YyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA1MTAyODAwMDAwMFoXDTE1
MTAyNzIzNTk1OVowgd0xCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEf
MB0GA1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazE7MDkGA1UECxMyVGVybXMgb2YgdXNl
IGF0IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9ycGEgKGMpMDUxHjAcBgNVBAsTFVBlcnNv
bmEgTm90IFZhbGlkYXRlZDE3MDUGA1UEAxMuVmVyaVNpZ24gQ2xhc3MgMSBJbmRpdmlkdWFs
IFN1YnNjcmliZXIgQ0EgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMnf
rOfq+PgDFMQAktXBfjbCPO98chXLwKuMPRyVzm8eECw/AO2XJua2x+atQx0/pIdHR0w+VPhs
+Mf8sZ69MHC8l7EDBeqV8a1AxUR6SwWi8mD81zplYu//EHuiVrvFTnAt1qIfPO2wQuhejVch
rKaZ2RHp0hoHwHRHQgv8xTTq/ea6JNEdCBU3otdzzwFBL2OyOj++pRpu9MlKWz2VphW7NQIZ
+dTvvI8OcXZZu0u2Ptb8Whb01g6J8kn+bAztFenZiHWcec5gJ925rXXOL3OVekA6hXVJsLjf
aLyrzROChRFQo+A8C67AClPN1zBvhTJGG+RJEMJs4q8fef/btLUCAwEAAaOB/zCB/DASBgNV
HRMBAf8ECDAGAQH/AgEAMEQGA1UdIAQ9MDswOQYLYIZIAYb4RQEHFwEwKjAoBggrBgEFBQcC
ARYcaHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL3JwYTALBgNVHQ8EBAMCAQYwEQYJYIZIAYb4
QgEBBAQDAgEGMC4GA1UdEQQnMCWkIzAhMR8wHQYDVQQDExZQcml2YXRlTGFiZWwzLTIwNDgt
MTU1MB0GA1UdDgQWBBQRfV4ZfTwE32ps1qKKGj8x2DuUUjAxBgNVHR8EKjAoMCagJKAihiBo
dHRwOi8vY3JsLnZlcmlzaWduLmNvbS9wY2ExLmNybDANBgkqhkiG9w0BAQUFAAOBgQA8o9oC
YzrEk6qrctPcrVA4HgyeFkqIt+7r2f8PjZWg1rv6aguuYYTYaEeJ70+ssh9JQZtJM3aTi55u
uUMcYL3C3Ioth8FFwBFyBBprJCpsb+f8BxMp0Hc6I+f1wYVoGb/GAVQgGa41gsxiPGEJxvTV
67APpp8zhZrTcY5Qj5ndYjCCBUgwggQwoAMCAQICEGsvRR4FBOrCcrIP3UFx82MwDQYJKoZI
hvcNAQEFBQAwgd0xCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEfMB0G
A1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazE7MDkGA1UECxMyVGVybXMgb2YgdXNlIGF0
IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9ycGEgKGMpMDUxHjAcBgNVBAsTFVBlcnNvbmEg
Tm90IFZhbGlkYXRlZDE3MDUGA1UEAxMuVmVyaVNpZ24gQ2xhc3MgMSBJbmRpdmlkdWFsIFN1
YnNjcmliZXIgQ0EgLSBHMjAeFw0xMDAxMTUwMDAwMDBaFw0xMTAxMTUyMzU5NTlaMIIBETEX
MBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0IE5ldHdv
cmsxRjBEBgNVBAsTPXd3dy52ZXJpc2lnbi5jb20vcmVwb3NpdG9yeS9SUEEgSW5jb3JwLiBi
eSBSZWYuLExJQUIuTFREKGMpOTgxHjAcBgNVBAsTFVBlcnNvbmEgTm90IFZhbGlkYXRlZDEz
MDEGA1UECxMqRGlnaXRhbCBJRCBDbGFzcyAxIC0gTmV0c2NhcGUgRnVsbCBTZXJ2aWNlMRUw
EwYDVQQDFAxQaW90ciBTaXBpa2ExITAfBgkqhkiG9w0BCQEWEnBzaXBpa2FAY2VuZ2VuLmNv
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPJGTBjKXfHCEPlv7Vj7EFvU9k/A
MnvQsivYs5/fdyeup5G4eR+vtppFCovT4/hS0j4jxLPBRuWQTe7oAN9rAlAMguhw3Bx31ml1
tkW2zyaWFx/9hig9R3E166cyQ0wvxMGh47v/L//QqYZlfhzh2CPAcsNi+mAGMDIyvomho4xS
I3lIuRUcZ5oUmc1mbexeQdM24jrS+zzuMKhZHO/15XM/8gxcBvDFM9GQG0wOg2SsCbdCAs4O
wI6RYDUkGmct2GKuESJCPpxYI9IY9svCa87Lyfjge5/XSzMfxRlMXMwF16RbJg1K/1PBGfEb
JHx5A769gVtk2hi8wU6aaHNKeccCAwEAAaOBzDCByTAJBgNVHRMEAjAAMEQGA1UdIAQ9MDsw
OQYLYIZIAYb4RQEHFwEwKjAoBggrBgEFBQcCARYcaHR0cHM6Ly93d3cudmVyaXNpZ24uY29t
L3JwYTALBgNVHQ8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwQGCCsGAQUFBwMCMEoGA1Ud
HwRDMEEwP6A9oDuGOWh0dHA6Ly9JbmRDMURpZ2l0YWxJRC1jcmwudmVyaXNpZ24uY29tL0lu
ZEMxRGlnaXRhbElELmNybDANBgkqhkiG9w0BAQUFAAOCAQEAR7cHSlfopikknXNE6bg0WtYV
pYGZdOjuEOSGKR2i3nXqWobn4ziCz1MXaNMume6+R41lTGp8vavoSIvuqBPCMopbsPssN5Bw
KutTUrmA1NA1Srw1z8I2KyknrYF673ouEQwSeGbIwMPlAAsKcPwigZ4l8DcEnvOtwtsR4Hum
Px+dgaNJQcVt9SoozRNS2MR0x1zYxuvtt04IsvDMpSZMw5vZMwbIiLRrOifI1dZx+mLcZXY5
bdvfkjN05/UZsOaok6GEm0MG7zGMlWsWxvirm0AjEl8sv9iinTWdOUa8bA+SfCqdLj+MOuqe
jL535Ct7vhKj3/Z96H0sH7tUa1RXSDCCBUgwggQwoAMCAQICEGsvRR4FBOrCcrIP3UFx82Mw
DQYJKoZIhvcNAQEFBQAwgd0xCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5j
LjEfMB0GA1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazE7MDkGA1UECxMyVGVybXMgb2Yg
dXNlIGF0IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9ycGEgKGMpMDUxHjAcBgNVBAsTFVBl
cnNvbmEgTm90IFZhbGlkYXRlZDE3MDUGA1UEAxMuVmVyaVNpZ24gQ2xhc3MgMSBJbmRpdmlk
dWFsIFN1YnNjcmliZXIgQ0EgLSBHMjAeFw0xMDAxMTUwMDAwMDBaFw0xMTAxMTUyMzU5NTla
MIIBETEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0
IE5ldHdvcmsxRjBEBgNVBAsTPXd3dy52ZXJpc2lnbi5jb20vcmVwb3NpdG9yeS9SUEEgSW5j
b3JwLiBieSBSZWYuLExJQUIuTFREKGMpOTgxHjAcBgNVBAsTFVBlcnNvbmEgTm90IFZhbGlk
YXRlZDEzMDEGA1UECxMqRGlnaXRhbCBJRCBDbGFzcyAxIC0gTmV0c2NhcGUgRnVsbCBTZXJ2
aWNlMRUwEwYDVQQDFAxQaW90ciBTaXBpa2ExITAfBgkqhkiG9w0BCQEWEnBzaXBpa2FAY2Vu
Z2VuLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPJGTBjKXfHCEPlv7Vj7
EFvU9k/AMnvQsivYs5/fdyeup5G4eR+vtppFCovT4/hS0j4jxLPBRuWQTe7oAN9rAlAMguhw
3Bx31ml1tkW2zyaWFx/9hig9R3E166cyQ0wvxMGh47v/L//QqYZlfhzh2CPAcsNi+mAGMDIy
vomho4xSI3lIuRUcZ5oUmc1mbexeQdM24jrS+zzuMKhZHO/15XM/8gxcBvDFM9GQG0wOg2Ss
CbdCAs4OwI6RYDUkGmct2GKuESJCPpxYI9IY9svCa87Lyfjge5/XSzMfxRlMXMwF16RbJg1K
/1PBGfEbJHx5A769gVtk2hi8wU6aaHNKeccCAwEAAaOBzDCByTAJBgNVHRMEAjAAMEQGA1Ud
IAQ9MDswOQYLYIZIAYb4RQEHFwEwKjAoBggrBgEFBQcCARYcaHR0cHM6Ly93d3cudmVyaXNp
Z24uY29tL3JwYTALBgNVHQ8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwQGCCsGAQUFBwMC
MEoGA1UdHwRDMEEwP6A9oDuGOWh0dHA6Ly9JbmRDMURpZ2l0YWxJRC1jcmwudmVyaXNpZ24u
Y29tL0luZEMxRGlnaXRhbElELmNybDANBgkqhkiG9w0BAQUFAAOCAQEAR7cHSlfopikknXNE
6bg0WtYVpYGZdOjuEOSGKR2i3nXqWobn4ziCz1MXaNMume6+R41lTGp8vavoSIvuqBPCMopb
sPssN5BwKutTUrmA1NA1Srw1z8I2KyknrYF673ouEQwSeGbIwMPlAAsKcPwigZ4l8DcEnvOt
wtsR4HumPx+dgaNJQcVt9SoozRNS2MR0x1zYxuvtt04IsvDMpSZMw5vZMwbIiLRrOifI1dZx
+mLcZXY5bdvfkjN05/UZsOaok6GEm0MG7zGMlWsWxvirm0AjEl8sv9iinTWdOUa8bA+SfCqd
Lj+MOuqejL535Ct7vhKj3/Z96H0sH7tUa1RXSDGCBOwwggToAgEBMIHyMIHdMQswCQYDVQQG
EwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0
IE5ldHdvcmsxOzA5BgNVBAsTMlRlcm1zIG9mIHVzZSBhdCBodHRwczovL3d3dy52ZXJpc2ln
bi5jb20vcnBhIChjKTA1MR4wHAYDVQQLExVQZXJzb25hIE5vdCBWYWxpZGF0ZWQxNzA1BgNV
BAMTLlZlcmlTaWduIENsYXNzIDEgSW5kaXZpZHVhbCBTdWJzY3JpYmVyIENBIC0gRzICEGsv
RR4FBOrCcrIP3UFx82MwCQYFKw4DAhoFAKCCAs4wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEH
ATAcBgkqhkiG9w0BCQUxDxcNMTAwMTI2MTQ0MTIyWjAjBgkqhkiG9w0BCQQxFgQUD2lTon3e
qamIbXQLHP7JR+41MMkwXwYJKoZIhvcNAQkPMVIwUDALBglghkgBZQMEAQIwCgYIKoZIhvcN
AwcwDgYIKoZIhvcNAwICAgCAMA0GCCqGSIb3DQMCAgFAMAcGBSsOAwIHMA0GCCqGSIb3DQMC
AgEoMIIBAwYJKwYBBAGCNxAEMYH1MIHyMIHdMQswCQYDVQQGEwJVUzEXMBUGA1UEChMOVmVy
aVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0IE5ldHdvcmsxOzA5BgNVBAsT
MlRlcm1zIG9mIHVzZSBhdCBodHRwczovL3d3dy52ZXJpc2lnbi5jb20vcnBhIChjKTA1MR4w
HAYDVQQLExVQZXJzb25hIE5vdCBWYWxpZGF0ZWQxNzA1BgNVBAMTLlZlcmlTaWduIENsYXNz
IDEgSW5kaXZpZHVhbCBTdWJzY3JpYmVyIENBIC0gRzICEGsvRR4FBOrCcrIP3UFx82MwggEF
BgsqhkiG9w0BCRACCzGB9aCB8jCB3TELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWdu
LCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTswOQYDVQQLEzJUZXJt
cyBvZiB1c2UgYXQgaHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL3JwYSAoYykwNTEeMBwGA1UE
CxMVUGVyc29uYSBOb3QgVmFsaWRhdGVkMTcwNQYDVQQDEy5WZXJpU2lnbiBDbGFzcyAxIElu
ZGl2aWR1YWwgU3Vic2NyaWJlciBDQSAtIEcyAhBrL0UeBQTqwnKyD91BcfNjMA0GCSqGSIb3
DQEBAQUABIIBAIv+2iFLI+VNE4Aym/X8/kdxjU0M0KhKAFJJ1leGzkkFg5oRHqem2BD2gPJf
G7rgzZRJWcfbBpvUtiOTrAtPr3sdrr/CGwgixEWXcC3fP80ozQYn67PlOmV4SEWpQAEOhF4D
0oLnkygvAbU9piadV3J2K5KHXBHqf+YRwsrvnvwfSRJvDPepU0RXpdustTbodqon3H5XSfxO
QsPO6wszDMZ7o0j6vo6Arqwu9AwSimT3oZv0wWz6eklztAElWXmXtqu4Za/M+dq78LuwnKPd
mN5tVZNofs9pQ6PscU36HHQ2zu7tGYdv07C7CN1KNT1UuL+JKAC2mmAjrNMZAAFu6uQAAAAA
AAA=
--------------ms020205010403050406030707--


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

--===============2102073665==--

From libssh2-devel-bounces@cool.haxx.se  Tue Jan 26 17:34:34 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QGYTVS026193;
	Tue, 26 Jan 2010 17:34:32 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0QGYSdj026190
	for <libssh2-devel@cool.haxx.se>; Tue, 26 Jan 2010 17:34:28 +0100
Received: (qmail 29099 invoked by uid 501); 26 Jan 2010 16:34:29 -0000
Message-ID: <20100126163429.29098.qmail@stuge.se>
Date: Tue, 26 Jan 2010 17:34:29 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: [PATCH] Fix trace context lookup in libssh2_debug()
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <638889E2-58D6-4EB4-AD23-3FB6F52522B0@intersystems.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <638889E2-58D6-4EB4-AD23-3FB6F52522B0@intersystems.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Dave McCaldon wrote:

I fixed up the commit message (please limit line length so that git
log doesn't have to wrap lines) and pushed the patch.


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

From libssh2-devel-bounces@cool.haxx.se  Tue Jan 26 17:36:46 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QGaZvG027606;
	Tue, 26 Jan 2010 17:36:37 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0QGaYdh027600
	for <libssh2-devel@cool.haxx.se>; Tue, 26 Jan 2010 17:36:34 +0100
Received: (qmail 29523 invoked by uid 501); 26 Jan 2010 16:36:35 -0000
Message-ID: <20100126163635.29522.qmail@stuge.se>
Date: Tue, 26 Jan 2010 17:36:35 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: [libssh2] Tunnelling using libssh2
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <4B5EFF12.1080400@cengen.com>
MIME-Version: 1.0
In-Reply-To: <4B5EFF12.1080400@cengen.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1410714660=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


--===============1410714660==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="ZInfyf7laFu/Kiw7"
Content-Disposition: inline


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

Piotr Sipika wrote:
> I'm trying to execute a command on the remote host which uses
> stdin/stdout as its input/output sources.

Okey - but this doesn't really have anything to do with tunneling?


> Currently, after calling libssh2_channel_exec(), I am only able to
> read the output (stdout) of the command from the channel. Is there
> a way for me to also write to the channel (to the command's stdin),
> having issued the libssh2_channel_exec() call?

What happens when you call libssh2_channel_write() ?


//Peter

--ZInfyf7laFu/Kiw7
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFLXxoThR3Q0dhIfEgRAqBGAKDWOiQRXI0cwBxg1OSA4ZAiGbhl7wCfWHv/
pZRQF5Vqxi1ZxY08vVBDjcU=
=KbqR
-----END PGP SIGNATURE-----

--ZInfyf7laFu/Kiw7--

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

--===============1410714660==--

From libssh2-devel-bounces@cool.haxx.se  Tue Jan 26 18:29:09 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QHT0Sw001441;
	Tue, 26 Jan 2010 18:29:06 +0100
Received: from mail.intersystems.com (mail.intersys.COM [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QHSvoG001416
	for <libssh2-devel@cool.haxx.se>; Tue, 26 Jan 2010 18:28:58 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: [PATCH] Fix trace context lookup in libssh2_debug()
From: Dave McCaldon <davem@intersystems.com>
In-Reply-To: <20100126163429.29098.qmail@stuge.se>
Date: Tue, 26 Jan 2010 12:28:51 -0500
Message-Id: <ECEB38FD-2B14-43FA-B1AE-1BBA6FF6312E@intersystems.com>
References: <638889E2-58D6-4EB4-AD23-3FB6F52522B0@intersystems.com>
	<20100126163429.29098.qmail@stuge.se>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


On Jan 26, 2010, at 11:34 AM, Peter Stuge wrote:

> I fixed up the commit message (please limit line length so that git
> log doesn't have to wrap lines) and pushed the patch.


Do you know if the password/kbd-int fix to userauth.c made it?

Thanks!!!

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

From libssh2-devel-bounces@cool.haxx.se  Tue Jan 26 18:29:15 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QHTDuv001557;
	Tue, 26 Jan 2010 18:29:14 +0100
Received: from cengen.atlanticasp.com (cengen.atlanticasp.com [38.119.104.215])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QHTBYN001540
	for <libssh2-devel@cool.haxx.se>; Tue, 26 Jan 2010 18:29:11 +0100
Received: from [192.168.70.13] ([24.89.138.170]) by cengen.com with MailEnable
	ESMTP; Tue, 26 Jan 2010 12:29:08 -0500
Message-ID: <4B5F2640.5030202@cengen.com>
Date: Tue, 26 Jan 2010 12:28:32 -0500
From: Piotr Sipika <psipika@cengen.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Thunderbird/3.0.1
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: Re: [libssh2] Tunnelling using libssh2
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0094125493=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

This is a cryptographically signed message in MIME format.

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

This is a cryptographically signed message in MIME format.

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

 > What happens when you call libssh2_channel_write() ?
I get a return value with the number of bytes written, but it is as if=20
the input is never received.

In other words, if I specify a command like: touch /tmp/foo.txt, my app=20
will execute it, but when I then use libssh2_channel_write() to send 'rm =

/tmp/foo.txt', the file is still there...

Thanks,
P


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

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIO4jCC
BEYwggOvoAMCAQICEGb9R+PCGeToms2Z3fU6yyQwDQYJKoZIhvcNAQEFBQAwXzELMAkGA1UE
BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAxIFB1Ymxp
YyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA1MTAyODAwMDAwMFoXDTE1
MTAyNzIzNTk1OVowgd0xCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEf
MB0GA1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazE7MDkGA1UECxMyVGVybXMgb2YgdXNl
IGF0IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9ycGEgKGMpMDUxHjAcBgNVBAsTFVBlcnNv
bmEgTm90IFZhbGlkYXRlZDE3MDUGA1UEAxMuVmVyaVNpZ24gQ2xhc3MgMSBJbmRpdmlkdWFs
IFN1YnNjcmliZXIgQ0EgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMnf
rOfq+PgDFMQAktXBfjbCPO98chXLwKuMPRyVzm8eECw/AO2XJua2x+atQx0/pIdHR0w+VPhs
+Mf8sZ69MHC8l7EDBeqV8a1AxUR6SwWi8mD81zplYu//EHuiVrvFTnAt1qIfPO2wQuhejVch
rKaZ2RHp0hoHwHRHQgv8xTTq/ea6JNEdCBU3otdzzwFBL2OyOj++pRpu9MlKWz2VphW7NQIZ
+dTvvI8OcXZZu0u2Ptb8Whb01g6J8kn+bAztFenZiHWcec5gJ925rXXOL3OVekA6hXVJsLjf
aLyrzROChRFQo+A8C67AClPN1zBvhTJGG+RJEMJs4q8fef/btLUCAwEAAaOB/zCB/DASBgNV
HRMBAf8ECDAGAQH/AgEAMEQGA1UdIAQ9MDswOQYLYIZIAYb4RQEHFwEwKjAoBggrBgEFBQcC
ARYcaHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL3JwYTALBgNVHQ8EBAMCAQYwEQYJYIZIAYb4
QgEBBAQDAgEGMC4GA1UdEQQnMCWkIzAhMR8wHQYDVQQDExZQcml2YXRlTGFiZWwzLTIwNDgt
MTU1MB0GA1UdDgQWBBQRfV4ZfTwE32ps1qKKGj8x2DuUUjAxBgNVHR8EKjAoMCagJKAihiBo
dHRwOi8vY3JsLnZlcmlzaWduLmNvbS9wY2ExLmNybDANBgkqhkiG9w0BAQUFAAOBgQA8o9oC
YzrEk6qrctPcrVA4HgyeFkqIt+7r2f8PjZWg1rv6aguuYYTYaEeJ70+ssh9JQZtJM3aTi55u
uUMcYL3C3Ioth8FFwBFyBBprJCpsb+f8BxMp0Hc6I+f1wYVoGb/GAVQgGa41gsxiPGEJxvTV
67APpp8zhZrTcY5Qj5ndYjCCBUgwggQwoAMCAQICEGsvRR4FBOrCcrIP3UFx82MwDQYJKoZI
hvcNAQEFBQAwgd0xCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEfMB0G
A1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazE7MDkGA1UECxMyVGVybXMgb2YgdXNlIGF0
IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9ycGEgKGMpMDUxHjAcBgNVBAsTFVBlcnNvbmEg
Tm90IFZhbGlkYXRlZDE3MDUGA1UEAxMuVmVyaVNpZ24gQ2xhc3MgMSBJbmRpdmlkdWFsIFN1
YnNjcmliZXIgQ0EgLSBHMjAeFw0xMDAxMTUwMDAwMDBaFw0xMTAxMTUyMzU5NTlaMIIBETEX
MBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0IE5ldHdv
cmsxRjBEBgNVBAsTPXd3dy52ZXJpc2lnbi5jb20vcmVwb3NpdG9yeS9SUEEgSW5jb3JwLiBi
eSBSZWYuLExJQUIuTFREKGMpOTgxHjAcBgNVBAsTFVBlcnNvbmEgTm90IFZhbGlkYXRlZDEz
MDEGA1UECxMqRGlnaXRhbCBJRCBDbGFzcyAxIC0gTmV0c2NhcGUgRnVsbCBTZXJ2aWNlMRUw
EwYDVQQDFAxQaW90ciBTaXBpa2ExITAfBgkqhkiG9w0BCQEWEnBzaXBpa2FAY2VuZ2VuLmNv
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPJGTBjKXfHCEPlv7Vj7EFvU9k/A
MnvQsivYs5/fdyeup5G4eR+vtppFCovT4/hS0j4jxLPBRuWQTe7oAN9rAlAMguhw3Bx31ml1
tkW2zyaWFx/9hig9R3E166cyQ0wvxMGh47v/L//QqYZlfhzh2CPAcsNi+mAGMDIyvomho4xS
I3lIuRUcZ5oUmc1mbexeQdM24jrS+zzuMKhZHO/15XM/8gxcBvDFM9GQG0wOg2SsCbdCAs4O
wI6RYDUkGmct2GKuESJCPpxYI9IY9svCa87Lyfjge5/XSzMfxRlMXMwF16RbJg1K/1PBGfEb
JHx5A769gVtk2hi8wU6aaHNKeccCAwEAAaOBzDCByTAJBgNVHRMEAjAAMEQGA1UdIAQ9MDsw
OQYLYIZIAYb4RQEHFwEwKjAoBggrBgEFBQcCARYcaHR0cHM6Ly93d3cudmVyaXNpZ24uY29t
L3JwYTALBgNVHQ8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwQGCCsGAQUFBwMCMEoGA1Ud
HwRDMEEwP6A9oDuGOWh0dHA6Ly9JbmRDMURpZ2l0YWxJRC1jcmwudmVyaXNpZ24uY29tL0lu
ZEMxRGlnaXRhbElELmNybDANBgkqhkiG9w0BAQUFAAOCAQEAR7cHSlfopikknXNE6bg0WtYV
pYGZdOjuEOSGKR2i3nXqWobn4ziCz1MXaNMume6+R41lTGp8vavoSIvuqBPCMopbsPssN5Bw
KutTUrmA1NA1Srw1z8I2KyknrYF673ouEQwSeGbIwMPlAAsKcPwigZ4l8DcEnvOtwtsR4Hum
Px+dgaNJQcVt9SoozRNS2MR0x1zYxuvtt04IsvDMpSZMw5vZMwbIiLRrOifI1dZx+mLcZXY5
bdvfkjN05/UZsOaok6GEm0MG7zGMlWsWxvirm0AjEl8sv9iinTWdOUa8bA+SfCqdLj+MOuqe
jL535Ct7vhKj3/Z96H0sH7tUa1RXSDCCBUgwggQwoAMCAQICEGsvRR4FBOrCcrIP3UFx82Mw
DQYJKoZIhvcNAQEFBQAwgd0xCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5j
LjEfMB0GA1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazE7MDkGA1UECxMyVGVybXMgb2Yg
dXNlIGF0IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9ycGEgKGMpMDUxHjAcBgNVBAsTFVBl
cnNvbmEgTm90IFZhbGlkYXRlZDE3MDUGA1UEAxMuVmVyaVNpZ24gQ2xhc3MgMSBJbmRpdmlk
dWFsIFN1YnNjcmliZXIgQ0EgLSBHMjAeFw0xMDAxMTUwMDAwMDBaFw0xMTAxMTUyMzU5NTla
MIIBETEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0
IE5ldHdvcmsxRjBEBgNVBAsTPXd3dy52ZXJpc2lnbi5jb20vcmVwb3NpdG9yeS9SUEEgSW5j
b3JwLiBieSBSZWYuLExJQUIuTFREKGMpOTgxHjAcBgNVBAsTFVBlcnNvbmEgTm90IFZhbGlk
YXRlZDEzMDEGA1UECxMqRGlnaXRhbCBJRCBDbGFzcyAxIC0gTmV0c2NhcGUgRnVsbCBTZXJ2
aWNlMRUwEwYDVQQDFAxQaW90ciBTaXBpa2ExITAfBgkqhkiG9w0BCQEWEnBzaXBpa2FAY2Vu
Z2VuLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPJGTBjKXfHCEPlv7Vj7
EFvU9k/AMnvQsivYs5/fdyeup5G4eR+vtppFCovT4/hS0j4jxLPBRuWQTe7oAN9rAlAMguhw
3Bx31ml1tkW2zyaWFx/9hig9R3E166cyQ0wvxMGh47v/L//QqYZlfhzh2CPAcsNi+mAGMDIy
vomho4xSI3lIuRUcZ5oUmc1mbexeQdM24jrS+zzuMKhZHO/15XM/8gxcBvDFM9GQG0wOg2Ss
CbdCAs4OwI6RYDUkGmct2GKuESJCPpxYI9IY9svCa87Lyfjge5/XSzMfxRlMXMwF16RbJg1K
/1PBGfEbJHx5A769gVtk2hi8wU6aaHNKeccCAwEAAaOBzDCByTAJBgNVHRMEAjAAMEQGA1Ud
IAQ9MDswOQYLYIZIAYb4RQEHFwEwKjAoBggrBgEFBQcCARYcaHR0cHM6Ly93d3cudmVyaXNp
Z24uY29tL3JwYTALBgNVHQ8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwQGCCsGAQUFBwMC
MEoGA1UdHwRDMEEwP6A9oDuGOWh0dHA6Ly9JbmRDMURpZ2l0YWxJRC1jcmwudmVyaXNpZ24u
Y29tL0luZEMxRGlnaXRhbElELmNybDANBgkqhkiG9w0BAQUFAAOCAQEAR7cHSlfopikknXNE
6bg0WtYVpYGZdOjuEOSGKR2i3nXqWobn4ziCz1MXaNMume6+R41lTGp8vavoSIvuqBPCMopb
sPssN5BwKutTUrmA1NA1Srw1z8I2KyknrYF673ouEQwSeGbIwMPlAAsKcPwigZ4l8DcEnvOt
wtsR4HumPx+dgaNJQcVt9SoozRNS2MR0x1zYxuvtt04IsvDMpSZMw5vZMwbIiLRrOifI1dZx
+mLcZXY5bdvfkjN05/UZsOaok6GEm0MG7zGMlWsWxvirm0AjEl8sv9iinTWdOUa8bA+SfCqd
Lj+MOuqejL535Ct7vhKj3/Z96H0sH7tUa1RXSDGCBOwwggToAgEBMIHyMIHdMQswCQYDVQQG
EwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0
IE5ldHdvcmsxOzA5BgNVBAsTMlRlcm1zIG9mIHVzZSBhdCBodHRwczovL3d3dy52ZXJpc2ln
bi5jb20vcnBhIChjKTA1MR4wHAYDVQQLExVQZXJzb25hIE5vdCBWYWxpZGF0ZWQxNzA1BgNV
BAMTLlZlcmlTaWduIENsYXNzIDEgSW5kaXZpZHVhbCBTdWJzY3JpYmVyIENBIC0gRzICEGsv
RR4FBOrCcrIP3UFx82MwCQYFKw4DAhoFAKCCAs4wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEH
ATAcBgkqhkiG9w0BCQUxDxcNMTAwMTI2MTcyODMyWjAjBgkqhkiG9w0BCQQxFgQUA9mS+/Sk
J6GPshNt4ULYuc8d9zYwXwYJKoZIhvcNAQkPMVIwUDALBglghkgBZQMEAQIwCgYIKoZIhvcN
AwcwDgYIKoZIhvcNAwICAgCAMA0GCCqGSIb3DQMCAgFAMAcGBSsOAwIHMA0GCCqGSIb3DQMC
AgEoMIIBAwYJKwYBBAGCNxAEMYH1MIHyMIHdMQswCQYDVQQGEwJVUzEXMBUGA1UEChMOVmVy
aVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0IE5ldHdvcmsxOzA5BgNVBAsT
MlRlcm1zIG9mIHVzZSBhdCBodHRwczovL3d3dy52ZXJpc2lnbi5jb20vcnBhIChjKTA1MR4w
HAYDVQQLExVQZXJzb25hIE5vdCBWYWxpZGF0ZWQxNzA1BgNVBAMTLlZlcmlTaWduIENsYXNz
IDEgSW5kaXZpZHVhbCBTdWJzY3JpYmVyIENBIC0gRzICEGsvRR4FBOrCcrIP3UFx82MwggEF
BgsqhkiG9w0BCRACCzGB9aCB8jCB3TELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWdu
LCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTswOQYDVQQLEzJUZXJt
cyBvZiB1c2UgYXQgaHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL3JwYSAoYykwNTEeMBwGA1UE
CxMVUGVyc29uYSBOb3QgVmFsaWRhdGVkMTcwNQYDVQQDEy5WZXJpU2lnbiBDbGFzcyAxIElu
ZGl2aWR1YWwgU3Vic2NyaWJlciBDQSAtIEcyAhBrL0UeBQTqwnKyD91BcfNjMA0GCSqGSIb3
DQEBAQUABIIBAMZci+UZpee2WDqP9Xxjv27Mg1lgvYfVQ3c4Fb28LokjukVeggBtk3sEc8wz
GWGd+fdjnIvIaK5bn38dzRGP+xKHKjeGzi066zklbfsvjo4cWOoH/X7MwDYDdxtatY5YaXI7
ODN5GgnFSSyT+8LvkAKY30TPSOD7DhNZx/Jlq7PkdHCw9X4LvCCqXQz/Ogr613XI2Wwd137y
3De2gmtp/0i2E/ea5ieBMonySTJohNXr++unbu6OJRNplgBCbljYG/om78HzyVyruIL7bGAE
z86dYSLyXRe64J5/sCz9WRzEVDcm8xF4LMSocEd5TIGfzLrTLq/9Bb//QBlaJiQEpZAAAAAA
AAA=
--------------ms070402040501010704040909--


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

--===============0094125493==--

From libssh2-devel-bounces@cool.haxx.se  Tue Jan 26 18:36:08 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QHa3Ja004379;
	Tue, 26 Jan 2010 18:36:06 +0100
Received: from mail.intersystems.com (mail.intersys.COM [198.133.74.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QHa2iq004294
	for <libssh2-devel@cool.haxx.se>; Tue, 26 Jan 2010 18:36:02 +0100
X-InterSystems: Sent from InterSystems
X-InterSystems: Sent from InterSystems
Mime-Version: 1.0 (Apple Message framework v1077)
Subject: Re: [PATCH] Fix trace context lookup in libssh2_debug()
From: Dave McCaldon <davem@intersystems.com>
In-Reply-To: <ECEB38FD-2B14-43FA-B1AE-1BBA6FF6312E@intersystems.com>
Date: Tue, 26 Jan 2010 12:35:57 -0500
Message-Id: <26BBB545-95FD-4DA6-8BAF-99926888A612@intersystems.com>
References: <638889E2-58D6-4EB4-AD23-3FB6F52522B0@intersystems.com>
	<20100126163429.29098.qmail@stuge.se>
	<ECEB38FD-2B14-43FA-B1AE-1BBA6FF6312E@intersystems.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.1077)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


On Jan 26, 2010, at 12:28 PM, Dave McCaldon wrote:
> Do you know if the password/kbd-int fix to userauth.c made it?

I think I take this back, I saw something about it not needing to apply the patch when I did a "git pull --rebase"

Thanks!

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

From libssh2-devel-bounces@cool.haxx.se  Tue Jan 26 20:32:48 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QJWa4u015802;
	Tue, 26 Jan 2010 20:32:44 +0100
Received: from cengen.atlanticasp.com (cengen.atlanticasp.com [38.119.104.215])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QJWWoI015794
	for <libssh2-devel@cool.haxx.se>; Tue, 26 Jan 2010 20:32:34 +0100
Received: from [192.168.70.13] ([24.89.138.170]) by cengen.com with MailEnable
	ESMTP; Tue, 26 Jan 2010 14:32:30 -0500
Message-ID: <4B5F4329.3010104@cengen.com>
Date: Tue, 26 Jan 2010 14:31:53 -0500
From: Piotr Sipika <psipika@cengen.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US;
	rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Thunderbird/3.0.1
MIME-Version: 1.0
To: libssh2-devel@cool.haxx.se
Subject: Re: [libssh2] Tunnelling using libssh2
References: <4B5F2640.5030202@cengen.com>
In-Reply-To: <4B5F2640.5030202@cengen.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1287402726=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

This is a cryptographically signed message in MIME format.

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

This is a cryptographically signed message in MIME format.

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

It would appear that after libssh2_channel_exec() completes, the channel =

gets destroyed. I created another one and opened up a shell on it to=20
issue the second command -- that worked.

It seems I'm basically in the same boat as the author of the 'multiple=20
exec calls' post.

Thanks,
P


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

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIO4jCC
BEYwggOvoAMCAQICEGb9R+PCGeToms2Z3fU6yyQwDQYJKoZIhvcNAQEFBQAwXzELMAkGA1UE
BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAxIFB1Ymxp
YyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA1MTAyODAwMDAwMFoXDTE1
MTAyNzIzNTk1OVowgd0xCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEf
MB0GA1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazE7MDkGA1UECxMyVGVybXMgb2YgdXNl
IGF0IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9ycGEgKGMpMDUxHjAcBgNVBAsTFVBlcnNv
bmEgTm90IFZhbGlkYXRlZDE3MDUGA1UEAxMuVmVyaVNpZ24gQ2xhc3MgMSBJbmRpdmlkdWFs
IFN1YnNjcmliZXIgQ0EgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMnf
rOfq+PgDFMQAktXBfjbCPO98chXLwKuMPRyVzm8eECw/AO2XJua2x+atQx0/pIdHR0w+VPhs
+Mf8sZ69MHC8l7EDBeqV8a1AxUR6SwWi8mD81zplYu//EHuiVrvFTnAt1qIfPO2wQuhejVch
rKaZ2RHp0hoHwHRHQgv8xTTq/ea6JNEdCBU3otdzzwFBL2OyOj++pRpu9MlKWz2VphW7NQIZ
+dTvvI8OcXZZu0u2Ptb8Whb01g6J8kn+bAztFenZiHWcec5gJ925rXXOL3OVekA6hXVJsLjf
aLyrzROChRFQo+A8C67AClPN1zBvhTJGG+RJEMJs4q8fef/btLUCAwEAAaOB/zCB/DASBgNV
HRMBAf8ECDAGAQH/AgEAMEQGA1UdIAQ9MDswOQYLYIZIAYb4RQEHFwEwKjAoBggrBgEFBQcC
ARYcaHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL3JwYTALBgNVHQ8EBAMCAQYwEQYJYIZIAYb4
QgEBBAQDAgEGMC4GA1UdEQQnMCWkIzAhMR8wHQYDVQQDExZQcml2YXRlTGFiZWwzLTIwNDgt
MTU1MB0GA1UdDgQWBBQRfV4ZfTwE32ps1qKKGj8x2DuUUjAxBgNVHR8EKjAoMCagJKAihiBo
dHRwOi8vY3JsLnZlcmlzaWduLmNvbS9wY2ExLmNybDANBgkqhkiG9w0BAQUFAAOBgQA8o9oC
YzrEk6qrctPcrVA4HgyeFkqIt+7r2f8PjZWg1rv6aguuYYTYaEeJ70+ssh9JQZtJM3aTi55u
uUMcYL3C3Ioth8FFwBFyBBprJCpsb+f8BxMp0Hc6I+f1wYVoGb/GAVQgGa41gsxiPGEJxvTV
67APpp8zhZrTcY5Qj5ndYjCCBUgwggQwoAMCAQICEGsvRR4FBOrCcrIP3UFx82MwDQYJKoZI
hvcNAQEFBQAwgd0xCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjEfMB0G
A1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazE7MDkGA1UECxMyVGVybXMgb2YgdXNlIGF0
IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9ycGEgKGMpMDUxHjAcBgNVBAsTFVBlcnNvbmEg
Tm90IFZhbGlkYXRlZDE3MDUGA1UEAxMuVmVyaVNpZ24gQ2xhc3MgMSBJbmRpdmlkdWFsIFN1
YnNjcmliZXIgQ0EgLSBHMjAeFw0xMDAxMTUwMDAwMDBaFw0xMTAxMTUyMzU5NTlaMIIBETEX
MBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0IE5ldHdv
cmsxRjBEBgNVBAsTPXd3dy52ZXJpc2lnbi5jb20vcmVwb3NpdG9yeS9SUEEgSW5jb3JwLiBi
eSBSZWYuLExJQUIuTFREKGMpOTgxHjAcBgNVBAsTFVBlcnNvbmEgTm90IFZhbGlkYXRlZDEz
MDEGA1UECxMqRGlnaXRhbCBJRCBDbGFzcyAxIC0gTmV0c2NhcGUgRnVsbCBTZXJ2aWNlMRUw
EwYDVQQDFAxQaW90ciBTaXBpa2ExITAfBgkqhkiG9w0BCQEWEnBzaXBpa2FAY2VuZ2VuLmNv
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPJGTBjKXfHCEPlv7Vj7EFvU9k/A
MnvQsivYs5/fdyeup5G4eR+vtppFCovT4/hS0j4jxLPBRuWQTe7oAN9rAlAMguhw3Bx31ml1
tkW2zyaWFx/9hig9R3E166cyQ0wvxMGh47v/L//QqYZlfhzh2CPAcsNi+mAGMDIyvomho4xS
I3lIuRUcZ5oUmc1mbexeQdM24jrS+zzuMKhZHO/15XM/8gxcBvDFM9GQG0wOg2SsCbdCAs4O
wI6RYDUkGmct2GKuESJCPpxYI9IY9svCa87Lyfjge5/XSzMfxRlMXMwF16RbJg1K/1PBGfEb
JHx5A769gVtk2hi8wU6aaHNKeccCAwEAAaOBzDCByTAJBgNVHRMEAjAAMEQGA1UdIAQ9MDsw
OQYLYIZIAYb4RQEHFwEwKjAoBggrBgEFBQcCARYcaHR0cHM6Ly93d3cudmVyaXNpZ24uY29t
L3JwYTALBgNVHQ8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwQGCCsGAQUFBwMCMEoGA1Ud
HwRDMEEwP6A9oDuGOWh0dHA6Ly9JbmRDMURpZ2l0YWxJRC1jcmwudmVyaXNpZ24uY29tL0lu
ZEMxRGlnaXRhbElELmNybDANBgkqhkiG9w0BAQUFAAOCAQEAR7cHSlfopikknXNE6bg0WtYV
pYGZdOjuEOSGKR2i3nXqWobn4ziCz1MXaNMume6+R41lTGp8vavoSIvuqBPCMopbsPssN5Bw
KutTUrmA1NA1Srw1z8I2KyknrYF673ouEQwSeGbIwMPlAAsKcPwigZ4l8DcEnvOtwtsR4Hum
Px+dgaNJQcVt9SoozRNS2MR0x1zYxuvtt04IsvDMpSZMw5vZMwbIiLRrOifI1dZx+mLcZXY5
bdvfkjN05/UZsOaok6GEm0MG7zGMlWsWxvirm0AjEl8sv9iinTWdOUa8bA+SfCqdLj+MOuqe
jL535Ct7vhKj3/Z96H0sH7tUa1RXSDCCBUgwggQwoAMCAQICEGsvRR4FBOrCcrIP3UFx82Mw
DQYJKoZIhvcNAQEFBQAwgd0xCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5j
LjEfMB0GA1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazE7MDkGA1UECxMyVGVybXMgb2Yg
dXNlIGF0IGh0dHBzOi8vd3d3LnZlcmlzaWduLmNvbS9ycGEgKGMpMDUxHjAcBgNVBAsTFVBl
cnNvbmEgTm90IFZhbGlkYXRlZDE3MDUGA1UEAxMuVmVyaVNpZ24gQ2xhc3MgMSBJbmRpdmlk
dWFsIFN1YnNjcmliZXIgQ0EgLSBHMjAeFw0xMDAxMTUwMDAwMDBaFw0xMTAxMTUyMzU5NTla
MIIBETEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0
IE5ldHdvcmsxRjBEBgNVBAsTPXd3dy52ZXJpc2lnbi5jb20vcmVwb3NpdG9yeS9SUEEgSW5j
b3JwLiBieSBSZWYuLExJQUIuTFREKGMpOTgxHjAcBgNVBAsTFVBlcnNvbmEgTm90IFZhbGlk
YXRlZDEzMDEGA1UECxMqRGlnaXRhbCBJRCBDbGFzcyAxIC0gTmV0c2NhcGUgRnVsbCBTZXJ2
aWNlMRUwEwYDVQQDFAxQaW90ciBTaXBpa2ExITAfBgkqhkiG9w0BCQEWEnBzaXBpa2FAY2Vu
Z2VuLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPJGTBjKXfHCEPlv7Vj7
EFvU9k/AMnvQsivYs5/fdyeup5G4eR+vtppFCovT4/hS0j4jxLPBRuWQTe7oAN9rAlAMguhw
3Bx31ml1tkW2zyaWFx/9hig9R3E166cyQ0wvxMGh47v/L//QqYZlfhzh2CPAcsNi+mAGMDIy
vomho4xSI3lIuRUcZ5oUmc1mbexeQdM24jrS+zzuMKhZHO/15XM/8gxcBvDFM9GQG0wOg2Ss
CbdCAs4OwI6RYDUkGmct2GKuESJCPpxYI9IY9svCa87Lyfjge5/XSzMfxRlMXMwF16RbJg1K
/1PBGfEbJHx5A769gVtk2hi8wU6aaHNKeccCAwEAAaOBzDCByTAJBgNVHRMEAjAAMEQGA1Ud
IAQ9MDswOQYLYIZIAYb4RQEHFwEwKjAoBggrBgEFBQcCARYcaHR0cHM6Ly93d3cudmVyaXNp
Z24uY29tL3JwYTALBgNVHQ8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwQGCCsGAQUFBwMC
MEoGA1UdHwRDMEEwP6A9oDuGOWh0dHA6Ly9JbmRDMURpZ2l0YWxJRC1jcmwudmVyaXNpZ24u
Y29tL0luZEMxRGlnaXRhbElELmNybDANBgkqhkiG9w0BAQUFAAOCAQEAR7cHSlfopikknXNE
6bg0WtYVpYGZdOjuEOSGKR2i3nXqWobn4ziCz1MXaNMume6+R41lTGp8vavoSIvuqBPCMopb
sPssN5BwKutTUrmA1NA1Srw1z8I2KyknrYF673ouEQwSeGbIwMPlAAsKcPwigZ4l8DcEnvOt
wtsR4HumPx+dgaNJQcVt9SoozRNS2MR0x1zYxuvtt04IsvDMpSZMw5vZMwbIiLRrOifI1dZx
+mLcZXY5bdvfkjN05/UZsOaok6GEm0MG7zGMlWsWxvirm0AjEl8sv9iinTWdOUa8bA+SfCqd
Lj+MOuqejL535Ct7vhKj3/Z96H0sH7tUa1RXSDGCBOwwggToAgEBMIHyMIHdMQswCQYDVQQG
EwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0
IE5ldHdvcmsxOzA5BgNVBAsTMlRlcm1zIG9mIHVzZSBhdCBodHRwczovL3d3dy52ZXJpc2ln
bi5jb20vcnBhIChjKTA1MR4wHAYDVQQLExVQZXJzb25hIE5vdCBWYWxpZGF0ZWQxNzA1BgNV
BAMTLlZlcmlTaWduIENsYXNzIDEgSW5kaXZpZHVhbCBTdWJzY3JpYmVyIENBIC0gRzICEGsv
RR4FBOrCcrIP3UFx82MwCQYFKw4DAhoFAKCCAs4wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEH
ATAcBgkqhkiG9w0BCQUxDxcNMTAwMTI2MTkzMTUzWjAjBgkqhkiG9w0BCQQxFgQUAxENXJSL
2jlBTe1it8WxtfTS/uswXwYJKoZIhvcNAQkPMVIwUDALBglghkgBZQMEAQIwCgYIKoZIhvcN
AwcwDgYIKoZIhvcNAwICAgCAMA0GCCqGSIb3DQMCAgFAMAcGBSsOAwIHMA0GCCqGSIb3DQMC
AgEoMIIBAwYJKwYBBAGCNxAEMYH1MIHyMIHdMQswCQYDVQQGEwJVUzEXMBUGA1UEChMOVmVy
aVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0IE5ldHdvcmsxOzA5BgNVBAsT
MlRlcm1zIG9mIHVzZSBhdCBodHRwczovL3d3dy52ZXJpc2lnbi5jb20vcnBhIChjKTA1MR4w
HAYDVQQLExVQZXJzb25hIE5vdCBWYWxpZGF0ZWQxNzA1BgNVBAMTLlZlcmlTaWduIENsYXNz
IDEgSW5kaXZpZHVhbCBTdWJzY3JpYmVyIENBIC0gRzICEGsvRR4FBOrCcrIP3UFx82MwggEF
BgsqhkiG9w0BCRACCzGB9aCB8jCB3TELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWdu
LCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTswOQYDVQQLEzJUZXJt
cyBvZiB1c2UgYXQgaHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL3JwYSAoYykwNTEeMBwGA1UE
CxMVUGVyc29uYSBOb3QgVmFsaWRhdGVkMTcwNQYDVQQDEy5WZXJpU2lnbiBDbGFzcyAxIElu
ZGl2aWR1YWwgU3Vic2NyaWJlciBDQSAtIEcyAhBrL0UeBQTqwnKyD91BcfNjMA0GCSqGSIb3
DQEBAQUABIIBAM7m5HEc2AVh+TwYHgusDEEIgF4jA9XZotxRPRhxQrnMd5hCAeHCnQbWf8dT
iEojdlHyoHEpa/GC7akpSmhmIYGM+00PNGX+ONXaR7Fd/iu5C3qSMal6dJSXENXwVPrHEy55
U+e2/0DKdUenkDylPVLVe216ssm32P80lUMOJaECY6uHT4m6uq5vGYaFys6fbHaDTyAL51SE
s77LcXTPJPNvJ38BLA60NZ2uylBBTcXf2ZIAILxvBT1in28zRlsfePushmgQajqxwsZWXwSU
FATvjvMIEhn5Saa+wAHQ9oU02t0+zSv+eJynctBzy+G9FhYz+Kqa9ECf4EPSqxZgeaIAAAAA
AAA=
--------------ms070101010206090002080904--


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

--===============1287402726==--

From libssh2-devel-bounces@cool.haxx.se  Tue Jan 26 20:38:36 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QJcWM5017936;
	Tue, 26 Jan 2010 20:38:34 +0100
Received: from lmailproxy04.edpnet.net (lmailproxy04.edpnet.net [212.71.1.197])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QJcU94017923
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Tue, 26 Jan 2010 20:38:31 +0100
Received: from [192.168.1.17] (213.219.141.101.adsl.dyn.edpnet.net
	[213.219.141.101])
	by lmailproxy04.edpnet.net (8.14.3/8.14.3) with ESMTP id o0QJcPV4023764
	for <libssh2-devel@cool.haxx.se>; Tue, 26 Jan 2010 20:38:25 +0100
Message-ID: <4B5F44B2.80000@0xbadc0de.be>
Date: Tue, 26 Jan 2010 20:38:26 +0100
From: Aris Adamantiadis <aris@0xbadc0de.be>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: [libssh2] Tunnelling using libssh2
References: <4B5F2640.5030202@cengen.com> <4B5F4329.3010104@cengen.com>
In-Reply-To: <4B5F4329.3010104@cengen.com>
X-Virus-Scanned: clamav-milter 0.95.2 at lmailproxy04.edpnet.net
X-Virus-Status: Clean
X-Spam-Status: No, score=0.2 required=5.0 tests=FH_DATE_PAST_20XX,RDNS_NONE
	autolearn=disabled version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
	lmailproxy04.edpnet.net
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hello Piotr,

Just launch "/bin/sh" as command and issue the commands as if they were =

written in a shell script. That works also with perl, python, ... most =

script machines that are installed into the remote host.

Regards,

Aris

Piotr Sipika a =E9crit :
> It would appear that after libssh2_channel_exec() completes, the channel =

> gets destroyed. I created another one and opened up a shell on it to =

> issue the second command -- that worked.
> =

> It seems I'm basically in the same boat as the author of the 'multiple =

> exec calls' post.
> =

> Thanks,
> P
> =

> =

> ------------------------------------------------------------------------
> =

> _______________________________________________
> 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 Jan 26 23:48:26 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QMmCoN015945;
	Tue, 26 Jan 2010 23:48:22 +0100
Received: from web113509.mail.gq1.yahoo.com (web113509.mail.gq1.yahoo.com
	[98.136.167.49])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0QMm9Re015835
	for <libssh2-devel@cool.haxx.se>; Tue, 26 Jan 2010 23:48:10 +0100
Received: (qmail 51221 invoked by uid 60001); 26 Jan 2010 22:46:42 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024;
	t=1264546002; bh=KiewhdyID+JBKKT1OT6PggHJ1q5F+4WpSkKknuB7Eqo=;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type;
	b=RvCPomToeSO9fUHyzihvp+XrEirK//n83BgzY5HbbQe3DvPbrMyd2n1Mewk8qCPB62oERoMWkPilwnvV8ksBGowQEoYEgDji49tzWB8cNQ3ljYBtDsOj3+8DxXMbhcQEA7vvKN8W4dDdQNsbIJz0OKdzDkiNVEcoQLqBkm+yYzE=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type;
	b=R36flmvVbNuXyd+hOEorcVol9OMkymA7bFMA/KhWUhx6LWZQ2ZlbV9flPd+W7WM2VY+O6DtdmwvwZdirUyK3dvzuV/vsDNzUOqLUGlVU5rjs9VaxBSIZXVM6BS/+jgDmT8HYvd5+3P/oNjr2e1JYjPlmjg6FTBOTAJwBnmEwdUE=;
Message-ID: <104278.47478.qm@web113509.mail.gq1.yahoo.com>
X-YMail-OSG: FsqHhvQVM1kyMwEAMY6XzS.8TkgSdd.MFOW_wilxOwt.n08FWQEaLdNmkKpLjjL2PBm3lTr_WNCro5pADacrC.h4FRg9Kz.CGVRV1NaOHz2WetH6twARfy7_N8EKOY5hEhKXYaR8orjZU5TTW2ihCnyQqZL3EbO9ldbObobI1e6lamu1DERD_zfLGCu1ViX4b25SFEGWQ5INRnC.kK0sbLR0JC0Zfi.tQXhRz9pN60XBz1si_E.I27vDzj0QPf7Nh5.UUG_SbK3t9TUc8rkxmRZUwa7kN6QdPJoGtxuJcsSQ3mGHzlJcO2zTibVG8vjW3SEyx0RzIXaaZk5Z4HOx
Received: from [76.191.227.38] by web113509.mail.gq1.yahoo.com via HTTP;
	Tue, 26 Jan 2010 14:46:42 PST
X-Mailer: YahooMailClassic/9.1.10 YahooMailWebService/0.8.100.260964
Date: Tue, 26 Jan 2010 14:46:42 -0800 (PST)
From: Lawson <lawson08@yahoo.com>
Subject: Q. on version numbers
To: libssh2-devel@cool.haxx.se
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi,

I notice that the current stated version is 1.2.2, however when I actually install the library it calls itself libssh2.so.1.0.1.  Is this an oversight or is there a different meaning to the numbers?


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

From libssh2-devel-bounces@cool.haxx.se  Tue Jan 26 23:54:20 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QMs7SB018276;
	Tue, 26 Jan 2010 23:54:10 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0QMs5eK018247
	for <libssh2-devel@cool.haxx.se>; Tue, 26 Jan 2010 23:54:05 +0100
Date: Tue, 26 Jan 2010 23:54:05 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Q. on version numbers
In-Reply-To: <104278.47478.qm@web113509.mail.gq1.yahoo.com>
Message-ID: <alpine.DEB.2.00.1001262353140.17834@tvnag.unkk.fr>
References: <104278.47478.qm@web113509.mail.gq1.yahoo.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Tue, 26 Jan 2010, Lawson wrote:

> I notice that the current stated version is 1.2.2, however when I actually 
> install the library it calls itself libssh2.so.1.0.1.  Is this an oversight 
> or is there a different meaning to the numbers?

Those are two fairly independent numbers. I found a lengthy description that 
seems quite fine:

http://troydhanson.wordpress.com/2009/05/27/dynamic-library-version-numbers/

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 27 05:28:29 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0R4SF32006282;
	Wed, 27 Jan 2010 05:28:24 +0100
Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com
	[209.85.221.182])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0R4SCGv006254
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 05:28:13 +0100
Received: by qyk12 with SMTP id 12so2890739qyk.21
	for <libssh2-devel@cool.haxx.se>; Tue, 26 Jan 2010 20:28:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=2cqd3w42x8G9yej+pHIfXF1GKya0RVWD19Qr+F8F4Kw=;
	b=wSVWK+F4L33k3WRvFFk5nuyABsrg9wF77Uf4n0r5dURPATyDGa+P86lNEDdOura7LK
	x1h4wgQ+pyBmVa2YeM2WCefZYEyiuojPuPe72yOIHQPH0pSnZLYp+IYSel2sKaRt3oCx
	0vpqaADKT+pMQJFPwlfSxUlj7Moyrx5Z2YdsU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=tLMvAiLXCZTZF896W9ViXVR9aOwtu1wyBcY4nlYf6Ev2YpuQxnRlepmVv9FLH+0L5m
	G89ADgRMaWWxfE3ktfzWIhRaIGnnTU5SlRoVbs1YdGlNlad1/i+eWFp/+D3KvsheFnys
	NL3n7nCs2KFx0W0Sp4xnICcyCVwa/7pEcufGY=
MIME-Version: 1.0
Received: by 10.229.10.132 with SMTP id p4mr1866444qcp.86.1264566487286; Tue, 
	26 Jan 2010 20:28:07 -0800 (PST)
In-Reply-To: <4B5F44B2.80000@0xbadc0de.be>
References: <4B5F2640.5030202@cengen.com> <4B5F4329.3010104@cengen.com>
	<4B5F44B2.80000@0xbadc0de.be>
Date: Tue, 26 Jan 2010 20:28:07 -0800
Message-ID: <603122d71001262028g3d922924p29612e0b83c67bf3@mail.gmail.com>
Subject: Re: [libssh2] Tunnelling using libssh2
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0972181905=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0972181905==
Content-Type: multipart/alternative; boundary=0015175771ca450469047e1dd40e

--0015175771ca450469047e1dd40e
Content-Type: text/plain; charset=ISO-8859-1

> Just launch "/bin/sh" as command and issue the commands as if they were
> written in a shell script. That works also with perl, python, ... most
> script machines that are installed into the remote host.
>
>
I've tried this approach and it does not seem to work for me. I issue a
channel exec"/bin/sh" from a thread, but then the next channel exec on same
channel result in error? I don't understand how you do it with "/bin/sh"
could you explain ?

Alian

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

<br><div class=3D"gmail_quote"><div>=A0</div><blockquote class=3D"gmail_quo=
te" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt=
 0.8ex; padding-left: 1ex;">
Just launch &quot;/bin/sh&quot; as command and issue the commands as if the=
y were written in a shell script. That works also with perl, python, ... mo=
st script machines that are installed into the remote host.<br>
<br></blockquote><div><br>I&#39;ve tried this approach and it does not seem=
 to work for me. I issue a channel exec&quot;/bin/sh&quot; from a thread, b=
ut then the next channel exec on same channel result in error? I don&#39;t =
understand how you do it with &quot;/bin/sh&quot; could you explain ?<br>
<br>Alian=A0</div></div>

--0015175771ca450469047e1dd40e--

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

--===============0972181905==--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 27 05:46:00 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0R4jsjI016957;
	Wed, 27 Jan 2010 05:45:58 +0100
Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com
	[209.85.221.182])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0R4jq78016843
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 05:45:52 +0100
Received: by qyk12 with SMTP id 12so2895780qyk.21
	for <libssh2-devel@cool.haxx.se>; Tue, 26 Jan 2010 20:45:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=rY/vr9Jhh1f5Czvo1lXB7wmA42LcWpTiiFKOPxVjiyo=;
	b=D1NUDOtDFhWWhmgX27snFhE29lygbA/8CV3l2Q1kEVo4Vpm8PL+u2V+ghziZ/8b1KX
	ElUfjk6zzY1zN0HByBAZNmdMth0gcyAs5N3wiRD5RhVheXU8qcpePHL8uFrWEeJ1zktg
	FKlEKGQzT5nXYHNHal9ad2SUP81MgASJEy3Es=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=vAJuMWzhQYNbtkjN7PU7BOBRH9KuwNB7kgwT/lDhQlZXVcH87GERPaG0f0+HSQs/fq
	PpjjLj53ohbOeMxn+dtMWfaZa5Vf8VQWnSByTX5TaMO5udNQzntlHSRR0mMjY6TIkRXC
	ASg0EcStkU77TYCLmX6o5OhHHke8eOxe7TQ/A=
MIME-Version: 1.0
Received: by 10.229.62.88 with SMTP id w24mr35818qch.21.1264567546842; Tue, 26 
	Jan 2010 20:45:46 -0800 (PST)
In-Reply-To: <4B5F44B2.80000@0xbadc0de.be>
References: <4B5F2640.5030202@cengen.com> <4B5F4329.3010104@cengen.com>
	<4B5F44B2.80000@0xbadc0de.be>
Date: Tue, 26 Jan 2010 20:45:46 -0800
Message-ID: <603122d71001262045u1cde6a6es11e191478316456e@mail.gmail.com>
Subject: Re: [libssh2] Tunnelling using libssh2
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1955604900=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1955604900==
Content-Type: multipart/alternative; boundary=0023545be7e06c99bd047e1e1375

--0023545be7e06c99bd047e1e1375
Content-Type: text/plain; charset=ISO-8859-1

Sorry, I meant to say that after I issue a channel exec"/bin/sh" from a
thread, but then the next channel write on same channel not getting
executed.

A.

--0023545be7e06c99bd047e1e1375
Content-Type: text/html; charset=ISO-8859-1

<br>Sorry, I meant to say that after I issue a
channel exec&quot;/bin/sh&quot; from a thread, but then the next channel write on
same channel not getting executed.<br><br>A.<br>

--0023545be7e06c99bd047e1e1375--

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

--===============1955604900==--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 27 06:06:19 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0R56CMt030831;
	Wed, 27 Jan 2010 06:06:16 +0100
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o0R56AxU030773
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 06:06:11 +0100
Received: by qw-out-2122.google.com with SMTP id 5so339944qwd.41
	for <libssh2-devel@cool.haxx.se>; Tue, 26 Jan 2010 21:06:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=Phlh/lwp5CJKsD+Te2y0/8Tl9TjJVC5N+lvW5W0Z2tU=;
	b=WwU6bua/hD2alpw0ugwP3gXtFCgCoWYO3aimjNZw8IP9FrdsNwo0T20Cn9lTvqNm63
	nVsXmkixXou/DNkYMTbccuhohtxpRtlJpc2cjQCd0YRxCzRneynzHQL2bP6iw71eZsPJ
	wbQtM9DrkIjlrkpueS2ceONDwysvIbTENHK/8=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=KPpuPU9u/abZQOxOC/+KwZf6P299Gr5wbijF3EPWAZOi4O7xIpYOZdxxXmldeVT/hf
	9aZAQjKaiQJNis3BzPOFDzVtpZJpDCpZ4LdBd0i7XIzjfjncDRqjMpzqx4NJwgO8sLL8
	PvZN+Ts2aeyfMwEmK1ms1jvUCJjL3/W3iX3cs=
MIME-Version: 1.0
Received: by 10.229.68.193 with SMTP id w1mr4924522qci.51.1264568770137; Tue, 
	26 Jan 2010 21:06:10 -0800 (PST)
In-Reply-To: <603122d71001262045u1cde6a6es11e191478316456e@mail.gmail.com>
References: <4B5F2640.5030202@cengen.com> <4B5F4329.3010104@cengen.com>
	<4B5F44B2.80000@0xbadc0de.be>
	<603122d71001262045u1cde6a6es11e191478316456e@mail.gmail.com>
Date: Tue, 26 Jan 2010 21:06:10 -0800
Message-ID: <603122d71001262106r53807c0aj3d581b9fe3ab3d9f@mail.gmail.com>
Subject: Re: [libssh2] Tunnelling using libssh2
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1465205189=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1465205189==
Content-Type: multipart/alternative; boundary=00032557c312568f21047e1e5cf2

--00032557c312568f21047e1e5cf2
Content-Type: text/plain; charset=ISO-8859-1

Ok, I figured out the issue, it was that I had to execute "/bin/sh" outside
the thread, the subsequent channel write was executed too fast.

--00032557c312568f21047e1e5cf2
Content-Type: text/html; charset=ISO-8859-1

Ok, I figured out the issue, it was that I had to execute &quot;/bin/sh&quot; outside the thread, the subsequent channel write was executed too fast.<br>

--00032557c312568f21047e1e5cf2--

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

--===============1465205189==--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 27 08:54:35 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0R7sM0R008146;
	Wed, 27 Jan 2010 08:54:31 +0100
Received: from mail-pz0-f172.google.com (mail-pz0-f172.google.com
	[209.85.222.172])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0R7sIh8008138
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 08:54:19 +0100
Received: by pzk2 with SMTP id 2so1065232pzk.21
	for <libssh2-devel@cool.haxx.se>; Tue, 26 Jan 2010 23:54:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:date:message-id:subject
	:from:to:content-type;
	bh=0LwqZcSAMTGA1m74g1GaIg15M3AM1y/CF1FuMj/P1Jg=;
	b=SHJhrB/NVp1TbhhVPSdlpyG41FoUVqplXVJsDcE07rTO50l3HT6YhkGNZQzI76dYk+
	QBvpbun1PUOYmSnSdvduEimWjYCLKOh+mJSbbjlXtJ0nuNEyn/NyHCgmyaPBt71MRTII
	MpIm3lX/tgD1vKhOuukjs47Xu11O2FFk0tGM0=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	b=s97hz+caq9xUJu0pXeCSKVFNoZn7GKpb6IKbWExgZNtztlAFgVIK7Hmw50UjOQX/ak
	J15X4XJMbPiCZ8FeUG2l4ADIg78Fg+8tRJd56VO5jcOsKpbaUAL4li0oPQBCLQRLdJ2Q
	71px+mMW/64AZyQ6WE4vwDClQVyACLhhHi+/g=
MIME-Version: 1.0
Received: by 10.115.114.13 with SMTP id r13mr6352312wam.69.1264578853356; Tue, 
	26 Jan 2010 23:54:13 -0800 (PST)
Date: Wed, 27 Jan 2010 13:24:13 +0530
Message-ID: <dfd97ba41001262354x672fc2e8te85ef99f011f89d6@mail.gmail.com>
Subject: [libssh2] libssh2_trace()
From: sandeep patra <kernel32.dll1981@gmail.com>
To: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1212176977=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1212176977==
Content-Type: multipart/alternative; boundary=0016e64c0b225846b1047e20b5b6

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

Hi,
I have downloaded the "libssh2-1.2.2" and configured it with
"--enable-debug" argument. Following are the steps i foolowed
1> ./configure --prefix=/usr --enable-debug
2> make
3> make install

then i have downloaded the "x11.c" file and modified it like below (changed
only a single line)
if (set_debug_on == 1)
        libssh2_trace(session, LIBSSH2_TRACE_CONN | LIBSSH2_TRACE_TRANS |
LIBSSH2_TRACE_KEX | LIBSSH2_TRACE_AUTH | LIBSSH2_TRACE_ERROR);

then compiled it using command
gcc -g -lssh2 -o x11 x11.c

now when i run this binary like
./x11 a.b.c.d user1 password1 DEBUG

it does not shows any debug output.

Am I missing somthing????

It would be a great help to me if anyone can help me in this regard and i
would be thankful.


Thanks and Regards,
Sandeep Kumar Patra

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

Hi,<br>I have downloaded the &quot;libssh2-1.2.2&quot; and configured it wi=
th &quot;--enable-debug&quot; argument. Following are the steps i foolowed<=
br>1&gt; ./configure --prefix=3D/usr --enable-debug<br>2&gt; make<br>3&gt; =
make install<br>
<br>then i have downloaded the &quot;x11.c&quot; file and modified it like =
below (changed only a single line)<br>if (set_debug_on =3D=3D 1) <br>=A0=A0=
=A0=A0=A0=A0=A0 libssh2_trace(session, LIBSSH2_TRACE_CONN | LIBSSH2_TRACE_T=
RANS | LIBSSH2_TRACE_KEX | LIBSSH2_TRACE_AUTH | LIBSSH2_TRACE_ERROR);<br>
<br>then compiled it using command<br>gcc -g -lssh2 -o x11 x11.c<br><br>now=
 when i run this binary like<br>./x11 a.b.c.d user1 password1 DEBUG<br><br>=
it does not shows any debug output.<br><br>Am I missing somthing????<br>
<br>It would be a great help to me if anyone can help me in this regard and=
 i would be thankful.<br><br><br>Thanks and Regards,<br>Sandeep Kumar Patra=
<br><br><br>

--0016e64c0b225846b1047e20b5b6--

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

--===============1212176977==--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 27 12:01:22 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0RB12QC001203;
	Wed, 27 Jan 2010 12:01:13 +0100
Received: from mx2.wallix.com (mx2.wallix.com [84.14.156.235])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0RB0jCu000894
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 12:00:45 +0100
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mx2.wallix.com (Postfix) with ESMTP id DF160245008A
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 12:00:45 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at com.ifr.lan
Received: from mx2.wallix.com ([127.0.0.1])
	by localhost (com.ifr.lan [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id fLFBEcvDhEVU for <libssh2-devel@cool.haxx.se>;
	Wed, 27 Jan 2010 12:00:42 +0100 (CET)
Received: from zimbra.ifr.lan (zimbra.ifr.lan [10.10.1.211])
	by mx2.wallix.com (Postfix) with ESMTP id 33B862450083
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 12:00:42 +0100 (CET)
Received: from newaza (sbz.ifr.lan [10.10.4.3])
	by zimbra.ifr.lan (Postfix) with ESMTP id 13D36A0001F
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 12:00:41 +0100 (CET)
Date: Wed, 27 Jan 2010 12:01:03 +0100
From: Sofian Brabez <sofian.brabez@wallix.com>
To: libssh2-devel@cool.haxx.se
Subject: Export default functions in the API
Message-ID: <20100127110103.GA21252@newaza>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="vtzGhvizbBRQ85DL"
Content-Disposition: inline
User-Agent: Mutt/1.5.20 (2009-06-14)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se


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

Hi folks,

What do you think replace #define functions by real functions in LIBSSH2_API ?

Let me explain more with libssh2_session_init example below.

Presently we have this definition in include/libssh2.h :

#define libssh2_session_init() libssh2_session_init_ex(NULL, NULL, NULL,
NULL)

Like that libssh2_session_init is not part of LIBSSH2_API and
we can't lookup this symbol because it doesn't exist in shared library:

nm src/.libs/libssh2.so.1|grep session_init
00013e90 T libssh2_session_init_ex

After change with the following diff in attachment, we don't have
the problem anymore:

nm src/.libs/libssh2.so.1 |grep session_init   
0001b92a T libssh2_session_init
0001b84f T libssh2_session_init_ex

Do you think it's a good idea to change all #define functions ?

Regards

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

--vtzGhvizbBRQ85DL
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="libssh2_session_init.diff"

diff --git a/include/libssh2.h b/include/libssh2.h
index 890749e..01f1cc3 100644
--- a/include/libssh2.h
+++ b/include/libssh2.h
@@ -372,7 +372,8 @@ LIBSSH2_API LIBSSH2_SESSION *
 libssh2_session_init_ex(LIBSSH2_ALLOC_FUNC((*my_alloc)),
                         LIBSSH2_FREE_FUNC((*my_free)),
                         LIBSSH2_REALLOC_FUNC((*my_realloc)), void *abstract);
-#define libssh2_session_init() libssh2_session_init_ex(NULL, NULL, NULL, NULL)
+LIBSSH2_API LIBSSH2_SESSION *
+libssh2_session_init(void);
 
 LIBSSH2_API void **libssh2_session_abstract(LIBSSH2_SESSION *session);
 
diff --git a/src/session.c b/src/session.c
index 28885c5..d4a00e7 100644
--- a/src/session.c
+++ b/src/session.c
@@ -463,6 +463,23 @@ libssh2_session_init_ex(LIBSSH2_ALLOC_FUNC((*my_alloc)),
     return session;
 }
 
+/* libssh2_session_init
+ * 
+ * Allocate and initialize a libssh2 session structure with default malloc
+ */
+LIBSSH2_API LIBSSH2_SESSION *
+libssh2_session_init(void)
+{
+    /* use temporary typedef to fix unsafe cast C ISO warnings */
+    typedef LIBSSH2_ALLOC_FUNC(libssh2_alloc_func_t);
+    typedef LIBSSH2_REALLOC_FUNC(libssh2_realloc_func_t);
+    typedef LIBSSH2_FREE_FUNC(libssh2_free_func_t);
+
+    return libssh2_session_init_ex((libssh2_alloc_func_t*)NULL, 
+                                   (libssh2_free_func_t*)NULL, 
+                                   (libssh2_realloc_func_t*)NULL, NULL);
+}
+
 /*
  * libssh2_session_callback_set
  *

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

--vtzGhvizbBRQ85DL--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 27 12:47:20 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0RBl6LT004007;
	Wed, 27 Jan 2010 12:47:11 +0100
Received: from dottedmag.net (burger.dottedmag.net [212.75.37.82])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0RBl4mQ003994
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 12:47:04 +0100
Received: from vertex.dottedmag (unknown [91.197.127.125])
	by dottedmag.net (Postfix) with ESMTPSA id 5DDD58C753
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 12:47:04 +0100 (CET)
Received: from dottedmag by vertex.dottedmag with local (Exim 4.69)
	(envelope-from <dottedmag@dottedmag.net>) id 1Na6MQ-0001Nf-QN
	for libssh2-devel@cool.haxx.se; Wed, 27 Jan 2010 17:47:02 +0600
From: Mikhail Gusarov <dottedmag@dottedmag.net>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Export default functions in the API
References: <20100127110103.GA21252@newaza>
Date: Wed, 27 Jan 2010 17:47:02 +0600
In-Reply-To: <20100127110103.GA21252@newaza> (Sofian Brabez's message of "Wed, 
	27 Jan 2010 12:01:03 +0100")
Message-ID: <87ockfrcqx.fsf@vertex.dottedmag>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1914074870=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

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

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


Twas brillig at 12:01:03 27.01.2010 UTC+01 when sofian.brabez@wallix.com di=
d gyre and gimble:

 SB> Like that libssh2_session_init is not part of LIBSSH2_API and we
 SB> can't lookup this symbol because it doesn't exist in shared
 SB> library:

Why do you want to lookup it _this_ way?

 SB> Do you think it's a good idea to change all #define functions ?

It does not buy anything meaningful and slightly pessimizes things
(number of relocation entries and cost of symbol lookup become higher).

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

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

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

iQIcBAEBAgAGBQJLYCe2AAoJEJ0g9lA+M4iIxMwP/3wZy65vVkLV6uKDkRw/Jday
YEymeg/6K9+qHvu8knB3M5f+7DJFEA3fXYoEeMETGJZIcU1zrde9AijCsurBuu+d
YuHemeNnuG9390QsVWF6CqOjAfO2AHVnj6mFB/cFehbnJNQKd6CYQmqgGiO8dW6L
gXSYy3doDcdkZ0n5IM13/LkqM2xWF3Edc4Xzs2SIvyNNKt0VdeVjRskvgN3MN+wE
xuL5z4sDE7OANEbLWO/xJxArUjMd+tuT/AmV8I4zr+rWF92nzfQ9893+UVTCafNe
86hRjW7D0eCpItEPXYB86hYTO9nVeYdnpCfs+gi154b3i4wqhjBDnvhAFOWxUItC
Kbosq9p4SiZyZuyGp99vvbFa6jrg/JUx85ahsdaj1IPC3111IOuaCTl6A77fWv4N
MCRnb7PyXlx00/WxxzaNNZ88ujvUiu9pFb+bgBeiB0+G2TiTqRUs1C6kO54g0Ogv
ZS4VGi08wK+asR+aVlO9NYx/BKs3w1VeLYglyDXQGA/5iaoMzW9itN8p9ZdTNoZu
cFmXLjh/sQf/0ShLecByC0W/Ni/yyewUUF0V4LgpRWNV5Jc6lRgSFUY1akzFWX1o
lotZLX6fQu/bk0sgz73es87NWC//jOMIsf9VRCnVm/wy6O2CBhwQisSWmLit/PmI
9tp66RZVqH69VaxxpvrR
=8f8K
-----END PGP SIGNATURE-----
--=-=-=--

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

--===============1914074870==--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 27 13:39:52 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0RCdfu6003676;
	Wed, 27 Jan 2010 13:39:49 +0100
Received: from mx2.wallix.com (mx2.wallix.com [84.14.156.235])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0RCddxL003669
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 13:39:39 +0100
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mx2.wallix.com (Postfix) with ESMTP id A45A0245008C
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 13:39:39 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at com.ifr.lan
Received: from mx2.wallix.com ([127.0.0.1])
	by localhost (com.ifr.lan [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id N3uXDankJByN for <libssh2-devel@cool.haxx.se>;
	Wed, 27 Jan 2010 13:39:36 +0100 (CET)
Received: from zimbra.ifr.lan (zimbra.ifr.lan [10.10.1.211])
	by mx2.wallix.com (Postfix) with ESMTP id 1D45C245008B
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 13:39:36 +0100 (CET)
Received: from newaza (sbz.ifr.lan [10.10.4.3])
	by zimbra.ifr.lan (Postfix) with ESMTP id F2F44A0001F
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 13:39:35 +0100 (CET)
Date: Wed, 27 Jan 2010 13:39:59 +0100
From: Sofian Brabez <sofian.brabez@wallix.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Export default functions in the API
Message-ID: <20100127123959.GA17720@newaza>
References: <20100127110103.GA21252@newaza> <87ockfrcqx.fsf@vertex.dottedmag>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <87ockfrcqx.fsf@vertex.dottedmag>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Hi Mikhail

On Wed, Jan 27, 2010 at 05:47:02PM +0600, Mikhail Gusarov wrote:
> 
> Twas brillig at 12:01:03 27.01.2010 UTC+01 when sofian.brabez@wallix.com did gyre and gimble:
> 
>  SB> Like that libssh2_session_init is not part of LIBSSH2_API and we
>  SB> can't lookup this symbol because it doesn't exist in shared
>  SB> library:
> 
> Why do you want to lookup it _this_ way?
> 

Because i don't know another way.

>  SB> Do you think it's a good idea to change all #define functions ?
> 
> It does not buy anything meaningful and slightly pessimizes things
> (number of relocation entries and cost of symbol lookup become higher).
> 

So, I concluded it's was bad idea. I'm not familliar with symbols
relocations, could you enlighten me ?

Thanks for your reply !

Regards

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 27 13:44:05 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0RCi2rt005677;
	Wed, 27 Jan 2010 13:44:03 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0RCi0wA005656
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 13:44:00 +0100
Date: Wed, 27 Jan 2010 13:44:00 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Export default functions in the API
In-Reply-To: <20100127110103.GA21252@newaza>
Message-ID: <alpine.DEB.2.00.1001271341100.31652@tvnag.unkk.fr>
References: <20100127110103.GA21252@newaza>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Wed, 27 Jan 2010, Sofian Brabez wrote:

> What do you think replace #define functions by real functions in LIBSSH2_API 
> ?
>
> Let me explain more with libssh2_session_init example below.
>
> Presently we have this definition in include/libssh2.h :
>
> #define libssh2_session_init() libssh2_session_init_ex(NULL, NULL, NULL, 
> NULL)

When we bump the ABI the next time I want to remove all uses of defined macros 
in the public API and only provide actual functions.

In the mean time, I plan to provide a lookup-thing on the libssh2.org web page 
that will help users figure out the actual function call the macro is using, 
and I'll use that to improve the links from the examples hosted on the site.

I'd also like to mention that 'make tags' and using the produced generated 
lookup-table is a neat way to find symbols in the code.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 27 13:44:50 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0RCijiD005968;
	Wed, 27 Jan 2010 13:44:48 +0100
Received: from dottedmag.net (burger.dottedmag.net [212.75.37.82])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0RCih9L005954
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 13:44:44 +0100
Received: from vertex.dottedmag (unknown [91.197.127.125])
	by dottedmag.net (Postfix) with ESMTPSA id E327B8C753
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 13:44:43 +0100 (CET)
Received: from dottedmag by vertex.dottedmag with local (Exim 4.69)
	(envelope-from <dottedmag@dottedmag.net>) id 1Na7GD-0001a3-Nw
	for libssh2-devel@cool.haxx.se; Wed, 27 Jan 2010 18:44:41 +0600
From: Mikhail Gusarov <dottedmag@dottedmag.net>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Export default functions in the API
References: <20100127110103.GA21252@newaza> <87ockfrcqx.fsf@vertex.dottedmag>
	<20100127123959.GA17720@newaza>
Date: Wed, 27 Jan 2010 18:44:41 +0600
In-Reply-To: <20100127123959.GA17720@newaza> (Sofian Brabez's message of "Wed, 
	27 Jan 2010 13:39:59 +0100")
Message-ID: <87d40vra2u.fsf@vertex.dottedmag>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0510096350=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

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

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


Twas brillig at 13:39:59 27.01.2010 UTC+01 when sofian.brabez@wallix.com di=
d gyre and gimble:


 >>  SB> Like that libssh2_session_init is not part of LIBSSH2_API and
 >>  SB> we can't lookup this symbol because it doesn't exist in shared
 >>  SB> library:

 >> Why do you want to lookup it _this_ way?

 SB> Because i don't know another way.

Looking at documentation and headers is better way: libraries may change
implementation, provide versioned symbols, replace regular functions
with macros or inline functions, etc.

Exported symbols in shared object consistute ABI of library, not
API. While it's significant too, but it's another degree of
significantness.

 >>  SB> Do you think it's a good idea to change all #define functions ?

 >> It does not buy anything meaningful and slightly pessimizes things
 >> (number of relocation entries and cost of symbol lookup become
 >> higher).

 SB> So, I concluded it's was bad idea. I'm not familliar with symbols
 SB> relocations, could you enlighten me ?

Actually it was nitpicking - symbol relocation costs are neglible on any
modern hardware, except embedded one.

Though as you are interested there is a good doc by Ulrich Drepper
called "How to write shared libraries" describing mechanics of ELF
shared libraries and exported symbols:
http://people.redhat.com/drepper/dsohowto.pdf

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

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

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

iQIcBAEBAgAGBQJLYDU5AAoJEJ0g9lA+M4iIrfgQANbxhQLOT3C570ay8fHcZKOX
NgIA+tTSYwduSnVCTY1ix2avTCJ6+IIEYhjzq43mqiM5Nm6bOOSxFsbOoYZlZavU
u9UDNvaR178MRtKbpPMCAdw+3nt0kh1PKAmuc0y/RoRF0Vf4CSlcKMoT+87kA0nj
qL1bvH8xUXenaYIB740d+/vgFIwJnjEkTEA+6Db3v4IKlmY/4aG3Ssi7uqXhMiVP
9KqpmMs8JOr5G7oZFQjrisz0pg0Di90KWb5jPyE1uTm00WgzNDv5+37JXVEmMuC2
XQZNDJ7TP4nhul+gIBvP+mhHNSmT3Yw40+Z0R6J3o+UNeetcdRKkegwEw65DIm6X
UoKhNZTUEEx5DZZ1MuYgpHLhrHv7Pn44VBK1FGYe33gcQ0btYa8ryDW0Bbjjhy44
A3rNh1cJ+kZq13MyAZ+oGNUPcFJLvyFvxkUWAoqW1eBUN/LgW+HilUSim0juyo0o
Tij6HjwQDsupsRWWRhG42m/TnH9fsi3kmRWrlVwZmpmkESd+htezqVz0ZT9XLWX3
tNUU5kOxhcmfdgCBEOJA0UN5aVlmQvbo0wZ7mf1bwgwgIHvzoAzt+m6Va+CsVJB3
FqqQN//U1+6ZtQeWW4Cc/+Ql43E0vblF51s6cIMV0EnQpsFZMYyMxGv47b1DJp8O
ICALolUt/jJ65HZPTrS+
=dZr6
-----END PGP SIGNATURE-----
--=-=-=--

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

--===============0510096350==--

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 27 13:56:15 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0RCtq2L010709;
	Wed, 27 Jan 2010 13:55:57 +0100
Received: from mx2.wallix.com (mx2.wallix.com [84.14.156.235])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0RCtpLQ010704
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 13:55:51 +0100
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mx2.wallix.com (Postfix) with ESMTP id 1FD30245008C
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 13:55:52 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at com.ifr.lan
Received: from mx2.wallix.com ([127.0.0.1])
	by localhost (com.ifr.lan [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 3PC3g1UD45nZ for <libssh2-devel@cool.haxx.se>;
	Wed, 27 Jan 2010 13:55:48 +0100 (CET)
Received: from zimbra.ifr.lan (zimbra.ifr.lan [10.10.1.211])
	by mx2.wallix.com (Postfix) with ESMTP id 8BFAA2450073
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 13:55:48 +0100 (CET)
Received: from newaza (sbz.ifr.lan [10.10.4.3])
	by zimbra.ifr.lan (Postfix) with ESMTP id 735D9A0001F
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 13:55:48 +0100 (CET)
Date: Wed, 27 Jan 2010 13:56:11 +0100
From: Sofian Brabez <sofian.brabez@wallix.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Export default functions in the API
Message-ID: <20100127125610.GA28175@newaza>
References: <20100127110103.GA21252@newaza> <87ockfrcqx.fsf@vertex.dottedmag>
	<20100127123959.GA17720@newaza> <87d40vra2u.fsf@vertex.dottedmag>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <87d40vra2u.fsf@vertex.dottedmag>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Wed, Jan 27, 2010 at 06:44:41PM +0600, Mikhail Gusarov wrote:
> 
> Actually it was nitpicking - symbol relocation costs are neglible on any
> modern hardware, except embedded one.
> 
> Though as you are interested there is a good doc by Ulrich Drepper
> called "How to write shared libraries" describing mechanics of ELF
> shared libraries and exported symbols:
> http://people.redhat.com/drepper/dsohowto.pdf
> 

Thanks for your precisions and the link.

Regards

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jan 27 14:06:27 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0RD6LLp020190;
	Wed, 27 Jan 2010 14:06:25 +0100
Received: from mx2.wallix.com (mx2.wallix.com [84.14.156.235])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0RD6K4Y020150
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 14:06:20 +0100
Received: from localhost (localhost.localdomain [127.0.0.1])
	by mx2.wallix.com (Postfix) with ESMTP id AECDB2450076
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 14:06:20 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at com.ifr.lan
Received: from mx2.wallix.com ([127.0.0.1])
	by localhost (com.ifr.lan [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id PJr4QXF+KFcS for <libssh2-devel@cool.haxx.se>;
	Wed, 27 Jan 2010 14:06:17 +0100 (CET)
Received: from zimbra.ifr.lan (zimbra.ifr.lan [10.10.1.211])
	by mx2.wallix.com (Postfix) with ESMTP id 2A00F245007A
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 14:06:17 +0100 (CET)
Received: from newaza (sbz.ifr.lan [10.10.4.3])
	by zimbra.ifr.lan (Postfix) with ESMTP id 0DF2EA0001F
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jan 2010 14:06:17 +0100 (CET)
Date: Wed, 27 Jan 2010 14:06:40 +0100
From: Sofian Brabez <sofian.brabez@wallix.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: Export default functions in the API
Message-ID: <20100127130640.GB28175@newaza>
References: <20100127110103.GA21252@newaza>
	<alpine.DEB.2.00.1001271341100.31652@tvnag.unkk.fr>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <alpine.DEB.2.00.1001271341100.31652@tvnag.unkk.fr>
User-Agent: Mutt/1.5.20 (2009-06-14)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Wed, Jan 27, 2010 at 01:44:00PM +0100, Daniel Stenberg wrote:
> When we bump the ABI the next time I want to remove all uses of
> defined macros in the public API and only provide actual functions.
> 

Cool to hear that. To avoid compilation warnings I've used temporary
typedef I think the same manner will be required in others functions to
chaze them.

Regards

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 28 14:26:49 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0SDQYXi016467;
	Thu, 28 Jan 2010 14:26:44 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0SDQWU8016458
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jan 2010 14:26:32 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0SDQU8I009299
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jan 2010 14:26:31 +0100
X-Hashcash: 1:22:100128:libssh2-devel@cool.haxx.se::LG9ujdivRYxqqRPW:JZq6
From: Simon Josefsson <simon@josefsson.org>
To: libssh2-devel@cool.haxx.se
Subject: keepalive support
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
Date: Thu, 28 Jan 2010 14:26:30 +0100
Message-ID: <873a1qbbsp.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_48_96,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--=-=-=

Folks,

I'm adding support for keepalive to libssh2.

To illustrate our current problem, start a sshd like this:

$ sudo /usr/sbin/sshd -d -o ClientAliveInterval=1

Connect to it with a client like the one below, you will see OpenSSH
terminate the connection after 3 seconds like this:

Timeout, client not responding.

It takes 3 seconds for the timeout because the default value for
ClientAliveCountMax is 3, and the ClientAliveInterval=1 setting asks
sshd to send one request per second.

/Simon

--=-=-=
Content-Type: text/x-csrc
Content-Disposition: inline; filename=ssh2_idle.c

/*
 * Sample showing how to do SSH2 connect, and triggering of keep alive
 * handling.  Run against OpenSSH invoked like this:
 * sudo /usr/sbin/sshd -d -o ClientAliveInterval=1 -o ClientAliveCountMax=60
 *
 * The sample code has default values for host name, user name, password
 * and path to copy, but you can specify them on the command line like:
 *
 * "ssh2 host user password [-p|-i|-k]"
 */

#include "libssh2_config.h"
#include <libssh2.h>
#include <libssh2_sftp.h>

#ifdef HAVE_WINDOWS_H
# include <windows.h>
#endif
#ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
# ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
# ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif

#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <ctype.h>


const char *keyfile1="id_rsa.pub";
const char *keyfile2="id_rsa";
const char *username="username";
const char *password="password";


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


int main(int argc, char *argv[])
{
    unsigned long hostaddr;
    int sock, i, auth_pw = 0;
    struct sockaddr_in sin;
    const char *fingerprint;
    char *userauthlist;
    LIBSSH2_SESSION *session;
    LIBSSH2_CHANNEL *channel;
#ifdef WIN32
    WSADATA wsadata;

    WSAStartup(MAKEWORD(2,0), &wsadata);
#endif

    if (argc > 1) {
        hostaddr = inet_addr(argv[1]);
    } else {
        hostaddr = htonl(0x7F000001);
    }

    if(argc > 2) {
        username = argv[2];
    }
    if(argc > 3) {
        password = argv[3];
    }

    /* Ultra basic "connect to port 22 on localhost".  Your code is
     * responsible for creating the socket establishing the connection
     */
    sock = socket(AF_INET, SOCK_STREAM, 0);

    sin.sin_family = AF_INET;
    sin.sin_port = htons(22);
    sin.sin_addr.s_addr = hostaddr;
    if (connect(sock, (struct sockaddr*)(&sin),
                sizeof(struct sockaddr_in)) != 0) {
        fprintf(stderr, "failed to connect!\n");
        return -1;
    }

    /* Create a session instance and start it up. This will trade welcome
     * banners, exchange keys, and setup crypto, compression, and MAC layers
     */
    session = libssh2_session_init();
    if (libssh2_session_startup(session, sock)) {
        fprintf(stderr, "Failure establishing SSH session\n");
        return -1;
    }

    /* At this point we havn't authenticated. The first thing to do is check
     * the hostkey's fingerprint against our known hosts Your app may have it
     * hard coded, may go to a file, may present it to the user, that's your
     * call
     */
    fingerprint = libssh2_hostkey_hash(session, LIBSSH2_HOSTKEY_HASH_MD5);
    printf("Fingerprint: ");
    for(i = 0; i < 16; i++) {
        printf("%02X ", (unsigned char)fingerprint[i]);
    }
    printf("\n");

    /* check what authentication methods are available */
    userauthlist = libssh2_userauth_list(session, username, strlen(username));
    printf("Authentication methods: %s\n", userauthlist);
    if (strstr(userauthlist, "password") != NULL) {
        auth_pw |= 1;
    }
    if (strstr(userauthlist, "keyboard-interactive") != NULL) {
        auth_pw |= 2;
    }
    if (strstr(userauthlist, "publickey") != NULL) {
        auth_pw |= 4;
    }

    /* if we got an 4. argument we set this option if supported */
    if(argc > 4) {
        if ((auth_pw & 1) && !strcasecmp(argv[4], "-p")) {
            auth_pw = 1;
        }
        if ((auth_pw & 2) && !strcasecmp(argv[4], "-i")) {
            auth_pw = 2;
        }
        if ((auth_pw & 4) && !strcasecmp(argv[4], "-k")) {
            auth_pw = 4;
        }
    }

    if (auth_pw & 1) {
        /* We could authenticate via password */
        if (libssh2_userauth_password(session, username, password)) {
            printf("\tAuthentication by password failed!\n");
            goto shutdown;
        } else {
            printf("\tAuthentication by password succeeded.\n");
        }
    } else if (auth_pw & 2) {
        /* Or via keyboard-interactive */
        if (libssh2_userauth_keyboard_interactive(session, username,
                                                  &kbd_callback) ) {
            printf("\tAuthentication by keyboard-interactive failed!\n");
            goto shutdown;
        } else {
            printf("\tAuthentication by keyboard-interactive succeeded.\n");
        }
    } else if (auth_pw & 4) {
        /* Or by public key */
        if (libssh2_userauth_publickey_fromfile(session, username, keyfile1,
                                                keyfile2, password)) {
            printf("\tAuthentication by public key failed!\n");
            goto shutdown;
        } else {
            printf("\tAuthentication by public key succeeded.\n");
        }
    } else {
        printf("No supported authentication methods found!\n");
        goto shutdown;
    }

    /* Request a shell */
    if (!(channel = libssh2_channel_open_session(session))) {
        fprintf(stderr, "Unable to open a session\n");
        goto shutdown;
    }

    /* Some environment variables may be set,
     * It's up to the server which ones it'll allow though
     */
    libssh2_channel_setenv(channel, "FOO", "bar");

    /* Request a terminal with 'vanilla' terminal emulation
     * See /etc/termcap for more options
     */
    if (libssh2_channel_request_pty(channel, "vanilla")) {
        fprintf(stderr, "Failed requesting pty\n");
        goto skip_shell;
    }

    /* Open a SHELL on that pty */
    if (libssh2_channel_shell(channel)) {
        fprintf(stderr, "Unable to request shell on allocated pty\n");
        goto shutdown;
    }

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

    libssh2_trace(session, 0xFFFF);

    {
#define MAXBUF 1024
        char buf[MAXBUF];
        ssize_t buflen;

#define CMD "sleep 60\n"

        buflen = libssh2_channel_read(channel, buf, MAXBUF);
        buflen = libssh2_channel_read(channel, buf, MAXBUF);
        buflen = libssh2_channel_write(channel, CMD, strlen (CMD));

        libssh2_channel_set_blocking (channel, 0);

        do {
            do {
                buflen = libssh2_channel_read(channel, buf, MAXBUF);
                printf ("rc %d\n", buflen);
                sleep (1);
            } while (buflen <= 0);
            printf ("ok: %.*s", buflen, buf);
        } while (1);
    }
    sleep (10);

  skip_shell:
    if (channel) {
        libssh2_channel_free(channel);
        channel = NULL;
    }

    /* Other channel types are supported via:
     * libssh2_scp_send()
     * libssh2_scp_recv()
     * libssh2_channel_direct_tcpip()
     */

  shutdown:

    libssh2_session_disconnect(session,
                               "Normal Shutdown, Thank you for playing");
    libssh2_session_free(session);

#ifdef WIN32
    closesocket(sock);
#else
    close(sock);
#endif
    printf("all done!\n");
    return 0;
}

--=-=-=
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--=-=-=--

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 28 14:37:05 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0SDb0mr020896;
	Thu, 28 Jan 2010 14:37:03 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0SDaxsV020893
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jan 2010 14:36:59 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0SDavRI009605
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jan 2010 14:36:59 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: keepalive support
References: <873a1qbbsp.fsf@mocca.josefsson.org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100128:libssh2-devel@cool.haxx.se::wiEYCLwJHycXU80Z:QV7X
Date: Thu, 28 Jan 2010 14:36:57 +0100
In-Reply-To: <873a1qbbsp.fsf@mocca.josefsson.org> (Simon Josefsson's message
	of "Thu, 28 Jan 2010 14:26:30 +0100")
Message-ID: <87y6ji9wqu.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Spam-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_48_96,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

If you rebuild libssh2 from git, and restart your sshd like this:

$ sudo /usr/sbin/sshd -d -o ClientAliveInterval=1 -d

(i forgot -d in the last e-mail, it makes it print some more useful
debugging info)

then my example code from the last e-mail will print:

debug2: channel 0: request keepalive@openssh.com confirm 1
debug1: Got 100/13 for keepalive
debug2: channel 0: request keepalive@openssh.com confirm 1
debug1: Got 100/14 for keepalive
debug2: channel 0: request keepalive@openssh.com confirm 1
debug1: Got 100/15 for keepalive
debug2: channel 0: request keepalive@openssh.com confirm 1
debug1: Got 100/16 for keepalive
debug2: channel 0: request keepalive@openssh.com confirm 1
debug1: Got 100/17 for keepalive
debug2: channel 0: request keepalive@openssh.com confirm 1
debug1: Got 100/18 for keepalive
debug2: channel 0: request keepalive@openssh.com confirm 1
debug1: Got 100/19 for keepalive
debug2: channel 0: request keepalive@openssh.com confirm 1
...

Replace 'sleep (1)' with 'usleep (300000);' in my ssh2.c example from
the last e-mail to make sure libssh2 responds before sshd sends another
request (not really required, but makes the output above look more
consistent).

OpenSSH no longer terminates sessions from libssh2 clients.  Whoa!

There is more to work on though (i.e., GLOBAL_REQUEST), but I'll
followup on that later.

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 28 14:39:54 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0SDdpBj021847;
	Thu, 28 Jan 2010 14:39:52 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0SDdnbf021842
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jan 2010 14:39:49 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0SDdlJx009684
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jan 2010 14:39:49 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: keepalive support
References: <873a1qbbsp.fsf@mocca.josefsson.org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100128:libssh2-devel@cool.haxx.se::3OLsiUGLMuaFTglu:0LIj
Date: Thu, 28 Jan 2010 14:39:47 +0100
In-Reply-To: <873a1qbbsp.fsf@mocca.josefsson.org> (Simon Josefsson's message
	of "Thu, 28 Jan 2010 14:26:30 +0100")
Message-ID: <87tyu69wm4.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Spam-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_48_96, FB_WORD1_END_DOLLAR, RDNS_DYNAMIC,
	SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Simon Josefsson <simon@josefsson.org> writes:

> Connect to it with a client like the one below, you will see OpenSSH
> terminate the connection after 3 seconds like this:
>
> Timeout, client not responding.

For completeness, if you run sshd with -d the debug output actually
looks like this:

...
debug2: channel 0: request keepalive@openssh.com confirm 1
debug2: channel 0: request keepalive@openssh.com confirm 1
debug2: channel 0: request keepalive@openssh.com confirm 1
Timeout, client not responding.

You can easily reproduce this by running the example code with your
system's libssh2 (assuming it is an old version, which will hold for
some time yet...):

jas@mocca:~/src/libssh2/example master$ LD_PRELOAD=/usr/lib/libssh2.so.1 ./ssh2_idle 127.0.0.1 root

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 28 14:59:54 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0SDxnLJ031145;
	Thu, 28 Jan 2010 14:59:52 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0SDxmBU031140
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jan 2010 14:59:48 +0100
Received: (qmail 28915 invoked by uid 501); 28 Jan 2010 13:59:48 -0000
Message-ID: <20100128135948.28914.qmail@stuge.se>
Date: Thu, 28 Jan 2010 14:59:48 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: keepalive support
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <873a1qbbsp.fsf@mocca.josefsson.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <873a1qbbsp.fsf@mocca.josefsson.org>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Simon Josefsson wrote:
> I'm adding support for keepalive to libssh2.

Goodie. Thanks!


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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 28 15:06:20 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0SE67xe007611;
	Thu, 28 Jan 2010 15:06:10 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0SE6666007576
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jan 2010 15:06:06 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0SE64O3010270
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jan 2010 15:06:06 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: keepalive support
References: <873a1qbbsp.fsf@mocca.josefsson.org>
	<87y6ji9wqu.fsf@mocca.josefsson.org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100128:libssh2-devel@cool.haxx.se::nrGuXCExmbSc+IGW:8+o
Date: Thu, 28 Jan 2010 15:06:04 +0100
In-Reply-To: <87y6ji9wqu.fsf@mocca.josefsson.org> (Simon Josefsson's message
	of "Thu, 28 Jan 2010 14:36:57 +0100")
Message-ID: <87mxzy9veb.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Spam-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_48_96,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Simon Josefsson <simon@josefsson.org> writes:

> There is more to work on though (i.e., GLOBAL_REQUEST), but I'll
> followup on that later.

I've completed this now.

For some wonderful reason, OpenSSH serverloop.c has this logic:

	if ((channel_id = channel_find_open()) == -1) {
		packet_start(SSH2_MSG_GLOBAL_REQUEST);
		packet_put_cstring("keepalive@openssh.com");
		packet_put_char(1);	/* boolean: want reply */
	} else {
		channel_request_start(channel_id, "keepalive@openssh.com", 1);
	}

Which means they use fall back on using a global request if it cannot
find an open channel.  Why they don't always send a global request
instead is beyond me, it would appear simpler to do.

However, for completeness libssh2 should support this variant as well.
The main practical reason is that I suspect that other SSH servers out
there just send a GLOBAL_REQUEST instead of CHANNEL_REQUEST.  I will
validate this theory with Bitvise/SSHD if I can get hold of them and
configure them properly.

Reproducing the GLOBAL_REQUEST scenario requires modifying the == to !=
in the code above, and re-build your sshd, but if you do, you will see:

debug2: channel 0: rcvd adjust 39321600
debug3: Wrote 52 bytes for a total of 2819
debug3: Wrote 52 bytes for a total of 2871
debug3: Wrote 68 bytes for a total of 2939
debug3: Wrote 68 bytes for a total of 3007
debug3: Wrote 68 bytes for a total of 3075
Timeout, client not responding.

OpenSSH doesn't really say what packets it sends, but I suspect they are
the 68 bytes packets.

Now, pull in the latest libssh2 from git (which now sports
GLOBAL_REQUEST keep-alive support too) and you will see:

debug3: Wrote 52 bytes for a total of 2819
debug3: Wrote 52 bytes for a total of 2871
debug3: Wrote 68 bytes for a total of 2939
debug1: Got 82/13 for keepalive
debug3: Wrote 68 bytes for a total of 3007
debug1: Got 82/14 for keepalive
debug3: Wrote 68 bytes for a total of 3075
debug1: Got 82/15 for keepalive
debug3: Wrote 68 bytes for a total of 3143
debug1: Got 82/16 for keepalive
debug3: Wrote 68 bytes for a total of 3211
debug1: Got 82/17 for keepalive
debug3: Wrote 68 bytes for a total of 3279
debug1: Got 82/18 for keepalive

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 28 15:51:21 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0SEp36l031089;
	Thu, 28 Jan 2010 15:51:10 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0SEp1BL031064
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jan 2010 15:51:02 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0SEoxaL011288
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jan 2010 15:51:01 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: keepalive support
References: <873a1qbbsp.fsf@mocca.josefsson.org>
	<87y6ji9wqu.fsf@mocca.josefsson.org>
	<87mxzy9veb.fsf@mocca.josefsson.org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100128:libssh2-devel@cool.haxx.se::vIn6KSfh48P0cqcs:eUhl
Date: Thu, 28 Jan 2010 15:51:00 +0100
In-Reply-To: <87mxzy9veb.fsf@mocca.josefsson.org> (Simon Josefsson's message
	of "Thu, 28 Jan 2010 15:06:04 +0100")
Message-ID: <87d40u9tbf.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Spam-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_48_96,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Simon Josefsson <simon@josefsson.org> writes:

> However, for completeness libssh2 should support this variant as well.
> The main practical reason is that I suspect that other SSH servers out
> there just send a GLOBAL_REQUEST instead of CHANNEL_REQUEST.  I will
> validate this theory with Bitvise/SSHD if I can get hold of them and
> configure them properly.

I managed to debug what Bitvise SSHD does, and if you set "Keep-alive /
broken session detection (s)" to 1 it will send SSH_MSG_IGNORE fields
with 4 bytes of data every 6 (!) second.  The first two bytes appears to
be 00 and the final two appears to be random, see below.

Using MSG_IGNORE for keep-alives appears sensible compared to
MSG_GLOBAL_REQUEST or CHANNEL_REQUEST -- on the other hand, you only
cause traffic to be generated from the server to the client, and not in
the other direction.  So the server cannot tell for sure whether the
client is still around.  Right now I prefer a GLOBAL_REQUEST.

ignore 4
d[00] = 00
d[01] = 00
d[02] = 85
d[03] = 38
...
ignore 4
d[00] = 00
d[01] = 00
d[02] = 76
d[03] = 8a
...
ignore 4
d[00] = 00
d[01] = 00
d[02] = 81
d[03] = 3b
...
ignore 4
d[00] = 00
d[01] = 00
d[02] = 4c
d[03] = 06
...
ignore 4
d[00] = 00
d[01] = 00
d[02] = 5f
d[03] = 66
...

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 28 17:41:32 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0SGfHHw009399;
	Thu, 28 Jan 2010 17:41:27 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0SGfG99009304
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jan 2010 17:41:16 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0SGfEtT014120
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jan 2010 17:41:16 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2-devel@cool.haxx.se
Subject: Re: client-side only vs. libssh?
References: <150615.96331.qm@web113515.mail.gq1.yahoo.com>
	<alpine.DEB.2.00.1001222119300.8894@tvnag.unkk.fr>
	<4B5A3FB9.60809@0xbadc0de.be>
	<alpine.DEB.2.00.1001230828020.8894@tvnag.unkk.fr>
	<4B5B5B09.3080508@0xbadc0de.be> <20100123214644.12396.qmail@stuge.se>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100128:libssh2-devel@cool.haxx.se::BxETuQpGCWMkmRT9:8cNl
Date: Thu, 28 Jan 2010 17:41:14 +0100
In-Reply-To: <20100123214644.12396.qmail@stuge.se> (Peter Stuge's message of
	"Sat, 23 Jan 2010 22:46:44 +0100")
Message-ID: <87tyu66v2t.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Spam-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_48_96,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Peter Stuge <peter@stuge.se> writes:

> Aris Adamantiadis wrote:
>> Would you want that we provide a comparison page between libssh and
>> libssh2 on libssh.org ?
>
> I think that's a good idea, and only fair. Each site will no doubt
> have a little bit of bias in their comparison anyway, and that's
> fine. :) Better for people to have input from as many sources as
> possible.

We could also consider to add both libssh and libssh2 to:

http://en.wikipedia.org/wiki/Comparison_of_SSH_clients

Or even extend that page with more information on individual features
(like ciphers, agent, etc).

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jan 28 20:22:45 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0SJMYBl023678;
	Thu, 28 Jan 2010 20:22:42 +0100
Received: from giant.haxx.se (giant.haxx.se [83.168.254.42])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0SJMWt1023651
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jan 2010 20:22:32 +0100
Date: Thu, 28 Jan 2010 20:22:32 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: client-side only vs. libssh?
In-Reply-To: <87tyu66v2t.fsf@mocca.josefsson.org>
Message-ID: <alpine.DEB.2.00.1001282019450.18046@tvnag.unkk.fr>
References: <150615.96331.qm@web113515.mail.gq1.yahoo.com>
	<alpine.DEB.2.00.1001222119300.8894@tvnag.unkk.fr>
	<4B5A3FB9.60809@0xbadc0de.be>
	<alpine.DEB.2.00.1001230828020.8894@tvnag.unkk.fr>
	<4B5B5B09.3080508@0xbadc0de.be>
	<20100123214644.12396.qmail@stuge.se>
	<87tyu66v2t.fsf@mocca.josefsson.org>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

On Thu, 28 Jan 2010, Simon Josefsson wrote:

> We could also consider to add both libssh and libssh2 to:
>
> http://en.wikipedia.org/wiki/Comparison_of_SSH_clients

Unfortunately that would make them a bit odd since they're not clients. Lots 
of the talk and features on that page is strictly client stuff and not 
library. Like "Find text in buffer" or "URL Hyperlinking".

IMHO, it would make even more sense to create a Comparison_of_SSH_libraries 
page that also could include other libraries (closed or written in other 
languages) but I'm not sure if there's any interest or enough energy anywhere 
to push for that.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 29 05:25:50 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0T4PaON029227;
	Fri, 29 Jan 2010 05:25:45 +0100
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o0T4PYoI029150
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Jan 2010 05:25:34 +0100
Received: by qw-out-2122.google.com with SMTP id 5so268554qwd.41
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jan 2010 20:25:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:date:message-id:subject
	:from:to:content-type;
	bh=9kVUYagKzJvoGeyuEF5iKX454pnlS8HHv9VZydSkXFI=;
	b=CcyteuP/Tdto3siqA4iscgiCNG+6o2tYXwHvgtWpC9PAYVIIXXUNxWz2d8rpOH4hlG
	g0BeQSJ7yXbPMSWBpbX7w5IlBBg/rdOX8NFgbJWstOZC1VbczkfVQsSzFoeloA7Tfy8o
	WgZAh8N7XW9TeTyVHdm988J+7BCuzqqtTXaBo=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	b=w93ewGc29mkKRIy9imR7AEEK0W1Di0vujz96I6J2XB9nDBgazBZfaos+AyxajAYO1I
	kmsQTI1UMUGshqfKF7IdMionaIqpmRdNB2y5LjMDSx9UE/4gtH5SIT4A5CTT6Xtg7K05
	UPvrZ0CcRLVXn7VGfmOx4Wl2e31VQJv5QaROc=
MIME-Version: 1.0
Received: by 10.229.42.145 with SMTP id s17mr96010qce.87.1264739133760; Thu, 
	28 Jan 2010 20:25:33 -0800 (PST)
Date: Thu, 28 Jan 2010 20:25:33 -0800
Message-ID: <603122d71001282025u3af59c0dj82511a7884364360@mail.gmail.com>
Subject: shell exec and parseing
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1798693617=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============1798693617==
Content-Type: multipart/alternative; boundary=001636832408cd2861047e460656

--001636832408cd2861047e460656
Content-Type: text/plain; charset=ISO-8859-1

What would be an easy way to check whether a process has started or
terminated and also to get the pid of a process if I'm executing from a
/bin/sh shell on remote host. I was thinking of issueing commands like echo
$! or ps but then i'll have to parse all those stray messages, so this is
inconsistent.

Also right now I'm parsing messages from the output of my running remote
process under the shell (/bin/sh), is there a neat way to perform sscanf
type reading from the input buffer from channel read? Right now I'm using a
file to write out the buffers contents then i read it back with fscanf
discarding strings that are unknown, but this seems too cumbersome. Any
ideas ?

Thanks !

A.M.

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

What would be an easy way to check whether a process has started or termina=
ted and also to get the pid of a process if I&#39;m executing from a<br>/bi=
n/sh shell on remote host. I was thinking of issueing commands like echo $!=
 or ps but then i&#39;ll have to parse all those stray messages, so this is=
 inconsistent.<br>
<br>Also right now I&#39;m parsing messages from the output of my running r=
emote process under the shell (/bin/sh), is there a neat way to perform ssc=
anf type reading from the input buffer from channel read? Right now I&#39;m=
 using a file to write out the buffers contents then i read it back with fs=
canf discarding strings that are unknown, but this seems too cumbersome. An=
y ideas ?<br>
<br>Thanks ! <br><br>A.M.<br>

--001636832408cd2861047e460656--

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

--===============1798693617==--

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 29 07:38:52 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0T6chE4007991;
	Fri, 29 Jan 2010 07:38:50 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0T6cg5Y007981
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Jan 2010 07:38:42 +0100
Received: (qmail 32577 invoked by uid 501); 29 Jan 2010 06:38:42 -0000
Message-ID: <20100129063842.32576.qmail@stuge.se>
Date: Fri, 29 Jan 2010 07:38:42 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: shell exec and parseing
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71001282025u3af59c0dj82511a7884364360@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <603122d71001282025u3af59c0dj82511a7884364360@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

A. Mark wrote:
> What would be an easy way to check whether a process has started or
> terminated and also to get the pid of a process if I'm executing from a
> /bin/sh shell on remote host.

Sorry, but this is totally off-topic here.

These are very shell-specific questions, so please try asking them in
a shell forum instead. Note that for all the points you ask about
above, part of the answer will consistently be "/bin/sh is a user
interface" - which means it is such a waste of time to try to "remote
control" it from another program.

To come on topic a little, you could have one SSH channel and exec
per command, and easily have client state per command, as well as an
easy way to detect when programs terminate.


> but then i'll have to parse all those stray messages, so this is
> inconsistent.

Yes, because the tools you are considering are a *user* interface and
not an *application programmer's* interface.

So you want to do remote job control. This is a really big task. I
would spend a considerable amount of time on investigating existing
solutions for doing this, before rolling my own. SSH is a great
transport for anything, but /bin/sh would certainly not be something
I would use. One option would be to make a subsystem instead.


> is there a neat way to perform sscanf type reading from the input
> buffer from channel read?

Not really.


> Right now I'm using a file to write out the buffers contents then i
> read it back with fscanf discarding strings that are unknown, but
> this seems too cumbersome. Any ideas ?

Well, it can at least be made a little bit easier than that. :) Read
into a buffer and try using sscanf instead.


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 29 09:20:44 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0T8KYYA002310;
	Fri, 29 Jan 2010 09:20:41 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0T8KXoi002285
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Jan 2010 09:20:33 +0100
Received: (qmail 18854 invoked by uid 501); 29 Jan 2010 08:20:33 -0000
Message-ID: <20100129082033.18853.qmail@stuge.se>
Date: Fri, 29 Jan 2010 09:20:33 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: [PATCH] Fix trace context lookup in libssh2_debug()
Mail-Followup-To: libssh2 development <libssh2-devel@cool.haxx.se>
References: <638889E2-58D6-4EB4-AD23-3FB6F52522B0@intersystems.com>
	<20100126163429.29098.qmail@stuge.se>
	<ECEB38FD-2B14-43FA-B1AE-1BBA6FF6312E@intersystems.com>
	<26BBB545-95FD-4DA6-8BAF-99926888A612@intersystems.com>
	<638889E2-58D6-4EB4-AD23-3FB6F52522B0@intersystems.com>
	<20100126163429.29098.qmail@stuge.se>
	<ECEB38FD-2B14-43FA-B1AE-1BBA6FF6312E@intersystems.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <26BBB545-95FD-4DA6-8BAF-99926888A612@intersystems.com>
	<ECEB38FD-2B14-43FA-B1AE-1BBA6FF6312E@intersystems.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Dave McCaldon wrote:
> > I fixed up the commit message (please limit line length so that git
> > log doesn't have to wrap lines) and pushed the patch.
> 
> Do you know if the password/kbd-int fix to userauth.c made it?

It didn't, but I have just pushed it. Log message reformatted again
but git should be able to handle that.


Dave McCaldon wrote:
> I think I take this back, I saw something about it not needing to
> apply the patch when I did a "git pull --rebase"

Oh? Hm.


> Thanks!

Thanks yourself! :)


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 29 15:40:15 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0TEdrXD029367;
	Fri, 29 Jan 2010 15:40:03 +0100
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o0TEdpAb029363
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Jan 2010 15:39:51 +0100
Received: by qw-out-2122.google.com with SMTP id 5so336193qwd.41
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Jan 2010 06:39:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=SnOdMpC/p2hdfq5RbyD4tPziHmHpkyqeDwM90Oozbxs=;
	b=VzdEnqkmgvfN98h16miKxSlVWQfE2qHwBzoxVAi7EZb8ZQzarJrjvAD08O2PyzGBgl
	TpVtXuGl627umb76ycCJ9sLXO+7cBtiLQfyA7XDwc3eRX2paB+EH7kHPJ52EdfbxEWV4
	nShLOs4DtCRA20jbGQeGUYQ9mX9SgzHDb3M2E=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=CovYcwHc2CZQrMRvQE+ErDN6cYsXyumwf4NObSCZ6wdMB1/NSKvWi8maacU/gH5wiU
	zD4p52yoTUrFPE/Lpsc3kiMmzhBsN33sYlCLGyb30OOkslUav179zkBKVlNE8B+kNdSY
	a6FDdjdMFYwHtqX6riGryoBNL1rCo4bW9LErE=
MIME-Version: 1.0
Received: by 10.229.68.28 with SMTP id t28mr274980qci.95.1264775991470; Fri, 
	29 Jan 2010 06:39:51 -0800 (PST)
In-Reply-To: <20100129063842.32576.qmail@stuge.se>
References: <603122d71001282025u3af59c0dj82511a7884364360@mail.gmail.com>
	<20100129063842.32576.qmail@stuge.se>
Date: Fri, 29 Jan 2010 06:39:51 -0800
Message-ID: <603122d71001290639x790c7d37k8ed0ff5b8fbee46a@mail.gmail.com>
Subject: Re: shell exec and parseing
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2099573245=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============2099573245==
Content-Type: multipart/alternative; boundary=0021cc020bdeb12a29047e4e9b0a

--0021cc020bdeb12a29047e4e9b0a
Content-Type: text/plain; charset=ISO-8859-1

Thanks for your input Peter !

On Thu, Jan 28, 2010 at 10:38 PM, Peter Stuge <peter@stuge.se> wrote:


> Sorry, but this is totally off-topic here.
>

I realize that, except that this is concerning a shell running from the
libss2 library and I wasn't sure if there was anything
in the lib to handle this kind of issue. I guess the answer is no and thus
I'm on my own.


> interface" - which means it is such a waste of time to try to "remote
> control" it from another program.
>

I'm not trying to remote control the shell, I'm just trying to see if i can
easily check process status of my app running in the shell, but I understand
your point.


> To come on topic a little, you could have one SSH channel and exec
> per command, and easily have client state per command, as well as an
> easy way to detect when programs terminate.
>

I have been using this method for a while now and it works ok, except that
starting and closing the channel seems to take a lot longer than having a
shell and just issuing commands, so the latter seems like a more stable
alternative. (Especially if i have to start the app many times over in
succession.)


Well, it can at least be made a little bit easier than that. :) Read
> into a buffer and try using sscanf instead.
>

Yes, I've tried this approach but for some reason I could not get it to work
as I was loosing parts of the messages every time, but I'll try again now
that I know it's doable. Thanks for taking the time to answer my questions
Peter!

A.MArk

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

Thanks for your input Peter !<br><br><div class=3D"gmail_quote">On Thu, Jan=
 28, 2010 at 10:38 PM, Peter Stuge <span dir=3D"ltr">&lt;<a href=3D"mailto:=
peter@stuge.se">peter@stuge.se</a>&gt;</span> wrote:<br><div>=A0</div><bloc=
kquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, =
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sorry, but this is totally off-topic here.<br></blockquote><div><br>I reali=
ze that, except that this is concerning a shell running from the libss2 lib=
rary and I wasn&#39;t sure if there was anything<br>in the lib to handle th=
is kind of issue. I guess the answer is no and thus I&#39;m on my own.=A0 <=
br>
=A0<br></div><blockquote class=3D"gmail_quote" style=3D"border-left: 1px so=
lid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
interface&quot; - which means it is such a waste of time to try to &quot;re=
mote<br>
control&quot; it from another program.<br></blockquote><div><br>I&#39;m not=
 trying to remote control the shell, I&#39;m just trying to see if i can ea=
sily check process status of my app running in the shell, but I understand =
your point.<br>
=A0<br></div><blockquote class=3D"gmail_quote" style=3D"border-left: 1px so=
lid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
To come on topic a little, you could have one SSH channel and exec<br>
per command, and easily have client state per command, as well as an<br>
easy way to detect when programs terminate.<br><div class=3D"im"></div></bl=
ockquote><div><br>I have been using this method for a while now and it work=
s ok, except that starting and closing the channel seems to take a lot long=
er than having a shell and just issuing commands, so the latter seems like =
a more stable alternative. (Especially if i have to start the app many time=
s over in succession.) <br>
<br></div><div><br></div><blockquote class=3D"gmail_quote" style=3D"border-=
left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left=
: 1ex;">Well, it can at least be made a little bit easier than that. :) Rea=
d<br>

into a buffer and try using sscanf instead.<br></blockquote><div><br>Yes, I=
&#39;ve tried this approach but for some reason I could not get it to work =
as I was loosing parts of the messages every time, but I&#39;ll try again n=
ow that I know it&#39;s doable. Thanks for taking the time to answer my que=
stions Peter!<br>
<br>A.MArk <br></div></div>

--0021cc020bdeb12a29047e4e9b0a--

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

--===============2099573245==--

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 29 21:57:57 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0TKvjRr008167;
	Fri, 29 Jan 2010 21:57:54 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0TKvhoT008159
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Jan 2010 21:57:44 +0100
Received: (qmail 8415 invoked by uid 501); 29 Jan 2010 20:57:44 -0000
Message-ID: <20100129205744.8414.qmail@stuge.se>
Date: Fri, 29 Jan 2010 21:57:44 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: shell exec and parseing
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <603122d71001282025u3af59c0dj82511a7884364360@mail.gmail.com>
	<20100129063842.32576.qmail@stuge.se>
	<603122d71001290639x790c7d37k8ed0ff5b8fbee46a@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <603122d71001290639x790c7d37k8ed0ff5b8fbee46a@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

A. Mark wrote:
> Thanks for your input Peter !

You're welcome.


> > Sorry, but this is totally off-topic here.
> 
> I realize that, except that this is concerning a shell running from
> the libss2 library

The shell is running on the server side - libssh2 has nothing to do
with the shell at all. All the stuff dealing with the shell is either
in your app or in the remote sshd.


> and I wasn't sure if there was anything in the lib to handle this
> kind of issue. I guess the answer is no and thus I'm on my own.

Correct. There isn't and quite likely will never be anything in
libssh2 to deal with a remote shell because again, shells are *user*
interfaces, and libssh2 is an *application* library. The remote shell
basically does not offer any way for *applications* to interact with
it. My best advice is to come up with another way to solve your
problem. /bin/sh has no place in a generic, reliable solution.


> > interface" - which means it is such a waste of time to try to
> > "remote control" it from another program.
> 
> I'm not trying to remote control the shell, I'm just trying to see
> if i can easily check process status of my app running in the
> shell, but I understand your point.

What do you mean by process status?

Oh, and how can you be sure that the remote server even *supports*
processes? You might be talking to an SSHD which doesn't have any
such concept.

What exactly do you want to do?

If you can assume that the remote end will always be Linux you can of
course interface with /proc on the remote host in a separate channel.
All you need then is the pid of the process in the first channel,
which you might be able to retrieve easily. (SSH does not offer any
way to do it though, you have to do it on your own.)


> > you could have one SSH channel and exec per command
> 
> I have been using this method for a while now and it works ok,
> except that starting and closing the channel seems to take a lot
> longer than having a shell and just issuing commands, so the latter
> seems like a more stable alternative. (Especially if i have to
> start the app many times over in succession.)

The latter is extremely unstable, because you are most likely making
a great many assumptions about the shell on the remote server - while
the former is extremely stable, because it makes *NO* assumptions
about shells on the remote server. The former method only needs to
rely on SSH protocol.

It's quite possible that there are easy ways to increase performance
using the former method. libssh2 has sub-optimal performance in many
cases, so there might be a fix if you look into this some more.


> > Well, it can at least be made a little bit easier than that. :)
> > Read into a buffer and try using sscanf instead.
> 
> Yes, I've tried this approach but for some reason I could not get
> it to work as I was loosing parts of the messages every time, but
> I'll try again now that I know it's doable.

It should certainly work. If you run into trouble please reproduce
the problem with a minimal C program and post that program to the
list. If others can easily reproduce your problem you can usually get
expert advice and very fast solutions - sometimes within minutes. But
the flip side is that if you do too little to help others then you'll
get no help at all.


> Thanks for taking the time to answer my questions Peter!

Again - you're welcome. I hope you can find a robust solution with
libssh2, I'm just convinced that you should try to avoid the shell.
:)


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 29 22:05:10 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0TL54SQ015471;
	Fri, 29 Jan 2010 22:05:07 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0TL52bp015380
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Jan 2010 22:05:02 +0100
Received: (qmail 9728 invoked by uid 501); 29 Jan 2010 21:05:03 -0000
Message-ID: <20100129210503.9727.qmail@stuge.se>
Date: Fri, 29 Jan 2010 22:05:03 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Run cross-compiled libssh2 win32 apps in wine?
Mail-Followup-To: libssh2-devel@cool.haxx.se
MIME-Version: 1.0
Content-Disposition: inline
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

I just cross-compiled libgpg-error-1.7, libgcrypt-1.4.5 and
libssh2-git with mingw, and I want to run the examples in wine,
but libgcrypt throws an error in random/rndw32.c:

DBG: rndw32: get performance data problem: ec=2

This is in registry_poll() which seems to be called when
GetModuleHandle("NTDll.dll") fails. I get a bunch of fixme:ntdll:..
messages from wine also, but in general I understand that randomness
within wine might be tricky.

Question is, has anyone (Simon?) successfully run cross-compiled (or
natively built, for that matter!) libssh2 programs in wine?

And if you did - were you using libgcrypt or OpenSSL for crypto?


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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 29 22:23:12 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0TLN5vc028035;
	Fri, 29 Jan 2010 22:23:08 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0TLN3Ok028010
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Jan 2010 22:23:03 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0TLN2uJ023236
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Jan 2010 22:23:03 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2-devel@cool.haxx.se
Subject: Re: Run cross-compiled libssh2 win32 apps in wine?
References: <20100129210503.9727.qmail@stuge.se>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100129:libssh2-devel@cool.haxx.se::SV3+E4LE67Xhv/Cl:LUuG
Date: Fri, 29 Jan 2010 22:23:02 +0100
In-Reply-To: <20100129210503.9727.qmail@stuge.se> (Peter Stuge's message of
	"Fri, 29 Jan 2010 22:05:03 +0100")
Message-ID: <87vdekzjux.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_03_06,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Peter Stuge <peter@stuge.se> writes:

> I just cross-compiled libgpg-error-1.7, libgcrypt-1.4.5 and
> libssh2-git with mingw, and I want to run the examples in wine,
> but libgcrypt throws an error in random/rndw32.c:
>
> DBG: rndw32: get performance data problem: ec=2

It is just a warning.

> This is in registry_poll() which seems to be called when
> GetModuleHandle("NTDll.dll") fails. I get a bunch of fixme:ntdll:..
> messages from wine also, but in general I understand that randomness
> within wine might be tricky.

Indeed.  The problem is that Wine's emulation of Windows is buggy here,
so it returns an error code instead of the expected data.

> Question is, has anyone (Simon?) successfully run cross-compiled (or
> natively built, for that matter!) libssh2 programs in wine?

Sure -- I believe the self-test is running under Wine when I built my
binary Windows build.

> And if you did - were you using libgcrypt or OpenSSL for crypto?

The binaries on http://josefsson.org/gnutls4win/ are built with
libgcrypt.  See the Makefile for how to build libssh2 using debian's
mingw + wine.  You'll need binfmt_support to make Windows binaries be
ran under Wine automatically.

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 29 22:52:59 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0TLqpJO015844;
	Fri, 29 Jan 2010 22:52:56 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0TLqndr015838
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Jan 2010 22:52:49 +0100
Received: (qmail 17785 invoked by uid 501); 29 Jan 2010 21:52:50 -0000
Message-ID: <20100129215250.17784.qmail@stuge.se>
Date: Fri, 29 Jan 2010 22:52:50 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Run cross-compiled libssh2 win32 apps in wine?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <20100129210503.9727.qmail@stuge.se>
	<87vdekzjux.fsf@mocca.josefsson.org>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <87vdekzjux.fsf@mocca.josefsson.org>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Simon Josefsson wrote:
> > I just cross-compiled libgpg-error-1.7, libgcrypt-1.4.5 and
> > libssh2-git with mingw, and I want to run the examples in wine,
> > but libgcrypt throws an error in random/rndw32.c:
> >
> > DBG: rndw32: get performance data problem: ec=2
> 
> It is just a warning.

Aha! I thought it was causing the following crash.


> > randomness within wine might be tricky.
> 
> Indeed.  The problem is that Wine's emulation of Windows is buggy
> here, so it returns an error code instead of the expected data.

Bleh.


> > Question is, has anyone (Simon?) successfully run cross-compiled
> > (or natively built, for that matter!) libssh2 programs in wine?
> 
> Sure -- I believe the self-test is running under Wine when I built
> my binary Windows build.
> 
> > And if you did - were you using libgcrypt or OpenSSL for crypto?
> 
> The binaries on http://josefsson.org/gnutls4win/ are built with
> libgcrypt.

No examples there though.


> See the Makefile for how to build libssh2 using debian's mingw +
> wine.

I can build without trouble, just that programs crash.


> You'll need binfmt_support to make Windows binaries be ran under
> Wine automatically.

Nod. I get the following crash with fairly useless backtrace.

Something that might be worth mentioning is that I've disabled
various stuff in libgcrypt that I don't want to use:

--enable-ciphers=aes --enable-pubkey-ciphers=dsa,rsa --enable-digests=sha1,sha256,sha512

..and changed libgcrypt.h accordingly before building libssh2:

--- a/src/libgcrypt.h
+++ b/src/libgcrypt.h
@@ -39,16 +39,16 @@
 
 #include <gcrypt.h>
 
-#define LIBSSH2_MD5 1
+#define LIBSSH2_MD5 0
 
-#define LIBSSH2_HMAC_RIPEMD 1
+#define LIBSSH2_HMAC_RIPEMD 0
 
 #define LIBSSH2_AES 1
 #define LIBSSH2_AES_CTR 1
-#define LIBSSH2_BLOWFISH 1
-#define LIBSSH2_RC4 1
-#define LIBSSH2_CAST 1
-#define LIBSSH2_3DES 1
+#define LIBSSH2_BLOWFISH 0
+#define LIBSSH2_RC4 0
+#define LIBSSH2_CAST 0
+#define LIBSSH2_3DES 0


Here's the output I get:

$ make check
make  simple.exe
make[1]: Entering directory `/home/stuge/w32/libssh2/libssh2.git/tests'
make[1]: `simple.exe' is up to date.
make[1]: Leaving directory `/home/stuge/w32/libssh2/libssh2.git/tests'
make  check-TESTS
make[1]: Entering directory `/home/stuge/w32/libssh2/libssh2.git/tests'
PASS: simple.exe
NOTE: you should run 'diskperf -y' to enable the disk statistics
fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
fixme:ntdll:NtQuerySystemInformation (0x00000004,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000006,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000007,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000009,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000000a,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000000c,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000000d,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000000e,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000000f,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_HANDLE_INFORMATION
fixme:ntdll:NtQuerySystemInformation (0x00000011,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000012,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000013,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000014,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_CACHE_INFORMATION
fixme:ntdll:NtQuerySystemInformation (0x00000016,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_INTERRUPT_INFORMATION
fixme:ntdll:NtQuerySystemInformation (0x00000018,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000019,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000001c,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000001d,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000001e,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000001f,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000020,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000021,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000022,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000024,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation SystemRegistryQuotaInformation: faking max registry size of 32 MB
fixme:ntdll:NtQuerySystemInformation (0x00000027,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000028,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000029,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000002a,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000002b,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000002c,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000002d,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000031,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000032,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000033,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000036,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000037,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000038,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x00000039,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000003a,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000003b,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000003c,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000003d,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000003e,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtQuerySystemInformation (0x0000003f,0x12c818,0x0000f800,0x60fa88) stub
fixme:ntdll:NtPowerInformation semi-stub: SystemPowerCapabilities
DBG: rndw32: get performance data problem: ec=2
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60fa7c,0x60fa78): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f9dc,0x60f9d8): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f92c,0x60f928): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f8fc,0x60f8f8): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f9ac,0x60f9a8): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f9ac,0x60f9a8): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f8fc,0x60f8f8): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f9ac,0x60f9a8): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f9ac,0x60f9a8): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f95c,0x60f958): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f9ac,0x60f9a8): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f9ac,0x60f9a8): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f95c,0x60f958): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f9ac,0x60f9a8): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f9ac,0x60f9a8): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60fa8c,0x60fa88): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60fa6c,0x60fa68): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60fa0c,0x60fa08): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f9bc,0x60f9b8): stub
fixme:process:GetProcessWorkingSetSize (0xffffffff,0x60f95c,0x60f958): stub
Fingerprint: wine: Unhandled page fault on read access to 0x00000000 at address 0x401525 (thread 001f), starting debugger...
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x00401525).
Register dump:
 CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
 EIP:00401525 ESP:0060fc80 EBP:0060fe98 EFLAGS:00010246(  R- --  I  Z- -P- )
 EAX:00000000 EBX:6846aff4 ECX:0000000d EDX:00000000
 ESI:7ffdf000 EDI:00401130
Stack dump:
0x0060fc80:  00403096 00000001 00000000 00000000
0x0060fc90:  00000000 00000000 00000000 6802ae34
0x0060fca0:  00000020 00125cb0 0060fcc8 68320e4f
0x0060fcb0:  000fa328 00020000 00125ce8 02020002
0x0060fcc0:  536e6957 206b636f 00302e32 00110014
0x0060fcd0:  00125d70 0000a290 00000001 68320e4f
Backtrace:
=>0 0x00401525 in ssh2 (+0x1525) (0x0060fe98)
  1 0x004010b6 in ssh2 (+0x10b6) (0x0060fee8)
  2 0x00401148 in ssh2 (+0x1148) (0x0060ff08)
  3 0x6842b210 in kernel32 (+0x5b210) (0x0060ffe8)
0x00401525: movzbl      0x0(%eax),%eax
Modules:
Module  Address                 Debug info      Name (54 modules)
PE        240000-  262000       Deferred        libgpg-error-0
PE        400000-  40d000       Export          ssh2
PE      10000000-10105000       Deferred        libgcrypt-11
ELF     40000000-40027000       Deferred        netapi32<elf>
  \-PE  40010000-40027000       \               netapi32
ELF     40027000-40046000       Deferred        iphlpapi<elf>
  \-PE  40030000-40046000       \               iphlpapi
ELF     4005e000-40073000       Deferred        libresolv.so.2
PE      63b40000-63bda000       Deferred        libssh2-1
ELF     68000000-6801f000       Deferred        ld-linux.so.2
ELF     68020000-6815c000       Deferred        libwine.so.1
ELF     6815d000-68166000       Deferred        libnss_compat.so.2
ELF     68166000-68171000       Deferred        libnss_nis.so.2
ELF     68174000-6818d000       Deferred        libpthread.so.0
ELF     6818d000-682d7000       Deferred        libc.so.6
ELF     682d7000-682db000       Deferred        libdl.so.2
ELF     682dc000-6838e000       Deferred        ntdll<elf>
  \-PE  682f0000-6838e000       \               ntdll
ELF     6838e000-683b4000       Deferred        libm.so.6
ELF     683b4000-68507000       Export          kernel32<elf>
  \-PE  683d0000-68507000       \               kernel32
ELF     6871f000-68736000       Deferred        libnsl.so.1
ELF     68736000-68742000       Deferred        libnss_files.so.2
ELF     68742000-68798000       Deferred        advapi32<elf>
  \-PE  68750000-68798000       \               advapi32
ELF     68798000-68808000       Deferred        msvcrt<elf>
  \-PE  687b0000-68808000       \               msvcrt
ELF     68808000-68953000       Deferred        user32<elf>
  \-PE  68820000-68953000       \               user32
ELF     68953000-689f5000       Deferred        gdi32<elf>
  \-PE  68960000-689f5000       \               gdi32
ELF     689f5000-68a23000       Deferred        ws2_32<elf>
  \-PE  68a00000-68a23000       \               ws2_32
ELF     68a23000-68aaa000       Deferred        libfreetype.so.6
ELF     68aaa000-68abe000       Deferred        libz.so.1
ELF     68ad6000-68b03000       Deferred        libfontconfig.so.1
ELF     68b03000-68b2a000       Deferred        libexpat.so.1
ELF     68b5c000-68bf7000       Deferred        winex11<elf>
  \-PE  68b70000-68bf7000       \               winex11
ELF     68c0f000-68c18000       Deferred        libsm.so.6
ELF     68c18000-68c31000       Deferred        libice.so.6
ELF     68c31000-68c40000       Deferred        libxext.so.6
ELF     68c40000-68d34000       Deferred        libx11.so.6
ELF     68d34000-68d39000       Deferred        libuuid.so.1
ELF     68d39000-68d3d000       Deferred        libxau.so.6
ELF     68d3d000-68d43000       Deferred        libxdmcp.so.6
ELF     68d43000-68d64000       Deferred        imm32<elf>
  \-PE  68d50000-68d64000       \               imm32
ELF     68d64000-68d6a000       Deferred        libxxf86vm.so.1
ELF     68d6a000-68d74000       Deferred        libxrender.so.1
ELF     68d74000-68d7d000       Deferred        libxrandr.so.2
ELF     68d7d000-68d88000       Deferred        libxcursor.so.1
ELF     68d88000-68d8e000       Deferred        libxfixes.so.3
ELF     7bf00000-7bf04000       Deferred        <wine-loader>
Threads:
process  tid      prio (all id:s are in hex)
0000000e 
        0000001c    0
        00000014    0
        00000010    0
        0000000f    0
00000011 
        00000018    0
        00000013    0
        00000012    0
00000019 
        0000001d    0
        0000001b    0
        0000001a    0
00000035 
        00000034    0
00000037 
        00000036    0
0000000d 
        0000000c    0
00000039 
        00000038    0
0000003e 
        0000000b    0
00000015 (D) Z:\home\stuge\w32\libssh2\libssh2.git\tests\.libs\ssh2.exe
        0000001f    0 <==
Backtrace:
=>0 0x00401525 in ssh2 (+0x1525) (0x0060fe98)
  1 0x004010b6 in ssh2 (+0x10b6) (0x0060fee8)
  2 0x00401148 in ssh2 (+0x1148) (0x0060ff08)
  3 0x6842b210 in kernel32 (+0x5b210) (0x0060ffe8)
FAIL: ssh2.sh
===========================================
1 of 2 tests failed
Please report to libssh2-devel@cool.haxx.se
===========================================
make[1]: *** [check-TESTS] Error 1
make[1]: Leaving directory `/home/stuge/w32/libssh2/libssh2.git/tests'
make: *** [check-am] Error 2


It's encouraging that simple.exe works, but still..

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jan 29 22:58:24 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0TLvqR6017522;
	Fri, 29 Jan 2010 22:57:58 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0TLvpLN017517
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Jan 2010 22:57:51 +0100
Received: (qmail 18507 invoked by uid 501); 29 Jan 2010 21:57:52 -0000
Message-ID: <20100129215752.18506.qmail@stuge.se>
Date: Fri, 29 Jan 2010 22:57:52 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Run cross-compiled libssh2 win32 apps in wine?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <20100129210503.9727.qmail@stuge.se>
	<87vdekzjux.fsf@mocca.josefsson.org>
	<20100129215250.17784.qmail@stuge.se>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20100129215250.17784.qmail@stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Peter Stuge wrote:
> Here's the output I get:

I just saw something that I missed before:

..

> Fingerprint: wine: Unhandled page fault on read access to 0x00000000 at address 0x401525 (thread 001f), starting debugger...

The "Fingerprint: " part. Looking at source:

    fingerprint = libssh2_hostkey_hash(session, LIBSSH2_HOSTKEY_HASH_MD5);
    printf("Fingerprint: ");
    for(i = 0; i < 16; i++) {
        printf("%02X ", (unsigned char)fingerprint[i]);
    }
    printf("\n");

Now, since I don't have MD5 the crash is unsurprising. Let's see what
I can do here.


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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan 30 00:12:13 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0TNC4uq004809;
	Sat, 30 Jan 2010 00:12:11 +0100
Received: from foo.birdnet.se (qmailr@foo.birdnet.se [213.88.146.6])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with SMTP id o0TNC3pL004784
	for <libssh2-devel@cool.haxx.se>; Sat, 30 Jan 2010 00:12:03 +0100
Received: (qmail 31816 invoked by uid 501); 29 Jan 2010 23:12:03 -0000
Message-ID: <20100129231203.31815.qmail@stuge.se>
Date: Sat, 30 Jan 2010 00:12:03 +0100
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Run cross-compiled libssh2 win32 apps in wine?
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <20100129210503.9727.qmail@stuge.se>
	<87vdekzjux.fsf@mocca.josefsson.org>
	<20100129215250.17784.qmail@stuge.se>
	<20100129215752.18506.qmail@stuge.se>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <20100129215752.18506.qmail@stuge.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

All good now.

Peter Stuge wrote:
> Now, since I don't have MD5 the crash is unsurprising. Let's see
> what I can do here.

Ok. With some of the pushed changes there's no more crash.

==================
All 2 tests passed
==================

..this is with libgcrypt which only has AES, SHA1, RSA and DSA.


With the last pushed commit to simplify ifdefs in direct_tcpip.c I
can build it standalone quite easily, both dynamically and
statically:

$ make
i686-mingw32-gcc -I../libssh2/include -o dyn-direct_tcpip.exe direct_tcpip.c -L../libssh2/lib -L../libgcrypt/lib -lssh2 -lws2_32
i686-mingw32-strip dyn-direct_tcpip.exe
i686-mingw32-gcc -static -I../libssh2/include -o static-direct_tcpip.exe direct_tcpip.c -L../libssh2/lib -L../libgcrypt/lib -lssh2 -lws2_32 -lgcrypt -lgpg-error
i686-mingw32-strip static-direct_tcpip.exe


This produces really good size executables:

$ ls -l *exe
-rwxr-xr-x 1 stuge stuge   9216 Jan 30 00:09 dyn-direct_tcpip.exe
-rwxr-xr-x 1 stuge stuge 399360 Jan 30 00:09 static-direct_tcpip.exe


And they pack with great results:

$ upx *exe
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2008
UPX 3.03        Markus Oberhumer, Laszlo Molnar & John Reiser   Apr 27th 2008

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
      9216 ->      5120   55.56%    win32/pe     dyn-direct_tcpip.exe          
    399360 ->    152064   38.08%    win32/pe     static-direct_tcpip.exe       
   --------------------   ------   -----------   -----------
    408576 ->    157184   38.47%                 [ 2 files ]

Packed 2 files.


(This particular example still doesn't run correctly on win32, I'm
looking into fixing that.)


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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan 30 01:25:45 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0U0PMV7015155;
	Sat, 30 Jan 2010 01:25:32 +0100
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id
	o0U0PJVc015071
	for <libssh2-devel@cool.haxx.se>; Sat, 30 Jan 2010 01:25:19 +0100
Received: by qw-out-2122.google.com with SMTP id 5so439084qwd.41
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Jan 2010 16:25:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:in-reply-to:references
	:date:message-id:subject:from:to:content-type;
	bh=2F3+rYUfbJdttnhD56h9B7rv5LmjZcNpzFnbB3IrnOg=;
	b=vT51y444CZRnlZzUs1SmSXh4Rha0ySd5QP90okMrfBlZ+KFwmZGGRRIzprlwbUUFS7
	m41wgAOqZ6/GjuGzOL57c7QjP4AVfpWq7pkV4kMnLr+Q/UYxtzLWmf4+DaWQcfGUhW8m
	6Tb082vaw2l8PCZ+rkTpvbl1bOMe35KIcz+ag=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type;
	b=pArrN9ZLlrAzlS/l8mEhN5vtl5kBFRR8ipcZpXqSQNkulmD8lacaZtzvL76fwGt2lc
	B0LwxEM+AlwRCE12CDYynwqJJaj7eiXzkKcwE2aKYnQWWHE/nseBsYiDYLTfc9uPeWdt
	HCHR6hYeUa4y/4gtn86qAZNtaaSZWYKaVJ1lI=
MIME-Version: 1.0
Received: by 10.229.26.135 with SMTP id e7mr594115qcc.58.1264811119118; Fri, 
	29 Jan 2010 16:25:19 -0800 (PST)
In-Reply-To: <20100129205744.8414.qmail@stuge.se>
References: <603122d71001282025u3af59c0dj82511a7884364360@mail.gmail.com>
	<20100129063842.32576.qmail@stuge.se>
	<603122d71001290639x790c7d37k8ed0ff5b8fbee46a@mail.gmail.com>
	<20100129205744.8414.qmail@stuge.se>
Date: Fri, 29 Jan 2010 16:25:18 -0800
Message-ID: <603122d71001291625s45b2ba37pd1e9d5085d1c0c3b@mail.gmail.com>
Subject: Re: shell exec and parseing
From: "A. Mark" <gougolith@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0606312872=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

--===============0606312872==
Content-Type: multipart/alternative; boundary=001636418183768c08047e56c9ec

--001636418183768c08047e56c9ec
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Jan 29, 2010 at 12:57 PM, Peter Stuge <peter@stuge.se> wrote:

> What do you mean by process status?
>

I mean to retrieve information about the running process.


> Oh, and how can you be sure that the remote server even *supports*
> processes? You might be talking to an SSHD which doesn't have any
> such concept.
>

You are right I am happily assuming that a shell exist which maybe a false
assumption.


> What exactly do you want to do?
>

I am trying to write a user interface for a network backup utility. So all
my user interface does is executes the apps on the remote servers and then
the apps takes care of the backups. So it's a mess because once the
execution  starts there is very little the interface can do to control the
apps, basically just sit back and hope it all goes well. So I read stderr
and stdin from ssh channel to get progress and such, but with the /bin/sh
method it's hard to know whether the process even finished because i need to
monitor processes with shell commands like ps and echo i guess. But most
importantly I need to know at least every second if the process is running
so i need to issue echo $ to get a pid. Anyways there are my obstacles, I
would hate using shell commands to get that kind of info cause it's
cumbersome but what else can i do ?

If you can assume that the remote end will always be Linux you can of
> course interface with /proc on the remote host in a separate channel.
> All you need then is the pid of the process in the first channel,
> which you might be able to retrieve easily. (SSH does not offer any
> way to do it though, you have to do it on your own.)
>

This maybe a good solution, I must say that when i tried to have more then
one non-blocking channel on the same session i was getting crashes and
erratic behaviour, but this maybe due to some of my own code. There fore I
usually establish more then one session.


> The latter is extremely unstable, because you are most likely making
> a great many assumptions about the shell on the remote server - while
> the former is extremely stable, because it makes *NO* assumptions
> about shells on the remote server. The former method only needs to
> rely on SSH protocol.
>

I hear you.


> It's quite possible that there are easy ways to increase performance
> using the former method. libssh2 has sub-optimal performance in many
> cases, so there might be a fix if you look into this some more.
>

Yes, I could do that if I had time later.

Inspired by you, I did find the solution to using sscanf to parse the
buffer, thanks!


A.Mark

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

<br><br><div class=3D"gmail_quote">On Fri, Jan 29, 2010 at 12:57 PM, Peter =
Stuge <span dir=3D"ltr">&lt;<a href=3D"mailto:peter@stuge.se">peter@stuge.s=
e</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"borde=
r-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-le=
ft: 1ex;">
What do you mean by process status?<br></blockquote><div><br>I mean to retr=
ieve information about the running process. <br></div><div>=A0</div><blockq=
uote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 20=
4); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Oh, and how can you be sure that the remote server even *supports*<br>
processes? You might be talking to an SSHD which doesn&#39;t have any<br>
such concept.<br></blockquote><div><br>You are right I am happily assuming =
that a shell exist which maybe a false assumption.<br>=A0 <br></div><blockq=
uote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 20=
4); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

What exactly do you want to do?<br></blockquote><div><br>I am trying to wri=
te a user interface for a network backup utility. So all my user interface =
does is executes the apps on the remote servers and then the apps takes car=
e of the backups. So it&#39;s a mess because once the execution=A0 starts t=
here is very little the interface can do to control the apps, basically jus=
t sit back and hope it all goes well. So I read stderr and stdin from ssh c=
hannel to get progress and such, but with the /bin/sh method it&#39;s hard =
to know whether the process even finished because i need to monitor process=
es with shell commands like ps and echo i guess. But most importantly I nee=
d to know at least every second if the process is running so i need to issu=
e echo $ to get a pid. Anyways there are my obstacles, I would hate using s=
hell commands to get that kind of info cause it&#39;s cumbersome but what e=
lse can i do ?<br>
<br></div><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid=
 rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If you can assume that the remote end will always be Linux you can of<br>
course interface with /proc on the remote host in a separate channel.<br>
All you need then is the pid of the process in the first channel,<br>
which you might be able to retrieve easily. (SSH does not offer any<br>
way to do it though, you have to do it on your own.)<br><div class=3D"im"><=
/div></blockquote><div><br>This maybe a good solution, I must say that when=
 i tried to have more then one non-blocking channel on the same session i w=
as getting crashes and erratic behaviour, but this maybe due to some of my =
own code. There fore I usually establish more then one session.<br>
=A0</div><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid =
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The latt=
er is extremely unstable, because you are most likely making<br>
a great many assumptions about the shell on the remote server - while<br>
the former is extremely stable, because it makes *NO* assumptions<br>
about shells on the remote server. The former method only needs to<br>
rely on SSH protocol.<br></blockquote><div><br>I hear you.<br>=A0<br></div>=
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It&#39;s quite possible that there are easy ways to increase performance<br=
>
using the former method. libssh2 has sub-optimal performance in many<br>
cases, so there might be a fix if you look into this some more.<br><div cla=
ss=3D"im"></div></blockquote><div><br>Yes, I could do that if I had time la=
ter. <br><br>Inspired by you, I did find the solution to using sscanf to pa=
rse the buffer, thanks!<br>
<br><br>A.Mark<br></div></div>

--001636418183768c08047e56c9ec--

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

--===============0606312872==--

From libssh2-devel-bounces@cool.haxx.se  Sat Jan 30 05:25:47 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0U4OcTX009163;
	Sat, 30 Jan 2010 05:24:47 +0100
Received: from dottedmag.net (burger.dottedmag.net [212.75.37.82])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0U4OaLo009145
	for <libssh2-devel@cool.haxx.se>; Sat, 30 Jan 2010 05:24:37 +0100
Received: from vertex.dottedmag (unknown [91.197.127.125])
	by dottedmag.net (Postfix) with ESMTPSA id 5DFB18C072
	for <libssh2-devel@cool.haxx.se>; Sat, 30 Jan 2010 05:24:36 +0100 (CET)
Received: from dottedmag by vertex.dottedmag with local (Exim 4.69)
	(envelope-from <dottedmag@dottedmag.net>) id 1Nb4sr-0001Ui-W8
	for libssh2-devel@cool.haxx.se; Sat, 30 Jan 2010 10:24:34 +0600
From: Mikhail Gusarov <dottedmag@dottedmag.net>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: shell exec and parseing
References: <603122d71001282025u3af59c0dj82511a7884364360@mail.gmail.com>
	<20100129063842.32576.qmail@stuge.se>
	<603122d71001290639x790c7d37k8ed0ff5b8fbee46a@mail.gmail.com>
	<20100129205744.8414.qmail@stuge.se>
	<603122d71001291625s45b2ba37pd1e9d5085d1c0c3b@mail.gmail.com>
Date: Sat, 30 Jan 2010 10:24:33 +0600
In-Reply-To: <603122d71001291625s45b2ba37pd1e9d5085d1c0c3b@mail.gmail.com>
	(A. Mark's message of "Fri, 29 Jan 2010 16:25:18 -0800")
Message-ID: <874om4md8e.fsf@vertex.dottedmag>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1225539977=="
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

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

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


Twas brillig at 16:25:18 29.01.2010 UTC-08 when gougolith@gmail.com did gyr=
e and gimble:

 AM> I am trying to write a user interface for a network backup utility. So=
 all
 AM> my user interface does is executes the apps on the remote servers and =
then
 AM> the apps takes care of the backups. So it's a mess because once the
 AM> execution  starts there is very little the interface can do to control=
 the
 AM> apps, basically just sit back and hope it all goes well. So I read std=
err
 AM> and stdin from ssh channel to get progress and such, but with the /bin=
/sh
 AM> method it's hard to know whether the process even finished because i n=
eed to
 AM> monitor processes with shell commands like ps and echo i guess. But mo=
st
 AM> importantly I need to know at least every second if the process is run=
ning
 AM> so i need to issue echo $ to get a pid. Anyways there are my obstacles=
, I
 AM> would hate using shell commands to get that kind of info cause it's
 AM> cumbersome but what else can i do ?

Instead of opening a shell (which is a "shell" request) and handling the
parsing etc, you can run an "exec" request which executes single command
and terminates. Exit status is returned (at least it SHOULD (per RFC) be
returned).

Note that you do not need to open new session each time, it is enough to
establish a session once and then "exec" requests in sequence and even
concurrently.

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

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

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

iQIcBAEBAgAGBQJLY7SBAAoJEJ0g9lA+M4iInIcP/3eVxNpGX17ylqvm+KbMB03x
mFMT+gZW9/dmFpEMoCSqJ2Fqw1pzxJaag2oCoYWFI7UVbnSYLnZNdAm2wbTuTDN4
TDIGQXsf9xKf2vci8dzeyodND1jtS18zGZDfv/pG6j16pGlqcy/KEHStJzjYjLOk
RtMxFGEhkHWFZjE2a1JFpNGqwss2eM0dUmveUyJ5Zc/rjMjwKereJtPkPpbp/me3
L+9E2DXTQqv1xBN/av4s5e87jLf8cHNdw5oOLla/OHV5e6sCQl8crvAv9PG1eC+Q
lZx6xYbx0wFkVroe8MCR4VKhKP7VPmY9199NimwxRhDezwjD81OIzPSdc0+pEfU2
DuyXBp1g784DDhwQH1C2Pnx+G70vR92n8foxJ1oat03iSLs7BTJ8ILOgkK+z75wH
F3c7omrzQEpZ5lr+MDD0T7gljEfl2USIBRkcY817ia9L+E96L62Nj1YV/q5pk8bd
QulYB2/Bt3IClxt9XgSRjetGklYJeWZufUQNTslQZs8mkQIHgRe8pDEOkUaVkONn
yGLdJoPeWrgpv7vhuP2cABD3PlZlp5SmZOnQaApbCmEOSjSVEsmNiRonMY/emqh+
Wib2O6m9+DS/CdYm8GmuYnmy4m6o4j4kdL/VZ0mcf5ogfyPBLs8QHNCJNJLpiFI/
y4Ed32hA8pgQ8fdXVmIG
=MKQw
-----END PGP SIGNATURE-----
--=-=-=--

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

--===============1225539977==--

From libssh2-devel-bounces@cool.haxx.se  Sat Jan 30 08:59:40 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0U7xSrV019442;
	Sat, 30 Jan 2010 08:59:37 +0100
Received: from yxa-v.extundo.com (yxa-v.extundo.com [83.241.177.39])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0U7xRAi019428
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Sat, 30 Jan 2010 08:59:28 +0100
Received: from mocca (c80-216-24-99.bredband.comhem.se [80.216.24.99])
	(authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5) with ESMTP id
	o0U7xPDt003063
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Sat, 30 Jan 2010 08:59:26 +0100
From: Simon Josefsson <simon@josefsson.org>
To: libssh2-devel@cool.haxx.se
Subject: Re: Run cross-compiled libssh2 win32 apps in wine?
References: <20100129210503.9727.qmail@stuge.se>
	<87vdekzjux.fsf@mocca.josefsson.org>
	<20100129215250.17784.qmail@stuge.se>
	<20100129215752.18506.qmail@stuge.se>
	<20100129231203.31815.qmail@stuge.se>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:100130:libssh2-devel@cool.haxx.se::GUTSoSEUNIjGJdbk:bonZ
Date: Sat, 30 Jan 2010 08:59:25 +0100
In-Reply-To: <20100129231203.31815.qmail@stuge.se> (Peter Stuge's message of
	"Sat, 30 Jan 2010 00:12:03 +0100")
Message-ID: <87bpgcuioy.fsf@mocca.josefsson.org>
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)
MIME-Version: 1.0
X-Spam-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_12_24,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.95.3 at yxa-v
X-Virus-Status: Clean
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

Peter Stuge <peter@stuge.se> writes:

> All good now.
>
> Peter Stuge wrote:
>> Now, since I don't have MD5 the crash is unsurprising. Let's see
>> what I can do here.
>
> Ok. With some of the pushed changes there's no more crash.
>
> ==================
> All 2 tests passed
> ==================
>
> ..this is with libgcrypt which only has AES, SHA1, RSA and DSA.

Great.  It is always a good sign that others can reproduce the same
build.

> This produces really good size executables:
>
> $ ls -l *exe
> -rwxr-xr-x 1 stuge stuge   9216 Jan 30 00:09 dyn-direct_tcpip.exe
> -rwxr-xr-x 1 stuge stuge 399360 Jan 30 00:09 static-direct_tcpip.exe

Yeah, I build most of my Windows stuff on Debian these days.  The build
environment is sane; the executables are small and they appear to work
on all Windows machines I've tested.  Only problem is that MSVS is still
needed when porting to some embedded Windows variant; MinGW only
supports X86 as far as I recall.  Also, MinGW64 isn't in Debian yet, but
I haven't seen a significant demand for Windows 64-bit binaries so far.

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

From libssh2-devel-bounces@cool.haxx.se  Sat Jan 30 16:19:41 2010
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0UFJQGT001111;
	Sat, 30 Jan 2010 16:19:36 +0100
Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com
	[71.74.56.124])
	by giant.haxx.se (8.14.3/8.14.3/Debian-9) with ESMTP id o0UFJOj8001093
	for <libssh2-devel@cool.haxx.se>; Sat, 30 Jan 2010 16:19:24 +0100
X-Authority-Analysis: v=1.0 c=1 a=qDVvNyh8DwgA:10 a=endPz4OS8LK-uXXFKGYA:9
	a=RbF4ktyEOLzB170ksYbQF30E2ZAA:4
X-Cloudmark-Score: 0
X-Originating-IP: 70.116.71.237
Received: from [70.116.71.237] ([70.116.71.237:44351] helo=dc7100.roadrunn.com)
	by hrndva-oedge04.mail.rr.com (envelope-from <ngierman@roadrunn.com>)
	(ecelerity 2.2.2.39 r()) with ESMTP
	id 24/F2-21879-7FD446B4; Sat, 30 Jan 2010 15:19:19 +0000
Received: by dc7100.roadrunn.com (Postfix, from userid 501)
	id D52F7830A2A; Sat, 30 Jan 2010 10:12:55 -0600 (CST)
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on dc7100.roadrunn.com
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00
	autolearn=ham version=3.2.4
Received: from ngierman3 (dc7100 [192.168.1.6])
	by dc7100.roadrunn.com (Postfix) with ESMTP id E81AF830A17
	for <libssh2-devel@cool.haxx.se>; Sat, 30 Jan 2010 10:12:51 -0600 (CST)
From: "Neil Gierman" <ngierman@roadrunn.com>
To: "'libssh2 development'" <libssh2-devel@cool.haxx.se>
References: <20100129210503.9727.qmail@stuge.se>	<87vdekzjux.fsf@mocca.josefsson.org>	<20100129215250.17784.qmail@stuge.se>	<20100129215752.18506.qmail@stuge.se>	<20100129231203.31815.qmail@stuge.se>
	<87bpgcuioy.fsf@mocca.josefsson.org>
In-Reply-To: <87bpgcuioy.fsf@mocca.josefsson.org>
Subject: RE: Run cross-compiled libssh2 win32 apps in wine?
Date: Sat, 30 Jan 2010 09:19:15 -0600
Message-ID: <001501caa1bf$958f9180$c0aeb480$@com>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AcqhiqBGhiqT3VAfQdG0X5wTajsI2wANFWMg
Content-Language: en-us
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: libssh2-devel-bounces@cool.haxx.se
Errors-To: libssh2-devel-bounces@cool.haxx.se

> Yeah, I build most of my Windows stuff on Debian these days.  The build
> environment is sane; the executables are small and they appear to work
> on all Windows machines I've tested.  Only problem is that MSVS is
> still
> needed when porting to some embedded Windows variant; MinGW only
> supports X86 as far as I recall.  Also, MinGW64 isn't in Debian yet,
> but
> I haven't seen a significant demand for Windows 64-bit binaries so far.
> 
[Gierman, Neil B] 

I don't know if it matters but right now I am building the following:

Host Windows x86, Targets: x86, x64, IA64 (Using MSVC)
Host Linux i386, Targets: i386, ia64 (Using crosstool generated toolchain)
Host HP-UX 11.2 using GNU toolkit

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

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

