From libssh2-devel-bounces@cool.haxx.se  Fri Jul  1 15:45:16 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p61Dirw6005729;
	Fri, 1 Jul 2011 15:45:12 +0200
Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com
	[209.85.216.54])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p61DipwO005592
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 1 Jul 2011 15:44:52 +0200
Received: by qwc9 with SMTP id 9so2056239qwc.41
	for <libssh2-devel@cool.haxx.se>; Fri, 01 Jul 2011 06:44:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=Eiw+JDF/L0fDEdGiN+UtTcFdLpWc/aVXc9gK8MfBz3o=;
	b=twNCScKDEuFqiDSBJ9OBRD635riRTK9YjlFzyc0NmtZF1KiMrnCQiRcd+78oKkRzn/
	AEdsveZD2aZ1zQgN9hPSFpMIyarLNyLzeOyWUWrTj8uZhcK8Vuk5WE3kwQgBNk9LyFVa
	DaSKbMQfX2yHHdnIe/WDIZnLPe+KMNRiC8kEg=
MIME-Version: 1.0
Received: by 10.224.211.74 with SMTP id gn10mr2527418qab.69.1309512958022;
	Fri, 01 Jul 2011 02:35:58 -0700 (PDT)
Received: by 10.229.246.148 with HTTP; Fri, 1 Jul 2011 02:35:58 -0700 (PDT)
Date: Fri, 1 Jul 2011 11:35:58 +0200
Message-ID: <BANLkTimN7eFM29O+f-UcDX8Gsa_h6ZQbbg@mail.gmail.com>
Subject: about libcurl, libgcrypt and nettle
From: Vincent Torri <vincent.torri@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 01 Jul 2011 15:45:16 +0200 (CEST)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 01 Jul 2011 15:44:52 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2112764025=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============2112764025==
Content-Type: multipart/alternative; boundary=20cf300facb3b1154a04a6febe14

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

Hey,

afaik, libssh2 is used to allow secured file transfert protocol (sftp, for
example) with libcurl
and afaik too, libgcrypt and nettle have the same purposes.

libcurl can use openssl or gnutls.
libssh2 can use openssl or libgcrypt
the next major release of gnutls will use only nettle, and not libgcrypt
anymore. And even now, nettle is preferred over libgcrypt.

So, if I don't want to use openssl at all, I will have to install nettle
(because of gnutls dep of libcurl), and libgcrypt (because of libssh2 dep of
libcurl), which is a bit redundant.

Is there any plan to add nettle support in libssh2 ?

thank you

Vincent Torri

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

Hey,<br><br>afaik, libssh2 is used to allow secured file transfert protocol=
 (sftp, for example) with libcurl<br>and afaik too, libgcrypt and nettle ha=
ve the same purposes.<br><br>libcurl can use openssl or gnutls.<br>libssh2 =
can use openssl or libgcrypt<br>
the next major release of gnutls will use only nettle, and not libgcrypt an=
ymore. And even now, nettle is preferred over libgcrypt.<br><br>So, if I do=
n&#39;t want to use openssl at all, I will have to install nettle (because =
of gnutls dep of libcurl), and libgcrypt (because of libssh2 dep of libcurl=
), which is a bit redundant.<br>
<br>Is there any plan to add nettle support in libssh2 ?<br><br>thank you<b=
r><br>Vincent Torri<br>

--20cf300facb3b1154a04a6febe14--

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

--===============2112764025==--

From libssh2-devel-bounces@cool.haxx.se  Fri Jul  1 15:50:15 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p61Do9Xn009636;
	Fri, 1 Jul 2011 15:50:14 +0200
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p61Do9oZ009631
	for <libssh2-devel@cool.haxx.se>; Fri, 1 Jul 2011 15:50:09 +0200
Date: Fri, 1 Jul 2011 15:50:09 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: about libcurl, libgcrypt and nettle
In-Reply-To: <BANLkTimN7eFM29O+f-UcDX8Gsa_h6ZQbbg@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1107011546150.31500@tvnag.unkk.fr>
References: <BANLkTimN7eFM29O+f-UcDX8Gsa_h6ZQbbg@mail.gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 01 Jul 2011 15:50:15 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 01 Jul 2011 15:50:09 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

On Fri, 1 Jul 2011, Vincent Torri wrote:

> Is there any plan to add nettle support in libssh2 ?

Nobody has expressed any such intention to my knowledge. Feel free to start 
working on it. There's already a fairly good crypto library separation in the 
code.

Nettle is GPL licensed while libgcrypt is LGPL so the license situation for 
users will change as well.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jul  1 16:38:31 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p61EcMiD007242;
	Fri, 1 Jul 2011 16:38:30 +0200
Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com
	[209.85.216.175])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p61EcJQp007217
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 1 Jul 2011 16:38:20 +0200
Received: by qyk30 with SMTP id 30so701673qyk.20
	for <libssh2-devel@cool.haxx.se>; Fri, 01 Jul 2011 07:38:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type; bh=lB2WS4UszGqO3k0n3KauwtMA2AeGmtFkKhkfY8xQjWU=;
	b=EpQ9y4s0qaUnnKNYP09ySerwYFgS681BjC0kDRUxRZQ8cBJ6I5Mr6FLmUKiHEtmY/l
	lbLfMobKoXQkgznUvGSt6Mzs5yWxnF8WtoyYof8Z2RPGPp5aNMlKsDYCKLFpzjPMt8rx
	280l216mN6JLszQOZ6crCMcGgvFJMC50/uB9A=
MIME-Version: 1.0
Received: by 10.229.88.144 with SMTP id a16mr2578447qcm.45.1309531094494; Fri,
	01 Jul 2011 07:38:14 -0700 (PDT)
Received: by 10.229.246.148 with HTTP; Fri, 1 Jul 2011 07:38:14 -0700 (PDT)
In-Reply-To: <alpine.DEB.2.00.1107011546150.31500@tvnag.unkk.fr>
References: <BANLkTimN7eFM29O+f-UcDX8Gsa_h6ZQbbg@mail.gmail.com>
	<alpine.DEB.2.00.1107011546150.31500@tvnag.unkk.fr>
Date: Fri, 1 Jul 2011 16:38:14 +0200
Message-ID: <BANLkTikox+D_uLLvqOr8pY6OtpBCg-S9sg@mail.gmail.com>
Subject: Re: about libcurl, libgcrypt and nettle
From: Vincent Torri <vincent.torri@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 01 Jul 2011 16:38:31 +0200 (CEST)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 01 Jul 2011 16:38:20 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1257095502=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============1257095502==
Content-Type: multipart/alternative; boundary=001636417533b5b03b04a702f7fc

--001636417533b5b03b04a702f7fc
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Jul 1, 2011 at 3:50 PM, Daniel Stenberg <daniel@haxx.se> wrote:

> On Fri, 1 Jul 2011, Vincent Torri wrote:
>
>  Is there any plan to add nettle support in libssh2 ?
>>
>
> Nobody has expressed any such intention to my knowledge. Feel free to start
> working on it. There's already a fairly good crypto library separation in
> the code.
>
> Nettle is GPL licensed while libgcrypt is LGPL so the license situation for
> users will change as well.
>

it seems that there is a lot of part that i LGPL :

http://www.lysator.liu.se/~nisse/nettle/nettle.html#Copyright

Vincent torri


>
> --
>
>  / daniel.haxx.se
> ______________________________**_________________
> libssh2-devel http://cool.haxx.se/cgi-bin/**mailman/listinfo/libssh2-devel<http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>
>

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

<br><br><div class=3D"gmail_quote">On Fri, Jul 1, 2011 at 3:50 PM, Daniel S=
tenberg <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"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class=3D"im">On Fri, 1 Jul 2011, Vincent Torri wrote:<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
Is there any plan to add nettle support in libssh2 ?<br>
</blockquote>
<br></div>
Nobody has expressed any such intention to my knowledge. Feel free to start=
 working on it. There&#39;s already a fairly good crypto library separation=
 in the code.<br>
<br>
Nettle is GPL licensed while libgcrypt is LGPL so the license situation for=
 users will change as well.<br></blockquote><div><br>it seems that there is=
 a lot of part that i LGPL : <br><br><a href=3D"http://www.lysator.liu.se/~=
nisse/nettle/nettle.html#Copyright">http://www.lysator.liu.se/~nisse/nettle=
/nettle.html#Copyright</a><br>
<br>Vincent torri<br>=A0</div><blockquote class=3D"gmail_quote" style=3D"ma=
rgin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding=
-left: 1ex;"><font color=3D"#888888">
<br>
-- <br>
<br>
=A0/ <a href=3D"http://daniel.haxx.se" target=3D"_blank">daniel.haxx.se</a>=
<br>
______________________________<u></u>_________________<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/<u></u>mailman/list=
info/libssh2-devel</a><br>
</font></blockquote></div><br>

--001636417533b5b03b04a702f7fc--

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

--===============1257095502==--

From libssh2-devel-bounces@cool.haxx.se  Fri Jul  1 17:31:33 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p61FVHg6009946;
	Fri, 1 Jul 2011 17:31:31 +0200
Received: from yxa-v.extundo.com (yxa-v.extundo.com [213.115.69.139])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p61FVFcv009939
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 1 Jul 2011 17:31:15 +0200
Received: from latte.josefsson.org (c80-216-4-108.bredband.comhem.se
	[80.216.4.108]) (authenticated bits=0)
	by yxa-v.extundo.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
	p61FVAq1019330
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 1 Jul 2011 17:31:13 +0200
From: Simon Josefsson <simon@josefsson.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: about libcurl, libgcrypt and nettle
References: <BANLkTimN7eFM29O+f-UcDX8Gsa_h6ZQbbg@mail.gmail.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:110701:libssh2-devel@cool.haxx.se::NcKtt9aKGyOk+3QR:8VgR
Date: Fri, 01 Jul 2011 17:31:10 +0200
In-Reply-To: <BANLkTimN7eFM29O+f-UcDX8Gsa_h6ZQbbg@mail.gmail.com> (Vincent
	Torri's message of "Fri, 1 Jul 2011 11:35:58 +0200")
Message-ID: <87aacy5875.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux)
MIME-Version: 1.0
X-Spam-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,
	DATE_IN_FUTURE_96_XX,RDNS_DYNAMIC,SPF_FAIL autolearn=no version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on yxa-v.extundo.com
X-Virus-Scanned: clamav-milter 0.97 at yxa-v
X-Virus-Status: Clean
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 01 Jul 2011 17:31:33 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 01 Jul 2011 17:31:15 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

Vincent Torri <vincent.torri@gmail.com> writes:

> Hey,
>
> afaik, libssh2 is used to allow secured file transfert protocol (sftp, for
> example) with libcurl
> and afaik too, libgcrypt and nettle have the same purposes.
>
> libcurl can use openssl or gnutls.
> libssh2 can use openssl or libgcrypt
> the next major release of gnutls will use only nettle, and not libgcrypt
> anymore. And even now, nettle is preferred over libgcrypt.
>
> So, if I don't want to use openssl at all, I will have to install nettle
> (because of gnutls dep of libcurl), and libgcrypt (because of libssh2 dep of
> libcurl), which is a bit redundant.
>
> Is there any plan to add nettle support in libssh2 ?

Not that I know of, but I think it would be great addition.  Note that
nettle does not have randomness generation, though, but I'm working on
something to resolve that. ;)

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

From libssh2-devel-bounces@cool.haxx.se  Thu Jul 14 14:19:06 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6ECIZL8020135;
	Thu, 14 Jul 2011 14:19:01 +0200
Received: from mta.sentlist.com (mta.sentlist.com [93.115.240.154])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6ECIXfr020073
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Jul 2011 14:18:33 +0200
Received: from localhost (localhost [127.0.0.1])
	by mta.sentlist.com (Postfix) with ESMTP id 66E27581302
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Jul 2011 15:17:43 +0300 (EEST)
X-Virus-Scanned: amavisd-new at sentlist.com
Received: from mta.sentlist.com ([127.0.0.1])
	by localhost (mta.sentlist.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id eMAOZhbxHB-9 for <libssh2-devel@cool.haxx.se>;
	Thu, 14 Jul 2011 15:17:43 +0300 (EEST)
Received: from mta.sentlist.com (mta.sentlist.com [93.115.240.154])
	by mta.sentlist.com (Postfix) with ESMTP id 24F685812DE
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Jul 2011 15:17:43 +0300 (EEST)
X-DKIM: OpenDKIM Filter v2.0.2 mta.sentlist.com 24F685812DE
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sentlist.com;
	s=2011m; t=1310645863;
	bh=WOeRUP9xmV4GUATzKAlsNCGnuKEN/Y36YXoAfpbBibM=;
	h=Date:From:To:Subject:Message-ID:Content-Type:
	Content-Transfer-Encoding:MIME-Version;
	b=ULjESEUIcQrxk/MAJ9BMOgm9W/vab2KJDT6C9qM9k5ttOVoyGlNnbyEd7qlZQz3Vk
	p+IFXz02tDlHIeLZ59GB3TO6ES0baJyoK38A9Q13e39r2Rzs89Ri7NqQfie8Sn5oJt
	+aQSNKxhZ0URrwY6ojwiec5us/14pyBIlirPrQHQ=
Date: Thu, 14 Jul 2011 15:17:43 +0300 (EEST)
From: Popescu Claudiu <claudiu@sentlist.com>
To: libssh2-devel@cool.haxx.se
Subject: SSH Connected Status
Message-ID: <4ecf3204-ea47-4ace-aa38-825c430ab429@mail.sentlist.com>
MIME-Version: 1.0
X-Originating-IP: [193.33.200.14]
X-Mailer: Zimbra 7.1.0_GA_3140 (ZimbraWebClient - SAF3 (Linux)/7.1.0_GA_3140)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Thu, 14 Jul 2011 14:19:06 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Thu, 14 Jul 2011 14:18:33 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

Hey guys,

Is there a not too complicated way to check if a ssh session is still active?
Hope I didn't post this twice.

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jul 15 00:11:52 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6EMBN03017401;
	Fri, 15 Jul 2011 00:11:47 +0200
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6EMBMQ1017396
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jul 2011 00:11:22 +0200
Date: Fri, 15 Jul 2011 00:11:22 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: SSH Connected Status
In-Reply-To: <4ecf3204-ea47-4ace-aa38-825c430ab429@mail.sentlist.com>
Message-ID: <alpine.DEB.2.00.1107150009370.17292@tvnag.unkk.fr>
References: <4ecf3204-ea47-4ace-aa38-825c430ab429@mail.sentlist.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 15 Jul 2011 00:11:52 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 15 Jul 2011 00:11:22 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

On Thu, 14 Jul 2011, Popescu Claudiu wrote:

> Is there a not too complicated way to check if a ssh session is still active?

The only decently working version I can think of is to use the remote server 
somehow, and then verify that it worked fine.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jul 15 00:56:36 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6EMuQOa031292;
	Fri, 15 Jul 2011 00:56:35 +0200
Received: from ponderosa.fch.wimsey.bc.ca (zz201111.cipherkey.net
	[209.53.201.111])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6EMuNSh031285
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jul 2011 00:56:24 +0200
Received: by coneharvesters.com
	via sendmail with stdio id <m1QhUpO-000l6IC@ponderosa.fch.wimsey.bc.ca>
	for libssh2-devel@cool.haxx.se; Thu, 14 Jul 2011 15:56:18 -0700 (PDT)
Date: Thu, 14 Jul 2011 15:56:17 -0700
From: Dan Fandrich <dan@coneharvesters.com>
To: libssh2-devel@cool.haxx.se
Subject: Re: SSH Connected Status
Message-ID: <20110714225616.GA10305@coneharvesters.com>
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <4ecf3204-ea47-4ace-aa38-825c430ab429@mail.sentlist.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <4ecf3204-ea47-4ace-aa38-825c430ab429@mail.sentlist.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 15 Jul 2011 00:56:36 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 15 Jul 2011 00:56:24 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

On Thu, Jul 14, 2011 at 03:17:43PM +0300, Popescu Claudiu wrote:
> Is there a not too complicated way to check if a ssh session is still active?

You can check whether the connection is up or not by calling poll() or select()
on the socket and looking for an error.  That should cover most situations when
a session has unknowingly been closed.

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jul 15 08:52:39 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6F6qFnM003011;
	Fri, 15 Jul 2011 08:52:35 +0200
Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6F6qDfw002990
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jul 2011 08:52:14 +0200
Received: by wwf4 with SMTP id 4so969105wwf.11
	for <libssh2-devel@cool.haxx.se>; Thu, 14 Jul 2011 23:52:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=kne72ZMN2RI+3fqUKRuxcF+keH7lnT5jJCrDIx1bBck=;
	b=fs/hgtpEF1bOzWfoZydRzuGmSaKeID8WxvRf0GUHbMYa3856fQYtJyipIkRUKF+np6
	LppINuDfjVmRPu7WybDNu9ibtD+v7yJ63uujoNwHs/rWNjW3SWi+SzTJfUzqrwYTQxG4
	l91ccrBhpyfweTOkkyZsTqTYBUmZykDz42tY0=
MIME-Version: 1.0
Received: by 10.216.62.195 with SMTP id y45mr3238469wec.15.1310712727379; Thu,
	14 Jul 2011 23:52:07 -0700 (PDT)
Received: by 10.216.70.208 with HTTP; Thu, 14 Jul 2011 23:52:07 -0700 (PDT)
Date: Fri, 15 Jul 2011 12:22:07 +0530
Message-ID: <CAKbrMH1snxpk6M+63CzU+KAC673hL-MR0-bcS-6GfH7-NGFz5Q@mail.gmail.com>
Subject: Setting environment variables
From: kali c <direct2kali@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 15 Jul 2011 08:52:39 +0200 (CEST)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 15 Jul 2011 08:52:14 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0174025334=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============0174025334==
Content-Type: multipart/alternative; boundary=000e0ce02aaa849def04a816168e

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

Hi,

I tried adding my environmental variables in
/etc/bashrc,/etc/profile,/root/.bash_profile. But none of them makes the
added environmental variables to libbssh2 session.

Now, I "source" the environmental variables from a file through libssh2 and
using it in that particular session. But some variables may not be available
to us which will be referred from the target system.

Where I can add those environmental variables so that those variables will
be to the libssh2 sessions?

I am using libssh2 in Windows and the target system is linux which has
CentOS.

-- 
Regards,
Kali

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

Hi,<div><br></div><div>I tried adding my environmental variables in /etc/ba=
shrc,/etc/profile,/root/.bash_profile. But none of them makes the added env=
ironmental variables to libbssh2 session.</div><div><br></div><div>Now, I &=
quot;source&quot; the environmental variables from a file through libssh2 a=
nd using it in that particular session. But some variables may not be avail=
able to us which will be referred from the target system.</div>
<div><br></div><div>Where I can add those environmental variables so that t=
hose variables will be to the libssh2 sessions?=A0</div><div><br></div><div=
>I am using libssh2 in Windows and the target system is linux which has Cen=
tOS.</div>
<div><br>-- <br>Regards,<br>Kali<br>
</div>

--000e0ce02aaa849def04a816168e--

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

--===============0174025334==--

From libssh2-devel-bounces@cool.haxx.se  Fri Jul 15 09:24:30 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6F7OLA2020270;
	Fri, 15 Jul 2011 09:24:30 +0200
Received: from ponderosa.fch.wimsey.bc.ca (zz201111.cipherkey.net
	[209.53.201.111])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6F7OEi1020129
	for <libssh2-devel@cool.haxx.se>; Fri, 15 Jul 2011 09:24:14 +0200
Received: by coneharvesters.com
	via sendmail with stdio id <m1Qhckr-000l6IC@ponderosa.fch.wimsey.bc.ca>
	for libssh2-devel@cool.haxx.se; Fri, 15 Jul 2011 00:24:09 -0700 (PDT)
Date: Fri, 15 Jul 2011 00:24:08 -0700
From: Dan Fandrich <dan@coneharvesters.com>
To: libssh2-devel@cool.haxx.se
Subject: Re: Setting environment variables
Message-ID: <20110715072407.GA12232@coneharvesters.com>
Mail-Followup-To: libssh2-devel@cool.haxx.se
References: <CAKbrMH1snxpk6M+63CzU+KAC673hL-MR0-bcS-6GfH7-NGFz5Q@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CAKbrMH1snxpk6M+63CzU+KAC673hL-MR0-bcS-6GfH7-NGFz5Q@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 15 Jul 2011 09:24:30 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 15 Jul 2011 09:24:15 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="iso-8859-1"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id p6F7OLA2020270

On Fri, Jul 15, 2011 at 12:22:07PM +0530, kali c wrote:
> I tried adding my environmental variables in /etc/bashrc,/etc/profile,/root
> /.bash_profile. But none of them makes the added environmental variables to
> libbssh2 session.

The bash manual contains a section entitled "Bash Startup Files" that
documents exactly how it reads files at startup. Note that it acts differently
depending on whether it's invoked as bash or sh.

> Now, I "source" the environmental variables from a file through libssh2 and
> using it in that particular session. But some variables may not be available to
> us which will be referred from the target system.
> 
> Where I can add those environmental variables so that those variables will be
> to the libssh2 sessions? 

libssh2_channel_setenv()

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

From libssh2-devel-bounces@cool.haxx.se  Wed Jul 20 19:04:53 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6KH4Kf2007725;
	Wed, 20 Jul 2011 19:04:47 +0200
Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com
	[209.85.216.175])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6KH4H11007628
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Wed, 20 Jul 2011 19:04:18 +0200
Received: by qyk30 with SMTP id 30so2892540qyk.20
	for <libssh2-devel@cool.haxx.se>; Wed, 20 Jul 2011 10:04:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:cc:content-type;
	bh=C9MGYCP9QWrqoOPT6cEmXUYCVxlZr6+YXr3suORGPWQ=;
	b=lgdhyDztGJaMmW/OmWuOXvPhq+SkHkt0ukosfjIhrT1QloXgrUJZAs135KtfDHQhT4
	oiuNpKcrd5pwhX8kljm2XAJ6flfS5WOTtayPHw/nlNH5c5KpFvFMpUdJd7Uxi93+vptT
	Nzw2ncAsv0K2RylEep/zSZJg4Q9wkWiLRoW7E=
MIME-Version: 1.0
Received: by 10.229.44.27 with SMTP id y27mr6786654qce.249.1311181453006; Wed,
	20 Jul 2011 10:04:13 -0700 (PDT)
Received: by 10.229.30.208 with HTTP; Wed, 20 Jul 2011 10:04:12 -0700 (PDT)
Date: Wed, 20 Jul 2011 10:04:12 -0700
Message-ID: <CAEMX=2H7Pqq4RsY14X-sbvrPod24J9W13i6kaHg_tTZ69eT-UA@mail.gmail.com>
Subject: error checking question
From: Mark Roden <mmroden@gmail.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Wed, 20 Jul 2011 19:04:53 +0200 (CEST)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Wed, 20 Jul 2011 19:04:18 +0200 (CEST)
Cc: Jonathan Morra <jonmorra@gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

Hi all,

I have a question regarding error checking.  I'm using libssh2 with a
Qt wrapper to pull files from a remote directory.  Every once in a
while, the files (which are jpegls compressed) fail to uncompress.
We're trying to debug this problem, and I'm wondering if there are any
ways to check to see if a file failed to transfer properly.  Should I
be doing things like CRC checking, or does that happen automatically?
The library is not reporting a failure, and as far as I can see, no
error codes are set, or at least, the downloading code is all working
and continues to pull all files.  Out of a set of 65 files, maybe 1
will be corrupted like this, but it's only happening 1 in 500 or so
files.

Is there any chance that libssh2 could be responsible for this issue?
Is there a verbose checking mode, or is checking for transfer success
automatically done?

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jul 22 01:18:23 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6LNHv4U017465;
	Fri, 22 Jul 2011 01:18:19 +0200
Received: from giant.haxx.se (giant.haxx.se [80.67.6.50])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6LNHtO4017457; 
	Fri, 22 Jul 2011 01:17:55 +0200
Date: Fri, 22 Jul 2011 01:17:55 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: error checking question
In-Reply-To: <CAEMX=2H7Pqq4RsY14X-sbvrPod24J9W13i6kaHg_tTZ69eT-UA@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1107220115420.25913@tvnag.unkk.fr>
References: <CAEMX=2H7Pqq4RsY14X-sbvrPod24J9W13i6kaHg_tTZ69eT-UA@mail.gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 22 Jul 2011 01:18:23 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 22 Jul 2011 01:17:55 +0200 (CEST)
Cc: Jonathan Morra <jonmorra@gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

On Wed, 20 Jul 2011, Mark Roden wrote:

> Should I be doing things like CRC checking, or does that happen 
> automatically?

It is made on the TCP layer and in the SSH layer already.

> Is there any chance that libssh2 could be responsible for this issue?

Sure, if there's a bug in libssh2.

> Is there a verbose checking mode, or is checking for transfer success 
> automatically done?

The checking done by libssh2 is done all the time in every single SSH packet 
it receives. See src/transport.c and the mac/hash use.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jul 22 19:29:13 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6MHSeIN018402;
	Fri, 22 Jul 2011 19:29:08 +0200
Received: from foo.stuge.se (qmailr@foo.stuge.se [212.181.44.140])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with SMTP id p6MHSdwI018398
	for <libssh2-devel@cool.haxx.se>; Fri, 22 Jul 2011 19:28:39 +0200
Received: (qmail 28689 invoked by uid 501); 22 Jul 2011 17:28:39 -0000
Message-ID: <20110722172839.28688.qmail@stuge.se>
Date: Fri, 22 Jul 2011 19:28:39 +0200
From: Peter Stuge <peter@stuge.se>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: error checking question
Mail-Followup-To: libssh2 development <libssh2-devel@cool.haxx.se>,
	Jonathan Morra <jonmorra@gmail.com>
References: <CAEMX=2H7Pqq4RsY14X-sbvrPod24J9W13i6kaHg_tTZ69eT-UA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="6lXr1rPCNTf1w0X8"
Content-Disposition: inline
In-Reply-To: <CAEMX=2H7Pqq4RsY14X-sbvrPod24J9W13i6kaHg_tTZ69eT-UA@mail.gmail.com>
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 22 Jul 2011 19:29:13 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 22 Jul 2011 19:28:39 +0200 (CEST)
Cc: Jonathan Morra <jonmorra@gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se


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

Mark Roden wrote:
> Out of a set of 65 files, maybe 1 will be corrupted like this, but
> it's only happening 1 in 500 or so files.

Interesting issue. It should not be hard to fix once identified
though.


> Is there any chance that libssh2 could be responsible for this issue?

Sure, there can be a bug in libssh2 causing this.


> Is there a verbose checking mode, or is checking for transfer
> success automatically done?

As Daniel mentioned, the SSH protocol includes message authentication
for every SSH packet sent, and TCP includes checksumming to make sure
that SSH packets cross the net well.

So the corruption will neccessarily come either from the sending or
the receiving process, assuming that the two filesystems (on sender
and receiver side) are not the cause.

First find out exactly where and how the file has been corrupted;
which offset does the corruption start at and can a pattern for the
corruption be identified. (Some bit consistently wrong, are bytes
missing or are there extra bytes moving the correct data forward or
backward etc. etc.)

In particular collect the above information for several failed runs,
to determine if the problem has some consistent parameters. Ie.
always at the same offset in the file, or always after sending the
same total amount of bytes, or some other pattern.

Then compile a libssh2 with debug messages enabled, and add to your
program:

libssh2_trace(session, LIBSSH2_TRACE_TRANS);

which provides clear text data for packets sent and received. You can
then match the data that is received with the data that libssh2
writes into the buffers that you provide for receiving data.


Note that libssh2 return values work slightly differently from e.g.
read() because libssh2 does not return the packet size until the full
packet has actually been transferred. It could help to also add
buffer debugging into your application, to verify that you see the
exact same data that libssh2 sees. I'm attaching a function I use for
this. Just #include "xxd.c" in file scope and then call xxd(buffer,length);

I'd love to hear more details about this problem. If you've discovered
a problem in libssh2 I think it's important that we fix it. Thanks!


//Peter

--6lXr1rPCNTf1w0X8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="xxd.c"

#include <stdio.h>

static void xxd(const unsigned char *s,size_t len) {
  size_t i,j;
  for(i=0;i<len;i+=16) {
    printf("%06x: ",i);
    for(j=0;j<16;j++)
      if(i+j<len)
        printf(" %02x",s[i+j]);
      else
        printf("   ");
    printf("  ");
    for(j=0;j<16&&i+j<len;j++)
      printf("%c",isprint(s[i+j])?s[i+j]:'.');
    printf("\n");
  }
}

--6lXr1rPCNTf1w0X8
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

--6lXr1rPCNTf1w0X8--

From libssh2-devel-bounces@cool.haxx.se  Wed Jul 27 17:23:53 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6RFNPIR005822;
	Wed, 27 Jul 2011 17:23:48 +0200
Received: from mta01.aderium.com (datacenter.aderium.com [208.73.1.18])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6RFNNGk005809
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jul 2011 17:23:23 +0200
Received: from localhost (localhost [127.0.0.1])
	by mta01.aderium.com (Postfix) with ESMTP id DB8A62D61C7
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jul 2011 11:23:09 -0400 (EDT)
X-Virus-Scanned: amavisd-new at aderium.lan
Received: from mta01.aderium.com ([127.0.0.1])
	by localhost (mail-01.aderium.lan [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Au4f6yQ1Uhil for <libssh2-devel@cool.haxx.se>;
	Wed, 27 Jul 2011 11:23:08 -0400 (EDT)
Received: from leonb.intranet.developing.it (85-18-252-192.ip.fastwebnet.it
	[85.18.252.192])
	by mta01.aderium.com (Postfix) with ESMTPSA id 040D62D6122
	for <libssh2-devel@cool.haxx.se>; Wed, 27 Jul 2011 11:23:07 -0400 (EDT)
From: Alessandro Diaferia <alessandro@cirrusthinking.eu>
Subject: not getting file handles
Date: Wed, 27 Jul 2011 17:23:06 +0200
Message-Id: <4ED7646E-DC10-4C77-9BE1-F7CD538DE5C5@cirrusthinking.eu>
To: libssh2-devel@cool.haxx.se
Mime-Version: 1.0 (Apple Message framework v1244.3)
X-Mailer: Apple Mail (2.1244.3)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Wed, 27 Jul 2011 17:23:53 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Wed, 27 Jul 2011 17:23:23 +0200 (CEST)
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
	p6RFNNGk005809
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

Hello,
I'm experiencing some issues with LIBSSH2_SFTP_HANDLEs. Suddenly in my app I cannot manage anymore to get valid file handles for files I'm 100% sure they exist. And I cannot really track exactly when this happens since it looks sudden to me. Every time it occurs, programmatically disconnecting and re-connecting my ssh session fixes the issue.
Do you have any hint for me?

Thank you in advance for your time.
Regards.

--
Alessandro Diaferia
Software developer
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Thu Jul 28 18:14:38 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6SG5SKb031136;
	Thu, 28 Jul 2011 18:05:52 +0200
Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6SG5PVj031013
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jul 2011 18:05:26 +0200
Received: by gwb15 with SMTP id 15so2599180gwb.13
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jul 2011 09:05:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=zCPFfeKthivCbmaEXvH0nG2MgMXandoAr0a6yY95jgs=;
	b=PGed/D6/fIn+KhyfQAn22+92eNeyy76n4+LbkC1iLzdrTFrAudgXzhf0TatkvmU0YH
	aul+nAZzQ7HQGkEskmRmMroc5Rd3/lSbx3r5vksZGrjxCmT5hFuO49sSBMQRQfl/sSqv
	8vhXJGHP4ow7hPawo9949Q+KuAEwkJYDUQ+HM=
MIME-Version: 1.0
Received: by 10.68.47.3 with SMTP id z3mr488548pbm.231.1311869122189; Thu, 28
	Jul 2011 09:05:22 -0700 (PDT)
Received: by 10.68.65.231 with HTTP; Thu, 28 Jul 2011 09:05:22 -0700 (PDT)
Date: Fri, 29 Jul 2011 00:05:22 +0800
Message-ID: <CAPzmwWKMRcV5B=j9bJYzDrojMb3LGuVDyxKdteTbL3YJvzktaA@mail.gmail.com>
Subject: cannot find OpenSSL in RHEL3 when configure libssh2
From: Aaron Tang <twwbooleana@gmail.com>
To: libssh2-devel@cool.haxx.se
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Thu, 28 Jul 2011 18:05:58 +0200 (CEST)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Thu, 28 Jul 2011 18:05:26 +0200 (CEST)
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1948256637=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============1948256637==
Content-Type: multipart/alternative; boundary=bcaec544ed3805187804a923553a

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

Hi,
When I configure libssh2 before compiling, it alway reported "configure:
error: cannot find OpenSSL or Libgcrypt" no matter I specified the
--with-libssl-prefix option or not.
And I checked there is OpenSSL 0.9.7a installed in /usr.

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

Hi,<br>When I configure libssh2 before compiling, it alway reported &quot;configure: error: cannot find OpenSSL or Libgcrypt&quot; no matter I specified the --with-libssl-prefix option or not.<br>And I checked there is OpenSSL 0.9.7a installed in /usr.<br>

--bcaec544ed3805187804a923553a--

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

--===============1948256637==--

From libssh2-devel-bounces@cool.haxx.se  Thu Jul 28 22:31:08 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6SKUkmZ008704;
	Thu, 28 Jul 2011 22:31:04 +0200
Received: from goalkeeper.city-fan.org
	(pghmcfc-1-pt.tunnel.tserv5.lon1.ipv6.he.net
	[IPv6:2001:470:1f08:d97::2])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6SKUghs008698
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Thu, 28 Jul 2011 22:30:43 +0200
Received: from zion.intra.city-fan.org (zion.city-fan.org
	[IPv6:2001:470:9279::2]) (authenticated bits=0)
	by goalkeeper.city-fan.org (8.14.5/8.14.5) with ESMTP id p6SKUiMh000992
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
	Thu, 28 Jul 2011 21:30:46 +0100
Date: Thu, 28 Jul 2011 21:30:44 +0100
From: Paul Howarth <paul@city-fan.org>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: cannot find OpenSSL in RHEL3 when configure libssh2
Message-ID: <20110728213044.5af3ae32@zion.intra.city-fan.org>
In-Reply-To: <CAPzmwWKMRcV5B=j9bJYzDrojMb3LGuVDyxKdteTbL3YJvzktaA@mail.gmail.com>
References: <CAPzmwWKMRcV5B=j9bJYzDrojMb3LGuVDyxKdteTbL3YJvzktaA@mail.gmail.com>
X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.4; x86_64-redhat-linux-gnu)
Mime-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Thu, 28 Jul 2011 22:31:08 +0200 (CEST)
X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [IPv6:2a00:1a28:1200:9::2]);
	Thu, 28 Jul 2011 22:30:43 +0200 (CEST)
Cc: twwbooleana@gmail.com
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

On Fri, 29 Jul 2011 00:05:22 +0800
Aaron Tang <twwbooleana@gmail.com> wrote:

> Hi,
> When I configure libssh2 before compiling, it alway reported
> "configure: error: cannot find OpenSSL or Libgcrypt" no matter I
> specified the --with-libssl-prefix option or not.
> And I checked there is OpenSSL 0.9.7a installed in /usr.

Try this before running configure:

export CPPFLAGS="$(pkg-config --cflags openssl)"

Or you could just use my libssh2 build, which you can find here:
http://mirror.city-fan.org/ftp/contrib/libraries/

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

From libssh2-devel-bounces@cool.haxx.se  Fri Jul 29 17:22:39 2011
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6TFMHWV018845;
	Fri, 29 Jul 2011 17:22:36 +0200
Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com
	[209.85.218.54])
	by giant.haxx.se (8.14.4/8.14.4/Debian-2) with ESMTP id p6TFMESa018686
	(version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT)
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Jul 2011 17:22:15 +0200
Received: by yic13 with SMTP id 13so3476660yic.41
	for <libssh2-devel@cool.haxx.se>; Fri, 29 Jul 2011 08:22:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=eZ1yLDp/hIJpXTY+ASsSIjPVjKAOHQ4inau9jS6Kb2E=;
	b=KjqtYuzGRBt4fTDBS8FXI0f4a1Ky3mMIKQVQ9WNkUR+BlOrz+u64X/f9RxkUWFXBvR
	nm0g6EsJhSPSkfNI1KSQrLIvNAqc0/CmA+4ZyeRmP81dNg+vR0auM9txo9oI71A/sv9D
	+CiWJhzpb+mXzb/+AHIJ/KT4uowG/kkFGKUVo=
MIME-Version: 1.0
Received: by 10.68.14.131 with SMTP id p3mr2706496pbc.131.1311952932136; Fri,
	29 Jul 2011 08:22:12 -0700 (PDT)
Received: by 10.68.60.73 with HTTP; Fri, 29 Jul 2011 08:22:12 -0700 (PDT)
In-Reply-To: <20110728213044.5af3ae32@zion.intra.city-fan.org>
References: <CAPzmwWKMRcV5B=j9bJYzDrojMb3LGuVDyxKdteTbL3YJvzktaA@mail.gmail.com>
	<20110728213044.5af3ae32@zion.intra.city-fan.org>
Date: Fri, 29 Jul 2011 23:22:12 +0800
Message-ID: <CAPzmwW+0h2p-TqzLO5hFQZ9aVuaAU_GDnjcZ2=DN-dBYTeNLpg@mail.gmail.com>
Subject: Re: cannot find OpenSSL in RHEL3 when configure libssh2
From: Aaron Tang <twwbooleana@gmail.com>
To: Paul Howarth <paul@city-fan.org>
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8 (giant.haxx.se [127.0.0.1]); Fri, 29 Jul 2011 17:22:39 +0200 (CEST)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.8
	(giant.haxx.se [80.67.6.50]);
	Fri, 29 Jul 2011 17:22:16 +0200 (CEST)
Cc: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
	<mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0073263299=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: libssh2-devel-bounces@cool.haxx.se

--===============0073263299==
Content-Type: multipart/alternative; boundary=bcaec520ee357b665604a936d8e4

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

Thanks, it works

2011/7/29 Paul Howarth <paul@city-fan.org>

> On Fri, 29 Jul 2011 00:05:22 +0800
> Aaron Tang <twwbooleana@gmail.com> wrote:
>
> > Hi,
> > When I configure libssh2 before compiling, it alway reported
> > "configure: error: cannot find OpenSSL or Libgcrypt" no matter I
> > specified the --with-libssl-prefix option or not.
> > And I checked there is OpenSSL 0.9.7a installed in /usr.
>
> Try this before running configure:
>
> export CPPFLAGS="$(pkg-config --cflags openssl)"
>
> Or you could just use my libssh2 build, which you can find here:
> http://mirror.city-fan.org/ftp/contrib/libraries/
>
> Paul.
>

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

Thanks, it works<br><br><div class=3D"gmail_quote">2011/7/29 Paul Howarth <=
span dir=3D"ltr">&lt;<a href=3D"mailto:paul@city-fan.org">paul@city-fan.org=
</a>&gt;</span><br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class=3D"h5">On Fri, 29 Jul 2011 00:05:22 +0800<br>
Aaron Tang &lt;<a href=3D"mailto:twwbooleana@gmail.com">twwbooleana@gmail.c=
om</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt; When I configure libssh2 before compiling, it alway reported<br>
&gt; &quot;configure: error: cannot find OpenSSL or Libgcrypt&quot; no matt=
er I<br>
&gt; specified the --with-libssl-prefix option or not.<br>
&gt; And I checked there is OpenSSL 0.9.7a installed in /usr.<br>
<br>
</div></div>Try this before running configure:<br>
<br>
export CPPFLAGS=3D&quot;$(pkg-config --cflags openssl)&quot;<br>
<br>
Or you could just use my libssh2 build, which you can find here:<br>
<a href=3D"http://mirror.city-fan.org/ftp/contrib/libraries/" target=3D"_bl=
ank">http://mirror.city-fan.org/ftp/contrib/libraries/</a><br>
<font color=3D"#888888"><br>
Paul.<br>
</font></blockquote></div><br>

--bcaec520ee357b665604a936d8e4--

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

--===============0073263299==--

