From libssh2-devel-bounces@cool.haxx.se  Sun May 15 17:42:12 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4FFfb2k015920;
	Sun, 15 May 2016 17:42:06 +0200
Received: from mail-oi0-x230.google.com (mail-oi0-x230.google.com
 [IPv6:2607:f8b0:4003:c06:0:0:0:230])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4FFfYOh015407
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Sun, 15 May 2016 17:41:35 +0200
Received: by mail-oi0-x230.google.com with SMTP id x19so236617278oix.2
 for <libssh2-devel@cool.haxx.se>; Sun, 15 May 2016 08:41:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:from:date:message-id:subject:to;
 bh=FQR5TdNiA5N+UVmhmfH4ZL/QVi0yzqPpk724zO05aVY=;
 b=1IwChcl6iBIn1EsT9aaLV2Ld/urWi/bHdIs4uwbz2Y3FkH1GpYts+6Txp8xdKiLSS/
 +Yqwm5h9ILxAVHkLnppYlYDwEvWiWYv4P3JgKpTybAI3XD+91hORI3RUoXgYM2dK6juD
 AqTQ1bRQ+tZ3gab3/oA+Ur8mfQKM9juyICmU2OOfZujJO2SDxNibGufDPoavBoVgdxUB
 +2IzazFGKo3EnHRESwpx3ZKLHezmqU6iolY2fMZgxk1rI5m2ks1bq7Pyoe0xDzZIHww1
 vjtL7QEy22QVr5b/+XlH0JOEEvqYdiIgw83G6qwTLXxL/yZuj9ikNWlKxT1OXgXp2bEB
 pPZg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=FQR5TdNiA5N+UVmhmfH4ZL/QVi0yzqPpk724zO05aVY=;
 b=dziw6nDJMN3pPyD12mMVthdJMnP69lgbRAAUUZyxMU5cIgo4jxwRcJeLOVZrYI6rq/
 87iaFeKSsNzO27ZZ8HkcUUdobnNQvKSQyVnmURP+44c0+WsdCI9dsnFAkxys7MkiM1Tm
 I2O4aED+r6E8kxuaHEVmz03U6PiTo0L1GQSqoeu80EqMP7PJwyKdM1bejqmi74MG1KIH
 h4JTHA8px68qpWYSS1x2B8ajJsvnTJSih6GyVz5HiowxoYDIZ0fw3pazsC41d/ncYmvk
 LcL5mQ2ThRRFMEF09eWfzSy0UyarfutuLAx41qCKk8pNO3Rc8KK5VNTqSUMR7HTBvFoF
 JoWg==
X-Gm-Message-State: AOPr4FXhngW4mcBltXSvYsJoYoEF3U/tgrqNgzlXwI+PjuG77k3+7zgN3tqUK7SSCSzvmqSfuWM/f6IbwuVzSw==
X-Received: by 10.157.52.220 with SMTP id t28mr15808287otd.90.1463326889502;
 Sun, 15 May 2016 08:41:29 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.182.106.132 with HTTP; Sun, 15 May 2016 08:41:10 -0700 (PDT)
From: Moti Avrahami <moti.dp@gmail.com>
Date: Sun, 15 May 2016 18:41:10 +0300
Message-ID: <CAHo5M2F-xa1Y+awd0fSuN-GR=ykTDw4+WQ1-xGDgpFEeK8dUpA@mail.gmail.com>
Subject: Problem in compiling libssh2
To: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============0616848979=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============0616848979==
Content-Type: multipart/alternative; boundary=001a114182a0706ca90532e35744

--001a114182a0706ca90532e35744
Content-Type: text/plain; charset=UTF-8

Hi,

I just downloaded libssh2 v1.7.0 and try to compile it, but encountered a
build errors.
I tried to compile it with Visual Studio 2003 and also 2013 (just created
an empty C++ Static Library project and put inside all the source and
header files) but failed because of the following error:
*C2037 left of 'abstract' specifies undefined struct/union
'_LIBSSH2_SESSION'*

I have hundreds of errors like that.
As far as I saw, there is the following definition in libssh2.h:
typedef struct _LIBSSH2_SESSION LIBSSH2_SESSION;
and the _LIBSSH2_SESSION struct is defined in libssh2_priv.h
but I still don't manage to compile this project and produce a .lib file.

I would add that today I have libssh2 v1.4.1 compiled successfully via
Visual Studio 2003 and all works well. I even compare my project settings
from 1.4.1 but found nothing.

Can someone help me out please?

Thanks,
Moti

--001a114182a0706ca90532e35744
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>I just downloaded libssh2 v1.7.0 an=
d try to compile it, but encountered a build errors.</div><div>I tried to c=
ompile it with Visual Studio 2003 and also 2013 (just created an empty C++ =
Static Library project and put inside all the source and header files) but =
failed because of the following error:</div><div><b style=3D"color:rgb(42,4=
2,42);font-family:&#39;Segoe UI&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,=
Helvetica,sans-serif;font-size:13px;line-height:18px">C2037 left of &#39;ab=
stract&#39; specifies undefined struct/union &#39;_LIBSSH2_SESSION&#39;</b>=
<br></div><div><br></div><div>I have=C2=A0hundreds of errors like that.</di=
v><div>As far as I saw, there is the following definition in libssh2.h:</di=
v><div><span class=3D"" style=3D"color:rgb(167,29,93);font-family:Consolas,=
&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-heigh=
t:16.8px;white-space:pre">typedef</span><span style=3D"color:rgb(51,51,51);=
font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;font=
-size:12px;line-height:16.8px;white-space:pre"> </span><span class=3D"" sty=
le=3D"color:rgb(167,29,93);font-family:Consolas,&#39;Liberation Mono&#39;,M=
enlo,Courier,monospace;font-size:12px;line-height:16.8px;white-space:pre">s=
truct</span><span style=3D"color:rgb(51,51,51);font-family:Consolas,&#39;Li=
beration Mono&#39;,Menlo,Courier,monospace;font-size:12px;line-height:16.8p=
x;white-space:pre"> _LIBSSH2_SESSION  LIBSSH2_SESSION;</span><br></div><div=
>and the _LIBSSH2_SESSION struct is defined in libssh2_priv.h=C2=A0<br></di=
v><div><div>but I still don&#39;t manage to compile this project and produc=
e a .lib file.</div></div><div><br></div><div>I would add that today I have=
 libssh2 v1.4.1 compiled successfully via Visual Studio 2003 and all works =
well. I even compare my project settings from 1.4.1 but found nothing.</div=
><div><br></div><div>Can someone help me out please?</div><div><br></div><d=
iv>Thanks,</div><div>Moti</div></div>

--001a114182a0706ca90532e35744--

--===============0616848979==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--===============0616848979==--

From libssh2-devel-bounces@cool.haxx.se  Sun May 15 20:00:24 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4FI05ha010447;
	Sun, 15 May 2016 20:00:21 +0200
Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4FI03E9009727
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Sun, 15 May 2016 20:00:04 +0200
Received: by mail-wm0-f54.google.com with SMTP id n129so77073640wmn.1
 for <libssh2-devel@cool.haxx.se>; Sun, 15 May 2016 11:00:04 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=S87noEnAnE3f+h6JUeth9AbzBNVYMEUyWJp4Ql/d0Ko=;
 b=TXpoKTiecuhBxN/EXbfLNb0Mx4ZIABvQ3Q23w8eiDJkYM9+BcZjzj/S9FfMqUK9I0K
 Dte6XoyCd8pG5LYIX0j3xiydSNR2dYp87Uca31q3qlG/DU68+6ArpgQZXNYFStzWhMN8
 kUyFc8sY/pMCdE7XINw3fV9HRB9ckgf7KFgj8+o4p+c5Nbk9nARgRUO1LM5jB1GOg6pp
 +WEPBr0Xjo5Vn91f57soEGsLO8g1wOphbsieG8TnEvTKBulBvJxLU7Z4q2CDf6Zg8FsT
 rOSkazy48w2U6jF/gI+chx901okzWW3u/zD5cLfkFyRJG/YGifBmaSNpYAHpsxEC8pIN
 YTdw==
X-Gm-Message-State: AOPr4FV4tOlaJnJsnrrShkv1ECFeA49NcLHKHgOL8BlD4au7GS8MsIfa9mfVIgUMu0w4Gzri5MSMCtKQPUe2Zg==
X-Received: by 10.28.236.88 with SMTP id k85mr14214167wmh.53.1463335199493;
 Sun, 15 May 2016 10:59:59 -0700 (PDT)
MIME-Version: 1.0
References: <CAHo5M2F-xa1Y+awd0fSuN-GR=ykTDw4+WQ1-xGDgpFEeK8dUpA@mail.gmail.com>
In-Reply-To: <CAHo5M2F-xa1Y+awd0fSuN-GR=ykTDw4+WQ1-xGDgpFEeK8dUpA@mail.gmail.com>
From: Alexander Lamaison <swish@lammy.co.uk>
Date: Sun, 15 May 2016 17:59:49 +0000
Message-ID: <CADyPeTMh_r5C4e3yRLnZ6agRUkFc_FXTv4ueLUJWqHR=AyR+-g@mail.gmail.com>
Subject: Re: Problem in compiling libssh2
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============0692615245=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============0692615245==
Content-Type: multipart/alternative; boundary=001a114733bcc0d1e10532e54688

--001a114733bcc0d1e10532e54688
Content-Type: text/plain; charset=UTF-8

On Sun, 15 May 2016 16:42 Moti Avrahami, <moti.dp@gmail.com> wrote:

> Hi,
>
> I just downloaded libssh2 v1.7.0 and try to compile it, but encountered a
> build errors.
> I tried to compile it with Visual Studio 2003 and also 2013 (just created
> an empty C++ Static Library project and put inside all the source and
> header files) but failed because of the following error:
> *C2037 left of 'abstract' specifies undefined struct/union
> '_LIBSSH2_SESSION'*
>

Hi Moti,

Please use CMake to generate the Visual Studio 2013 project.

Thanks,
Alex

--001a114733bcc0d1e10532e54688
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_quote"><div dir=3D"ltr">On Sun, 15 May 2016 16:42 Moti =
Avrahami, &lt;<a href=3D"mailto:moti.dp@gmail.com">moti.dp@gmail.com</a>&gt=
; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .=
8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Hi,<div><=
br></div><div>I just downloaded libssh2 v1.7.0 and try to compile it, but e=
ncountered a build errors.</div><div>I tried to compile it with Visual Stud=
io 2003 and also 2013 (just created an empty C++ Static Library project and=
 put inside all the source and header files) but failed because of the foll=
owing error:</div><div><b style=3D"color:rgb(42,42,42);font-family:&#39;Seg=
oe UI&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,Helvetica,sans-serif;font-=
size:13px;line-height:18px">C2037 left of &#39;abstract&#39; specifies unde=
fined struct/union &#39;_LIBSSH2_SESSION&#39;</b></div></div></blockquote><=
/div><div><br></div><div>Hi Moti,</div><div><br></div><div>Please use CMake=
 to generate the Visual Studio 2013 project.=C2=A0</div><div><br></div><div=
>Thanks,</div><div>Alex</div>

--001a114733bcc0d1e10532e54688--

--===============0692615245==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--===============0692615245==--

From libssh2-devel-bounces@cool.haxx.se  Wed May 18 13:05:07 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4IB4Iik019402;
	Wed, 18 May 2016 13:05:01 +0200
Received: from mail-oi0-x235.google.com (mail-oi0-x235.google.com
 [IPv6:2607:f8b0:4003:c06:0:0:0:235])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4IB4FId019371
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 18 May 2016 13:04:16 +0200
Received: by mail-oi0-x235.google.com with SMTP id k142so70589810oib.1
 for <libssh2-devel@cool.haxx.se>; Wed, 18 May 2016 04:04:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
 bh=cgYyE1qQgpjS0SZrNDrlCmjAGZHeCuTAU00s6hgkA8k=;
 b=j5FCI/vXhw5iMIV6eGl2xlDY8fg4PuoI2WXHZNRRNMW3w8wGa1CBL14kLzKFAJKhyE
 tyAz5Uan6X6bx6yW7dECW+RYflxpiLQG4x14BHmapXEejvaz3BgRMHbJhBmUPHTOAZrG
 INsF4NPY9oUasIeaZiT6FhoZ4buAz43XRIMwTi9+tOIbIrRPNc6IoDCYOAMPstv1zTKG
 kvu2uHCBCrVy1Np91a/2wqXD4UCCdjaXI+H/FtxyamDD3lJYLnB7lS6Xw/3ETedjbjSU
 NW0xIOGZrvbjsd2mgjwY7PJJUcj9BPehJjRx4bHPhytEcZnWZOCazuvcYHnLLSjx5hYQ
 JK4g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to;
 bh=cgYyE1qQgpjS0SZrNDrlCmjAGZHeCuTAU00s6hgkA8k=;
 b=RcAGOyyhVPdJkZEk5QhT/cfgHnhHxL2MmQD9Hhk4CntTvNvtofp7foaU9gaQuh3ER2
 vFeMqH6c4JpwGTOmNrhh9C2u2bFNgPXj7V0LW9FFbc39oulYvffw3CCl15jFlYxy0OBO
 /tLysOuAOaF4bwspR7L8hKXJPpn2EH3pLGRQlMXgydYTyvngfZhFAYreilnZ492wkWHI
 PesF8BOfPp8iThf1hdimejG2qxYDdjUI4pB216qzZXW2wAnv5C0B1cCMmFgpamPCr/N6
 gaat9WCE1/lc5JVHmYv5L9YtGsZuAqUVz0OY3xaZTvHjLI4+PsRTE0T/51g9Moybf4Gr
 Tfdg==
X-Gm-Message-State: AOPr4FWeU6+6cquGS5q2TVYxO6EjOrTtB+7NgJ4beMnlNMY/RLHwUa8jfb5VXNsWh8eVRhQ2GHBUfQMdQ2/qcg==
X-Received: by 10.157.61.53 with SMTP id a50mr4160038otc.31.1463569450957;
 Wed, 18 May 2016 04:04:10 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.182.106.132 with HTTP; Wed, 18 May 2016 04:03:51 -0700 (PDT)
In-Reply-To: <CADyPeTMh_r5C4e3yRLnZ6agRUkFc_FXTv4ueLUJWqHR=AyR+-g@mail.gmail.com>
References: <CAHo5M2F-xa1Y+awd0fSuN-GR=ykTDw4+WQ1-xGDgpFEeK8dUpA@mail.gmail.com>
 <CADyPeTMh_r5C4e3yRLnZ6agRUkFc_FXTv4ueLUJWqHR=AyR+-g@mail.gmail.com>
From: Moti Avrahami <moti.dp@gmail.com>
Date: Wed, 18 May 2016 14:03:51 +0300
Message-ID: <CAHo5M2GfNaMebazJ_JQfxaU=oR+Xpo6jH=AsXAK-gJ+eQhxrTw@mail.gmail.com>
Subject: Re: Problem in compiling libssh2
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============1498201023=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============1498201023==
Content-Type: multipart/alternative; boundary=001a11408a023a7f7905331bd117

--001a11408a023a7f7905331bd117
Content-Type: text/plain; charset=UTF-8

Hi Alexander,

I tried to use CMake, as you offered, in order to generate a VS2003 project
file, but encountered some errors.
I used the CMake GUI with the source code folder: "C:\...\libss2-1.7.0\src"
and I got these errors in the output window:
-------------

CMake Error at CMakeLists.txt:38 (include):
  include could not find load file:

    CheckFunctionExistsMayNeedLibrary


CMake Error at CMakeLists.txt:42 (include):
  include could not find load file:

    CheckNonblockingSocketSupport


CMake Error at CMakeLists.txt:43 (include):
  include could not find load file:

    SocketLibraries


CMake Error at C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108
(message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES) (found
  version "0.9.8j")
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315
(_FPHSA_FAILURE_MESSAGE)
  C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/FindOpenSSL.cmake:303
(find_package_handle_standard_args)
  CMakeLists.txt:63 (find_package)


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be
lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

Configuring incomplete, errors occurred!
See also "C:/Workspace/V5.5/libssh2-1.7.0/cmake/CMakeFiles/CMakeOutput.log".
See also "C:/Workspace/V5.5/libssh2-1.7.0/cmake/CMakeFiles/CMakeError.log".

==================================
==================================

In addition, I looked at the CMakeError.log file and see other error:

Determining if files windows.h;bcrypt.h exist failed with the following
output:
Change Dir: C:/Workspace/V5.5/libssh2-1.7.0/cmake/CMakeFiles/CMakeTmp

Run Build Command:C:\PROGRA~2\MICROS~3.NET\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec3826333946


Microsoft (R) Development Environment  Version 7.10.3077.

Copyright (C) Microsoft Corp 1984-2001. All rights reserved.

------ Build started: Project: cmTryCompileExec3826333946, Configuration:
Debug Win32 ------

Compiling...

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86

Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

cl /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "CMAKE_INTDIR=\"Debug\"" /D
"_MBCS" /FD /RTCs /MDd /GS /Fo"cmTryCompileExec3826333946.dir\Debug\\"
/Fd"cmTryCompileExec3826333946.dir\Debug/vc70.pdb" /W3 /c /Zi /TC

   ".\CheckIncludeFiles.c"

CheckIncludeFiles.c

CheckIncludeFiles.c(3) : fatal error C1083: Cannot open include file:
'bcrypt.h': No such file or directory


Build log was saved at
"file://c:\Workspace\V5.5\libssh2-1.7.0\cmake\CMakeFiles\CMakeTmp\cmTryCompileExec3826333946.dir\Debug\BuildLog.htm"

cmTryCompileExec3826333946 - 1 error(s), 0 warning(s)

---------------------- Done ----------------------

    Build: 0 succeeded, 1 failed, 0 skipped

==================================
==================================

For some reason, it looked for wincng library while I use OpenSSL.
What do I miss? which options should I add?

Thanks,
Moti


On Sun, May 15, 2016 at 8:59 PM, Alexander Lamaison <swish@lammy.co.uk>
wrote:

> On Sun, 15 May 2016 16:42 Moti Avrahami, <moti.dp@gmail.com> wrote:
>
>> Hi,
>>
>> I just downloaded libssh2 v1.7.0 and try to compile it, but encountered a
>> build errors.
>> I tried to compile it with Visual Studio 2003 and also 2013 (just created
>> an empty C++ Static Library project and put inside all the source and
>> header files) but failed because of the following error:
>> *C2037 left of 'abstract' specifies undefined struct/union
>> '_LIBSSH2_SESSION'*
>>
>
> Hi Moti,
>
> Please use CMake to generate the Visual Studio 2013 project.
>
> Thanks,
> Alex
>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>
>

--001a11408a023a7f7905331bd117
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br>Hi Alexander,<div><br></div><div>I tried to use CMake,=
 as you offered, in order to generate a VS2003 project file, but encountere=
d some errors.</div><div>I used the CMake GUI with the source code folder: =
&quot;C:\...\libss2-1.7.0\src&quot; and I got these errors in the output wi=
ndow:</div><div>-------------</div><div><br></div><div><div>CMake Error at =
CMakeLists.txt:38 (include):</div><div>=C2=A0 include could not find load f=
ile:</div><div><br></div><div>=C2=A0 =C2=A0 CheckFunctionExistsMayNeedLibra=
ry</div><div><br></div><div><br></div><div>CMake Error at CMakeLists.txt:42=
 (include):</div><div>=C2=A0 include could not find load file:</div><div><b=
r></div><div>=C2=A0 =C2=A0 CheckNonblockingSocketSupport</div><div><br></di=
v><div><br></div><div>CMake Error at CMakeLists.txt:43 (include):</div><div=
>=C2=A0 include could not find load file:</div><div><br></div><div>=C2=A0 =
=C2=A0 SocketLibraries</div><div><br></div><div><br></div><div>CMake Error =
at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHand=
leStandardArgs.cmake:108 (message):</div><div>=C2=A0 Could NOT find OpenSSL=
, try to set the path to OpenSSL root folder in the</div><div>=C2=A0 system=
 variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES) (found</div><div>=
=C2=A0 version &quot;0.9.8j&quot;)</div><div>Call Stack (most recent call f=
irst):</div><div>=C2=A0 C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Mo=
dules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)</div=
><div>=C2=A0 C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindO=
penSSL.cmake:303 (find_package_handle_standard_args)</div><div>=C2=A0 CMake=
Lists.txt:63 (find_package)</div><div><br></div><div><br></div><div>CMake W=
arning (dev) in CMakeLists.txt:</div><div>=C2=A0 No cmake_minimum_required =
command is present.=C2=A0 A line of code such as</div><div><br></div><div>=
=C2=A0 =C2=A0 cmake_minimum_required(VERSION 2.8)</div><div><br></div><div>=
=C2=A0 should be added at the top of the file.=C2=A0 The version specified =
may be lower</div><div>=C2=A0 if you wish to support older CMake versions f=
or this project.=C2=A0 For more</div><div>=C2=A0 information run &quot;cmak=
e --help-policy CMP0000&quot;.</div><div>This warning is for project develo=
pers.=C2=A0 Use -Wno-dev to suppress it.</div><div><br></div><div>Configuri=
ng incomplete, errors occurred!</div><div>See also &quot;C:/Workspace/V5.5/=
libssh2-1.7.0/cmake/CMakeFiles/CMakeOutput.log&quot;.</div><div>See also &q=
uot;C:/Workspace/V5.5/libssh2-1.7.0/cmake/CMakeFiles/CMakeError.log&quot;.<=
/div></div><div><br></div><div>=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></div><div>=
=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></div><div><br></div><div>In addition, I loo=
ked at the CMakeError.log file and see other error:</div><div><br></div><di=
v><div>Determining if files windows.h;bcrypt.h exist failed with the follow=
ing output:</div><div>Change Dir: C:/Workspace/V5.5/libssh2-1.7.0/cmake/CMa=
keFiles/CMakeTmp</div><div><br></div><div>Run Build Command:C:\PROGRA~2\MIC=
ROS~<a href=3D"http://3.NET">3.NET</a>\Common7\IDE\<a href=3D"http://devenv=
.com">devenv.com</a> CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompi=
leExec3826333946</div><div><br></div><div><br></div><div>Microsoft (R) Deve=
lopment Environment =C2=A0Version 7.10.3077.</div><div><br></div><div>Copyr=
ight (C) Microsoft Corp 1984-2001. All rights reserved.</div><div><br></div=
><div>------ Build started: Project: cmTryCompileExec3826333946, Configurat=
ion: Debug Win32 ------</div><div><br></div><div>Compiling...</div><div><br=
></div><div>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.30=
77 for 80x86</div><div><br></div><div>Copyright (C) Microsoft Corporation 1=
984-2002. All rights reserved.</div><div><br></div><div>cl /Od /D &quot;WIN=
32&quot; /D &quot;_WINDOWS&quot; /D &quot;_DEBUG&quot; /D &quot;CMAKE_INTDI=
R=3D\&quot;Debug\&quot;&quot; /D &quot;_MBCS&quot; /FD /RTCs /MDd /GS /Fo&q=
uot;cmTryCompileExec3826333946.dir\Debug\\&quot; /Fd&quot;cmTryCompileExec3=
826333946.dir\Debug/vc70.pdb&quot; /W3 /c /Zi /TC</div><div><br></div><div>=
=C2=A0 =C2=A0&quot;.\CheckIncludeFiles.c&quot;</div><div><br></div><div>Che=
ckIncludeFiles.c</div><div><br></div><div>CheckIncludeFiles.c(3) : fatal er=
ror C1083: Cannot open include file: &#39;bcrypt.h&#39;: No such file or di=
rectory</div><div><br></div><div><br></div><div>Build log was saved at &quo=
t;file://c:\Workspace\V5.5\libssh2-1.7.0\cmake\CMakeFiles\CMakeTmp\cmTryCom=
pileExec3826333946.dir\Debug\BuildLog.htm&quot;=C2=A0</div><div><br></div><=
div>cmTryCompileExec3826333946 - 1 error(s), 0 warning(s)=C2=A0</div><div><=
br></div><div>---------------------- Done ----------------------<br></div><=
div><br></div><div>=C2=A0 =C2=A0 Build: 0 succeeded, 1 failed, 0 skipped</d=
iv><div><br></div><div>=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</div><div>=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</div></div><div><br></div><div>For some reason, it looked f=
or wincng library while I use OpenSSL.</div><div>What do I miss? which opti=
ons should I add?</div><div><br></div><div>Thanks,</div><div>Moti</div><div=
><br></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">=
On Sun, May 15, 2016 at 8:59 PM, Alexander Lamaison <span dir=3D"ltr">&lt;<=
a href=3D"mailto:swish@lammy.co.uk" target=3D"_blank">swish@lammy.co.uk</a>=
&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=3D""><div =
class=3D"gmail_quote"><div dir=3D"ltr">On Sun, 15 May 2016 16:42 Moti Avrah=
ami, &lt;<a href=3D"mailto:moti.dp@gmail.com" target=3D"_blank">moti.dp@gma=
il.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"l=
tr">Hi,<div><br></div><div>I just downloaded libssh2 v1.7.0 and try to comp=
ile it, but encountered a build errors.</div><div>I tried to compile it wit=
h Visual Studio 2003 and also 2013 (just created an empty C++ Static Librar=
y project and put inside all the source and header files) but failed becaus=
e of the following error:</div><div><b style=3D"color:rgb(42,42,42);font-fa=
mily:&#39;Segoe UI&#39;,&#39;Lucida Grande&#39;,Verdana,Arial,Helvetica,san=
s-serif;font-size:13px;line-height:18px">C2037 left of &#39;abstract&#39; s=
pecifies undefined struct/union &#39;_LIBSSH2_SESSION&#39;</b></div></div><=
/blockquote></div><div><br></div></span><div>Hi Moti,</div><div><br></div><=
div>Please use CMake to generate the Visual Studio 2013 project.=C2=A0</div=
><div><br></div><div>Thanks,</div><div>Alex</div>
<br>_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" rel=3D"noreferrer" target=3D"_blank">http://cool.haxx.se/cgi-bin/=
mailman/listinfo/libssh2-devel</a><br>
<br></blockquote></div><br></div>

--001a11408a023a7f7905331bd117--

--===============1498201023==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--===============1498201023==--

From libssh2-devel-bounces@cool.haxx.se  Wed May 18 14:56:07 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4ICtn8b019063;
	Wed, 18 May 2016 14:56:03 +0200
Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4ICtm15018945
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 18 May 2016 14:55:48 +0200
Received: by mail-wm0-f41.google.com with SMTP id r12so33363455wme.0
 for <libssh2-devel@cool.haxx.se>; Wed, 18 May 2016 05:55:49 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=NcEKqtqdixCyv1ArTjUt5iP9acAH6dGShLxWXzdHF94=;
 b=Kfy+CMU3Q0P3Veah48fcRjUqzRnnLNKmJNXs2VK3GKzAFFxLXlC8tfDIPqaUwI4jNo
 STb5Q0xv/w/KbI8U+gx0bN1GJb+TLFvriCVQxoebC/rLymN2Q0vr3BNbHvFu3Y7BokTx
 KR65ONnD/H0xoqZ0VUHAn8+IqAO+5XlSn2QOVHmU+SQe/OHBI+LX/wzjobzaqWiU9hiB
 NIuS136cixRgAhvONk41i28vtgOfY2dXB3gLPH7LGG5gf6bX6OAG8ZXBX9ikDEqh1ABC
 FamRvuS0iYNdnM6o6YznDUdHNkMeA3wpM5XotIfkctOGFwvt2f3vOugJ+CsEU0qwNnPg
 9lJw==
X-Gm-Message-State: AOPr4FXV5b22S6VDxDRb2wqq0YkHIE24BQmtIBtiAyUfUIZnfGVYcfCYHfnRtiJhpNF/J/FN6sDIN3L+IKVn4w==
X-Received: by 10.194.5.103 with SMTP id r7mr8186327wjr.0.1463576143947; Wed,
 18 May 2016 05:55:43 -0700 (PDT)
MIME-Version: 1.0
References: <CAHo5M2F-xa1Y+awd0fSuN-GR=ykTDw4+WQ1-xGDgpFEeK8dUpA@mail.gmail.com>
 <CADyPeTMh_r5C4e3yRLnZ6agRUkFc_FXTv4ueLUJWqHR=AyR+-g@mail.gmail.com>
 <CAHo5M2GfNaMebazJ_JQfxaU=oR+Xpo6jH=AsXAK-gJ+eQhxrTw@mail.gmail.com>
In-Reply-To: <CAHo5M2GfNaMebazJ_JQfxaU=oR+Xpo6jH=AsXAK-gJ+eQhxrTw@mail.gmail.com>
From: Alexander Lamaison <swish@lammy.co.uk>
Date: Wed, 18 May 2016 12:55:33 +0000
Message-ID: <CADyPeTPj5Cn19yDKe43f8=GP0WYuV=x1akrv=rft77u0Vzp1kw@mail.gmail.com>
Subject: Re: Problem in compiling libssh2
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============1615194464=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============1615194464==
Content-Type: multipart/alternative; boundary=047d7b4512f229701205331d605a

--047d7b4512f229701205331d605a
Content-Type: text/plain; charset=UTF-8

On Wed, 18 May 2016 12:05 Moti Avrahami, <moti.dp@gmail.com> wrote:

>
> Hi Alexander,
>
> I tried to use CMake, as you offered, in order to generate a VS2003
> project file, but encountered some errors.
> I used the CMake GUI with the source code folder:
> "C:\...\libss2-1.7.0\src" and I got these errors in the output window:
> -------------
>
> CMake Error at CMakeLists.txt:38 (include):
>   include could not find load file:
>
>     CheckFunctionExistsMayNeedLibrary
>


You should point CMake at the top-level directory, not src.

Alex

--047d7b4512f229701205331d605a
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br></div><div class=3D"gmail_quote"><div dir=3D"ltr">On W=
ed, 18 May 2016 12:05 Moti Avrahami, &lt;<a href=3D"mailto:moti.dp@gmail.co=
m">moti.dp@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quo=
te" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"=
><div dir=3D"ltr"><br>Hi Alexander,<div><br></div><div>I tried to use CMake=
, as you offered, in order to generate a VS2003 project file, but encounter=
ed some errors.</div><div>I used the CMake GUI with the source code folder:=
 &quot;C:\...\libss2-1.7.0\src&quot; and I got these errors in the output w=
indow:</div><div>-------------</div><div><br></div><div><div>CMake Error at=
 CMakeLists.txt:38 (include):</div><div>=C2=A0 include could not find load =
file:</div><div><br></div><div>=C2=A0 =C2=A0 CheckFunctionExistsMayNeedLibr=
ary</div></div></div></blockquote></div><div><br></div><div><br></div><div>=
You should point CMake at the top-level directory, not src.=C2=A0</div><div=
><br></div><div>Alex</div>

--047d7b4512f229701205331d605a--

--===============1615194464==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--===============1615194464==--

From libssh2-devel-bounces@cool.haxx.se  Wed May 18 15:21:35 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4IDLSRn019745;
	Wed, 18 May 2016 15:21:33 +0200
Received: from mail-oi0-x230.google.com (mail-oi0-x230.google.com
 [IPv6:2607:f8b0:4003:c06:0:0:0:230])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4IDLP82019554
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 18 May 2016 15:21:26 +0200
Received: by mail-oi0-x230.google.com with SMTP id x19so75757480oix.2
 for <libssh2-devel@cool.haxx.se>; Wed, 18 May 2016 06:21:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
 bh=Yqu657fRo3HMg5zhq2zDXLSTqWhwXb+iWpkQSR6NSRQ=;
 b=U1N/R+1wfB6Vgdv+oQP8i1tu/GYk6n4IeDgKI/+aQrzE9mluYX5iBmyjqk95M0oP+J
 P+Buh6mn/5Sdy/opyWdhNhqNCgSpXyZZQv2qiDhgwFHQC6s7KCedDpkgfVZSl6WB7NrT
 +LjHYwDq/pKoeRKGzsDiY+iaV6dPmTX02bNo3lllzWBVtuHdA+D71O0SfN4wGPyf7WBK
 t7DJ2nNglfZ6itK0EDlNuLBJxQ0FbbjJLLMvxzRMNitI+gtk1H0knnHYGtpxGMrxepQp
 5ydj3ZICh0GdkhF7ShDyCm4DJlQs7wj5ci+6gDQk/I7d+mewyA1oYuzVKf7GBwNRe4FP
 x3Rg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to;
 bh=Yqu657fRo3HMg5zhq2zDXLSTqWhwXb+iWpkQSR6NSRQ=;
 b=kiwVQgVdl+EXK6LkCFUEOlm9BG8bGNJ6xPykEoJA4Yu2bEoJwcoaKjkZR0zVgyW6Pm
 NogxjfxACKGzq7Oc5YhQhcwtgGOrC4z4x1/P92JkrfwUlUG8IrJtjfQnhyNTDO6WBcHJ
 4meGQRffRvj1mOwdGnTJ4glj2OI+JiVc8DkQu+cL0f1Kxc0CLsiB6S/ow2/ibWSzsywV
 SXzIWRPU9nmiihYm9gADa30rD30FTNxMcxSYUWYy00cUDuuZ6+xn65Q+S/Ehrbxffd4p
 v9FUApikVjqwKmyYycXbttW3pAKY1bbK8Ui+9p0UM175yxeV/mlCBENTNvG2s+sPLm0c
 F3FQ==
X-Gm-Message-State: AOPr4FXI1sj7r3g7GSDyYAitrPC3Jf47a8hbdRqUMZlgdYO/njKHeId9aOk2TMLwzpzgjnArOVy+KP1DMZuxnA==
X-Received: by 10.157.31.36 with SMTP id x33mr4658825otd.26.1463577681039;
 Wed, 18 May 2016 06:21:21 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.182.106.132 with HTTP; Wed, 18 May 2016 06:21:01 -0700 (PDT)
In-Reply-To: <CADyPeTPj5Cn19yDKe43f8=GP0WYuV=x1akrv=rft77u0Vzp1kw@mail.gmail.com>
References: <CAHo5M2F-xa1Y+awd0fSuN-GR=ykTDw4+WQ1-xGDgpFEeK8dUpA@mail.gmail.com>
 <CADyPeTMh_r5C4e3yRLnZ6agRUkFc_FXTv4ueLUJWqHR=AyR+-g@mail.gmail.com>
 <CAHo5M2GfNaMebazJ_JQfxaU=oR+Xpo6jH=AsXAK-gJ+eQhxrTw@mail.gmail.com>
 <CADyPeTPj5Cn19yDKe43f8=GP0WYuV=x1akrv=rft77u0Vzp1kw@mail.gmail.com>
From: Moti Avrahami <moti.dp@gmail.com>
Date: Wed, 18 May 2016 16:21:01 +0300
Message-ID: <CAHo5M2EctK-CFvdsAHmrjZxL6cdLGN6yiw6gFs+Yg5UvPPwmAQ@mail.gmail.com>
Subject: Re: Problem in compiling libssh2
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============1716066638=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============1716066638==
Content-Type: multipart/alternative; boundary=001a113e5896c7971a05331dbb5a

--001a113e5896c7971a05331dbb5a
Content-Type: text/plain; charset=UTF-8

I tried it, but it told me:
CMake Error: The source "C:/Workspace/V5.5/libssh2-1.7.0/CMakeLists.txt"
does not match the source
"C:/Workspace/V5.5/libssh2-1.7.0/src/CMakeLists.txt" used to generate
cache.  Re-run cmake with a different source directory.

There were indeed 2 different versions CMakeLists.txt but even after making
them the same, I got the same error above.

On Wed, May 18, 2016 at 3:55 PM, Alexander Lamaison <swish@lammy.co.uk>
wrote:

>
> On Wed, 18 May 2016 12:05 Moti Avrahami, <moti.dp@gmail.com> wrote:
>
>>
>> Hi Alexander,
>>
>> I tried to use CMake, as you offered, in order to generate a VS2003
>> project file, but encountered some errors.
>> I used the CMake GUI with the source code folder:
>> "C:\...\libss2-1.7.0\src" and I got these errors in the output window:
>> -------------
>>
>> CMake Error at CMakeLists.txt:38 (include):
>>   include could not find load file:
>>
>>     CheckFunctionExistsMayNeedLibrary
>>
>
>
> You should point CMake at the top-level directory, not src.
>
> Alex
>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>
>

--001a113e5896c7971a05331dbb5a
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I tried it, but it told me:<div>CMake Error: The source &q=
uot;C:/Workspace/V5.5/libssh2-1.7.0/CMakeLists.txt&quot; does not match the=
 source &quot;C:/Workspace/V5.5/libssh2-1.7.0/src/CMakeLists.txt&quot; used=
 to generate cache.=C2=A0 Re-run cmake with a different source directory.<b=
r></div><div><br></div><div>There were indeed 2 different versions CMakeLis=
ts.txt but even after making them the same, I got the same error above.</di=
v></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Wed, M=
ay 18, 2016 at 3:55 PM, Alexander Lamaison <span dir=3D"ltr">&lt;<a href=3D=
"mailto:swish@lammy.co.uk" target=3D"_blank">swish@lammy.co.uk</a>&gt;</spa=
n> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex"><span class=3D""><div dir=3D"lt=
r"><br></div><div class=3D"gmail_quote"><div dir=3D"ltr">On Wed, 18 May 201=
6 12:05 Moti Avrahami, &lt;<a href=3D"mailto:moti.dp@gmail.com" target=3D"_=
blank">moti.dp@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail=
_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:=
1ex"><div dir=3D"ltr"><br>Hi Alexander,<div><br></div><div>I tried to use C=
Make, as you offered, in order to generate a VS2003 project file, but encou=
ntered some errors.</div><div>I used the CMake GUI with the source code fol=
der: &quot;C:\...\libss2-1.7.0\src&quot; and I got these errors in the outp=
ut window:</div><div>-------------</div><div><br></div><div><div>CMake Erro=
r at CMakeLists.txt:38 (include):</div><div>=C2=A0 include could not find l=
oad file:</div><div><br></div><div>=C2=A0 =C2=A0 CheckFunctionExistsMayNeed=
Library</div></div></div></blockquote></div><div><br></div><div><br></div><=
/span><div>You should point CMake at the top-level directory, not src.=C2=
=A0</div><div><br></div><div>Alex</div>
<br>_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" rel=3D"noreferrer" target=3D"_blank">http://cool.haxx.se/cgi-bin/=
mailman/listinfo/libssh2-devel</a><br>
<br></blockquote></div><br></div>

--001a113e5896c7971a05331dbb5a--

--===============1716066638==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--===============1716066638==--

From libssh2-devel-bounces@cool.haxx.se  Wed May 18 19:31:17 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4IHUnxu013219;
	Wed, 18 May 2016 19:31:11 +0200
Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4IHUlFp013156
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 18 May 2016 19:30:47 +0200
Received: by mail-wm0-f65.google.com with SMTP id s63so14180wme.2
 for <libssh2-devel@cool.haxx.se>; Wed, 18 May 2016 10:30:48 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=uvm+qzCmFQ7qyQCFpDq9JZD4SnANd5loMEAjoagrk4M=;
 b=aoLnqdjHaWCTyLy4vCBTxtaeDvvLaXTG6tDjswQ4mM2Hkfq3T49g6u73DeJujn0FTJ
 82nI9ON3gwxPsvRBz/ejFJCyDfAey1zkJ/zl6RS97dRnONGTtabFfL92wkU2ki1K+WDk
 SrTztLJ6BO20WGe3Ub4uFqgh5K15E+TVsV9eBjXGVqWxIA+CAwS++G+A0tlr0TBxwILT
 mytYHiYHBoKjV57NG7JFneRgqVC5HTKKLQDeBf5jV/jlJsPIYFZFWYG+86VNneY7wk/S
 zeI6tsuxQSaO5FHmr0okkUGA9Wh3gvL1cEz8j7cKpBZO2kE8AGy+km5G+0ORN2G0KBAX
 UwZw==
X-Gm-Message-State: AOPr4FWVI1SHhu/WtBs8qqLS1CDHqykLC23le8V/DBpSVjstgrqVrtAnPU5keU+AT3eD7H5jhjTZUEWe4Q4OeQ==
X-Received: by 10.194.216.65 with SMTP id oo1mr8330562wjc.97.1463592642991;
 Wed, 18 May 2016 10:30:42 -0700 (PDT)
MIME-Version: 1.0
References: <CAHo5M2F-xa1Y+awd0fSuN-GR=ykTDw4+WQ1-xGDgpFEeK8dUpA@mail.gmail.com>
 <CADyPeTMh_r5C4e3yRLnZ6agRUkFc_FXTv4ueLUJWqHR=AyR+-g@mail.gmail.com>
 <CAHo5M2GfNaMebazJ_JQfxaU=oR+Xpo6jH=AsXAK-gJ+eQhxrTw@mail.gmail.com>
 <CADyPeTPj5Cn19yDKe43f8=GP0WYuV=x1akrv=rft77u0Vzp1kw@mail.gmail.com>
 <CAHo5M2EctK-CFvdsAHmrjZxL6cdLGN6yiw6gFs+Yg5UvPPwmAQ@mail.gmail.com>
In-Reply-To: <CAHo5M2EctK-CFvdsAHmrjZxL6cdLGN6yiw6gFs+Yg5UvPPwmAQ@mail.gmail.com>
From: Alexander Lamaison <swish@lammy.co.uk>
Date: Wed, 18 May 2016 17:30:33 +0000
Message-ID: <CADyPeTPRPsyKqAdFAY-TUbiNB+MVq=m1cTEZXDjaisE3oZkr=w@mail.gmail.com>
Subject: Re: Problem in compiling libssh2
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============1037648541=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============1037648541==
Content-Type: multipart/alternative; boundary=089e01419e2094dce80533213744

--089e01419e2094dce80533213744
Content-Type: text/plain; charset=UTF-8

On Wed, 18 May 2016 14:21 Moti Avrahami, <moti.dp@gmail.com> wrote:

> I tried it, but it told me:
> CMake Error: The source "C:/Workspace/V5.5/libssh2-1.7.0/CMakeLists.txt"
> does not match the source
> "C:/Workspace/V5.5/libssh2-1.7.0/src/CMakeLists.txt" used to generate
> cache.  Re-run cmake with a different source directory.
>
> There were indeed 2 different versions CMakeLists.txt but even after
> making them the same, I got the same error above.
>

Use a clean binary directory. It's messed up from the previous attempt.

Alex

--089e01419e2094dce80533213744
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Wed, 18 May 2016 14:=
21 Moti Avrahami, &lt;<a href=3D"mailto:moti.dp@gmail.com">moti.dp@gmail.co=
m</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin=
:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">I=
 tried it, but it told me:<div>CMake Error: The source &quot;C:/Workspace/V=
5.5/libssh2-1.7.0/CMakeLists.txt&quot; does not match the source &quot;C:/W=
orkspace/V5.5/libssh2-1.7.0/src/CMakeLists.txt&quot; used to generate cache=
.=C2=A0 Re-run cmake with a different source directory.<br></div><div><br><=
/div><div>There were indeed 2 different versions CMakeLists.txt but even af=
ter making them the same, I got the same error above.</div></div></blockquo=
te></div><div><br></div><div>Use a clean binary directory. It&#39;s messed =
up from the previous attempt.=C2=A0</div><div><br></div><div>Alex</div>

--089e01419e2094dce80533213744--

--===============1037648541==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--===============1037648541==--

From libssh2-devel-bounces@cool.haxx.se  Thu May 19 00:01:09 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4IM0d7t000499;
	Thu, 19 May 2016 00:01:03 +0200
Received: from mail-vk0-x229.google.com (mail-vk0-x229.google.com
 [IPv6:2607:f8b0:400c:c05:0:0:0:229])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4IM0aQv000414
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 19 May 2016 00:00:37 +0200
Received: by mail-vk0-x229.google.com with SMTP id f66so79784908vkh.2
 for <libssh2-devel@cool.haxx.se>; Wed, 18 May 2016 15:00:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=taltos.com; s=google;
 h=mime-version:date:message-id:subject:from:to;
 bh=J0kcrV6wmqbVz0cmKUKa6MYHI73GKlu/RIRDM9yZt2s=;
 b=N5a7THeUFSEECocTW/M3ImhjQz2JXXYIsqVGfD84ABeAvtZNmCS3a1JVgzTVT4jOJH
 9ghmZ8C7Lq++JL/RGM/D/Ufa5kUzYzkkmC948M5ln0YXfwS3rMmup2rU3XbD1fQWQTDM
 NmN9VhBAV5Us2i8VSlG8o8jbOUIUWumKrpR18=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:date:message-id:subject:from:to;
 bh=J0kcrV6wmqbVz0cmKUKa6MYHI73GKlu/RIRDM9yZt2s=;
 b=ZjKKzf9UrF/o/dY113QLzA4YvRQ24reiNP0p5Uiwqx7LjwzeQxFDJBAPJyuKq1Wurg
 Hnzx7pASk5+xsYEbbMuaB7neEp2uNS1L9NspiC//fzDxylNpdFOSwkUGQJZ5I8D4JF2l
 LTzJxkXCDZNWa0DCnxLrKhRhbSlNJhKMjOUc5Km4w2fOz6dkNt0/nKyf4fZV7PUE36Pw
 0PBv/xNbgo+FRoDdOEOslCKtsHsW10mGsVgXwcslB9KPe3ncpOSxsyC/C+CEKyHA161b
 z/+BdQYhMCK3GeneEv2bKqMgrHFflIaYlVZHokSi98BGGdRjCa7qwWcFwg6v+ShvlCRk
 BgiQ==
X-Gm-Message-State: AOPr4FX1XTeU8inCN0RTACOSzWGSKb9/T4YY1e+VyahS5o8lIcL+S93f012W/bnFLm6+9ITjbdPBtSkgYLigEA==
MIME-Version: 1.0
X-Received: by 10.176.4.198 with SMTP id 64mr4769081uaw.154.1463608831434;
 Wed, 18 May 2016 15:00:31 -0700 (PDT)
Received: by 10.176.4.229 with HTTP; Wed, 18 May 2016 15:00:31 -0700 (PDT)
X-Originating-IP: [2001:4898:80e8:a::70d]
Date: Wed, 18 May 2016 15:00:31 -0700
Message-ID: <CAMDMLYPj2XmkQ7evdPUi56fPSyL1sNs2NKq_yjQ=Hv0Na2YK+w@mail.gmail.com>
Subject: Can a remote TCP/IP server get connection information from libssh2
From: Jeff Coffler <jeff@taltos.com>
To: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============1418731409=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============1418731409==
Content-Type: multipart/alternative; boundary=94eb2c124e6a7cfeff053324fc6c

--94eb2c124e6a7cfeff053324fc6c
Content-Type: text/plain; charset=UTF-8

Hi,

I'm working with one of the sample programs, direct_tcpip.c, which uses the
libssh2_channel_direct_tcpip_ex to connect to a remote server via SSH.

That much is working great. I can talk to the server, everything is good.
However, I would like the remote server (which may or may not be receiving
a connection from SSH; it may also receive a connection directly over
TCP/IP without SSH) to:


   1. Determine if the connection is coming in via SSH, and
   2. If coming in via SSH, determine the username and type of
   authentication that was used (password, key, etc). Or, if I can't determine
   the type of authentication, at least determine the username that was used
   to authenticate.


It's not clear to me if this is even possible:


   - The server may not be on the local host (I may connect from host A to
   server B, which connects via TCP/IP to server C, although that leg would
   not be encrypted),
   - For the life of me, I can't figure out a way to take the TCP/IP socket
   from accept() (that's all I've got on the server at the time) and turn that
   into something useful (like a LIBSSH2_SESSION * or something). And even if
   I had a valid session, I can't find an API that would return the username
   that was used to authenticate a session.


Is this sort of integration possible with libssh2?

Thanks in advance for any help!

/Jeff

--94eb2c124e6a7cfeff053324fc6c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>I&#39;m working with one of the sam=
ple programs, direct_tcpip.c, which uses the libssh2_channel_direct_tcpip_e=
x to connect to a remote server via SSH.</div><div><br></div><div>That much=
 is working great. I can talk to the server, everything is good. However, I=
 would like the remote server (which may or may not be receiving a connecti=
on from SSH; it may also receive a connection directly over TCP/IP without =
SSH) to:</div><div><br></div><div><ol><li>Determine if the connection is co=
ming in via SSH, and</li><li>If coming in via SSH, determine the username a=
nd type of authentication that was used (password, key, etc). Or, if I can&=
#39;t determine the type of authentication, at least determine the username=
 that was used to authenticate.</li></ol><div><br></div></div><div>It&#39;s=
 not clear to me if this is even possible:</div><div><br></div><div><ul><li=
>The server may not be on the local host (I may connect from host A to serv=
er B, which connects via TCP/IP to server C, although that leg would not be=
 encrypted),</li><li>For the life of me, I can&#39;t figure out a way to ta=
ke the TCP/IP socket from accept() (that&#39;s all I&#39;ve got on the serv=
er at the time) and turn that into something useful (like a LIBSSH2_SESSION=
 * or something). And even if I had a valid session, I can&#39;t find an AP=
I that would return the username that was used to authenticate a session.</=
li></ul><div><br></div></div><div>Is this sort of integration possible with=
 libssh2?</div><div><br></div><div>Thanks in advance for any help!</div><di=
v><br></div><div>/Jeff</div></div>

--94eb2c124e6a7cfeff053324fc6c--

--===============1418731409==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--===============1418731409==--

From libssh2-devel-bounces@cool.haxx.se  Thu May 19 01:25:22 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4INP3fs023576;
	Thu, 19 May 2016 01:25:18 +0200
Received: from foo.stuge.se (foo.stuge.se [212.116.89.98])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4INP1Ha023301
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 19 May 2016 01:25:02 +0200
Received: (qmail 7151 invoked by uid 1000); 18 May 2016 23:17:57 -0000
Date: Wed, 18 May 2016 23:17:57 +0000
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: Can a remote TCP/IP server get connection information from libssh2
Message-ID: <20160518231757.GL26940@foo.stuge.se>
References: <CAMDMLYPj2XmkQ7evdPUi56fPSyL1sNs2NKq_yjQ=Hv0Na2YK+w@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CAMDMLYPj2XmkQ7evdPUi56fPSyL1sNs2NKq_yjQ=Hv0Na2YK+w@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: text/plain; charset="utf-8"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id u4INP3fs023576

Jeff Coffler wrote:
> direct_tcpip.c
..
> I would like the remote server .. to:
> 
>    1. Determine if the connection is coming in via SSH, and
>    2. If coming in via SSH, determine the username and type of authentication
> 
> It's not clear to me if this is even possible:

It's not.


> Is this sort of integration possible with libssh2?

It's not possible, but that is unrelated to libssh2 or even the SSH
protocol. It's a property of TCP/IP.


> Thanks in advance for any help!

If you need information from the sshd then you have to integrate with
the sshd. An isolated service running somewhere else, only reachable
via IP, is not integrated, and has no access to the information you want.

A subsystem on the sshd server would, but that requires installing your
subsystem program onto the sshd server, and adding your subsystem to the
sshd configuration.


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

From libssh2-devel-bounces@cool.haxx.se  Thu May 19 14:26:53 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4JCQLRE018949;
	Thu, 19 May 2016 14:26:45 +0200
Received: from mail-oi0-x22f.google.com (mail-oi0-x22f.google.com
 [IPv6:2607:f8b0:4003:c06:0:0:0:22f])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4JCQIAN018853
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 19 May 2016 14:26:19 +0200
Received: by mail-oi0-x22f.google.com with SMTP id x201so125490986oif.3
 for <libssh2-devel@cool.haxx.se>; Thu, 19 May 2016 05:26:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
 bh=vKmNcx0qkK/mxLFtZqXaK7uSiI7m6zZBTaLLYVyJMo8=;
 b=zH6rtM48tPbNVImF5iq3sjSTnr3gv6O2p9bqhKUx/XDDC3wBigXXzco9BCOUSzIFKw
 Jtl+0vesQs1BhGDq3UytqQPC3WZvshOWFK78E2qFAdq+12m/zmey8YWMWnxf42pULc4w
 5YbsydgJHWBdCWKCeQSuCsq9qKKzDNB9z/vNebiScxQXqJuYsCzWMNq6qCdFJLG5DRZa
 m1D2TpP0tlcs0nXbX1O2WakaIzYvaT4H5Zxc6Lfk0R4BSzmn5znkjDRO5i214hZxx3BH
 4iIRipSKj6257lhGirhSlhTlnP9fcl0n4+muhWeL5mWnVg4bJ2jRbfdwp0PKRr1I7KxL
 lP9w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to;
 bh=vKmNcx0qkK/mxLFtZqXaK7uSiI7m6zZBTaLLYVyJMo8=;
 b=CAfmJiRZwHyipSWrV4AUsLgXU56IU04wNGtO+saaqC6ZQHm7ZgM7CnkktrZw0J+sHd
 CPFm4mah43x6M9+7HgP6rteNSloPmbowNAamFHpPRPrCO/ej+OoxQK06L0SNMoPpwH37
 8uua+4QQ8ivcar0pDDqECYXlAcOMRNrsn7PrmEaJZ+j31rOyTdv7dTLjsFv4secLQRBr
 xvJiiaxfP+53ggAsa5ee5fePFbUNgvY4AAET4D0DjehH5rhdhqqR+MJImznLLmr9Mti9
 G/Yv1JPcBsl3knMkks0OgSxdYV7cQ3GANrjSrLue7ARARlow8c1bYbpwRSLT3TiTqTV1
 RhaA==
X-Gm-Message-State: AOPr4FWMGnJ2uQDJuC92Kv/fRTEIkrhpHzU1Wxw5weH6bexVckqYjRx1xcPKZ6FdYE1m6Cc9k0GtL9DaN4iEuA==
X-Received: by 10.157.10.20 with SMTP id 20mr2325864otg.13.1463660773988; Thu,
 19 May 2016 05:26:13 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.182.106.132 with HTTP; Thu, 19 May 2016 05:25:54 -0700 (PDT)
In-Reply-To: <CADyPeTPRPsyKqAdFAY-TUbiNB+MVq=m1cTEZXDjaisE3oZkr=w@mail.gmail.com>
References: <CAHo5M2F-xa1Y+awd0fSuN-GR=ykTDw4+WQ1-xGDgpFEeK8dUpA@mail.gmail.com>
 <CADyPeTMh_r5C4e3yRLnZ6agRUkFc_FXTv4ueLUJWqHR=AyR+-g@mail.gmail.com>
 <CAHo5M2GfNaMebazJ_JQfxaU=oR+Xpo6jH=AsXAK-gJ+eQhxrTw@mail.gmail.com>
 <CADyPeTPj5Cn19yDKe43f8=GP0WYuV=x1akrv=rft77u0Vzp1kw@mail.gmail.com>
 <CAHo5M2EctK-CFvdsAHmrjZxL6cdLGN6yiw6gFs+Yg5UvPPwmAQ@mail.gmail.com>
 <CADyPeTPRPsyKqAdFAY-TUbiNB+MVq=m1cTEZXDjaisE3oZkr=w@mail.gmail.com>
From: Moti Avrahami <moti.dp@gmail.com>
Date: Thu, 19 May 2016 15:25:54 +0300
Message-ID: <CAHo5M2Finag=kr3nAPsvHSc_FWdXd_sxRA-Kw4Rdmiq=PZwX9g@mail.gmail.com>
Subject: Re: Problem in compiling libssh2
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============1909032249=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============1909032249==
Content-Type: multipart/alternative; boundary=001a113cd4e2815fb1053331140f

--001a113cd4e2815fb1053331140f
Content-Type: text/plain; charset=UTF-8

Seems so, it was solved, thanks.

Anyway, now it still keep telling me about the OpenSSL binding error:

CMake Error at C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108
(message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES) (found
version "0.9.8k")
Call Stack (most recent call first):
C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315
(_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/FindOpenSSL.cmake:303
(find_package_handle_standard_args)
src/CMakeLists.txt:63 (find_package)

===============================

As you can see, no matter what I did (described below), it tell me all the
time that OPENSSL_LIBRARIES is missing:

I defined the following:
OPENSSL_ROOT_DIR - to the root of folder OpenSSL
OPENSSL_INCLUDE_DIR - to the include dir with all the .h files
OPENSSL_LIBRARIES - to the libs folder
CRYPTO_BACKEND=OpenSSL

I tried it with both OpenSSL version 0.9.8k and 1.0.0 but it doesn't work.

I tried to clean the bin folder several times.

Is there something that I missed?

Thanks,



On Wed, May 18, 2016 at 8:30 PM, Alexander Lamaison <swish@lammy.co.uk>
wrote:

>
>
> On Wed, 18 May 2016 14:21 Moti Avrahami, <moti.dp@gmail.com> wrote:
>
>> I tried it, but it told me:
>> CMake Error: The source "C:/Workspace/V5.5/libssh2-1.7.0/CMakeLists.txt"
>> does not match the source
>> "C:/Workspace/V5.5/libssh2-1.7.0/src/CMakeLists.txt" used to generate
>> cache.  Re-run cmake with a different source directory.
>>
>> There were indeed 2 different versions CMakeLists.txt but even after
>> making them the same, I got the same error above.
>>
>
> Use a clean binary directory. It's messed up from the previous attempt.
>
> Alex
>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>
>

--001a113cd4e2815fb1053331140f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Seems so, it was solved, thanks.<div><br></div><div>Anyway=
, now it still keep telling me about the OpenSSL binding error:</div><div><=
br></div><div><span style=3D"color:rgb(255,0,0)">CMake Error at C:/Program =
Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs=
.cmake:108 (message):<br>  Could NOT find OpenSSL, try to set the path to O=
penSSL root folder in the<br>  system variable OPENSSL_ROOT_DIR (missing: O=
PENSSL_LIBRARIES) (found<br>  version &quot;0.9.8k&quot;)<br>Call Stack (mo=
st recent call first):<br>  C:/Program Files (x86)/CMake 2.8/share/cmake-2.=
8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)<=
br>  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindOpenSSL.c=
make:303 (find_package_handle_standard_args)<br>  src/CMakeLists.txt:63 (fi=
nd_package)</span><br></div><div><span style=3D"color:rgb(255,0,0)"><br></s=
pan></div><div><span style=3D"color:rgb(255,0,0)">=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</span><s=
pan style=3D"color:rgb(255,0,0)">=3D</span><br></div><div><span style=3D"co=
lor:rgb(255,0,0)"><br></span></div><div><font color=3D"#000000">As you can =
see, no matter what I did (described below), it tell me all the time that=
=C2=A0OPENSSL_LIBRARIES is missing:</font></div><div><font color=3D"#000000=
"><br></font></div><div><font color=3D"#000000">I defined the following:<br=
></font></div><div><font color=3D"#000000">OPENSSL_ROOT_DIR - to the root o=
f=C2=A0</font><span style=3D"color:rgb(0,0,0)">folder=C2=A0</span><span sty=
le=3D"color:rgb(0,0,0)">OpenSSL=C2=A0</span></div><div><div><font color=3D"=
#000000">OPENSSL_INCLUDE_DIR - to the include dir with all the .h files</fo=
nt></div><div><font color=3D"#000000">OPENSSL_LIBRARIES - to the libs folde=
r</font></div><div><span style=3D"color:rgb(0,0,0)">CRYPTO_BACKEND=3DOpenSS=
L</span><br></div><div><font color=3D"#000000"><br></font></div><div><font =
color=3D"#000000">I tried it with both OpenSSL version 0.9.8k and 1.0.0 but=
 it doesn&#39;t work.</font></div><div><font color=3D"#000000"><br></font><=
/div><div><font color=3D"#000000">I tried to clean the bin folder several t=
imes.</font></div><div><font color=3D"#000000"><br></font></div></div><div>=
<font color=3D"#000000">Is there something that I missed?</font><br></div><=
div><br></div><div>Thanks,</div><div><span style=3D"color:rgb(255,0,0)"><br=
></span></div><div><span style=3D"color:rgb(255,0,0)"><br></span></div></di=
v><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Wed, May 18,=
 2016 at 8:30 PM, Alexander Lamaison <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:swish@lammy.co.uk" target=3D"_blank">swish@lammy.co.uk</a>&gt;</span> wro=
te:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-=
left:1px #ccc solid;padding-left:1ex"><span class=3D""><br><br><div class=
=3D"gmail_quote"><div dir=3D"ltr">On Wed, 18 May 2016 14:21 Moti Avrahami, =
&lt;<a href=3D"mailto:moti.dp@gmail.com" target=3D"_blank">moti.dp@gmail.co=
m</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin=
:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">I=
 tried it, but it told me:<div>CMake Error: The source &quot;C:/Workspace/V=
5.5/libssh2-1.7.0/CMakeLists.txt&quot; does not match the source &quot;C:/W=
orkspace/V5.5/libssh2-1.7.0/src/CMakeLists.txt&quot; used to generate cache=
.=C2=A0 Re-run cmake with a different source directory.<br></div><div><br><=
/div><div>There were indeed 2 different versions CMakeLists.txt but even af=
ter making them the same, I got the same error above.</div></div></blockquo=
te></div><div><br></div></span><div>Use a clean binary directory. It&#39;s =
messed up from the previous attempt.=C2=A0</div><div><br></div><div>Alex</d=
iv>
<br>_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" rel=3D"noreferrer" target=3D"_blank">http://cool.haxx.se/cgi-bin/=
mailman/listinfo/libssh2-devel</a><br>
<br></blockquote></div><br></div>

--001a113cd4e2815fb1053331140f--

--===============1909032249==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--===============1909032249==--

From libssh2-devel-bounces@cool.haxx.se  Thu May 19 15:49:44 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4JDnP28012912;
	Thu, 19 May 2016 15:49:42 +0200
Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4JDnO6B012812
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 19 May 2016 15:49:24 +0200
Received: by mail-wm0-f51.google.com with SMTP id a17so127244535wme.0
 for <libssh2-devel@cool.haxx.se>; Thu, 19 May 2016 06:49:25 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=zM0S2jTnA47jASQJ1Z+MbdGtp9ct6Y6/5WLc74p/Cyo=;
 b=KdOYT7r6kN3FjZkRpIL58t0lRpHIdGMO0i5xwNixkYWIci7N4f1c76qSh1PKRiZWcV
 y6dL2Ll82RVqla5xXkeSRLCsmhUcZS4YgUhNG/8IH/Mx0gGsZd79BBQdqUw5lgyML6V6
 rRmkcnpwe5sAgqPSYvDfbQkVPwrST9c+Ay2P9EV6Nhuq5GkltCdrwE5VMXIu3dUhq4wo
 oOiEz9mRUNUwZhWFJk39OhvyOMI1UFXLxKK15rMZBzoSLE5v9v3pizbTBzh6kwgfADRU
 AXK1inG6WHRt+ap5yA1GS7mwsjA3lD1ioPEV70mn19bnUK2+Lml7Cnwtqo+8ZRBVeLpY
 Ni9A==
X-Gm-Message-State: AOPr4FX9Y36ycQJwA/ul4LZ1uPVqBBtj3dLLpS1sUwtjX0tZ0POGWYuoDsMVPngqg/cTMxVhu+gNIiX7XWEvTw==
X-Received: by 10.194.139.104 with SMTP id qx8mr13313199wjb.14.1463665759727; 
 Thu, 19 May 2016 06:49:19 -0700 (PDT)
MIME-Version: 1.0
References: <CAHo5M2F-xa1Y+awd0fSuN-GR=ykTDw4+WQ1-xGDgpFEeK8dUpA@mail.gmail.com>
 <CADyPeTMh_r5C4e3yRLnZ6agRUkFc_FXTv4ueLUJWqHR=AyR+-g@mail.gmail.com>
 <CAHo5M2GfNaMebazJ_JQfxaU=oR+Xpo6jH=AsXAK-gJ+eQhxrTw@mail.gmail.com>
 <CADyPeTPj5Cn19yDKe43f8=GP0WYuV=x1akrv=rft77u0Vzp1kw@mail.gmail.com>
 <CAHo5M2EctK-CFvdsAHmrjZxL6cdLGN6yiw6gFs+Yg5UvPPwmAQ@mail.gmail.com>
 <CADyPeTPRPsyKqAdFAY-TUbiNB+MVq=m1cTEZXDjaisE3oZkr=w@mail.gmail.com>
 <CAHo5M2Finag=kr3nAPsvHSc_FWdXd_sxRA-Kw4Rdmiq=PZwX9g@mail.gmail.com>
In-Reply-To: <CAHo5M2Finag=kr3nAPsvHSc_FWdXd_sxRA-Kw4Rdmiq=PZwX9g@mail.gmail.com>
From: Alexander Lamaison <swish@lammy.co.uk>
Date: Thu, 19 May 2016 13:49:09 +0000
Message-ID: <CADyPeTNBfP_7-BTodbSTjO0T2YOdKntaCxKLPAGxGgxHmMOAfA@mail.gmail.com>
Subject: Re: Problem in compiling libssh2
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============1149580834=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============1149580834==
Content-Type: multipart/alternative; boundary=bcaec50fe769adb73f0533323d90

--bcaec50fe769adb73f0533323d90
Content-Type: text/plain; charset=UTF-8

On Thu, 19 May 2016 13:27 Moti Avrahami, <moti.dp@gmail.com> wrote:

> Seems so, it was solved, thanks.
>
> Anyway, now it still keep telling me about the OpenSSL binding error:
>
> CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108
> (message):
> Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
> system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES) (found
> version "0.9.8k")
>
> Call Stack (most recent call first):
> C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315
> (_FPHSA_FAILURE_MESSAGE)
> C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/FindOpenSSL.cmake:303
> (find_package_handle_standard_args)
> src/CMakeLists.txt:63 (find_package)
>
> ===============================
>
> As you can see, no matter what I did (described below), it tell me all the
> time that OPENSSL_LIBRARIES is missing:
>
> I defined the following:
> OPENSSL_ROOT_DIR - to the root of folder OpenSSL
> OPENSSL_INCLUDE_DIR - to the include dir with all the .h files
> OPENSSL_LIBRARIES - to the libs folder
> CRYPTO_BACKEND=OpenSSL
>

Is this with the slproweb OpenSSL? I also notice you're using CMake 2.8,
which is pretty ancient. I would suggest using the latest version because
FindOpenSSL.cmake is regularly updated and improved.

Alex

--bcaec50fe769adb73f0533323d90
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Thu, 19 May 2016 13:=
27 Moti Avrahami, &lt;<a href=3D"mailto:moti.dp@gmail.com">moti.dp@gmail.co=
m</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin=
:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">S=
eems so, it was solved, thanks.<div><br></div><div>Anyway, now it still kee=
p telling me about the OpenSSL binding error:</div><div><br></div><div><spa=
n style=3D"color:rgb(255,0,0)"></span></div></div><div dir=3D"ltr"><div><sp=
an style=3D"color:rgb(255,0,0)">CMake Error at C:/Program Files (x86)/CMake=
 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (messa=
ge):<br>  Could NOT find OpenSSL, try to set the path to OpenSSL root folde=
r in the<br>  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES)=
 (found<br></span></div></div><div dir=3D"ltr"><div><span style=3D"color:rg=
b(255,0,0)">  version &quot;0.9.8k&quot;)</span></div></div><div dir=3D"ltr=
"><div><span style=3D"color:rgb(255,0,0)"><br>Call Stack (most recent call =
first):<br>  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindP=
ackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)<br>  C:/Program=
 Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindOpenSSL.cmake:303 (find_=
package_handle_standard_args)<br></span></div></div><div dir=3D"ltr"><div><=
span style=3D"color:rgb(255,0,0)">  src/CMakeLists.txt:63 (find_package)</s=
pan><br></div><div><span style=3D"color:rgb(255,0,0)"><br></span></div><div=
><span style=3D"color:rgb(255,0,0)">=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</span><span style=3D"co=
lor:rgb(255,0,0)">=3D</span><br></div><div><span style=3D"color:rgb(255,0,0=
)"><br></span></div><div><font color=3D"#000000">As you can see, no matter =
what I did (described below), it tell me all the time that=C2=A0OPENSSL_LIB=
RARIES is missing:</font></div><div><font color=3D"#000000"><br></font></di=
v><div><font color=3D"#000000">I defined the following:<br></font></div><di=
v><font color=3D"#000000">OPENSSL_ROOT_DIR - to the root of=C2=A0</font><sp=
an style=3D"color:rgb(0,0,0)">folder=C2=A0</span><span style=3D"color:rgb(0=
,0,0)">OpenSSL=C2=A0</span></div><div><div><font color=3D"#000000">OPENSSL_=
INCLUDE_DIR - to the include dir with all the .h files</font></div><div><fo=
nt color=3D"#000000">OPENSSL_LIBRARIES - to the libs folder</font></div><di=
v><span style=3D"color:rgb(0,0,0)">CRYPTO_BACKEND=3DOpenSSL</span></div></d=
iv></div></blockquote></div><div><br></div><div>Is this with the slproweb O=
penSSL? I also notice you&#39;re using CMake 2.8, which is pretty ancient. =
I would suggest using the latest version because FindOpenSSL.cmake is regul=
arly updated and improved.=C2=A0</div><div><br></div><div>Alex</div>

--bcaec50fe769adb73f0533323d90--

--===============1149580834==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--===============1149580834==--

From libssh2-devel-bounces@cool.haxx.se  Sun May 22 14:50:39 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4MCoAAh031378;
	Sun, 22 May 2016 14:50:34 +0200
Received: from mail-oi0-x234.google.com (mail-oi0-x234.google.com
 [IPv6:2607:f8b0:4003:c06:0:0:0:234])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4MCo7AB031209
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Sun, 22 May 2016 14:50:08 +0200
Received: by mail-oi0-x234.google.com with SMTP id x19so242023327oix.2
 for <libssh2-devel@cool.haxx.se>; Sun, 22 May 2016 05:50:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
 bh=lb1Bfgf88OfPgAs3Bgl0ReQJqZ85YrTdcU9Lj51zMtI=;
 b=C7BWBVxbhj3J9j2vHh0jvH4Wt2zf3YavXbx/WDUBGF+MVN6bLEXqe37tTrv/E1OzFZ
 PjywJp6ggrW4qJS/jsup42+5ySVfD/5sdFV4m8UM43sQtGnxHTZT0pQZIhvpyp+QRht8
 LbwaGBZoMezoQhaMG9lSln3YYUtU67ZyYOnU8pVZ+96iQ3MteXqCCbcalr793n7W6Lin
 lJK5v9Wm8RXit1VMPiGbPYcXpViJBpcIVVYrrgD5mXtrWdxjoW2HlRT0O+EPdSYiosoO
 5j6O41XJCroQd9QGroaaFk56s8VrbOarjbXH9s8zQSlAVKv5q1hDRAmI0FWZDBE8oDAS
 7ycA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to;
 bh=lb1Bfgf88OfPgAs3Bgl0ReQJqZ85YrTdcU9Lj51zMtI=;
 b=XEw7TgXJnqsXw40/5mtg2fxCTtVdISHZ1e8j9NWs4EeoKZtS5xLLEElcIVNMSGPgaj
 JchLUUK0YDdB2pONmr9eCg+rfjSkaV74qNv+bK/EtfUQ3rSiVIx28kbOWwhU2XMi0w2y
 JLGUlukVggX6vFSuopwsTntPQRGXAszFYoKeD+dUQEYED5o3r1CEbiLpJrgjagojICa9
 iMNYtVGgU89Aa4IGyd72mMvorupPSOchxcKHmTTNZxhaHdpOmgfyyjbNooTtbZK7GZAN
 8T16vLyhqC/9t802i0LxScUazszPB2RLMdD5fnNUZwdf7/4YboB07+7Qh5lYQjUpS8uD
 yA/Q==
X-Gm-Message-State: AOPr4FX+IXmpBQOVXEfbcs+7UijSTGvHuSJqgQBEwKGCGPmnZAvzfsw5UqPWYxTHWuuLFQ4jELmXbvMhSIlxWA==
X-Received: by 10.157.52.217 with SMTP id t25mr5613668otd.150.1463902464289;
 Sun, 22 May 2016 00:34:24 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.182.106.132 with HTTP; Sun, 22 May 2016 00:34:04 -0700 (PDT)
In-Reply-To: <CADyPeTNBfP_7-BTodbSTjO0T2YOdKntaCxKLPAGxGgxHmMOAfA@mail.gmail.com>
References: <CAHo5M2F-xa1Y+awd0fSuN-GR=ykTDw4+WQ1-xGDgpFEeK8dUpA@mail.gmail.com>
 <CADyPeTMh_r5C4e3yRLnZ6agRUkFc_FXTv4ueLUJWqHR=AyR+-g@mail.gmail.com>
 <CAHo5M2GfNaMebazJ_JQfxaU=oR+Xpo6jH=AsXAK-gJ+eQhxrTw@mail.gmail.com>
 <CADyPeTPj5Cn19yDKe43f8=GP0WYuV=x1akrv=rft77u0Vzp1kw@mail.gmail.com>
 <CAHo5M2EctK-CFvdsAHmrjZxL6cdLGN6yiw6gFs+Yg5UvPPwmAQ@mail.gmail.com>
 <CADyPeTPRPsyKqAdFAY-TUbiNB+MVq=m1cTEZXDjaisE3oZkr=w@mail.gmail.com>
 <CAHo5M2Finag=kr3nAPsvHSc_FWdXd_sxRA-Kw4Rdmiq=PZwX9g@mail.gmail.com>
 <CADyPeTNBfP_7-BTodbSTjO0T2YOdKntaCxKLPAGxGgxHmMOAfA@mail.gmail.com>
From: Moti Avrahami <moti.dp@gmail.com>
Date: Sun, 22 May 2016 10:34:04 +0300
Message-ID: <CAHo5M2F3q+JKv1uSB2n1ra8tyDLGv-EuKWnT6eNc+3ndyEXPig@mail.gmail.com>
Subject: Re: Problem in compiling libssh2
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============0699097451=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============0699097451==
Content-Type: multipart/alternative; boundary=001a1141dcf85eb8c60533695a1d

--001a1141dcf85eb8c60533695a1d
Content-Type: text/plain; charset=UTF-8

Hi,

1. This is not slproweb OpenSSL.
2. I upgraded CMake to the latest version - 3.5.2
3. It still doesn't work:

The C compiler identification is MSVC 13.10.3077

Check for working C compiler using: Visual Studio 7 .NET 2003

Check for working C compiler using: Visual Studio 7 .NET 2003 -- works

Detecting C compiler ABI info

Detecting C compiler ABI info - done

CMake Error at
C:/Work/Curl/cmake/cmake-3.5.2-win32-x86/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148
(message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES)
Call Stack (most recent call first):
C:/Work/Curl/cmake/cmake-3.5.2-win32-x86/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388
(_FPHSA_FAILURE_MESSAGE)
C:/Work/Curl/cmake/cmake-3.5.2-win32-x86/share/cmake-3.5/Modules/FindOpenSSL.cmake:370
(find_package_handle_standard_args)
src/CMakeLists.txt:63 (find_package)

Configuring incomplete, errors occurred!

See also
"C:/Work/Curl/cmake/cmake-3.5.2-win32-x86/bin/CMakeFiles/CMakeOutput.log".



Other ideas?

Many thanks again.



On Thu, May 19, 2016 at 4:49 PM, Alexander Lamaison <swish@lammy.co.uk>
wrote:

>
>
> On Thu, 19 May 2016 13:27 Moti Avrahami, <moti.dp@gmail.com> wrote:
>
>> Seems so, it was solved, thanks.
>>
>> Anyway, now it still keep telling me about the OpenSSL binding error:
>>
>> CMake Error at C:/Program Files (x86)/CMake
>> 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108
>> (message):
>> Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
>> system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES) (found
>> version "0.9.8k")
>>
>> Call Stack (most recent call first):
>> C:/Program Files (x86)/CMake
>> 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315
>> (_FPHSA_FAILURE_MESSAGE)
>> C:/Program Files (x86)/CMake
>> 2.8/share/cmake-2.8/Modules/FindOpenSSL.cmake:303
>> (find_package_handle_standard_args)
>> src/CMakeLists.txt:63 (find_package)
>>
>> ===============================
>>
>> As you can see, no matter what I did (described below), it tell me all
>> the time that OPENSSL_LIBRARIES is missing:
>>
>> I defined the following:
>> OPENSSL_ROOT_DIR - to the root of folder OpenSSL
>> OPENSSL_INCLUDE_DIR - to the include dir with all the .h files
>> OPENSSL_LIBRARIES - to the libs folder
>> CRYPTO_BACKEND=OpenSSL
>>
>
> Is this with the slproweb OpenSSL? I also notice you're using CMake 2.8,
> which is pretty ancient. I would suggest using the latest version because
> FindOpenSSL.cmake is regularly updated and improved.
>
> Alex
>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>
>

--001a1141dcf85eb8c60533695a1d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>1. This is not=C2=A0<span style=3D"=
font-size:12.8px">slproweb OpenSSL.</span></div><div><span style=3D"font-si=
ze:12.8px">2. I upgraded CMake to the latest version - 3.5.2</span></div><d=
iv><span style=3D"font-size:12.8px">3. It still doesn&#39;t work:</span></d=
iv><div><br><div><p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><s=
pan style=3D"font-size:12pt;font-family:&#39;Times New Roman&#39;,serif">Th=
e C compiler identification is
MSVC 13.10.3077</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:&#39;Times New Roman&#39;,serif">Check for working C=
 compiler using:
Visual Studio 7 .NET 2003</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:&#39;Times New Roman&#39;,serif">Check for working C=
 compiler using:
Visual Studio 7 .NET 2003 -- works</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:&#39;Times New Roman&#39;,serif">Detecting C compile=
r ABI info</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:&#39;Times New Roman&#39;,serif">Detecting C compile=
r ABI info - done</span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:12pt"><span style=3D"font-siz=
e:12pt;font-family:&#39;Times New Roman&#39;,serif;color:red">CMake Error a=
t
C:/Work/Curl/cmake/cmake-3.5.2-win32-x86/share/cmake-3.5/Modules/FindPackag=
eHandleStandardArgs.cmake:148
(message):<br>
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the<b=
r>
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES)<br>
Call Stack (most recent call first):<br>
C:/Work/Curl/cmake/cmake-3.5.2-win32-x86/share/cmake-3.5/Modules/FindPackag=
eHandleStandardArgs.cmake:388
(_FPHSA_FAILURE_MESSAGE)<br>
C:/Work/Curl/cmake/cmake-3.5.2-win32-x86/share/cmake-3.5/Modules/FindOpenSS=
L.cmake:370
(find_package_handle_standard_args)<br>
src/CMakeLists.txt:63 (find_package)</span><span style=3D"font-size:12pt;fo=
nt-family:&#39;Times New Roman&#39;,serif"></span></p>

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font=
-size:12pt;font-family:&#39;Times New Roman&#39;,serif">Configuring incompl=
ete, errors
occurred!</span></p><p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"=
><span style=3D"font-family:&#39;Times New Roman&#39;,serif;font-size:12pt;=
text-align:center">See also
&quot;C:/Work/Curl/cmake/cmake-3.5.2-win32-x86/bin/CMakeFiles/CMakeOutput.l=
og&quot;.</span></p><p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"=
><span style=3D"font-family:&#39;Times New Roman&#39;,serif;font-size:12pt;=
text-align:center"><br></span></p><p class=3D"MsoNormal" style=3D"margin-bo=
ttom:0.0001pt"><span style=3D"font-family:&#39;Times New Roman&#39;,serif;f=
ont-size:12pt;text-align:center"><br></span></p><p class=3D"MsoNormal" styl=
e=3D"margin-bottom:0.0001pt"><span style=3D"font-family:&#39;Times New Roma=
n&#39;,serif;font-size:12pt;text-align:center">Other ideas?</span></p><p cl=
ass=3D"MsoNormal" style=3D"margin-bottom:0.0001pt"><span style=3D"font-size=
:16px;font-family:&#39;Times New Roman&#39;,serif;text-align:center">Many t=
hanks again.</span></p><p class=3D"MsoNormal" align=3D"center" style=3D"mar=
gin-bottom:0.0001pt;text-align:center"><span style=3D"font-size:12pt;font-f=
amily:&#39;Times New Roman&#39;,serif"><br></span></p></div></div><div clas=
s=3D"gmail_extra"><br><div class=3D"gmail_quote">On Thu, May 19, 2016 at 4:=
49 PM, Alexander Lamaison <span dir=3D"ltr">&lt;<a href=3D"mailto:swish@lam=
my.co.uk" target=3D"_blank">swish@lammy.co.uk</a>&gt;</span> wrote:<br><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c=
cc solid;padding-left:1ex"><span class=3D""><br><br><div class=3D"gmail_quo=
te"><div dir=3D"ltr">On Thu, 19 May 2016 13:27 Moti Avrahami, &lt;<a href=
=3D"mailto:moti.dp@gmail.com" target=3D"_blank">moti.dp@gmail.com</a>&gt; w=
rote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex=
;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Seems so, it=
 was solved, thanks.<div><br></div><div>Anyway, now it still keep telling m=
e about the OpenSSL binding error:</div><div><br></div><div><span style=3D"=
color:rgb(255,0,0)"></span></div></div><div dir=3D"ltr"><div><span style=3D=
"color:rgb(255,0,0)">CMake Error at C:/Program Files (x86)/CMake 2.8/share/=
cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):<br>  C=
ould NOT find OpenSSL, try to set the path to OpenSSL root folder in the<br=
>  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES) (found<br>=
</span></div></div><div dir=3D"ltr"><div><span style=3D"color:rgb(255,0,0)"=
>  version &quot;0.9.8k&quot;)</span></div></div><div dir=3D"ltr"><div><spa=
n style=3D"color:rgb(255,0,0)"><br>Call Stack (most recent call first):<br>=
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandl=
eStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)<br>  C:/Program Files (x86=
)/CMake 2.8/share/cmake-2.8/Modules/FindOpenSSL.cmake:303 (find_package_han=
dle_standard_args)<br></span></div></div><div dir=3D"ltr"><div><span style=
=3D"color:rgb(255,0,0)">  src/CMakeLists.txt:63 (find_package)</span><br></=
div><div><span style=3D"color:rgb(255,0,0)"><br></span></div><div><span sty=
le=3D"color:rgb(255,0,0)">=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</span><span style=3D"color:rgb(2=
55,0,0)">=3D</span><br></div><div><span style=3D"color:rgb(255,0,0)"><br></=
span></div><div><font color=3D"#000000">As you can see, no matter what I di=
d (described below), it tell me all the time that=C2=A0OPENSSL_LIBRARIES is=
 missing:</font></div><div><font color=3D"#000000"><br></font></div><div><f=
ont color=3D"#000000">I defined the following:<br></font></div><div><font c=
olor=3D"#000000">OPENSSL_ROOT_DIR - to the root of=C2=A0</font><span style=
=3D"color:rgb(0,0,0)">folder=C2=A0</span><span style=3D"color:rgb(0,0,0)">O=
penSSL=C2=A0</span></div><div><div><font color=3D"#000000">OPENSSL_INCLUDE_=
DIR - to the include dir with all the .h files</font></div><div><font color=
=3D"#000000">OPENSSL_LIBRARIES - to the libs folder</font></div><div><span =
style=3D"color:rgb(0,0,0)">CRYPTO_BACKEND=3DOpenSSL</span></div></div></div=
></blockquote></div><div><br></div></span><div>Is this with the slproweb Op=
enSSL? I also notice you&#39;re using CMake 2.8, which is pretty ancient. I=
 would suggest using the latest version because FindOpenSSL.cmake is regula=
rly updated and improved.=C2=A0</div><div><br></div><div>Alex</div>
<br>_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" rel=3D"noreferrer" target=3D"_blank">http://cool.haxx.se/cgi-bin/=
mailman/listinfo/libssh2-devel</a><br>
<br></blockquote></div><br></div></div>

--001a1141dcf85eb8c60533695a1d--

--===============0699097451==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--===============0699097451==--

From libssh2-devel-bounces@cool.haxx.se  Mon May 23 17:09:20 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4NF8rGg032102;
	Mon, 23 May 2016 17:09:13 +0200
Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4NF8qF5032081
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 23 May 2016 17:08:52 +0200
Received: by mail-wm0-f65.google.com with SMTP id q62so15992872wmg.3
 for <libssh2-devel@cool.haxx.se>; Mon, 23 May 2016 08:08:53 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=r3wQ8NipThCkYOn2sJz7R8268z04/ZPIVBiv7GqxUEs=;
 b=eDnKERPuiXzMwN57TJ4kviqbTri3M/PiDSo+hXvInh3MYZaVrXLaDB3Xb/V70pW0r5
 2O5lHP7ZL+m3qEqsmTWdBfGOul3tZ0OUkSVQ09XlBK+C5xgN61XXRl6DO6le6DO/131A
 iy9vQt2EVtpCpoQNOJ2HK1FxPHzm4VWrjA0arHlYlybdgL/B/e9iUb+l++S2MiGa2ojG
 Dy0HXvUlFsXt5RWXLvo0t7DRZtaaS3YOzTdZYjsLbKTTN/yMzlEfhrcnYPhgOeHRhOBl
 HYZKOIYigikOwn1AAcKNAgrgCRRMDv5RAUFj5CcoZ4Ep6yX3Pu7XXuwSm57djfUy6C2F
 lBqQ==
X-Gm-Message-State: AOPr4FUUcxbokdLCwLRti6DjcXKo8WK7Ef168nVr9qivqVWwK+E5y67VX6ym++M0zzcRfoeBXIazAXgRP5R5XA==
X-Received: by 10.28.226.213 with SMTP id z204mr17038495wmg.99.1464016127810; 
 Mon, 23 May 2016 08:08:47 -0700 (PDT)
MIME-Version: 1.0
References: <CAHo5M2F-xa1Y+awd0fSuN-GR=ykTDw4+WQ1-xGDgpFEeK8dUpA@mail.gmail.com>
 <CADyPeTMh_r5C4e3yRLnZ6agRUkFc_FXTv4ueLUJWqHR=AyR+-g@mail.gmail.com>
 <CAHo5M2GfNaMebazJ_JQfxaU=oR+Xpo6jH=AsXAK-gJ+eQhxrTw@mail.gmail.com>
 <CADyPeTPj5Cn19yDKe43f8=GP0WYuV=x1akrv=rft77u0Vzp1kw@mail.gmail.com>
 <CAHo5M2EctK-CFvdsAHmrjZxL6cdLGN6yiw6gFs+Yg5UvPPwmAQ@mail.gmail.com>
 <CADyPeTPRPsyKqAdFAY-TUbiNB+MVq=m1cTEZXDjaisE3oZkr=w@mail.gmail.com>
 <CAHo5M2Finag=kr3nAPsvHSc_FWdXd_sxRA-Kw4Rdmiq=PZwX9g@mail.gmail.com>
 <CADyPeTNBfP_7-BTodbSTjO0T2YOdKntaCxKLPAGxGgxHmMOAfA@mail.gmail.com>
 <CAHo5M2F3q+JKv1uSB2n1ra8tyDLGv-EuKWnT6eNc+3ndyEXPig@mail.gmail.com>
In-Reply-To: <CAHo5M2F3q+JKv1uSB2n1ra8tyDLGv-EuKWnT6eNc+3ndyEXPig@mail.gmail.com>
From: Alexander Lamaison <swish@lammy.co.uk>
Date: Mon, 23 May 2016 15:08:35 +0000
Message-ID: <CADyPeTOXUrYvE5c2Si2Lk1Q-Nedx7qi0Qp5GCPNTdKOWALnKYw@mail.gmail.com>
Subject: Re: Problem in compiling libssh2
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============0078506160=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============0078506160==
Content-Type: multipart/alternative; boundary=001a114b12e63e612f053383d192

--001a114b12e63e612f053383d192
Content-Type: text/plain; charset=UTF-8

On Sun, 22 May 2016 13:51 Moti Avrahami, <moti.dp@gmail.com> wrote:

> Hi,
>
> 1. This is not slproweb OpenSSL.
>

Right, so where is it from?  How did you install it? Where did you install
it? Is it static or a DLL? 32-bit or 64-bit? Did you compile it yourself?
Which compiler?

--001a114b12e63e612f053383d192
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Sun, 22 May 2016 13:=
51 Moti Avrahami, &lt;<a href=3D"mailto:moti.dp@gmail.com">moti.dp@gmail.co=
m</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin=
:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">H=
i,<div><br></div><div>1. This is not=C2=A0<span style=3D"font-size:12.8px">=
slproweb OpenSSL.</span></div></div></blockquote></div><div><br></div><div>=
Right, so where is it from?=C2=A0 How did you install it? Where did you ins=
tall it? Is it static or a DLL? 32-bit or 64-bit? Did you compile it yourse=
lf? Which compiler?</div>

--001a114b12e63e612f053383d192--

--===============0078506160==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--===============0078506160==--

From libssh2-devel-bounces@cool.haxx.se  Tue May 24 09:30:54 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4O7UYmW031597;
	Tue, 24 May 2016 09:30:50 +0200
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4O7UV6B031580
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 24 May 2016 09:30:31 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.15.2/8.15.2/Submit) with ESMTP id u4O7UV47031577
 for <libssh2-devel@cool.haxx.se>; Tue, 24 May 2016 09:30:31 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Tue, 24 May 2016 09:30:31 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Specification for agent protocol (fwd)
Message-ID: <alpine.DEB.2.20.1605240929590.5073@tvnag.unkk.fr>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id u4O7UYmW031597

FYI

Seems like this could be interesting to some libssh2 peeps as well...

-- 

  / daniel.haxx.se

---------- Forwarded message ----------
Date: Tue, 24 May 2016 09:29:06
From: Damien Miller <djm@mindrot.org>
To: ietf-ssh@netbsd.org
Subject: Specification for agent protocol

Hi,

A few people have asked over the years for a proper specification of the
agent protocol that most SSH implementations support. I've maintained
the PROTOCOL.agent file[1] in the OpenSSH source distribution as a
half-assed standard for some time, but I think that the protocol is
widely used enough to warrant an actual RFC.

So I've converted the half-assed documentation into something
a little bit more formal and published it as an I-D at
https://tools.ietf.org/html/draft-miller-ssh-agent-00

This is pretty much exactly the protocol as OpenSSH implements it. The
main changes from PROTOCOL.agent (for those who are familiar with it)
are removal of SSH v.1 bits and adding a couple of backwards-compatible
extension mechanisms to support user@domain.org-style extensibility.

I'd welcome any feedback and/or assistance in getting it completed and
published. Thanks to Simon Tatham for reviewing an earlier version.

-d

[1] https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.agent
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Wed May 25 16:10:58 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4PEAOpf013422;
	Wed, 25 May 2016 16:10:49 +0200
Received: from mail-oi0-x229.google.com (mail-oi0-x229.google.com
 [IPv6:2607:f8b0:4003:c06:0:0:0:229])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4PEALxe013308
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 25 May 2016 16:10:22 +0200
Received: by mail-oi0-x229.google.com with SMTP id b65so80076222oia.1
 for <libssh2-devel@cool.haxx.se>; Wed, 25 May 2016 07:10:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
 bh=qSDyhC/Oc9QawT0uEgV7vYNpfJ7gY/qD7TclF5JmQJU=;
 b=iPpyKtXY3AigExy1mGbnvkXdGkIjBKNUvHQb9a/9xwky69GsWRXTMqLVAmI4XxMVtC
 2D+iYUOUW13IlC0GDvCBLBXtQL9DxpzkWbFcBxNsfaiMcW7Y6yoTkcv1SS1JvHZSFO0I
 35qy2esQKR9GcqhZfekZVVaBuiezSGfhuhu3enJKTodtcV9EbLKarbxGj3TmMiT2Hyya
 uB1/CmMqfAMScYALIt9wTJaGlrT5fi/ohRKROLLUulQDfa5TXxyacxCnec+c8voETKlW
 lbnVitSFPOZG4sPtCASkCFH/osCfRXpHhq96V3mcAOKax2up7dn7+sncbpsv1lN24hne
 jqgw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to;
 bh=qSDyhC/Oc9QawT0uEgV7vYNpfJ7gY/qD7TclF5JmQJU=;
 b=AJR3Bp6B19PVJd9mjCmdIEf7Bg4SBMCw5sL8359oPziHOIO/1aTmPSHLEaMN4hiq/X
 TRv8NgyavPRrJiUuzg+rUahMQrUEZ2hwPl3eJWQgnEP5/nO4lpwiq3eeXP5DNL63ZXXO
 piCkDDzANGjsdsaY3QXxrpIBJrBRiQdS4lBVHOkgKels27OmXD8+riIRsvBPpGloLQaS
 Wsiz2c6T/EQPOgzL8doWjbBuvO7F5+3TjKfCR8W6Wm39ZdEY4PqZVrCeOQAP5DHYEqI3
 Pv1+/nrimoXEayeI3PrwVrK8jGmNN0tYo6+NUvdlSr/ESuxZn073DMLx3TDcnJ2TXzdq
 TipA==
X-Gm-Message-State: ALyK8tKmJynrDbZ2wNincU5j3nKEdg5NS+WRtWXduT98b59fFXxRBd//85wBM3/gsa3dDQPRIOPt+hokCfwMtA==
X-Received: by 10.202.205.140 with SMTP id d134mr2480912oig.119.1464185416094; 
 Wed, 25 May 2016 07:10:16 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.182.134.201 with HTTP; Wed, 25 May 2016 07:09:56 -0700 (PDT)
In-Reply-To: <CADyPeTOXUrYvE5c2Si2Lk1Q-Nedx7qi0Qp5GCPNTdKOWALnKYw@mail.gmail.com>
References: <CAHo5M2F-xa1Y+awd0fSuN-GR=ykTDw4+WQ1-xGDgpFEeK8dUpA@mail.gmail.com>
 <CADyPeTMh_r5C4e3yRLnZ6agRUkFc_FXTv4ueLUJWqHR=AyR+-g@mail.gmail.com>
 <CAHo5M2GfNaMebazJ_JQfxaU=oR+Xpo6jH=AsXAK-gJ+eQhxrTw@mail.gmail.com>
 <CADyPeTPj5Cn19yDKe43f8=GP0WYuV=x1akrv=rft77u0Vzp1kw@mail.gmail.com>
 <CAHo5M2EctK-CFvdsAHmrjZxL6cdLGN6yiw6gFs+Yg5UvPPwmAQ@mail.gmail.com>
 <CADyPeTPRPsyKqAdFAY-TUbiNB+MVq=m1cTEZXDjaisE3oZkr=w@mail.gmail.com>
 <CAHo5M2Finag=kr3nAPsvHSc_FWdXd_sxRA-Kw4Rdmiq=PZwX9g@mail.gmail.com>
 <CADyPeTNBfP_7-BTodbSTjO0T2YOdKntaCxKLPAGxGgxHmMOAfA@mail.gmail.com>
 <CAHo5M2F3q+JKv1uSB2n1ra8tyDLGv-EuKWnT6eNc+3ndyEXPig@mail.gmail.com>
 <CADyPeTOXUrYvE5c2Si2Lk1Q-Nedx7qi0Qp5GCPNTdKOWALnKYw@mail.gmail.com>
From: Moti Avrahami <moti.dp@gmail.com>
Date: Wed, 25 May 2016 17:09:56 +0300
Message-ID: <CAHo5M2HEVfmRdjSfEQQ6DTbwWO7+286sxeDJus0X7RRibSwy7w@mail.gmail.com>
Subject: Re: Problem in compiling libssh2
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============0690333510=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============0690333510==
Content-Type: multipart/alternative; boundary=001a11c14dfc9c98b90533ab3b3d

--001a11c14dfc9c98b90533ab3b3d
Content-Type: text/plain; charset=UTF-8

Hi,
We can close this case as I managed to solved it and build it via Visual
Studio eventually.
My problem was that I missed a preprocessor definition in order to link
libssh2 with OpenSSL.
It something that wasn't exist in an older version that I used and the
error I got above didn't help me either, but I glad it was solved.

Thanks anyway for your help!
Moti

On Mon, May 23, 2016 at 6:08 PM, Alexander Lamaison <swish@lammy.co.uk>
wrote:

>
>
> On Sun, 22 May 2016 13:51 Moti Avrahami, <moti.dp@gmail.com> wrote:
>
>> Hi,
>>
>> 1. This is not slproweb OpenSSL.
>>
>
> Right, so where is it from?  How did you install it? Where did you install
> it? Is it static or a DLL? 32-bit or 64-bit? Did you compile it yourself?
> Which compiler?
>
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>
>

--001a11c14dfc9c98b90533ab3b3d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div>We can close this case as I managed to solved it a=
nd build it via Visual Studio eventually.</div><div>My problem was that I m=
issed a preprocessor definition in order to link libssh2 with OpenSSL.</div=
><div>It something that wasn&#39;t exist in an older version that I used an=
d the error I got above didn&#39;t help me either, but I glad it was solved=
.<br></div><div><br></div><div>Thanks anyway for your help!</div><div>Moti<=
/div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Mon=
, May 23, 2016 at 6:08 PM, Alexander Lamaison <span dir=3D"ltr">&lt;<a href=
=3D"mailto:swish@lammy.co.uk" target=3D"_blank">swish@lammy.co.uk</a>&gt;</=
span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8e=
x;border-left:1px #ccc solid;padding-left:1ex"><span class=3D""><br><br><di=
v class=3D"gmail_quote"><div dir=3D"ltr">On Sun, 22 May 2016 13:51 Moti Avr=
ahami, &lt;<a href=3D"mailto:moti.dp@gmail.com" target=3D"_blank">moti.dp@g=
mail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D=
"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D=
"ltr">Hi,<div><br></div><div>1. This is not=C2=A0<span style=3D"font-size:1=
2.8px">slproweb OpenSSL.</span></div></div></blockquote></div><div><br></di=
v></span><div>Right, so where is it from?=C2=A0 How did you install it? Whe=
re did you install it? Is it static or a DLL? 32-bit or 64-bit? Did you com=
pile it yourself? Which compiler?</div>
<br>_______________________________________________<br>
libssh2-devel <a href=3D"http://cool.haxx.se/cgi-bin/mailman/listinfo/libss=
h2-devel" rel=3D"noreferrer" target=3D"_blank">http://cool.haxx.se/cgi-bin/=
mailman/listinfo/libssh2-devel</a><br>
<br></blockquote></div><br></div>

--001a11c14dfc9c98b90533ab3b3d--

--===============0690333510==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--===============0690333510==--

From libssh2-devel-bounces@cool.haxx.se  Thu May 26 14:31:05 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4QCUetp006234;
	Thu, 26 May 2016 14:31:00 +0200
Received: from mail-oi0-x22f.google.com (mail-oi0-x22f.google.com
 [IPv6:2607:f8b0:4003:c06:0:0:0:22f])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4QCUbbj005912
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 26 May 2016 14:30:38 +0200
Received: by mail-oi0-x22f.google.com with SMTP id w184so114648118oiw.2
 for <libssh2-devel@cool.haxx.se>; Thu, 26 May 2016 05:30:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:from:date:message-id:subject:to;
 bh=AKjjRrzDL9GlXCeVldwJtUUHJ9t9icJeozPZJv6iUEU=;
 b=0fZw+x4GlbJ0ZVPI6Ui6Z9zz1TJB4w5EPrdmo5S7zZr+U0xSwovIATe3FU/oc5xh2R
 kQuT5Oiwi8D//W28Jg3h6ah00tV++0pWxKgEusPOG1thZH1fBFxRnvdm6Zva7YlDvyLA
 lLxvnVYe65RKoL5eZqUP36KZWYsTG7wrYe8IUsKCKXe49+TjGdHG/Yky6GabD0wA7T3m
 bf8NwiWgC0orN2if8OauPXN/An4xNcZ37b6Mtr54YXtqNsISqE5hU6SRal2H1yOJSQfq
 HVGcTTjcsS265Ag/Nv0mTvs9jr6tEZDcIaUn5BI9j9KTBDQ3VIcTz0O4gKu5d5gdf5gj
 gDIQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=AKjjRrzDL9GlXCeVldwJtUUHJ9t9icJeozPZJv6iUEU=;
 b=WEjxLq0uqsbZqqgbveNFdND0wIZOFqvuOUklls6/ZXDXt8s3fHfGFa58wfOwklGlXI
 +D7Lw41Q85IOdAiXB8N4hybK3ouck3Nt8hsCCAuLGPlYVIvh04Fj/z/skLDjiZ0d4GPc
 99WyOFzisOLT8Yeg+Oni1G3mlxiURzTreBUfMQiXrKSNw/IyTo78T07IXJNB/yHNc1V4
 +z0wgsbgeFrEnzoRVqsBKcQ/asToa5oKsBPPnF2izNTuZrKfdffqfKNOZGah/vj7uCPR
 cUSepSlufk58YlMyO+JTVSbFZI7Z9vLNoVIiYug/MMxl2K7GYDStgOFeoQ523RLovKsN
 lDQw==
X-Gm-Message-State: ALyK8tJI6jqWBLI/qOeG+SgLaQEKvRehENHY9nsUufMxiaUw45hQpIHsVEIl2FkJzh510be4nkgg3JFWu987bg==
X-Received: by 10.202.46.19 with SMTP id u19mr5901319oiu.134.1464265832461;
 Thu, 26 May 2016 05:30:32 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.182.134.201 with HTTP; Thu, 26 May 2016 05:30:13 -0700 (PDT)
From: Moti Avrahami <moti.dp@gmail.com>
Date: Thu, 26 May 2016 15:30:13 +0300
Message-ID: <CAHo5M2FPDqSra4zO_b6CU+ZaTianjE65mXvQBiw2wrDUA26yPQ@mail.gmail.com>
Subject: Fail to connect SFTP server in v1.7.0
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============0768939907=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============0768939907==
Content-Type: multipart/alternative; boundary=001a11379f92ccf9480533bdf425

--001a11379f92ccf9480533bdf425
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello,



I recently upgraded libssh2 from v1.4.1 to v1.7.0 and now I failed to
connect SFTP servers.



I use it via libcurl v7.47/7.49 and got:

=E2=80=9CFailed initialization: Failure establishing ssh session)=E2=80=9D



When turning on the debug mode in libssh2 I  got the below output.

Does someone know how to solve it?



Thanks,

Moti





=3D> libssh2_transport_read() plain (692 bytes)

 [libssh2] 0.711551 Transport: Packet type 20 received, length=3D692

[libssh2] 0.711551 Transport: Looking for packet of type: 20

[libssh2] 0.711551 Key Ex: Agreed on KEX method:
diffie-hellman-group-exchange-sha1

[libssh2] 0.711551 Key Ex: Agreed on HOSTKEY method: ssh-rsa

[libssh2] 0.711551 Key Ex: Agreed on CRYPT_CS method: aes128-ctr

[libssh2] 0.711551 Key Ex: Agreed on CRYPT_SC method: aes128-ctr

[libssh2] 0.711551 Key Ex: Agreed on MAC_CS method: hmac-sha1

[libssh2] 0.711551 Key Ex: Agreed on MAC_SC method: hmac-sha1

[libssh2] 0.711551 Key Ex: Agreed on COMP_CS method: none

[libssh2] 0.711551 Key Ex: Agreed on COMP_SC method: none

[libssh2] 0.711551 Key Ex: Initiating Diffie-Hellman Group-Exchange (New
Method)



=3D> libssh2_transport_write plain (13 bytes)

0000: 22 00 00 04 00 00 00 06  00 00 00 08 00          : "............

[libssh2] 0.711551 Socket: Sent 40/40 bytes at 07A4BFAC

=3D> libssh2_transport_write send() (40 bytes)

0000: 00 00 00 24 16 22 00 00  04 00 00 00 06 00 00 00 : ...$."..........

0010: 08 00 8A B7 F1 C5 5C 79  A7 41 2C 15 10 41 14 7E : ......\y.A,..A.~

0020: 4E BC 6D 0D 19 D3 EA 5D                          : N.m....]

[libssh2] 0.711551 Transport: Looking for packet of type: 31

[libssh2] 0.727151 Socket: Recved 216/16384 bytes to 07A47F84+0

=3D> libssh2_transport_read() raw (216 bytes)

=3D> libssh2_transport_read() plain (203 bytes)

 [libssh2] 0.727151 Transport: Packet type 31 received, length=3D203

[libssh2] 0.727151 Transport: Looking for packet of type: 31

[libssh2] 0.727151 Key Ex: Sending KEX packet 32

=3D> libssh2_transport_write plain (198 bytes)

 [libssh2] 0.742751 Socket: Sent 208/208 bytes at 07A4BFAC

=3D> libssh2_transport_write send() (208 bytes)

 [libssh2] 0.742751 Transport: Looking for packet of type: 33

[libssh2] 0.742751 Socket: Recved 784/16384 bytes to 07A47F84+0

=3D> libssh2_transport_read() raw (784 bytes)

=3D> libssh2_transport_read() plain (753 bytes)

02f0: F3                                               : .

[libssh2] 0.742751 Transport: Packet type 33 received, length=3D753

[libssh2] 0.742751 Transport: Looking for packet of type: 33

[libssh2] 0.742751 Key Ex: Server's MD5 Fingerprint:
00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

[libssh2] 0.758351 Key Ex: Server's SHA1 Fingerprint:
0b:b3:54:44:b7:ba:f0:dc:14

:f5:f6:25:91:72:80:1a:e9:cd:24:5c

[libssh2] 0.758351 Key Ex: Sending NEWKEYS message

=3D> libssh2_transport_write plain (1 bytes)

0000: 15                                               : .

[libssh2] 0.758351 Socket: Sent 184/184 bytes at 07A4BFAC

=3D> libssh2_transport_write send() (184 bytes)

 [libssh2] 0.758351 Transport: Looking for packet of type: 21

=3D> libssh2_transport_read() plain (1 bytes)

0000: 15                                               : .

[libssh2] 0.758351 Transport: Packet type 21 received, length=3D1

[libssh2] 0.758351 Transport: Looking for packet of type: 21

[libssh2] 0.758351 Key Ex: Received NEWKEYS message

[libssh2] 0.758351 Key Ex: session_id calculated

[libssh2] 0.758351 Failure Event: -8 - Unrecoverable error exchanging keys

[libssh2] 0.758351 Failure Event: -8 - Unable to exchange encryption keys

[libssh2] 0.758351 Transport: Freeing session resource

[libssh2] 0.758351 Transport: Extra packets left 0

--001a11379f92ccf9480533bdf425
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><p class=3D"MsoNormal">Hello,</p>

<p class=3D"MsoNormal">=C2=A0</p>

<p class=3D"MsoNormal">I recently upgraded libssh2 from v1.4.1 to v1.7.0 an=
d now I
failed to connect SFTP servers.</p>

<p class=3D"MsoNormal">=C2=A0</p>

<p class=3D"MsoNormal">I use it via libcurl v7.47/7.49 and got:</p>

<p class=3D"MsoNormal">=E2=80=9CFailed initialization: Failure establishing=
 ssh session)=E2=80=9D</p>

<p class=3D"MsoNormal">=C2=A0</p>

<p class=3D"MsoNormal">When turning on the debug mode in libssh2 I=C2=A0 go=
t the below output.</p>

<p class=3D"MsoNormal">Does someone know how to solve it?</p>

<p class=3D"MsoNormal">=C2=A0</p>

<p class=3D"MsoNormal">Thanks,</p>

<p class=3D"MsoNormal">Moti</p>

<p class=3D"MsoNormal">=C2=A0</p>

<p class=3D"MsoNormal">=C2=A0</p>

<p class=3D"MsoNormal">=3D&gt; libssh2_transport_read() plain (692 bytes)</=
p>

<p class=3D"MsoNormal">=C2=A0[libssh2] 0.711551
Transport: Packet type 20 received, length=3D692</p>

<p class=3D"MsoNormal">[libssh2] 0.711551 Transport: Looking for packet of =
type: 20</p>

<p class=3D"MsoNormal">[libssh2] 0.711551 Key Ex: Agreed on KEX method:
diffie-hellman-group-exchange-sha1</p>

<p class=3D"MsoNormal">[libssh2] 0.711551 Key Ex: Agreed on HOSTKEY method:=
 ssh-rsa</p>

<p class=3D"MsoNormal">[libssh2] 0.711551 Key Ex: Agreed on CRYPT_CS method=
:
aes128-ctr</p>

<p class=3D"MsoNormal">[libssh2] 0.711551 Key Ex: Agreed on CRYPT_SC method=
:
aes128-ctr</p>

<p class=3D"MsoNormal">[libssh2] 0.711551 Key Ex: Agreed on MAC_CS method:
hmac-sha1</p>

<p class=3D"MsoNormal">[libssh2] 0.711551 Key Ex: Agreed on MAC_SC method:
hmac-sha1</p>

<p class=3D"MsoNormal">[libssh2] 0.711551 Key Ex: Agreed on COMP_CS method:=
 none</p>

<p class=3D"MsoNormal">[libssh2] 0.711551 Key Ex: Agreed on COMP_SC method:=
 none</p>

<p class=3D"MsoNormal">[libssh2] 0.711551 Key Ex: Initiating Diffie-Hellman
Group-Exchange (New Method)</p>

<p class=3D"MsoNormal">=C2=A0</p>

<p class=3D"MsoNormal">=3D&gt; libssh2_transport_write plain (13 bytes)</p>

<p class=3D"MsoNormal">0000: 22 00 00 04 00 00 00 06=C2=A0 00 00 00 08 00=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : &quot;............=
</p>

<p class=3D"MsoNormal">[libssh2] 0.711551 Socket: Sent 40/40 bytes at 07A4B=
FAC</p>

<p class=3D"MsoNormal">=3D&gt; libssh2_transport_write send() (40 bytes)</p=
>

<p class=3D"MsoNormal">0000: 00 00 00 24 16 22 00 00=C2=A0 04 00 00 00 06 0=
0 00 00 :
...$.&quot;..........</p>

<p class=3D"MsoNormal">0010: 08 00 8A B7 F1 C5 5C 79=C2=A0 A7 41 2C 15 10 4=
1 14 7E : ......\y.A,..A.~</p>

<p class=3D"MsoNormal">0020: 4E BC 6D 0D 19 D3 EA 5D=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : N.m....]</p>

<p class=3D"MsoNormal">[libssh2] 0.711551 Transport: Looking for packet of =
type: 31</p>

<p class=3D"MsoNormal">[libssh2] 0.727151 Socket: Recved 216/16384 bytes to
07A47F84+0</p>

<p class=3D"MsoNormal">=3D&gt; libssh2_transport_read() raw (216 bytes)</p>

<p class=3D"MsoNormal">=3D&gt; libssh2_transport_read() plain (203 bytes)</=
p>

<p class=3D"MsoNormal">=C2=A0[libssh2] 0.727151
Transport: Packet type 31 received, length=3D203</p>

<p class=3D"MsoNormal">[libssh2] 0.727151 Transport: Looking for packet of =
type: 31</p>

<p class=3D"MsoNormal">[libssh2] 0.727151 Key Ex: Sending KEX packet 32</p>

<p class=3D"MsoNormal">=3D&gt; libssh2_transport_write plain (198 bytes)</p=
>

<p class=3D"MsoNormal">=C2=A0[libssh2] 0.742751
Socket: Sent 208/208 bytes at 07A4BFAC</p>

<p class=3D"MsoNormal">=3D&gt; libssh2_transport_write send() (208 bytes)</=
p>

<p class=3D"MsoNormal">=C2=A0[libssh2] 0.742751
Transport: Looking for packet of type: 33</p>

<p class=3D"MsoNormal">[libssh2] 0.742751 Socket: Recved 784/16384 bytes to
07A47F84+0</p>

<p class=3D"MsoNormal">=3D&gt; libssh2_transport_read() raw (784 bytes)</p>

<p class=3D"MsoNormal">=3D&gt; libssh2_transport_read() plain (753 bytes)</=
p>

<p class=3D"MsoNormal">02f0: F3=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0
: .</p>

<p class=3D"MsoNormal">[libssh2] 0.742751 Transport: Packet type 33 receive=
d,
length=3D753</p>

<p class=3D"MsoNormal">[libssh2] 0.742751 Transport: Looking for packet of =
type: 33</p>

<p class=3D"MsoNormal">[libssh2] 0.742751 Key Ex: Server&#39;s MD5 Fingerpr=
int:
00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00</p>

<p class=3D"MsoNormal">[libssh2] 0.758351 Key Ex: Server&#39;s SHA1 Fingerp=
rint:
0b:b3:54:44:b7:ba:f0:dc:14</p>

<p class=3D"MsoNormal">:f5:f6:25:91:72:80:1a:e9:cd:24:5c</p>

<p class=3D"MsoNormal">[libssh2] 0.758351 Key Ex: Sending NEWKEYS message</=
p>

<p class=3D"MsoNormal">=3D&gt; libssh2_transport_write plain (1 bytes)</p>

<p class=3D"MsoNormal">0000: 15=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0
: .</p>

<p class=3D"MsoNormal">[libssh2] 0.758351 Socket: Sent 184/184 bytes at 07A=
4BFAC</p>

<p class=3D"MsoNormal">=3D&gt; libssh2_transport_write send() (184 bytes)</=
p>

<p class=3D"MsoNormal">=C2=A0[libssh2] 0.758351
Transport: Looking for packet of type: 21</p>

<p class=3D"MsoNormal">=3D&gt; libssh2_transport_read() plain (1 bytes)</p>

<p class=3D"MsoNormal">0000: 15=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0
: .</p>

<p class=3D"MsoNormal">[libssh2] 0.758351 Transport: Packet type 21 receive=
d,
length=3D1</p>

<p class=3D"MsoNormal">[libssh2] 0.758351 Transport: Looking for packet of =
type: 21</p>

<p class=3D"MsoNormal">[libssh2] 0.758351 Key Ex: Received NEWKEYS message<=
/p>

<p class=3D"MsoNormal">[libssh2] 0.758351 Key Ex: session_id calculated</p>

<p class=3D"MsoNormal">[libssh2] 0.758351 Failure Event: -8 - Unrecoverable=
 error
exchanging keys</p>

<p class=3D"MsoNormal">[libssh2] 0.758351 Failure Event: -8 - Unable to exc=
hange
encryption keys</p>

<p class=3D"MsoNormal">[libssh2] 0.758351 Transport: Freeing session resour=
ce</p>

<p class=3D"MsoNormal">[libssh2] 0.758351 Transport: Extra packets left 0</=
p>

<p class=3D"MsoNormal">=C2=A0</p>



<p class=3D"MsoNormal">=C2=A0</p></div>

--001a11379f92ccf9480533bdf425--

--===============0768939907==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--===============0768939907==--

From libssh2-devel-bounces@cool.haxx.se  Fri May 27 07:41:42 2016
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id u4R5fDgj018886;
	Fri, 27 May 2016 07:41:35 +0200
Received: from nm38-vm9.bullet.mail.bf1.yahoo.com
 (nm38-vm9.bullet.mail.bf1.yahoo.com [72.30.239.25])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id u4R5fAnl018808
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 27 May 2016 07:41:11 +0200
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1464327665; bh=Hp/1b6Pp1PKL0p8aX8evFkqPjSKqUTn7dZLTl0z5iwc=;
 h=Subject:To:References:From:Date:In-Reply-To:From:Subject;
 b=DTqFIWowzivLAvupMXs6S/M9mTMAjUX/9UUhNacXJZ7VYaLj3VJnMu/5utf9EgjPgn8wkVOEzuWibHmhDWIqHzbSMtuBuPw0v26vqvWveK0xmKnzUPvZB+0Dy1OZ31uorF9LJjv53CPSL2zvvQae4qmcqoKrDkUyU81fTjyut9XIHZW+bQVOy2lomfccCfkc2mRZEJudL4zIIuo882jSjZxQQUGnE43v4NF+TaQ64vlnTsMk0D5cip5Q/OlD4X5v1wJTM+NDW1JFhjZfJwc5TYAgPXw4aMpEbvbaQaflkBrFaPvI+tocId2VVpMeiNNekxIeqdDKtyJm2BDIYXu0Mw==
Received: from [66.196.81.174] by nm38.bullet.mail.bf1.yahoo.com with NNFMP;
 27 May 2016 05:41:05 -0000
Received: from [98.139.211.200] by tm20.bullet.mail.bf1.yahoo.com with NNFMP;
 27 May 2016 05:41:05 -0000
Received: from [127.0.0.1] by smtp209.mail.bf1.yahoo.com with NNFMP;
 27 May 2016 05:41:05 -0000
X-Yahoo-Newman-Id: 402313.43726.bm@smtp209.mail.bf1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: feZp8tEVM1leJIsCnuGv8S6OPEUBMucNBY21cL.lE9Gu5ud
 vLFsHzVVfzsw1W0PAcRiIp79d_KSEZtPJC3LwhzIdxmZCM4SIBRHF3xA0MG8
 z_bJRWMTP.mx8GMVQMfFoMGoCNkTpTojE3wtAFi6MTVD1C4MhhaZRba0siJh
 mHdPPwHgqVPCRUpeTP1soa.r03LaaBJwsy2j7VGypZCrySH8.X_MA0dx7w39
 05XjI1xLbcRsFJLbyPMGJkx5IPjfQP4NzAyQpDD5hL.zvGFb7PEAN1TaclDW
 B1i9V38uPYiFNg8Ef0Us39dSEZWd4fKGBHGSOKsuA45Pr6RG6V2WIVTarsAU
 0KFNyYja5ZLbYmmz7yapj9brsbOnPNf_K4UJ.SAOJx_xREKTPzm2xTBusUFf
 ad_90UaQzItzDYL4KInLdyLZ4t8sxifZKCNDqPZ76NIBatHU1oKvF_PBkgwk
 q6D8j_m4AlNn.1wZSX8ag797mdAbL5atCxPN6Eylv.kUIpOhIHmSQCMkRpk6
 p6EhZKXS03rppzCptWGFn4ioD6fYAlYQ-
X-Yahoo-SMTP: 9Tlp3zGswBAMIZY7LhANokCU9rJ2SQ--
Subject: Re: Fail to connect SFTP server in v1.7.0
To: libssh2-devel@cool.haxx.se
References: <CAHo5M2FPDqSra4zO_b6CU+ZaTianjE65mXvQBiw2wrDUA26yPQ@mail.gmail.com>
From: Ray Satiro <raysatiro@yahoo.com>
Message-ID: <07616b3c-5c1d-043b-2b9f-146079d7cc8a@yahoo.com>
Date: Fri, 27 May 2016 01:40:53 -0400
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101
 Thunderbird/45.1.0
MIME-Version: 1.0
In-Reply-To: <CAHo5M2FPDqSra4zO_b6CU+ZaTianjE65mXvQBiw2wrDUA26yPQ@mail.gmail.com>
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============0698797977=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

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

This is a multi-part message in MIME format.
--------------8DE24BA20FEC1175835A8F03
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

On 5/26/2016 8:30 AM, Moti Avrahami wrote:
>
> I recently upgraded libssh2 from v1.4.1 to v1.7.0 and now I failed to 
> connect SFTP servers.
>
> I use it via libcurl v7.47/7.49 and got:
>
> “Failed initialization: Failure establishing ssh session)”
>

I tried curl 7.49 with libssh2 1.7.0 in Windows and it appears to be 
working for file retrieval. I tried password and then separately I tried 
keyfile and both worked. I don't know a lot about libssh2 so I don't 
have any comments about the diagnostic output that you posted. Try 
another server and see if you have the same problem. In any case I'd 
guess it would be helpful to disclose the server type.

SSH-2.0-5.39 FlowSsh: Bitvise SSH Server (WinSSHD) 6.47: free only for 
personal non-commercial use

curl 7.49.0-DEV (i686-w64-mingw32) libcurl/7.49.0-DEV mbedTLS/2.2.1 
zlib/1.2.8 libidn/1.32 libssh2/1.7.0 nghttp2/1.9.2
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps 
pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS Debug TrackMemory IDN IPv6 Largefile SSPI Kerberos 
SPNEGO NTLM SSL libz HTTP2


--------------8DE24BA20FEC1175835A8F03
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 5/26/2016 8:30 AM, Moti Avrahami wrote:<br>
    <blockquote
cite="mid:CAHo5M2FPDqSra4zO_b6CU+ZaTianjE65mXvQBiw2wrDUA26yPQ@mail.gmail.com"
      type="cite">
      <p class="MsoNormal">I recently upgraded libssh2 from v1.4.1 to
        v1.7.0 and now I
        failed to connect SFTP servers.</p>
      <p class="MsoNormal"> </p>
      <p class="MsoNormal">I use it via libcurl v7.47/7.49 and got:</p>
      <p class="MsoNormal">“Failed initialization: Failure establishing
        ssh session)”</p>
    </blockquote>
    <br>
    I tried curl 7.49 with libssh2 1.7.0 in Windows and it appears to be
    working for file retrieval. I tried password and then separately I
    tried keyfile and both worked. I don't know a lot about libssh2 so I
    don't have any comments about the diagnostic output that you posted.
    Try another server and see if you have the same problem. In any case
    I'd guess it would be helpful to disclose the server type.<br>
    <br>
    SSH-2.0-5.39 FlowSsh: Bitvise SSH Server (WinSSHD) 6.47: free only
    for personal non-commercial use<br>
    <br>
    curl 7.49.0-DEV (i686-w64-mingw32) libcurl/7.49.0-DEV mbedTLS/2.2.1
    zlib/1.2.8 libidn/1.32 libssh2/1.7.0 nghttp2/1.9.2<br>
    Protocols: dict file ftp ftps gopher http https imap imaps ldap
    ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp<br>
    Features: AsynchDNS Debug TrackMemory IDN IPv6 Largefile SSPI
    Kerberos SPNEGO NTLM SSL libz HTTP2<br>
    <br>
  </body>
</html>

--------------8DE24BA20FEC1175835A8F03--

--===============0698797977==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--===============0698797977==--

