From libssh2-devel-bounces@cool.haxx.se  Fri Feb 15 13:12:41 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1FCBu8Y024721;
	Fri, 15 Feb 2019 13:12:28 +0100
Received: from mail-vk1-xa34.google.com (mail-vk1-xa34.google.com
 [IPv6:2607:f8b0:4864:20:0:0:0:a34])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id x1FCBsHq024614
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 15 Feb 2019 13:11:55 +0100
Received: by mail-vk1-xa34.google.com with SMTP id d201so2193211vka.0
 for <libssh2-devel@cool.haxx.se>; Fri, 15 Feb 2019 04:11:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=VVBzaXjuwitjtD1C5wRsuICq6iEKv5TqEIYQAk9Atgw=;
 b=u1tWF5ZNbJBPzOyYffnmB+NDLtAfnjYZ05FbXmGhl5gsSbBr2bzr1gxqG9qC5xWF3c
 CfGatD3XFygKAzAfVOyy18Cp1jVsnF5bcGWn4T9wUEPglY/f3lkreypOFuSwGZ+xcWlv
 9jgQvA0SYWXmpxCopkTANPCZX0Kt3zrJk0Xv/Tw7JRw9MLbyZkI2D4pYslJPxlR8ro2e
 5VtYf0XiGz/KNkSur/wsmGEGE69IhiURbnhrZa5XGKaTOZ90Bsz/fJ5KUxdXJmGdLv1c
 SAbVqAu8rsfB+07mbVoJ6Yr3SHtkQZtGKWhdguiXfpZQQta0Eak2CGiHXGOZUjnHcHq/
 MDSg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=VVBzaXjuwitjtD1C5wRsuICq6iEKv5TqEIYQAk9Atgw=;
 b=bO5D8l2ZAkC6fDLqNge7djrSth7Oszt4XHVZzogvXCmRuft2M7eCPglYvdQCdRJ3Cf
 xrsXjvD9lakZIMttq/zxGRA/qbVCo0A4nBtw0pnaViHzAO6VDKbizaIuoQXnd0hytgb/
 ykPAmsd2Lo1fTFkl1Zip6SmJHpFvurGNaZg4qOYX/Sa/gCnCFtvHl8xCxFOd76WD31Y/
 Yc2sjgUaFCAUJJwyHi8N9F4F/pizZI+fv4DH0tl+fZJEetkVsZH6oHtIuJ4+cYxnUeez
 TsstfiQ1McN5ufkCAEP2bw0VQ8xtlV/SZ7GstAE12C0mupXdtJpoWOsCa642qVCfQAnn
 /Raw==
X-Gm-Message-State: AHQUAubpk8HH3fNQ7LF4Bo0YeoNvP4NIeXBkoWWKx6aual74iB0JwoyX
 wWjcPNjYztOlxvTRKof7OmAiDtfWNpJnDEUxaFOa5Giz
X-Google-Smtp-Source: AHgI3IamdhP/tTxVGpDL0QQuZNu/rpD2F+3hB2mlPm3V4nBqS/dlQHnAN0gRWRIXF2uY4/xfkRLq15GXn9oMO4CcRRk=
X-Received: by 2002:a1f:27d7:: with SMTP id n206mr4768187vkn.0.1550232709300; 
 Fri, 15 Feb 2019 04:11:49 -0800 (PST)
MIME-Version: 1.0
From: Micka <mickamusset@gmail.com>
Date: Fri, 15 Feb 2019 13:11:38 +0100
Message-ID: <CAF+MRtnBvgo1FNWaZ5bas2DtkrwVeBO+zg-VoP1ajdLLfmGBGA@mail.gmail.com>
Subject: build libssh2 with openssl
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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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 x1FCBu8Y024721

I'm trying to compile libssh2 on windows :

Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
  version "1.1.1b")


I Think that the problem is the version of my OPENSSL :

OpenSSL 1.1.1b-dev


can some one explain me how to authorized this version of openssl ?
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 15 15:12:19 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1FEBk3s031194;
	Fri, 15 Feb 2019 15:12:10 +0100
Received: from mail-ua1-x92a.google.com (mail-ua1-x92a.google.com
 [IPv6:2607:f8b0:4864:20:0:0:0:92a])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id x1FEBii2031091
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 15 Feb 2019 15:11:45 +0100
Received: by mail-ua1-x92a.google.com with SMTP id v9so3238027uar.11
 for <libssh2-devel@cool.haxx.se>; Fri, 15 Feb 2019 06:11:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
 bh=TzBc+RIa7kMsP/1ikjRmnnEHPiKaqMYqSbxlJltWd0E=;
 b=DsRlzjzGTCg6//5EcdaNCy2AyjpJ8pAq1kiiH1A+Dwqe8IWm924GmXdzcTGayxFVvz
 isRPRvSrKb/bCeJUxwzWcxLHgk5S7gh5ZlnfswUGpPBnVjal3AlIq5RFrPamZx10RoMB
 sxSuWEi7DlCCcW5oR746ukEajSXzkBsa+YvNKCdFrBDu7tzlnmkQlrNpLmR128cjwDcD
 aEm7CnH75QMRo7keuKIaSjXZPbYDYq28atN+0XPqB0cYkDnugP1aGtSbZrFlEpsQZ12L
 5F3bqGZMyDWw7NmesyDIimdNt0vE5luVldmi116cnioCsg4FuW6R3O9BzzynX/Q/KlMX
 nRhQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=TzBc+RIa7kMsP/1ikjRmnnEHPiKaqMYqSbxlJltWd0E=;
 b=rHMSzQpjG0WBasKnTwjWY93gJKMqbvGYwAefLOLBJAczGDQC2ryZXqkIUwJUgT/eaF
 VLHn9Gse6TZfhvlpXObSnvRUXUVTDpn7JsgKsYpla0VY8MHwM48jXhu8y6SpCZ+gDIW8
 fJzjz8xAdntCUTSgUM35A2iZ7NmJryGmbjq/MtawT2fqIf1vZfkvhNmm2R9KTDMRyX+Q
 vvms+fcfXJRNWBuD7nTdYWh6DgEIhUrg89D1hgmmskfB8slog0RXamVkCuU/Udu5uDX1
 20sJxoV3hlBh2pJCAaRI8pf+Gl5y7P9Y8TlbKvoNV8GV1J1YdwT0CnArwTu9spPCsQaU
 KxFw==
X-Gm-Message-State: AHQUAuYDnorglRmWXEapV1foFDXDvqEPNlwmSMCddJTNVxoGSNKxCGAd
 XD89dc6n8P6m/85myqC0tau+soJtjlTnzRfZ2d/8v9OV
X-Google-Smtp-Source: AHgI3IaOYYhniywv59OEGP0/MlxX0OluhqKUOad9RZ4m06X7+QYn3TO9ZmhgFHBZxXW5+o8o6FZTAcrTrbRYSRTnFz8=
X-Received: by 2002:ab0:7483:: with SMTP id n3mr4804419uap.131.1550239899682; 
 Fri, 15 Feb 2019 06:11:39 -0800 (PST)
MIME-Version: 1.0
References: <CAF+MRtnBvgo1FNWaZ5bas2DtkrwVeBO+zg-VoP1ajdLLfmGBGA@mail.gmail.com>
In-Reply-To: <CAF+MRtnBvgo1FNWaZ5bas2DtkrwVeBO+zg-VoP1ajdLLfmGBGA@mail.gmail.com>
From: Micka <mickamusset@gmail.com>
Date: Fri, 15 Feb 2019 15:11:28 +0100
Message-ID: <CAF+MRt=cdCXELiSPds7-KNSFmS+ieXk5g4dG1WXkB+t1_bCYCw@mail.gmail.com>
Subject: Re: build libssh2 with openssl
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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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 x1FEBk3s031194

this is how I try to compile ssh2:

cmake -DOPENSSL_INCLUDE_DIR="..\..\..\OpenSSL\source\vc-win32\include"
-DOPENSSL_ROOT_DIR="..\..\..\OpenSSL\source\vc-win32"
-DOPENSSL_SSL_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib"
-DOPENSSL_CRYPTO_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib"
-DCRYPTO_BACKEND=OpenSSL

On Fri, Feb 15, 2019 at 1:11 PM Micka <mickamusset@gmail.com> wrote:
>
> I'm trying to compile libssh2 on windows :
>
> Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
>   system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
>   version "1.1.1b")
>
>
> I Think that the problem is the version of my OPENSSL :
>
> OpenSSL 1.1.1b-dev
>
>
> can some one explain me how to authorized this version of openssl ?
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Fri Feb 15 15:17:22 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1FEH9iG003634;
	Fri, 15 Feb 2019 15:17:21 +0100
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 x1FEH8UH003614
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 15 Feb 2019 15:17:08 +0100
Received: (qmail 17010 invoked by uid 1000); 15 Feb 2019 14:17:04 -0000
Message-ID: <20190215141704.17009.qmail@stuge.se>
Date: Fri, 15 Feb 2019 14:17:04 +0000
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: build libssh2 with openssl
References: <CAF+MRtnBvgo1FNWaZ5bas2DtkrwVeBO+zg-VoP1ajdLLfmGBGA@mail.gmail.com>
 <CAF+MRt=cdCXELiSPds7-KNSFmS+ieXk5g4dG1WXkB+t1_bCYCw@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CAF+MRt=cdCXELiSPds7-KNSFmS+ieXk5g4dG1WXkB+t1_bCYCw@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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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 x1FEH9iG003634

Micka wrote:
> cmake -DOPENSSL_INCLUDE_DIR="..\..\..\OpenSSL\source\vc-win32\include"
> -DOPENSSL_ROOT_DIR="..\..\..\OpenSSL\source\vc-win32"

I guess (only guess! I don't know cmake so well) the above are fine.


> -DOPENSSL_SSL_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib"
> -DOPENSSL_CRYPTO_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib"

I think these are wrong. I think you should specify the actual .lib
files above, not just the directory.


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

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 18 09:11:49 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1I8B0qn010489;
	Mon, 18 Feb 2019 09:11:33 +0100
Received: from mail-ua1-x92c.google.com (mail-ua1-x92c.google.com
 [IPv6:2607:f8b0:4864:20:0:0:0:92c])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id x1I8AvKG010467
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 18 Feb 2019 09:10:58 +0100
Received: by mail-ua1-x92c.google.com with SMTP id e16so5513999uam.12
 for <libssh2-devel@cool.haxx.se>; Mon, 18 Feb 2019 00:10:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
 bh=cCnYbsc6b9ydTJjEV002ANQlKfPeHlivJ/yLdoH/rt8=;
 b=DFggmF+QKoUhf+jJAemoFxZJjoSI9OXA87hZFdiT5/OuDo/6H7j+Tx7rg909sDc40S
 uYokdVoqxt/Bs6M4ySRzF1R1S7RrX1I7c7uGnbRoWu1dD2dIIBeyvhz7SO7SH/WWOW5+
 INlqTwg62qWa/BGpXwGYvbcdngHRjRLcSMcl59jt/OpNE1Rq/iINs4Rr7NKJUicsc8Px
 GeFA5H8D9cT8LA+k2YuwtF26fC0lo1TzGU5zACQCTbMzSNF9Cug3TKnHTY7bZtJU3Mcq
 dW4q0owDcRftgOBx6E0BgzLDPS48MRpFu+iaITDesqIQrBIWT7NaJ3mDENk/ECr742sn
 OJ0w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=cCnYbsc6b9ydTJjEV002ANQlKfPeHlivJ/yLdoH/rt8=;
 b=dt1bvizRoPSoVtew8iGPeZ3Vez53gAS13tNgNy8aRZ1HrMsLdDVxx9T61hhgqCmV/j
 PgcGgpdV4g2k7lTlW+AcxG7+w0JARXqbHV4gBA5A+A4IYMpyusPcUTtJy2JZkZXgad+N
 Xvbayg4v04uUBEHSQqArA7mMcAu6OwSfDiWh73pk4bMI5t9f3jrxiUrQr/R9cmMvx5LQ
 qldcEuFnc8ilie96hHCo80j1VivEdLmdM7l4hYffmr4xwcavd0Q4d+zl6aoNj3mZMnzB
 SEXbmJ92l/7R3gYC1Dzde5j08uiaBo9CL3/AVwPp21dZ6RGNsdIpabwsxKv0S1/9SB81
 tRqg==
X-Gm-Message-State: AHQUAuZ5SmJSNq/z4C7EOwdALbF/wnmprlcDi3A8/iY5nFLSMJtJrBTQ
 GtOAPdH/FOqbTldOebgIyuT7WPTKDId5s7bCybB56hSK
X-Google-Smtp-Source: AHgI3Ibiqn36cjUJVVEV8uzA2iAVa88z72zievOok/Mc8F6ENXEl1cwydWF7LEVTKQO15kg7a48ufQQXfFgCPSfl1pM=
X-Received: by 2002:a9f:3153:: with SMTP id n19mr11611397uab.88.1550477451507; 
 Mon, 18 Feb 2019 00:10:51 -0800 (PST)
MIME-Version: 1.0
References: <CAF+MRtnBvgo1FNWaZ5bas2DtkrwVeBO+zg-VoP1ajdLLfmGBGA@mail.gmail.com>
 <CAF+MRt=cdCXELiSPds7-KNSFmS+ieXk5g4dG1WXkB+t1_bCYCw@mail.gmail.com>
 <20190215141704.17009.qmail@stuge.se>
In-Reply-To: <20190215141704.17009.qmail@stuge.se>
From: Micka <mickamusset@gmail.com>
Date: Mon, 18 Feb 2019 09:10:40 +0100
Message-ID: <CAF+MRtkUV5oN_H8HbtA-5pOvn-nz_c+q5CsqLszgG2zsx1W-3g@mail.gmail.com>
Subject: Re: build libssh2 with openssl
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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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 x1I8B0qn010489

I tried with :

cmake -DOPENSSL_ROOT_DIR="..\..\..\OpenSSL\source\vc-win32"
-DOPENSSL_SSL_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib\libssl.lib"
-DOPENSSL_CRYPTO_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib\libcrypto.lib"
-DOPENSSL_INCLUDE_DIR="..\..\..\OpenSSL\source\vc-win32\include"
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


-- Selecting Windows SDK version  to target Windows 10.0.17134.
CMake Error at C:/Program
Files/CMake/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:137
(message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
  version "1.1.1b")



same result :'(

On Fri, Feb 15, 2019 at 3:18 PM Peter Stuge <peter@stuge.se> wrote:
>
> Micka wrote:
> > cmake -DOPENSSL_INCLUDE_DIR="..\..\..\OpenSSL\source\vc-win32\include"
> > -DOPENSSL_ROOT_DIR="..\..\..\OpenSSL\source\vc-win32"
>
> I guess (only guess! I don't know cmake so well) the above are fine.
>
>
> > -DOPENSSL_SSL_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib"
> > -DOPENSSL_CRYPTO_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib"
>
> I think these are wrong. I think you should specify the actual .lib
> files above, not just the directory.
>
>
> //Peter
> _______________________________________________
> libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 18 10:03:42 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1I93I3q032143;
	Mon, 18 Feb 2019 10:03:36 +0100
Received: from mail-vs1-xe29.google.com (mail-vs1-xe29.google.com
 [IPv6:2607:f8b0:4864:20:0:0:0:e29])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id x1I93FMW032065
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 18 Feb 2019 10:03:15 +0100
Received: by mail-vs1-xe29.google.com with SMTP id w14so2243772vso.6
 for <libssh2-devel@cool.haxx.se>; Mon, 18 Feb 2019 01:03:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
 bh=UY2mV1yplGOHbgM69MTuH3be6pzxHeTp3eiC64tD8eY=;
 b=Ra951QdY8928j3K+115mE3wEuGaUDcSjqrKP2axFWYaB7LJRNJyWwYStZduhmAXuxr
 S4NUOvV3Iky/WvAJwfV++T3q9qGVGuQsZ2fYbACrhD94NJWCMF7XhoSXk9U9U9ty67gK
 J6bBT66rHmwdh8TYdC9z2vrIlvc6awIugx3RvApplx7Y8XY27udD6dl5TxpNaZcAiTay
 3BCK+Rtb5gucUdYGfK76zjhyvb0ZyN06dNCwkpM8sjqtnzK4GiM6FFTaNzzC729wes2G
 ZRKNEtugjfLGaqnMpZHqze+TZv5mqssN9dGVQzarPe/J28zsNVAkprFpn0KoX6688zUL
 /ufw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=UY2mV1yplGOHbgM69MTuH3be6pzxHeTp3eiC64tD8eY=;
 b=taNXd61MFHWkWFa8oFsKlu8N/OgjBlK5zH6p+fYxo7I9Dk6MpkY6OmD6/LUV3sSTmf
 LpdmGWW28AWzAr8q9WcSYF6kCWdrQ6D0d6bEqJZKcrSWcqpAfstUAoKxKObUBKBwaZVt
 q/nv/ddbozcQ4jNAq0rlx3n+ftR45vxBUqEY6VmO8R2cvlNcbqep4lUhb30XBHqsqXWO
 thuGlK4avMyMCVHD3c4y7TGO+pFg99eHJw+deRIWXupjWCqcxzu6KWC1/5Z9zSTHpins
 t0fzV4ZbZj4femVCKBNmNiEK0nrwCXAvc1TaJnLQKoWaL09Z0yPgMwjxBllRBO4fJ8yq
 x4BQ==
X-Gm-Message-State: AHQUAuaSunjSgvv69zWcx31WmriL38oVdyFYJBqsSSNwmwLLzcJMFNkB
 ZhpUE2QikY0sez1eAGa2bJTkkPlBI2oPp2BT7cJLCw==
X-Google-Smtp-Source: AHgI3IZzEOI33TygNFrCp8kEJO5rt8/sRSI3LHs3d8G/9dfc8xg1hUHXNYZPxuvMHyxu3270Y9yxfsLYdeYX35FjT54=
X-Received: by 2002:a67:7848:: with SMTP id t69mr11076186vsc.211.1550480590205; 
 Mon, 18 Feb 2019 01:03:10 -0800 (PST)
MIME-Version: 1.0
References: <CAF+MRtnBvgo1FNWaZ5bas2DtkrwVeBO+zg-VoP1ajdLLfmGBGA@mail.gmail.com>
 <CAF+MRt=cdCXELiSPds7-KNSFmS+ieXk5g4dG1WXkB+t1_bCYCw@mail.gmail.com>
 <20190215141704.17009.qmail@stuge.se>
 <CAF+MRtkUV5oN_H8HbtA-5pOvn-nz_c+q5CsqLszgG2zsx1W-3g@mail.gmail.com>
In-Reply-To: <CAF+MRtkUV5oN_H8HbtA-5pOvn-nz_c+q5CsqLszgG2zsx1W-3g@mail.gmail.com>
From: Micka <mickamusset@gmail.com>
Date: Mon, 18 Feb 2019 10:02:58 +0100
Message-ID: <CAF+MRtmQyFg6Qo=P-wY76oWqaQ7NzSZVWOwJePomqhib0c6mDg@mail.gmail.com>
Subject: Re: build libssh2 with openssl
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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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 x1I93I3q032143

I've compiled openssl in 32 bit, maybe it is the problem ?

On Mon, Feb 18, 2019 at 9:10 AM Micka <mickamusset@gmail.com> wrote:
>
> I tried with :
>
> cmake -DOPENSSL_ROOT_DIR="..\..\..\OpenSSL\source\vc-win32"
> -DOPENSSL_SSL_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib\libssl.lib"
> -DOPENSSL_CRYPTO_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib\libcrypto.lib"
> -DOPENSSL_INCLUDE_DIR="..\..\..\OpenSSL\source\vc-win32\include"
> CMake Warning:
>   No source or binary directory provided.  Both will be assumed to be the
>   same as the current working directory, but note that this warning will
>   become a fatal error in future CMake releases.
>
>
> -- Selecting Windows SDK version  to target Windows 10.0.17134.
> CMake Error at C:/Program
> Files/CMake/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:137
> (message):
>   Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
>   system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
>   version "1.1.1b")
>
>
>
> same result :'(
>
> On Fri, Feb 15, 2019 at 3:18 PM Peter Stuge <peter@stuge.se> wrote:
> >
> > Micka wrote:
> > > cmake -DOPENSSL_INCLUDE_DIR="..\..\..\OpenSSL\source\vc-win32\include"
> > > -DOPENSSL_ROOT_DIR="..\..\..\OpenSSL\source\vc-win32"
> >
> > I guess (only guess! I don't know cmake so well) the above are fine.
> >
> >
> > > -DOPENSSL_SSL_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib"
> > > -DOPENSSL_CRYPTO_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib"
> >
> > I think these are wrong. I think you should specify the actual .lib
> > files above, not just the directory.
> >
> >
> > //Peter
> > _______________________________________________
> > libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 18 10:17:05 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1I9GVqf014378;
	Mon, 18 Feb 2019 10:17:03 +0100
Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com
 [IPv6:2607:f8b0:4864:20:0:0:0:332])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id x1I9GTQ8014331
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 18 Feb 2019 10:16:30 +0100
Received: by mail-ot1-x332.google.com with SMTP id i5so27075541oto.9
 for <libssh2-devel@cool.haxx.se>; Mon, 18 Feb 2019 01:16:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
 bh=MhPLr1bFRc1pktf70VcGW0c9HGq+pKcf4+b5Us9aVTc=;
 b=KXWzpmUhU+/jgroJJMiUqY99Bnt9jWc1/OkwTI64PqA94YHNJbJ8zFlkC7G8h/G8Xf
 QiNFBthrBF3G4HigAgB//kgZ5EVj0vGym3OBj0qq4rcNlCJ3TGKUVlFf5eJP18Zu0e73
 t8NpIpzsKl5FiXV092w+LVlPwDtDZCZ/j67eUnjAvdjs0v1nzMlcilXub+nsfya9rF1N
 A5dtULBimRQ+pcmJsnt0yMuyzId64wGBiI7+Z2YDF5+N0Mo/FLXUu8KJ4BcGs/+mIHPP
 +pLCKp5RvnD8GDIZ3puHQBNkBO+Mh7JJhaG4adGV8COEPy1lazDR+rBHLJr1F8e3RjPy
 WiNA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=MhPLr1bFRc1pktf70VcGW0c9HGq+pKcf4+b5Us9aVTc=;
 b=d7DoVsyXq/xJObxaIVP6K/N4/LbJxrYQtGEqBhtp2+fTy+lcg43dAjNaagLOl2TIcf
 j1ESruNlIk9pHXyAZF7LUrweeKXWqspgTszNDJ+M2WTOCCzod+cq6TAmhRm9HiuRSWVw
 xIvwvUypWvghWj9SCYbk5kSK7mfvdaqTCnUffEGGTVs0IdV/nl2p/NggbdtPTu1+eqvI
 e3Ba3xItScGbnJtgpt0yGqwEPOl7FycVZVTpVY2nL2TjSWWkAlSrCroFfZsZ6dux6KTe
 ECZ0Di+9q7BPeEG8ugbVYncvtSgfDMiZtRxWriP5L/ml7gSKyNoHzf8pAj2zLb86pfyE
 jXBw==
X-Gm-Message-State: AHQUAubuJVCXkMwChihW7f7/IxzOkJH/dmuVmFuZzP9AfMzGt/QfQknS
 GgpbGWMBK2rcoZ/aqO9y476AeWZpS2yzeeq+w/gl8g==
X-Google-Smtp-Source: AHgI3IbMPldurp6QmK670lOdh7NMFjSjVgI2jBewLAX7bmWH7mWkFVnHWux7+ovrmEW0EK93Tx2f113ueFQVGWS6vTw=
X-Received: by 2002:aca:b341:: with SMTP id c62mr13006520oif.112.1550481384036; 
 Mon, 18 Feb 2019 01:16:24 -0800 (PST)
MIME-Version: 1.0
References: <CACodhSEeDcLCRKpAFDs0HSce=q96F8DkFnQ3LOgTuEyxTy-4Ow@mail.gmail.com>
In-Reply-To: <CACodhSEeDcLCRKpAFDs0HSce=q96F8DkFnQ3LOgTuEyxTy-4Ow@mail.gmail.com>
From: Richa Mehta <richa21089@gmail.com>
Date: Mon, 18 Feb 2019 14:46:12 +0530
Message-ID: <CACodhSHuJepeuWi0hcCkeX_XzrjgCjfcLnRwz27StrPQQ83nsw@mail.gmail.com>
Subject: Re: LIBSSH2_CHANNEL struct can be shared between the threads in c++??
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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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="===============1727944486=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============1727944486==
Content-Type: multipart/alternative; boundary="000000000000205d130582279484"

--000000000000205d130582279484
Content-Type: text/plain; charset="UTF-8"

Hello,

Can someone please response to below query:
I want to share the ssh session and channels structures between the threads
in c++, so is it thread safe???

Thanks,
Richa

On Wed, 9 Jan 2019 at 17:47, Richa Mehta <richa21089@gmail.com> wrote:

> Hi,
>
> I want to share the ssh session and channels between the threads but as
> per the introduction for thread safety, it is written there not to share
> handles between threads so is it safe to share the ssh channels between
> threads in C++??
>
> Thanks,
> Richa
>
>

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

<div dir=3D"ltr">Hello,<div><br></div><div>Can someone please response to b=
elow query:</div><div>I want to share the ssh session and channels structur=
es between the threads in c++, so is it thread safe???</div><div><br></div>=
<div>Thanks,</div><div>Richa</div></div><br><div class=3D"gmail_quote"><div=
 dir=3D"ltr" class=3D"gmail_attr">On Wed, 9 Jan 2019 at 17:47, Richa Mehta =
&lt;<a href=3D"mailto:richa21089@gmail.com">richa21089@gmail.com</a>&gt; wr=
ote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px=
 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D=
"ltr">Hi,<div><br></div><div><span style=3D"color:rgb(36,41,46);font-family=
:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Helvetica,Arial,sans=
-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe=
 UI Symbol&quot;;font-size:14px">I want to share the ssh session and channe=
ls between the threads but as per the introduction for thread safety, it is=
 written there not to share handles between threads so is it safe to share =
the ssh channels between threads in C++??</span>=C2=A0</div><div><br></div>=
<div>Thanks,</div><div>Richa</div><div>=C2=A0<br></div></div>
</blockquote></div>

--000000000000205d130582279484--

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

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwczovL2Nvb2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbGlic3No
Mi1kZXZlbAo=

--===============1727944486==--

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 18 10:59:58 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1I9xa2s024958;
	Mon, 18 Feb 2019 10:59:53 +0100
Received: from blaine.gmane.org ([195.159.176.226])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id x1I9xXEC024948
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 18 Feb 2019 10:59:34 +0100
Received: from list by blaine.gmane.org with local (Exim 4.89)
 (envelope-from <gnslg-libssh2-devel-2@m.gmane.org>)
 id 1gvfi2-000K2I-OC
 for libssh2-devel@cool.haxx.se; Mon, 18 Feb 2019 10:59:34 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: libssh2-devel@cool.haxx.se
From: Jan Ehrhardt <phpdev@ehrhardt.nl>
Subject: Re: build libssh2 with openssl
Date: Mon, 18 Feb 2019 10:59:28 +0100
Message-ID: <pmuk6e56nno4bu9ebrf5b3holb448je102@4ax.com>
References: <CAF+MRtnBvgo1FNWaZ5bas2DtkrwVeBO+zg-VoP1ajdLLfmGBGA@mail.gmail.com>
 <CAF+MRt=cdCXELiSPds7-KNSFmS+ieXk5g4dG1WXkB+t1_bCYCw@mail.gmail.com>
 <20190215141704.17009.qmail@stuge.se>
 <20190215141704.17009.qmail-Y+HMSxxDrH8@public.gmane.org>
 <CAF+MRtkUV5oN_H8HbtA-5pOvn-nz_c+q5CsqLszgG2zsx1W-3g@mail.gmail.com>
Mime-Version: 1.0
X-Newsreader: Forte Agent 3.3/32.846
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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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 x1I9xa2s024958

Micka in gmane.network.ssh.libssh2.devel (Mon, 18 Feb 2019 09:10:40
+0100):
>I tried with :
>
>cmake -DOPENSSL_ROOT_DIR="..\..\..\OpenSSL\source\vc-win32"
>-DOPENSSL_SSL_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib\libssl.lib"
>-DOPENSSL_CRYPTO_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib\libcrypto.lib"
>-DOPENSSL_INCLUDE_DIR="..\..\..\OpenSSL\source\vc-win32\include"

If libssl.lib & libcrypto.lib are in the lib-dir under the openssl root
and the include files in the include\openssl dir under the openssl root 
cmake -DOPENSSL_ROOT_DIR="..\..\..\OpenSSL\source\vc-win32"
should be enough for cmake. Or use an absolute path like
cmake -DOPENSSL_ROOT_DIR="C:\Projects\OpenSSL\source\vc-win32"

The 'source' in your path rises the suspicion that OpenSSL is not
installed in ..\..\..\OpenSSL\source\vc-win32. CMake searches for an
installed OpenSSL. Expected files for a x86 build (the dll's end with
-x64.dll for x64)

OPENSSL_ROOT_DIR
|- lib\libssl.lib
|- lib\libcrypto.lib
|- include\openssl\ssl.h (and all the other header-files)
|- bin\libcrypto-1_1.dll (not needed for compiling)
|- bin\libssl-1_1.dll (not needed for compiling)

-- 
Jan  

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

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 18 11:10:40 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1IAAQvk003121;
	Mon, 18 Feb 2019 11:10:38 +0100
Received: from mail-vk1-xa32.google.com (mail-vk1-xa32.google.com
 [IPv6:2607:f8b0:4864:20:0:0:0:a32])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id x1IAAOIn002982
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 18 Feb 2019 11:10:25 +0100
Received: by mail-vk1-xa32.google.com with SMTP id b6so2620022vkf.8
 for <libssh2-devel@cool.haxx.se>; Mon, 18 Feb 2019 02:10:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
 bh=BqfxPS1atQodmYQpGAsFWk/StPp1Y90WwB5OxDAtIgk=;
 b=TW6Jn5pF5nAZSWIBti1dQnXggKuCRQqHYArO6R6YetJvDWsHAQe7PcjG2lql1unwE/
 oTl/Umzv+j3xHhd5N93ITYspeKpdJh52PxR6KTvpgj2OnET1pxWQmHGlJ1W8a2MvHc8L
 JRTrxAQU/rCHUSWkAh2GlKKMccFXxNz2YYUPUd6JAY/vMoObHzv1YZl91W4OieiCHsIe
 ebUdiKJdlAcwgx82GAcqewm1qIgVWOpj0AtjYtDdxPkkixqANNbHsWHDwddSXMv1kdT7
 7yYpog9PBy3KqHctYSPLcSgQDUm0cYCIqxP3uKcS0huhfKqVTdLpovYT8hSM7fumkO04
 sUbQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=BqfxPS1atQodmYQpGAsFWk/StPp1Y90WwB5OxDAtIgk=;
 b=X8lAlkzqZ3fH6GU+dqRLL0hIXAjt39SOojN97MkFRCgBX6pryM9YuzL5xkt0XctDL+
 SN/55MfdeVmNyH6cqarY/3eEvFcAcv6N3xk36FOiQ+MouFAT9OuIoWmgqaOkHPHt0Unk
 JZ4FrqAWOJtqTU3thJSug4PZOtbvLIq7bKOE0dtmzWo6rx295jvB3R99s4xEiwxW609c
 oknY5XzkU0QxW8hPgDDGo6wGmWOiaDIwg46M6Sym9PD9Xg5FQIjFf0oUM0cx/xfi4r3Y
 m/O/01nOcvMAXZ9tovAOzAIB84LmS5JYitVolaVQVo85VRdQXB0VbvJAnu+sa/g28TPD
 LmaA==
X-Gm-Message-State: AHQUAuZEEDZxs0maF1eAL+J+Qx1XOvfHgetp9eEN39CfZqSw/2HVCFBh
 6Ci1JqVHCFX1AkeayqQZe58JFADF7M7HXdAhryLlCA==
X-Google-Smtp-Source: AHgI3IZJWkWQE5vCEis+oRDZbLsT8N5DBKVvlrYJNNARLHSfxXq2vfe0yNLH5TuGSUOQ2mLLMWSd0Dfff9Kfz7I6Zak=
X-Received: by 2002:a1f:2acb:: with SMTP id q194mr165411vkq.92.1550484619291; 
 Mon, 18 Feb 2019 02:10:19 -0800 (PST)
MIME-Version: 1.0
References: <CAF+MRtnBvgo1FNWaZ5bas2DtkrwVeBO+zg-VoP1ajdLLfmGBGA@mail.gmail.com>
 <CAF+MRt=cdCXELiSPds7-KNSFmS+ieXk5g4dG1WXkB+t1_bCYCw@mail.gmail.com>
 <20190215141704.17009.qmail@stuge.se>
 <20190215141704.17009.qmail-Y+HMSxxDrH8@public.gmane.org>
 <CAF+MRtkUV5oN_H8HbtA-5pOvn-nz_c+q5CsqLszgG2zsx1W-3g@mail.gmail.com>
 <pmuk6e56nno4bu9ebrf5b3holb448je102@4ax.com>
In-Reply-To: <pmuk6e56nno4bu9ebrf5b3holb448je102@4ax.com>
From: Micka <mickamusset@gmail.com>
Date: Mon, 18 Feb 2019 11:10:06 +0100
Message-ID: <CAF+MRtmjmJb6S01b-FEQ65rEW9EHB+=KR22zdxV-49V5SmYZQQ@mail.gmail.com>
Subject: Re: build libssh2 with openssl
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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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 x1IAAQvk003121

Thanks looks like that with only the ROOT dir and with an absolute path works !

On Mon, Feb 18, 2019 at 11:01 AM Jan Ehrhardt <phpdev@ehrhardt.nl> wrote:
>
> Micka in gmane.network.ssh.libssh2.devel (Mon, 18 Feb 2019 09:10:40
> +0100):
> >I tried with :
> >
> >cmake -DOPENSSL_ROOT_DIR="..\..\..\OpenSSL\source\vc-win32"
> >-DOPENSSL_SSL_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib\libssl.lib"
> >-DOPENSSL_CRYPTO_LIBRARY="..\..\..\OpenSSL\source\vc-win32\lib\libcrypto.lib"
> >-DOPENSSL_INCLUDE_DIR="..\..\..\OpenSSL\source\vc-win32\include"
>
> If libssl.lib & libcrypto.lib are in the lib-dir under the openssl root
> and the include files in the include\openssl dir under the openssl root
> cmake -DOPENSSL_ROOT_DIR="..\..\..\OpenSSL\source\vc-win32"
> should be enough for cmake. Or use an absolute path like
> cmake -DOPENSSL_ROOT_DIR="C:\Projects\OpenSSL\source\vc-win32"
>
> The 'source' in your path rises the suspicion that OpenSSL is not
> installed in ..\..\..\OpenSSL\source\vc-win32. CMake searches for an
> installed OpenSSL. Expected files for a x86 build (the dll's end with
> -x64.dll for x64)
>
> OPENSSL_ROOT_DIR
> |- lib\libssl.lib
> |- lib\libcrypto.lib
> |- include\openssl\ssl.h (and all the other header-files)
> |- bin\libcrypto-1_1.dll (not needed for compiling)
> |- bin\libssl-1_1.dll (not needed for compiling)
>
> --
> Jan
>
> _______________________________________________
> libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 18 11:13:11 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1IAD14q005485;
	Mon, 18 Feb 2019 11:13:11 +0100
Received: from blaine.gmane.org ([195.159.176.226])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id x1IACxaN005473
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 18 Feb 2019 11:12:59 +0100
Received: from list by blaine.gmane.org with local (Exim 4.89)
 (envelope-from <gnslg-libssh2-devel-2@m.gmane.org>)
 id 1gvfv1-000auk-VT
 for libssh2-devel@cool.haxx.se; Mon, 18 Feb 2019 11:12:59 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: libssh2-devel@cool.haxx.se
From: Jan Ehrhardt <phpdev@ehrhardt.nl>
Subject: Re: build libssh2 with openssl
Date: Mon, 18 Feb 2019 11:12:54 +0100
Message-ID: <7k0l6elriqabm9qkds1j76iqq7ch4i6lf3@4ax.com>
References: <CAF+MRtnBvgo1FNWaZ5bas2DtkrwVeBO+zg-VoP1ajdLLfmGBGA@mail.gmail.com>
 <CAF+MRt=cdCXELiSPds7-KNSFmS+ieXk5g4dG1WXkB+t1_bCYCw@mail.gmail.com>
 <20190215141704.17009.qmail@stuge.se>
 <CAF+MRtkUV5oN_H8HbtA-5pOvn-nz_c+q5CsqLszgG2zsx1W-3g@mail.gmail.com>
 <CAF+MRtkUV5oN_H8HbtA-5pOvn-nz_c+q5CsqLszgG2zsx1W-3g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
 <CAF+MRtmQyFg6Qo=P-wY76oWqaQ7NzSZVWOwJePomqhib0c6mDg@mail.gmail.com>
Mime-Version: 1.0
X-Newsreader: Forte Agent 3.3/32.846
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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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 x1IAD14q005485

Micka in gmane.network.ssh.libssh2.devel (Mon, 18 Feb 2019 10:02:58
+0100):
>I've compiled openssl in 32 bit, maybe it is the problem ?

No, should not be a problem. As long as you have installed the
lib\*.lib's and the include\openssl\*.h files under the OPENSSL_ROOT_DIR
directory.
But it will not harm to add a '-G "Visual Studio 15 2017"' or something
like that in your cmake command line.
-- 
Jan

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

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 18 11:29:09 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1IAScFW024499;
	Mon, 18 Feb 2019 11:28:58 +0100
Received: from blaine.gmane.org ([195.159.176.226])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id x1IAScUg024483
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 18 Feb 2019 11:28:38 +0100
Received: from list by blaine.gmane.org with local (Exim 4.89)
 (envelope-from <gnslg-libssh2-devel-2@m.gmane.org>)
 id 1gvgA7-000u3c-H0
 for libssh2-devel@cool.haxx.se; Mon, 18 Feb 2019 11:28:35 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: libssh2-devel@cool.haxx.se
From: Jan Ehrhardt <phpdev@ehrhardt.nl>
Subject: Re: build libssh2 with openssl
Date: Mon, 18 Feb 2019 11:28:29 +0100
Message-ID: <kv1l6edrijp5acsov6qcogm3v77nj5qve6@4ax.com>
References: <CAF+MRt=cdCXELiSPds7-KNSFmS+ieXk5g4dG1WXkB+t1_bCYCw@mail.gmail.com>
 <20190215141704.17009.qmail@stuge.se>
 <20190215141704.17009.qmail-Y+HMSxxDrH8@public.gmane.org>
 <CAF+MRtkUV5oN_H8HbtA-5pOvn-nz_c+q5CsqLszgG2zsx1W-3g@mail.gmail.com>
 <pmuk6e56nno4bu9ebrf5b3holb448je102@4ax.com>
 <pmuk6e56nno4bu9ebrf5b3holb448je102-e09XROE/p8c@public.gmane.org>
 <CAF+MRtmjmJb6S01b-FEQ65rEW9EHB+=KR22zdxV-49V5SmYZQQ@mail.gmail.com>
Mime-Version: 1.0
X-Newsreader: Forte Agent 3.3/32.846
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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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 x1IAScFW024499

Micka in gmane.network.ssh.libssh2.devel (Mon, 18 Feb 2019 11:10:06
+0100):
>Thanks looks like that with only the ROOT dir and with an absolute path works !

Tricky thing: paths are relative to the directory with the
CMakeLists.txt, so it is best to use absolute paths.
-- 
Jan

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

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 18 13:17:27 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1ICGvsk016197;
	Mon, 18 Feb 2019 13:17:20 +0100
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 x1ICGtbM016103
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 18 Feb 2019 13:16:55 +0100
Received: (qmail 14027 invoked by uid 1000); 18 Feb 2019 12:16:51 -0000
Message-ID: <20190218121651.14026.qmail@stuge.se>
Date: Mon, 18 Feb 2019 12:16:51 +0000
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: LIBSSH2_CHANNEL struct can be shared between the threads in c++??
References: <CACodhSEeDcLCRKpAFDs0HSce=q96F8DkFnQ3LOgTuEyxTy-4Ow@mail.gmail.com>
 <CACodhSHuJepeuWi0hcCkeX_XzrjgCjfcLnRwz27StrPQQ83nsw@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CACodhSHuJepeuWi0hcCkeX_XzrjgCjfcLnRwz27StrPQQ83nsw@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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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 x1ICGvsk016197

Richa Mehta wrote:
> I want to share the ssh session and channels structures between the
> threads in c++, so is it thread safe???

Only one thread at a time can use a session. Protect it with a mutex,
and be careful to not release the mutex until the API call is completed
successfully or with error. Ie. do not release the mutex when the
library returns LIBSSH2_ERROR_EAGAIN.


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

From libssh2-devel-bounces@cool.haxx.se  Tue Feb 19 08:47:06 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1J7kXDY001815;
	Tue, 19 Feb 2019 08:46:59 +0100
Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com
 [IPv6:2607:f8b0:4864:20:0:0:0:334])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id x1J7jCYc000646
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 19 Feb 2019 08:45:13 +0100
Received: by mail-ot1-x334.google.com with SMTP id i5so32623887oto.9
 for <libssh2-devel@cool.haxx.se>; Mon, 18 Feb 2019 23:45:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
 bh=s+2wyFnHk5kqL0m4rlfLI/36ZH7NGbVvQDS+eF+3ftg=;
 b=mvj/9tzFwlOd7EsdOTWlm28H7WjfkybZ7FW0/d3qMP4AMqGW6n82wH5NZUVBghW40a
 DM2lEaMMLkrhLSZJ32TaNqy9GzE1JttFS0lr1xn7V3UQlbXGjX9/sDMk8WGBZRVL9cB3
 wi63Pf4JY9+yMxmtlfwcSAw3K96tskm08mSbm1TVULHYhDxxN5JcKHsBVq3jj4dP6i7n
 VlLbMPrQyqjpXOqI0dfsNwyX+29tAujn7X83aX2vtBVQyJUEWYMN3Ze8r1xKO5sqj81A
 9+UmVoKElGzvdZts6Sbf0JeSSu8FostWxkLxHBqK48L/kFrzGuY4TZbM89oAaka3bN4f
 Nqsw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=s+2wyFnHk5kqL0m4rlfLI/36ZH7NGbVvQDS+eF+3ftg=;
 b=QSp43oN32XUY8EFkgCQL7D8CfbnUAkPWPdGYqfQMh623R62gu246Ow1sdSXkCniCJv
 3bpNIItayY5u5uBTfAmY5DLSLZvUrZz3bw/EC6MzDeeuntUW9mxvDiz8MMCJ5nh1mBG2
 fzX4bMemtMLX/lwxycLNYBATtL5EHL90Ibg2dEHOQaPtuEUOslWH9I5KAT/BNmgFdugp
 jq4POzsjd1XbKjmWRb2VoO1pX8+Xc2TcN07oj83H/ku9ezCyTz41xenR3ukAbMCKdkh9
 mlunqXN/rod6hNtnvGxuht2/J3aBrvlkko6qoswTZ9qSVxE0RRD/nX5s2rJ+zXLGKh2S
 1C4g==
X-Gm-Message-State: AHQUAuYgrB2pTcUUv9mOeen4T5fa3ODj2WIv/vZKc2hVGFwSRpipnyER
 2tsblpZUZJ5pl5t/83myD9Y3Wd0s5/fzYjpdJkXSgRxT
X-Google-Smtp-Source: AHgI3IYXFMCVuONsIJgjDF3tUwdp6xOY1OYyNvH5c56+HTgzIreBodg7MD/25Nytz2BziTDl6z/JscA0sG+R8+2Hw8A=
X-Received: by 2002:a9d:4b13:: with SMTP id q19mr17642803otf.304.1550562306559; 
 Mon, 18 Feb 2019 23:45:06 -0800 (PST)
MIME-Version: 1.0
References: <CACodhSEeDcLCRKpAFDs0HSce=q96F8DkFnQ3LOgTuEyxTy-4Ow@mail.gmail.com>
 <CACodhSHuJepeuWi0hcCkeX_XzrjgCjfcLnRwz27StrPQQ83nsw@mail.gmail.com>
 <20190218121651.14026.qmail@stuge.se>
In-Reply-To: <20190218121651.14026.qmail@stuge.se>
From: Richa Mehta <richa21089@gmail.com>
Date: Tue, 19 Feb 2019 13:14:54 +0530
Message-ID: <CACodhSFGhWgK=wH4aQMpJSSknp5jFfTcy2PWVQs3P3snZff_Dg@mail.gmail.com>
Subject: Re: LIBSSH2_CHANNEL struct can be shared between the threads in c++??
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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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="===============0866765519=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============0866765519==
Content-Type: multipart/alternative; boundary="0000000000007c117305823a6b64"

--0000000000007c117305823a6b64
Content-Type: text/plain; charset="UTF-8"

Thanks Peter, I have one another query:

Currently I have implemented the design as follow:

Main thread is opening the Netconf session and channel, After session and
channel is opened, it is handed over to request thread, it will write the
data on that channel in nonblock fashion, after write is complete,
Response thread will be triggered to read the data on Channel in non block
fashion. So in above design as at a time only thread is accessing the
channel do I require mutex to protect the session and channel??

And Thread that has openend the session, that thread should only close the
session???

Thanks,
Richa

On Mon, 18 Feb 2019 at 17:48, Peter Stuge <peter@stuge.se> wrote:

> Richa Mehta wrote:
> > I want to share the ssh session and channels structures between the
> > threads in c++, so is it thread safe???
>
> Only one thread at a time can use a session. Protect it with a mutex,
> and be careful to not release the mutex until the API call is completed
> successfully or with error. Ie. do not release the mutex when the
> library returns LIBSSH2_ERROR_EAGAIN.
>
>
> //Peter
> _______________________________________________
> libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

<div dir=3D"ltr"><div dir=3D"ltr">Thanks Peter, I have one another query:<d=
iv><br></div><div><div>Currently I have implemented the design as follow:</=
div><div><br></div><div>Main thread is opening the Netconf session and chan=
nel, After session and channel is opened, it is handed over to request thre=
ad, it will write the data on that channel in nonblock fashion, after write=
 is complete,=C2=A0</div><div>Response thread will be triggered to read the=
 data on Channel in non block fashion. So in above design as at a time only=
 thread is accessing the channel do I require mutex to protect the session =
and channel??</div><div><br></div><div>And Thread that has openend the sess=
ion, that thread should only close the session???</div></div><div><br></div=
><div>Thanks,</div><div>Richa</div></div></div><br><div class=3D"gmail_quot=
e"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, 18 Feb 2019 at 17:48, Pete=
r Stuge &lt;<a href=3D"mailto:peter@stuge.se">peter@stuge.se</a>&gt; wrote:=
<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Richa Mehta wro=
te:<br>
&gt; I want to share the ssh session and channels structures between the<br=
>
&gt; threads in c++, so is it thread safe???<br>
<br>
Only one thread at a time can use a session. Protect it with a mutex,<br>
and be careful to not release the mutex until the API call is completed<br>
successfully or with error. Ie. do not release the mutex when the<br>
library returns LIBSSH2_ERROR_EAGAIN.<br>
<br>
<br>
//Peter<br>
_______________________________________________<br>
libssh2-devel <a href=3D"https://cool.haxx.se/cgi-bin/mailman/listinfo/libs=
sh2-devel" rel=3D"noreferrer" target=3D"_blank">https://cool.haxx.se/cgi-bi=
n/mailman/listinfo/libssh2-devel</a><br>
</blockquote></div>

--0000000000007c117305823a6b64--

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

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwczovL2Nvb2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbGlic3No
Mi1kZXZlbAo=

--===============0866765519==--

From libssh2-devel-bounces@cool.haxx.se  Tue Feb 19 10:07:48 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1J97EBM024675;
	Tue, 19 Feb 2019 10:07:38 +0100
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 x1J97Csm024509
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 19 Feb 2019 10:07:12 +0100
Received: (qmail 12217 invoked by uid 1000); 19 Feb 2019 09:07:05 -0000
Message-ID: <20190219090705.12216.qmail@stuge.se>
Date: Tue, 19 Feb 2019 09:07:05 +0000
From: Peter Stuge <peter@stuge.se>
To: libssh2-devel@cool.haxx.se
Subject: Re: LIBSSH2_CHANNEL struct can be shared between the threads in c++??
References: <CACodhSEeDcLCRKpAFDs0HSce=q96F8DkFnQ3LOgTuEyxTy-4Ow@mail.gmail.com>
 <CACodhSHuJepeuWi0hcCkeX_XzrjgCjfcLnRwz27StrPQQ83nsw@mail.gmail.com>
 <20190218121651.14026.qmail@stuge.se>
 <CACodhSFGhWgK=wH4aQMpJSSknp5jFfTcy2PWVQs3P3snZff_Dg@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CACodhSFGhWgK=wH4aQMpJSSknp5jFfTcy2PWVQs3P3snZff_Dg@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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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 x1J97EBM024675

Richa Mehta wrote:
> as at a time only thread is accessing the channel do I require mutex to
> protect the session and channel??

If your software only ever calls libssh2 from one thread then you
don't technically need a mutex. This is an odd design, but oh well.


> And Thread that has openend the session, that thread should only
> close the session???

Which thread does not matter, it is just important that only one
thread closes the session.


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

From libssh2-devel-bounces@cool.haxx.se  Tue Feb 19 15:54:24 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1JErjJN010102;
	Tue, 19 Feb 2019 15:54:13 +0100
Received: from mail-vk1-xa35.google.com (mail-vk1-xa35.google.com
 [IPv6:2607:f8b0:4864:20:0:0:0:a35])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id x1JErhbl010071
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 19 Feb 2019 15:53:44 +0100
Received: by mail-vk1-xa35.google.com with SMTP id 89so252043vkq.7
 for <libssh2-devel@cool.haxx.se>; Tue, 19 Feb 2019 06:53:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :content-transfer-encoding;
 bh=58WxLp7YfHV8y3ytzYJInyRpQeOMXWYyRrghB0GIDvM=;
 b=mFBCzCn34JjsI5W+p37Eb+Oh2yhXC7F9v0YOVWjAQe53OhplPWU897Yjh2lBmL6Jal
 17vXvPK97GcFW7Uhh6VwdreAxaTrMKrZd/871jqPOKQo57Cvrv+9yRLL2etzGUoMsplP
 +Z6zZyHazPERE1TaLGCsWKrJ7r35u/Vl5/stnhlHKk1wzin+Fu8rncv43CjDxrnY1dyv
 dD/ZR1REJpRqUbvoU/k7WBGUPFEjh2GcVMM8Ux6i8x8Laq46zNoWyz69t6omN0lNduUY
 vhdrmfQnr9AiennzHXw+QgY7vTWQITAX3hsSt5zi6q1TRqKvy+7MfBGZ5Q2tMERv+GYd
 eidw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:content-transfer-encoding;
 bh=58WxLp7YfHV8y3ytzYJInyRpQeOMXWYyRrghB0GIDvM=;
 b=b7bGwtqT6BFecLQLUUW2s7gVVVOI4pqpmgJmBShBQZhFVb/RrZzR1A0pbTUM+c3dqd
 OtmkRZ25uADQA2DzTf/nFsFWye8o2qc2V2+n41FjyXZqu+r4TLQd7AJTas5Xby2p1d1S
 YNOCTZVo0zfwndXpg7jZeyxI5XpYZALcP5PrbQ5TJab/AMhI3Cx66fPZn1/PRrX+uHhs
 C45TU+Tg7Tq7BV1MSg4wuLenaxdgEXFhQricCB5QN4roSWJ3laSBwQ2yBAgoN7wi0URs
 047W9WZgeI3uIkRTl7SC5qP7SRoDLftHvlC35q7pMhyJf9U/r1XKvitI+0tSXmthJM6Q
 yR8A==
X-Gm-Message-State: AHQUAuY48GCpIgAYluJwbz+4Bywwt0f1EDLZaRMwBCwIJnsJeK9ZKrOf
 dFa1WgYzwT1fy343Y2VYyLI2qGZknGduTJq4AmzbfItX
X-Google-Smtp-Source: AHgI3IanSSHuDUcJnqy6g2IEJSvLZ78VyQa+/bZqJmxQe/li1IaY+8OsrQf1o4UYuy4xb0ajScLjNqi3zLbDdTkNWqY=
X-Received: by 2002:a1f:34c7:: with SMTP id b190mr15094492vka.55.1550588017813; 
 Tue, 19 Feb 2019 06:53:37 -0800 (PST)
MIME-Version: 1.0
References: <CAF+MRt=cdCXELiSPds7-KNSFmS+ieXk5g4dG1WXkB+t1_bCYCw@mail.gmail.com>
 <20190215141704.17009.qmail@stuge.se>
 <20190215141704.17009.qmail-Y+HMSxxDrH8@public.gmane.org>
 <CAF+MRtkUV5oN_H8HbtA-5pOvn-nz_c+q5CsqLszgG2zsx1W-3g@mail.gmail.com>
 <pmuk6e56nno4bu9ebrf5b3holb448je102@4ax.com>
 <pmuk6e56nno4bu9ebrf5b3holb448je102-e09XROE/p8c@public.gmane.org>
 <CAF+MRtmjmJb6S01b-FEQ65rEW9EHB+=KR22zdxV-49V5SmYZQQ@mail.gmail.com>
 <kv1l6edrijp5acsov6qcogm3v77nj5qve6@4ax.com>
In-Reply-To: <kv1l6edrijp5acsov6qcogm3v77nj5qve6@4ax.com>
From: Micka <mickamusset@gmail.com>
Date: Tue, 19 Feb 2019 15:53:28 +0100
Message-ID: <CAF+MRtme+-obVnz-veUiU3ijiqYZ1nGVykbgrSSWpO9JHr4v0A@mail.gmail.com>
Subject: Re: build libssh2 with openssl
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 x1JErhbl010071
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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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 x1JErjJN010102

Thanks, now I'm trying to test the lib built with :

libssh2-1.8.0\build>cmake --build . --target RUN_TESTS

but all the test failed:

0% tests passed, 10 tests failed out of 10

  Total Test time (real) =   1.15 sec

  The following tests FAILED:
  Errors while running CTest
          1 - test_hostkey (Exit code 0xc0000135
  )
          2 - test_hostkey_hash (Exit code 0xc0000135
  )
          3 - test_password_auth_succeeds_with_correct_credentials
(Exit code 0xc0000135
  )
          4 - test_password_auth_fails_with_wrong_password (Exit code 0xc0000135
  )
          5 - test_password_auth_fails_with_wrong_username (Exit code 0xc0000135
  )
          6 - test_public_key_auth_fails_with_wrong_key (Exit code 0xc0000135
  )
          7 - test_public_key_auth_succeeds_with_correct_rsa_key (Exit
code 0xc0000135
  )
          8 - test_public_key_auth_succeeds_with_correct_dsa_key (Exit
code 0xc0000135
  )
          9 - test_keyboard_interactive_auth_fails_with_wrong_response
(Exit code 0xc0000135
  )
         10 - test_keyboard_interactive_auth_succeeds_with_correct_response
(Exit code 0xc0000135
  )
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: La commande "setlocal\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: "C:\Program Files\CMake\bin\ctest.exe"
--force-new-ctest-process -C Debug\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\buil
d\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: if %errorlevel% neq 0 goto :cmEnd\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: :cmEnd\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto
:cmDone\r [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxp
roj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: :cmErrorLevel\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: exit /b %1\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: :cmDone\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: if %errorlevel% neq 0 goto :VCEnd\r
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
error MSB3073: :VCEnd" s'est arrêtée avec le code 8.
[C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]



I've also compiled manually the lib openssl :

perl Configure VC-WIN32 --prefix=c:\tools\OpenSSL\vc-win32
--openssldir=c:\tools\OpenSSL\SSL no-asm

On Mon, Feb 18, 2019 at 11:30 AM Jan Ehrhardt <phpdev@ehrhardt.nl> wrote:
>
> Micka in gmane.network.ssh.libssh2.devel (Mon, 18 Feb 2019 11:10:06
> +0100):
> >Thanks looks like that with only the ROOT dir and with an absolute path works !
>
> Tricky thing: paths are relative to the directory with the
> CMakeLists.txt, so it is best to use absolute paths.
> --
> Jan
>
> _______________________________________________
> libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

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

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 25 09:53:47 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1P8r4Ka008096;
	Mon, 25 Feb 2019 09:53:36 +0100
Received: from mail-vk1-xa2c.google.com (mail-vk1-xa2c.google.com
 [IPv6:2607:f8b0:4864:20:0:0:0:a2c])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id x1P8r1QU007921
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 25 Feb 2019 09:53:02 +0100
Received: by mail-vk1-xa2c.google.com with SMTP id j195so1921198vkj.9
 for <libssh2-devel@cool.haxx.se>; Mon, 25 Feb 2019 00:53:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :content-transfer-encoding;
 bh=cOUeEXfNDTuJeABfpi9HRPlgVg5CCMeqhYRhbZmvv5s=;
 b=jgkNhgD2CrvHCcubp/BM/hICl3Ql3GZ2ZybMGgNriV9lqTvSsBrh2KxUWKtxO3//fJ
 GXCfGHqiM6Y6SGjQZRaldbl+YffRBNatwXjJoXbwm1d62VQd7XBSIPdxwPwSixTQi361
 UrKteaaUDXHNY4+By003u0vWJyDTA81rsXLz0fmqE/DJL/50Q3z3u9VVP1fI2Ncu8KDj
 WfwD+E++LXPsSTDqmTn/jk9FQl7CPyJuct6Hpb0rUnGJFZhE40dyRwKTZ0W8pkiUClIL
 IuR9+6cBuSn49J67Svb1KdXlV2vo0lf4beQkjYYQqYvudWcwSaG+T2i+Emt6/TKIfQrM
 3xYg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:content-transfer-encoding;
 bh=cOUeEXfNDTuJeABfpi9HRPlgVg5CCMeqhYRhbZmvv5s=;
 b=R9c6jjNgdZy87AzC/z4XYeH15FCXTKy3J1ykwwFKh5AUIAiBnbjUaeBa0pHl/yvEuh
 QwabUQeCf2nIvL677XXwbNtCo1GAkKsXcmTyWWRUfu5oo2k4Qg7IZer9TuijEBFDy5RA
 /YN+wyMc/btTDsz7EADkU7KbAgVZ+VYgXlK/lVcl8+Md7gW9tS7I4i4mU0di1+uX6/Y2
 8p1eDfM794OaymOt6qjAaLhVowl7SfCR+VdecC1mEUDZ9ywOUGdqiWPNI8znqScbt4XB
 +gfuRt4c99FwJp/M/IA+2U8dUkNm57n0SyLxBQFcIe7BbOrNiKnfi720hxjAbAE3R/9K
 g9QA==
X-Gm-Message-State: AHQUAuYODvjNj9Awbm766GDsKpGvLHmRE7uVoLvkdtP8xiVwm2tTrOfY
 hmzItQBIm1OGiVJf2KFSkS2Q1qBi8eVhecCU2Qv4sw==
X-Google-Smtp-Source: AHgI3IasogCb5zrKZiBFWyGq43/peT2PfMN/fpTUo5p2FwvCmMDFYNClLYrVo4BGz1kJX6C+GzYX1nefds5AVJFaC8Y=
X-Received: by 2002:a1f:2acb:: with SMTP id q194mr8578204vkq.92.1551084775796; 
 Mon, 25 Feb 2019 00:52:55 -0800 (PST)
MIME-Version: 1.0
References: <CAF+MRt=cdCXELiSPds7-KNSFmS+ieXk5g4dG1WXkB+t1_bCYCw@mail.gmail.com>
 <20190215141704.17009.qmail@stuge.se>
 <20190215141704.17009.qmail-Y+HMSxxDrH8@public.gmane.org>
 <CAF+MRtkUV5oN_H8HbtA-5pOvn-nz_c+q5CsqLszgG2zsx1W-3g@mail.gmail.com>
 <pmuk6e56nno4bu9ebrf5b3holb448je102@4ax.com>
 <pmuk6e56nno4bu9ebrf5b3holb448je102-e09XROE/p8c@public.gmane.org>
 <CAF+MRtmjmJb6S01b-FEQ65rEW9EHB+=KR22zdxV-49V5SmYZQQ@mail.gmail.com>
 <kv1l6edrijp5acsov6qcogm3v77nj5qve6@4ax.com>
 <CAF+MRtme+-obVnz-veUiU3ijiqYZ1nGVykbgrSSWpO9JHr4v0A@mail.gmail.com>
In-Reply-To: <CAF+MRtme+-obVnz-veUiU3ijiqYZ1nGVykbgrSSWpO9JHr4v0A@mail.gmail.com>
From: Micka <mickamusset@gmail.com>
Date: Mon, 25 Feb 2019 09:52:44 +0100
Message-ID: <CAF+MRtnBs2=jn6yuDDSfYMiyZwQQ7XgnPCxtAR3P0qjSZNC2SA@mail.gmail.com>
Subject: Re: build libssh2 with openssl
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 x1P8r1QU007921
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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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 x1P8r4Ka008096

is it possible to have someone to explain me what is wrong ? And how
can I fix this problem?

Micka,

On Tue, Feb 19, 2019 at 3:53 PM Micka <mickamusset@gmail.com> wrote:
>
> Thanks, now I'm trying to test the lib built with :
>
> libssh2-1.8.0\build>cmake --build . --target RUN_TESTS
>
> but all the test failed:
>
> 0% tests passed, 10 tests failed out of 10
>
>   Total Test time (real) =   1.15 sec
>
>   The following tests FAILED:
>   Errors while running CTest
>           1 - test_hostkey (Exit code 0xc0000135
>   )
>           2 - test_hostkey_hash (Exit code 0xc0000135
>   )
>           3 - test_password_auth_succeeds_with_correct_credentials
> (Exit code 0xc0000135
>   )
>           4 - test_password_auth_fails_with_wrong_password (Exit code 0xc0000135
>   )
>           5 - test_password_auth_fails_with_wrong_username (Exit code 0xc0000135
>   )
>           6 - test_public_key_auth_fails_with_wrong_key (Exit code 0xc0000135
>   )
>           7 - test_public_key_auth_succeeds_with_correct_rsa_key (Exit
> code 0xc0000135
>   )
>           8 - test_public_key_auth_succeeds_with_correct_dsa_key (Exit
> code 0xc0000135
>   )
>           9 - test_keyboard_interactive_auth_fails_with_wrong_response
> (Exit code 0xc0000135
>   )
>          10 - test_keyboard_interactive_auth_succeeds_with_correct_response
> (Exit code 0xc0000135
>   )
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: La commande "setlocal\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: "C:\Program Files\CMake\bin\ctest.exe"
> --force-new-ctest-process -C Debug\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\buil
> d\RUN_TESTS.vcxproj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: if %errorlevel% neq 0 goto :cmEnd\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: :cmEnd\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto
> :cmDone\r [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxp
> roj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: :cmErrorLevel\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: exit /b %1\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: :cmDone\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: if %errorlevel% neq 0 goto :VCEnd\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: :VCEnd" s'est arrêtée avec le code 8.
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxproj]
>
>
>
> I've also compiled manually the lib openssl :
>
> perl Configure VC-WIN32 --prefix=c:\tools\OpenSSL\vc-win32
> --openssldir=c:\tools\OpenSSL\SSL no-asm
>
> On Mon, Feb 18, 2019 at 11:30 AM Jan Ehrhardt <phpdev@ehrhardt.nl> wrote:
> >
> > Micka in gmane.network.ssh.libssh2.devel (Mon, 18 Feb 2019 11:10:06
> > +0100):
> > >Thanks looks like that with only the ROOT dir and with an absolute path works !
> >
> > Tricky thing: paths are relative to the directory with the
> > CMakeLists.txt, so it is best to use absolute paths.
> > --
> > Jan
> >
> > _______________________________________________
> > libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

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

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 25 13:36:56 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1PCaCED020194;
	Mon, 25 Feb 2019 13:36:39 +0100
Received: from david.siemens.de (david.siemens.de [192.35.17.14])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id x1PCa9iY020183
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 25 Feb 2019 13:36:10 +0100
Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66])
 by david.siemens.de (8.15.2/8.15.2) with ESMTPS id x1PCa9uq009047
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK)
 for <libssh2-devel@cool.haxx.se>; Mon, 25 Feb 2019 13:36:09 +0100
Received: from DEFTHW99ERMMSX.ww902.siemens.net
 (defthw99ermmsx.ww902.siemens.net [139.22.70.142])
 by mail2.sbs.de (8.15.2/8.15.2) with ESMTPS id x1PCa5Eb026941
 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK)
 for <libssh2-devel@cool.haxx.se>; Mon, 25 Feb 2019 13:36:09 +0100
Received: from DENBGAT9EL4MSX.ww902.siemens.net ([169.254.11.24]) by
 DEFTHW99ERMMSX.ww902.siemens.net ([139.22.70.142]) with mapi id
 14.03.0435.000; Mon, 25 Feb 2019 13:35:32 +0100
From: "Belau, Rene" <belau.rene.ext@siemens.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: AW: build libssh2 with openssl
Thread-Topic: build libssh2 with openssl
Thread-Index: AQHUzOhTwaYXXDDcEEGlncsrx4Ys0qXwcOgA
Date: Mon, 25 Feb 2019 12:35:32 +0000
Message-ID: <16C23041BD880F48901C072C51AC6A2E03A603A1@DENBGAT9EL4MSX.ww902.siemens.net>
References: <CAF+MRt=cdCXELiSPds7-KNSFmS+ieXk5g4dG1WXkB+t1_bCYCw@mail.gmail.com>
 <20190215141704.17009.qmail@stuge.se>
 <20190215141704.17009.qmail-Y+HMSxxDrH8@public.gmane.org>
 <CAF+MRtkUV5oN_H8HbtA-5pOvn-nz_c+q5CsqLszgG2zsx1W-3g@mail.gmail.com>
 <pmuk6e56nno4bu9ebrf5b3holb448je102@4ax.com>
 <pmuk6e56nno4bu9ebrf5b3holb448je102-e09XROE/p8c@public.gmane.org>
 <CAF+MRtmjmJb6S01b-FEQ65rEW9EHB+=KR22zdxV-49V5SmYZQQ@mail.gmail.com>
 <kv1l6edrijp5acsov6qcogm3v77nj5qve6@4ax.com>
 <CAF+MRtme+-obVnz-veUiU3ijiqYZ1nGVykbgrSSWpO9JHr4v0A@mail.gmail.com>
 <CAF+MRtnBs2=jn6yuDDSfYMiyZwQQ7XgnPCxtAR3P0qjSZNC2SA@mail.gmail.com>
In-Reply-To: <CAF+MRtnBs2=jn6yuDDSfYMiyZwQQ7XgnPCxtAR3P0qjSZNC2SA@mail.gmail.com>
Accept-Language: en-US
Content-Language: de-DE
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-document-confidentiality: Restricted
x-originating-ip: [139.22.70.15]
MIME-Version: 1.0
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id x1PCa9iY020183
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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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 x1PCaCED020194

Hello Micka,

the exit code (Exit code 0xc0000135) tells you that a dll dependency could not be resolved. So, some of the test executables can not find a dll they need.
You can use the dependency walker at windows to see which dlls a program needs.

Link: http://www.dependencywalker.com/

Open the dependency walker and open the compiled "test.exe" within it. Then you should get a tree of all dependencies the test program needs.

From this point on check your build commands or look at CMakelist.txt file and search for "target_link_libraries", "link_directories".
If there is something missing. 


This is a general guide, hopefully it helps  a bit.

---

<Max Muster GmbH, Musterstraße 123, 88888 Musterort Geschäftsführer: Melanie Muster; Sitz: München; Registergericht München, HRB 111.111>
-----Ursprüngliche Nachricht-----
Von: libssh2-devel <libssh2-devel-bounces@cool.haxx.se> Im Auftrag von Micka
Gesendet: Montag, 25. Februar 2019 09:53
An: libssh2 development <libssh2-devel@cool.haxx.se>
Betreff: Re: build libssh2 with openssl

is it possible to have someone to explain me what is wrong ? And how can I fix this problem?

Micka,

On Tue, Feb 19, 2019 at 3:53 PM Micka <mickamusset@gmail.com> wrote:
>
> Thanks, now I'm trying to test the lib built with :
>
> libssh2-1.8.0\build>cmake --build . --target RUN_TESTS
>
> but all the test failed:
>
> 0% tests passed, 10 tests failed out of 10
>
>   Total Test time (real) =   1.15 sec
>
>   The following tests FAILED:
>   Errors while running CTest
>           1 - test_hostkey (Exit code 0xc0000135
>   )
>           2 - test_hostkey_hash (Exit code 0xc0000135
>   )
>           3 - test_password_auth_succeeds_with_correct_credentials
> (Exit code 0xc0000135
>   )
>           4 - test_password_auth_fails_with_wrong_password (Exit code 0xc0000135
>   )
>           5 - test_password_auth_fails_with_wrong_username (Exit code 0xc0000135
>   )
>           6 - test_public_key_auth_fails_with_wrong_key (Exit code 0xc0000135
>   )
>           7 - test_public_key_auth_succeeds_with_correct_rsa_key (Exit 
> code 0xc0000135
>   )
>           8 - test_public_key_auth_succeeds_with_correct_dsa_key (Exit 
> code 0xc0000135
>   )
>           9 - test_keyboard_interactive_auth_fails_with_wrong_response
> (Exit code 0xc0000135
>   )
>          10 - 
> test_keyboard_interactive_auth_succeeds_with_correct_response
> (Exit code 0xc0000135
>   )
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: La commande "setlocal\r 
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: "C:\Program Files\CMake\bin\ctest.exe"
> --force-new-ctest-process -C Debug\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\buil
> d\RUN_TESTS.vcxproj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: if %errorlevel% neq 0 goto :cmEnd\r 
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: :cmEnd\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto 
> :cmDone\r 
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxp
> roj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: :cmErrorLevel\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: exit /b %1\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: :cmDone\r
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: if %errorlevel% neq 0 goto :VCEnd\r 
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
> C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> error MSB3073: :VCEnd" s'est arrêtée avec le code 8.
> [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> oj]
>
>
>
> I've also compiled manually the lib openssl :
>
> perl Configure VC-WIN32 --prefix=c:\tools\OpenSSL\vc-win32
> --openssldir=c:\tools\OpenSSL\SSL no-asm
>
> On Mon, Feb 18, 2019 at 11:30 AM Jan Ehrhardt <phpdev@ehrhardt.nl> wrote:
> >
> > Micka in gmane.network.ssh.libssh2.devel (Mon, 18 Feb 2019 11:10:06
> > +0100):
> > >Thanks looks like that with only the ROOT dir and with an absolute path works !
> >
> > Tricky thing: paths are relative to the directory with the 
> > CMakeLists.txt, so it is best to use absolute paths.
> > --
> > Jan
> >
> > _______________________________________________
> > libssh2-devel 
> > https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

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

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

From libssh2-devel-bounces@cool.haxx.se  Mon Feb 25 14:53:24 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1PDqnFT015050;
	Mon, 25 Feb 2019 14:53:13 +0100
Received: from mail-ua1-x943.google.com (mail-ua1-x943.google.com
 [IPv6:2607:f8b0:4864:20:0:0:0:943])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id x1PDqksk015000
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 25 Feb 2019 14:52:47 +0100
Received: by mail-ua1-x943.google.com with SMTP id r21so1205569uan.11
 for <libssh2-devel@cool.haxx.se>; Mon, 25 Feb 2019 05:52:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :content-transfer-encoding;
 bh=PeSLxKW24KCl3JxwKnwXJOOsRR0j3sDmSjjFOoFsL1A=;
 b=D1MjF5c7AQBdV7gbzbIh/u51xSuwq1zEkxxv0Am3+q+F+CwO4g1toAA6Tpc9cyApm8
 jG4503jEVKR/BK7cwWhdgJK5Y2wUhAK9hV81mo7G+NIGuxObhX/m93v2L2bBmqx25AvS
 Gkp8jyfwIz7qWSlHGk1esa0E/vGx/2gMBuzW2NzbRbGn8YjY8Th0+G2uKwCwe41RmwFg
 HT/VXUUWU/BEAqupdXS8FKbTKkQZqiwRJmah/okTHHlXgAt4048+CZ/KmJvSXA/1772F
 ipOCr8zP+yMfsBN6CtoQveqP7Yeg6Ma34w4YBGsiQ24yhkZCdD7eEygZiTCLIU7lXP9O
 8Bqg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:content-transfer-encoding;
 bh=PeSLxKW24KCl3JxwKnwXJOOsRR0j3sDmSjjFOoFsL1A=;
 b=o5lx2UyBVBAEqXDG7LjQLbjf8X1SCHaFHSMVFIe2ApxF5/vXLH4rgk6RwFhUdTcAoG
 +J+V9jyMcx70TpvAFDOY2rv1+oYX/CMZSZXmoDiJ05GVgVKg0Hr4/7YLPiPXkWzhwkQg
 VlNM+4Wex04iDIN/GsB9H2SI/McsI9g6FYmpN2v+6C231fLwQzTcH42Qo66eKHFkTOb6
 mYglkkUWDGGVDb5qXKQatk6eW7/w/TEtSw9D+yeamYN9aeQqiCkvJnNLT3J9XEUy9FIf
 w/4zBgr5iWIGWKEvoIRzeiZqqPuhFSYSdmjyckZtg+EoHo12WW6LvZ2ZFUQuN1ifkbsn
 nQZg==
X-Gm-Message-State: AHQUAuYig4GpkZON+VP/zOaWvnEoOLJ78CYPhv9rG6/htNkORK2TZwU/
 m0lSYSdjLt6dKAuAhaiKDEf/Xodp0J1NE8f/0iwAfSbU
X-Google-Smtp-Source: AHgI3Ib/FQXVMxveQ3lK2lZMsZUFF6pZV5CydsFUgkEnB0eEmU+i3kGb+0df0dkLI+mAxCGrjDn45zzRj8aIwUtWEAI=
X-Received: by 2002:a67:8453:: with SMTP id g80mr9192861vsd.207.1551102760992; 
 Mon, 25 Feb 2019 05:52:40 -0800 (PST)
MIME-Version: 1.0
References: <CAF+MRt=cdCXELiSPds7-KNSFmS+ieXk5g4dG1WXkB+t1_bCYCw@mail.gmail.com>
 <20190215141704.17009.qmail@stuge.se>
 <20190215141704.17009.qmail-Y+HMSxxDrH8@public.gmane.org>
 <CAF+MRtkUV5oN_H8HbtA-5pOvn-nz_c+q5CsqLszgG2zsx1W-3g@mail.gmail.com>
 <pmuk6e56nno4bu9ebrf5b3holb448je102@4ax.com>
 <pmuk6e56nno4bu9ebrf5b3holb448je102-e09XROE/p8c@public.gmane.org>
 <CAF+MRtmjmJb6S01b-FEQ65rEW9EHB+=KR22zdxV-49V5SmYZQQ@mail.gmail.com>
 <kv1l6edrijp5acsov6qcogm3v77nj5qve6@4ax.com>
 <CAF+MRtme+-obVnz-veUiU3ijiqYZ1nGVykbgrSSWpO9JHr4v0A@mail.gmail.com>
 <CAF+MRtnBs2=jn6yuDDSfYMiyZwQQ7XgnPCxtAR3P0qjSZNC2SA@mail.gmail.com>
 <16C23041BD880F48901C072C51AC6A2E03A603A1@DENBGAT9EL4MSX.ww902.siemens.net>
In-Reply-To: <16C23041BD880F48901C072C51AC6A2E03A603A1@DENBGAT9EL4MSX.ww902.siemens.net>
From: Micka <mickamusset@gmail.com>
Date: Mon, 25 Feb 2019 14:52:29 +0100
Message-ID: <CAF+MRtm6S3TE4kG_U2tz+UwZK1+TS44=YDwDSvfC=hdctVStbw@mail.gmail.com>
Subject: Re: build libssh2 with openssl
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 x1PDqksk015000
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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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 x1PDqnFT015050

thanks,

UCRTBASED.DLL is missing . That why. ^^ .

Is it possible to run those tests in release ?

cmake --build ..\build --target RUN_TESTS


On Mon, Feb 25, 2019 at 1:38 PM Belau, Rene <belau.rene.ext@siemens.com> wrote:
>
> Hello Micka,
>
> the exit code (Exit code 0xc0000135) tells you that a dll dependency could not be resolved. So, some of the test executables can not find a dll they need.
> You can use the dependency walker at windows to see which dlls a program needs.
>
> Link: http://www.dependencywalker.com/
>
> Open the dependency walker and open the compiled "test.exe" within it. Then you should get a tree of all dependencies the test program needs.
>
> From this point on check your build commands or look at CMakelist.txt file and search for "target_link_libraries", "link_directories".
> If there is something missing.
>
>
> This is a general guide, hopefully it helps  a bit.
>
> ---
>
> <Max Muster GmbH, Musterstraße 123, 88888 Musterort Geschäftsführer: Melanie Muster; Sitz: München; Registergericht München, HRB 111.111>
> -----Ursprüngliche Nachricht-----
> Von: libssh2-devel <libssh2-devel-bounces@cool.haxx.se> Im Auftrag von Micka
> Gesendet: Montag, 25. Februar 2019 09:53
> An: libssh2 development <libssh2-devel@cool.haxx.se>
> Betreff: Re: build libssh2 with openssl
>
> is it possible to have someone to explain me what is wrong ? And how can I fix this problem?
>
> Micka,
>
> On Tue, Feb 19, 2019 at 3:53 PM Micka <mickamusset@gmail.com> wrote:
> >
> > Thanks, now I'm trying to test the lib built with :
> >
> > libssh2-1.8.0\build>cmake --build . --target RUN_TESTS
> >
> > but all the test failed:
> >
> > 0% tests passed, 10 tests failed out of 10
> >
> >   Total Test time (real) =   1.15 sec
> >
> >   The following tests FAILED:
> >   Errors while running CTest
> >           1 - test_hostkey (Exit code 0xc0000135
> >   )
> >           2 - test_hostkey_hash (Exit code 0xc0000135
> >   )
> >           3 - test_password_auth_succeeds_with_correct_credentials
> > (Exit code 0xc0000135
> >   )
> >           4 - test_password_auth_fails_with_wrong_password (Exit code 0xc0000135
> >   )
> >           5 - test_password_auth_fails_with_wrong_username (Exit code 0xc0000135
> >   )
> >           6 - test_public_key_auth_fails_with_wrong_key (Exit code 0xc0000135
> >   )
> >           7 - test_public_key_auth_succeeds_with_correct_rsa_key (Exit
> > code 0xc0000135
> >   )
> >           8 - test_public_key_auth_succeeds_with_correct_dsa_key (Exit
> > code 0xc0000135
> >   )
> >           9 - test_keyboard_interactive_auth_fails_with_wrong_response
> > (Exit code 0xc0000135
> >   )
> >          10 -
> > test_keyboard_interactive_auth_succeeds_with_correct_response
> > (Exit code 0xc0000135
> >   )
> > C:\Program Files
> > (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> > error MSB3073: La commande "setlocal\r
> > [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> > oj]
> > C:\Program Files
> > (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> > error MSB3073: "C:\Program Files\CMake\bin\ctest.exe"
> > --force-new-ctest-process -C Debug\r
> > [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\buil
> > d\RUN_TESTS.vcxproj]
> > C:\Program Files
> > (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> > error MSB3073: if %errorlevel% neq 0 goto :cmEnd\r
> > [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> > oj]
> > C:\Program Files
> > (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> > error MSB3073: :cmEnd\r
> > [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> > oj]
> > C:\Program Files
> > (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> > error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto
> > :cmDone\r
> > [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxp
> > roj]
> > C:\Program Files
> > (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> > error MSB3073: :cmErrorLevel\r
> > [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> > oj]
> > C:\Program Files
> > (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> > error MSB3073: exit /b %1\r
> > [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> > oj]
> > C:\Program Files
> > (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> > error MSB3073: :cmDone\r
> > [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> > oj]
> > C:\Program Files
> > (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> > error MSB3073: if %errorlevel% neq 0 goto :VCEnd\r
> > [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> > oj]
> > C:\Program Files
> > (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5):
> > error MSB3073: :VCEnd" s'est arrêtée avec le code 8.
> > [C:\Toto\trunk\Vendors\SSH2\source\libssh2-1.8.0\build\RUN_TESTS.vcxpr
> > oj]
> >
> >
> >
> > I've also compiled manually the lib openssl :
> >
> > perl Configure VC-WIN32 --prefix=c:\tools\OpenSSL\vc-win32
> > --openssldir=c:\tools\OpenSSL\SSL no-asm
> >
> > On Mon, Feb 18, 2019 at 11:30 AM Jan Ehrhardt <phpdev@ehrhardt.nl> wrote:
> > >
> > > Micka in gmane.network.ssh.libssh2.devel (Mon, 18 Feb 2019 11:10:06
> > > +0100):
> > > >Thanks looks like that with only the ROOT dir and with an absolute path works !
> > >
> > > Tricky thing: paths are relative to the directory with the
> > > CMakeLists.txt, so it is best to use absolute paths.
> > > --
> > > Jan
> > >
> > > _______________________________________________
> > > libssh2-devel
> > > https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>
> _______________________________________________
> libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>
> _______________________________________________
> libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

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

From libssh2-devel-bounces@cool.haxx.se  Wed Feb 27 17:04:30 2019
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1RG2nfn030226;
	Wed, 27 Feb 2019 17:04:19 +0100
Received: from us-smtp-delivery-120.mimecast.com
 (us-smtp-delivery-120.mimecast.com [216.205.24.120])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id x1RG2mrK030210
 for <libssh2-devel@cool.haxx.se>; Wed, 27 Feb 2019 17:02:48 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=parallelwireless.com;
 s=mimecast20180910; t=1551283367;
 h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version:
 content-type:content-type:content-transfer-encoding:in-reply-to: references;
 bh=NjI9UMnUThNXG2267Ij1igbK5y++q3FarmzJVarE9uI=;
 b=Iyj/8Xuf99/aPoBhHv3mt/kk1nXSSUkA8QF+DlldmC/eMGZ9bwYDBxXaJMdK32G4QTBul33xy1xPIhFZLVcwtZQRr0NkkOw8hTKkzoL2vlXHPXuoA4xamRLctgFxgOp+GjZJp0emRH4k0NkbJ4Q4Ip6FpSjU0rdeVY3P/aJGEbo=
Received: from NAM05-BY2-obe.outbound.protection.outlook.com
 (mail-by2nam05lp2051.outbound.protection.outlook.com [104.47.50.51]) (Using
 TLS) by relay.mimecast.com with ESMTP id
 us-mta-317-jSKGJfFAPrOfx1FQHz0Gaw-1; Wed, 27 Feb 2019 11:02:44 -0500
Received: from BN6PR19MB1618.namprd19.prod.outlook.com (10.175.196.17) by
 BN6PR19MB1601.namprd19.prod.outlook.com (10.175.196.23) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.1643.15; Wed, 27 Feb 2019 16:02:43 +0000
Received: from BN6PR19MB1618.namprd19.prod.outlook.com
 ([fe80::88be:8931:b025:191e]) by BN6PR19MB1618.namprd19.prod.outlook.com
 ([fe80::88be:8931:b025:191e%3]) with mapi id 15.20.1643.019; Wed, 27 Feb 2019
 16:02:43 +0000
From: Ketul Barot <kbarot@parallelwireless.com>
To: "libssh2-devel@cool.haxx.se" <libssh2-devel@cool.haxx.se>
Subject: SFTP transfer hangs when the server connection has high latency RTT
 around 500 ms and 30% packet loss
Thread-Topic: SFTP transfer hangs when the server connection has high latency
 RTT around 500 ms and 30% packet loss
Thread-Index: AdTOtCR+m904STAdRqW0hTOZclIHNg==
Date: Wed, 27 Feb 2019 16:02:42 +0000
Message-ID: <BN6PR19MB1618E6BE65DEC76799F032CBBF740@BN6PR19MB1618.namprd19.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [64.223.221.66]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 165e1af0-991f-4bcd-2427-08d69ccd01ba
x-microsoft-antispam: BCL:0; PCL:0;
 RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020);
 SRVR:BN6PR19MB1601; 
x-ms-traffictypediagnostic: BN6PR19MB1601:
x-ms-exchange-purlcount: 1
x-microsoft-exchange-diagnostics: =?us-ascii?Q?1; BN6PR19MB1601;
 23:ghCmrcw6xRa9EZ56yWwa17MkCsrA1p8zi/b+nb5A4?=
 =?us-ascii?Q?/h/q8nAcRCpytqkrCoYRyVkz4b2X/dceF6YXbEZtPlff16r1H6oBGNt1cyBp?=
 =?us-ascii?Q?CTT/yMBsaQE7EQzeazX4Kd/mhy1fjANVL4T2R4HIbSaoQxllQGVsBwza0tom?=
 =?us-ascii?Q?ZsFtMUiym1H5HSL3KkXM/eEc0WAZYqPC7GzoJ0E0AFq3i+eTN+LOpSqpTmsE?=
 =?us-ascii?Q?fj8Ws1ueP1kjm0J1wBjjWy8nskGgxtpWvqyORgNZfvoFPMQiQBRyIdz7eMH3?=
 =?us-ascii?Q?3KpGZyqrvQy6Y3X7afjYcH/qO8e4BCN6L4Ud27yTwck4ua0UrKfNS68ims5H?=
 =?us-ascii?Q?0k41OB9YHxsE9vvDSNZ0akZBE9XYrXNSvHFlQLubiW5uSxdz9ClVrs4kM3Me?=
 =?us-ascii?Q?JzBwyFbBWOergYneN42Gym9/bnTMkNKmJVNeMqP0q3uYRMWIk6gvYOaxQz/S?=
 =?us-ascii?Q?6yFNV6jQQprlT/8foafbTY7C6Xhf8VuHIXWhiZ5gu/P93MnpZc1fgMGwN0ty?=
 =?us-ascii?Q?bb8W9Huez+dd0VaCsxzGujWFuuRaSgWggSEbslO0wfXB1RaI5dZyfwRYNE48?=
 =?us-ascii?Q?k0oSNBsTRR4yFHr4xQEJcQRWcMq4aycnHe/jacc0joiPpUH2LdvlzlF3Ay7z?=
 =?us-ascii?Q?zLIcFVoDyvBO1Kgt5Gep3wOFu1v1cIkj6BJh407xPIsbEbJiOdqJyu4WEz9A?=
 =?us-ascii?Q?k6GAf+UkZP2UuIbAKY3cjWEkyFfIUnPZUUkDu8vY1xN+OlK9wXnZBSyf9bwW?=
 =?us-ascii?Q?tQlvU+xcLg11UKbDFBfQzODgVc7zyU4ANiOpIF7y40f9JAEyQp8FVkbjTeJJ?=
 =?us-ascii?Q?43FPoENtEB1eagog1PWomvDBRv9x40GovvfZx1+vMKOxo1XlOxYdtmF9741l?=
 =?us-ascii?Q?CUM2D1O37rick/HyD4qn9xXpqTM+wqE58cOU+hpsYJdCRl/14M4ECzyQ0xYu?=
 =?us-ascii?Q?O5SCGFGO3afOTc2/5a76oBZxt6h7kidb3CqXcm6sN399Zp7ZWAYNxofrT9WA?=
 =?us-ascii?Q?HrkPw9CbSnHBRD/MfJUvAAwMjxSpKDlTBM075QPZvu7h078Pjux4X2rCqiwP?=
 =?us-ascii?Q?7RofDd8L9+85evcANi8P8gLyl2LyEYv0aRP86TIBekFsdVXtANZrPftbZaPo?=
 =?us-ascii?Q?YmHn5W3DNG2pDm36t2BfKxxukbowV/ZSJIOn6woR+XHCJKKyjnVCs/ZP23Us?=
 =?us-ascii?Q?x2yysV16WsrvqeVu5znAfyVXNt7huNWUyQuv2ZqGSU5KpGjyfI7YLw+lj8cI?=
 =?us-ascii?Q?GAXqvjSVD8q/Zgg/ek=3D?=
x-microsoft-antispam-prvs: <BN6PR19MB160159064BD28630F48888F9BF740@BN6PR19MB1601.namprd19.prod.outlook.com>
x-forefront-prvs: 0961DF5286
x-forefront-antispam-report: SFV:NSPM;
 SFS:(10009020)(366004)(39840400004)(346002)(136003)(376002)(396003)(199004)(189003)(5640700003)(6436002)(53936002)(6306002)(54896002)(6916009)(71190400001)(71200400001)(55016002)(2906002)(66066001)(26005)(68736007)(7736002)(99286004)(86362001)(256004)(25786009)(6506007)(102836004)(316002)(2501003)(236005)(9686003)(606006)(8936002)(14454004)(186003)(81166006)(81156014)(476003)(478600001)(52536013)(21615005)(790700001)(486006)(3846002)(2351001)(5660300002)(106356001)(97736004)(9326002)(105586002)(8676002)(74316002)(6116002)(33656002)(7696005);
 DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR19MB1601;
 H:BN6PR19MB1618.namprd19.prod.outlook.com; FPR:; SPF:None; LANG:en;
 PTR:InfoNoRecords; A:1; MX:1; 
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: L5C8M3w6cwPNW1Xa7V+RsEq5k5Bq/CUBPFoxZla4J1uElfoRpqtWynxgpSqp0SCbbYjs3nzaNs0J+fmuLGlI9DgB1uK/QR+G+mO8rCHyLFCirQjUy8hrBYVXvzSCAix8RrG/+YKJqD6C7FpRJTL0A+LfDrriOtk1lkDTYj2dK1KAOB6fcF7Z9VVhZnmZYEOxRPz3+XnG/J7Qeqq+IZSjFDdjvT60wjk7uohflgxWqDUON8rsG9vbpvH+5eYNmxxAbwVwaQBJ2AP3Cfo8pcCFQr2biSe0ZdLMwvK86Q+tmvlwRJZM4I62RKPrt2qr3XYY1NttQCEkrMYIDjdVCH0RuLbniSMx1YuYfPxvHN+9JQ7WSE0go0Lqg4sY4/Pp3qv2pEIdiWoPmz69BYxBW9K3yu9WbslPqA84n83XjqPOgao=
MIME-Version: 1.0
X-OriginatorOrg: parallelwireless.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 165e1af0-991f-4bcd-2427-08d69ccd01ba
X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Feb 2019 16:02:42.9307 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 991bd471-bf03-47c4-af97-0c3362264c70
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR19MB1601
X-MC-Unique: jSKGJfFAPrOfx1FQHz0Gaw-1
X-Mimecast-Spam-Score: 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: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://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="===============1313327177=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============1313327177==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_BN6PR19MB1618E6BE65DEC76799F032CBBF740BN6PR19MB1618namp_"

--_000_BN6PR19MB1618E6BE65DEC76799F032CBBF740BN6PR19MB1618namp_
Content-Type: text/plain; charset=WINDOWS-1252
Content-Transfer-Encoding: quoted-printable

Hello,

libssh2version: 1.7.0
Operating system: Linux (OpenWRT)

I am facing a hang when trying to upload a file using sftp protocol. The co=
nnection between my device and the server has high latency of 500ms and a p=
acket drop rate of 30% which is manually introduced. I am using libcurl for=
 doing the sftp transfer. In the code I have also implemented a libcurl pro=
gress function to provide a timeout so that when the timeout is reached I c=
an abort the transfer if the upload is stuck. Most of the times this works =
fine and curl cleans everything perfectly.

After the abort callback I start the cleanup process as follows:
curl_multi_remove_handle
curl_easy_cleanup
curl_multi_cleanup (If this was the last easy handle)

With the same setup, occasionally the transfer gets hung at curl_multi_remo=
ve_handle. Up on examining this with the libcurl team (more on this can be =
found here<https://curl.haxx.se/mail/lib-2019-02/0065.html>). We found that=
 the issue is with libssh2 as in when libssh2_session_disconnect is called =
by libcurl. It just returns error EAGAIN again and again and just gets stuc=
k here.

To eliminate if libssh2 is the real reason for the hang. I used sftp_write_=
nonblock.c as an example from the libssh2 examples and used that to upload =
a file in my setup and here to I am seeing the same behavior that the sftp_=
write_nonblock application get's hung.

Would greatly appreciate if some one can look in to this. Also, I can provi=
de any extra debug information that would help to resolve this issue.

Thanks,
Ketul

--_000_BN6PR19MB1618E6BE65DEC76799F032CBBF740BN6PR19MB1618namp_
Content-Type: text/html; charset=WINDOWS-1252
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
=09{font-family:"Cambria Math";
=09panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
=09{font-family:Calibri;
=09panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
=09{margin:0in;
=09margin-bottom:.0001pt;
=09font-size:11.0pt;
=09font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
=09{mso-style-priority:99;
=09color:#0563C1;
=09text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
=09{mso-style-priority:99;
=09color:#954F72;
=09text-decoration:underline;}
span.EmailStyle17
=09{mso-style-type:personal-compose;
=09font-family:"Calibri",sans-serif;}
.MsoChpDefault
=09{mso-style-type:export-only;}
@page WordSection1
=09{size:8.5in 11.0in;
=09margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
=09{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hello, <o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">libssh2version: 1.7.0<o:p></o:p></p>
<p class=3D"MsoNormal">Operating system: Linux (OpenWRT) <o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">I am facing a hang when trying to upload a file usin=
g sftp protocol. The connection between my device and the server has high l=
atency of 500ms and a packet drop rate of 30% which is manually introduced.=
 I am using libcurl for doing the
 sftp transfer. In the code I have also implemented a libcurl progress func=
tion to provide a timeout so that when the timeout is reached I can abort t=
he transfer if the upload is stuck. Most of the times this works fine and c=
url cleans everything perfectly.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">After the abort callback I start the cleanup process=
 as follows:
<o:p></o:p></p>
<p class=3D"MsoNormal">curl_multi_remove_handle <o:p></o:p></p>
<p class=3D"MsoNormal">curl_easy_cleanup <o:p></o:p></p>
<p class=3D"MsoNormal">curl_multi_cleanup (If this was the last easy handle=
) <o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">With the same setup, occasionally the transfer gets =
hung at curl_multi_remove_handle. Up on examining this with the libcurl tea=
m (more on this can be found
<a href=3D"https://curl.haxx.se/mail/lib-2019-02/0065.html">here</a>). We f=
ound that the issue is with libssh2 as in when libssh2_session_disconnect i=
s called by libcurl. It just returns error EAGAIN again and again and just =
gets stuck here.
<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">To eliminate if libssh2 is the real reason for the h=
ang. I used sftp_write_nonblock.c as an example from the libssh2 examples a=
nd used that to upload a file in my setup and here to I am seeing the same =
behavior that the sftp_write_nonblock
 application get&#8217;s hung. <o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Would greatly appreciate if some one can look in to =
this. Also, I can provide any extra debug information that would help to re=
solve this issue.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
<p class=3D"MsoNormal">Thanks,<o:p></o:p></p>
<p class=3D"MsoNormal">Ketul<o:p></o:p></p>
</div>
</body>
</html>

--_000_BN6PR19MB1618E6BE65DEC76799F032CBBF740BN6PR19MB1618namp_--


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

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwczovL2Nvb2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbGlic3No
Mi1kZXZlbAo=

--===============1313327177==--

