From libssh2-devel-bounces@cool.haxx.se Fri May 1 17:52:26 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t41Fps0F025319; Fri, 1 May 2015 17:52:21 +0200 Received: from exchange.globalscape.com (exchange.globalscape.com [208.89.186.61]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t41FppIb025224 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 1 May 2015 17:51:52 +0200 From: Jeremy Zapata To: "libssh2-devel@cool.haxx.se" Subject: Setting MAC option Thread-Topic: Setting MAC option Thread-Index: AdCEJnozGjuZHX/QTGuWiuRA21Fj5w== Date: Fri, 1 May 2015 15:51:46 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [172.31.0.119] MIME-Version: 1.0 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 Precedence: list List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: libssh2 development Content-Type: multipart/mixed; boundary="===============0273448551==" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" --===============0273448551== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_d52562967b3d436a96919318ac58c00fGSExchange2forestintran_" --_000_d52562967b3d436a96919318ac58c00fGSExchange2forestintran_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am using libssh2 compiled with OpenSSL and libcurl (OpenSSL v1.0.2 and li= bssh2 v1.4.3, libcurl 7.22.0) and I use it to test uploading/downloading fi= les over sftp. I have limited experience with ssh and sftp but on Linux there are addition= al options that can be specified with the sftp command such as the MAC (Mes= sage Authentication Code) like this: sftp -oCiphers=3D3des-cbc -oMACs=3Dhmac-md5 myuser@myhost Is anyone familiar with the MAC option and how it can be set for libssh2 (h= opefully there is a way through libcurl)? It was hard to find a whole lot of information on the MAC option, but this = is something I found: http://www.computerhope.com/unix/sftp.htm. Thanks! Jeremy Zapata | Software Engineer in Test globalscape | +1 = (210) 308-8267 ext 5176 | NYSE MKT:GSB *This communication, including attachments, is for the exclusive use of the= addressee and may contain proprietary, confidential or privileged informat= ion. If you are not the intended recipient, any use, copying, disclosure, d= issemination or distribution is strictly prohibited. If you are not the int= ended recipient, please notify the sender immediately by return email and d= elete this communication and destroy all copies. --_000_d52562967b3d436a96919318ac58c00fGSExchange2forestintran_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am using libssh2 compiled with OpenSSL and l= ibcurl (OpenSSL v1.0.2 and libssh2 v1.4.3, libcurl 7.22.0) and I use it to = test uploading/downloading files over sftp.

I have limited experience with ssh and sftp bu= t on Linux there are additional options that can be specified with the sftp= command such as the MAC (Message Authentication Code) like this:

sftp -oCiphers=3D3des-cbc -oMACs=3Dhmac-md5 my= user@myhost

 

Is anyone familiar with the MAC option and how= it can be set for libssh2 (hopefully there is a way through libcurl)?=

 

It was hard to find a whole lot of information= on the MAC option, but this is something I found: http://www.computerho= pe.com/unix/sftp.htm.

 

Thanks!

 

Jeremy Zapata | Software Engineer in= Test
= global= scape= | +1 (210) 308-8267 ext 5176 | NYSE MKT:GSB =

*This communication,= including attachments, is for the exclusive use of the addressee and may c= ontain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disc= losure, dissemination or distribution is strictly prohibited. If you are no= t the intended recipient, please notify the sender immediately by return em= ail and delete this communication and destroy all copies.

 

 

--_000_d52562967b3d436a96919318ac58c00fGSExchange2forestintran_-- --===============0273448551== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy LWRldmVsCg== --===============0273448551==-- From libssh2-devel-bounces@cool.haxx.se Fri May 1 20:35:49 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t41IZQYY015833; Fri, 1 May 2015 20:35:47 +0200 Received: from foo.stuge.se (qmailr@foo.stuge.se [212.116.89.98]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t41IZNqZ015776 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 1 May 2015 20:35:24 +0200 Received: (qmail 19255 invoked by uid 501); 1 May 2015 18:35:24 -0000 Message-ID: <20150501183524.19254.qmail@stuge.se> Date: Fri, 1 May 2015 20:35:24 +0200 From: Peter Stuge To: libssh2-devel@cool.haxx.se Subject: Re: Setting MAC option Mail-Followup-To: libssh2-devel@cool.haxx.se References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 Precedence: list List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t41IZQYY015833 Jeremy Zapata wrote: > Is anyone familiar with the MAC option and how it can be set for > libssh2 (hopefully there is a way through libcurl)? Build libssh2 with the MACs you want it to use. It negotiates with the server using the algorithms it was built with. > It was hard to find a whole lot of information on the MAC option What option? libssh2 is a programming library. It does not have options. //Peter _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Mon May 4 14:57:17 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t44Cupfx023941; Mon, 4 May 2015 14:57:11 +0200 Received: from exchange.globalscape.com (exchange.globalscape.com [208.89.186.61]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t44CumMG023887 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 4 May 2015 14:56:49 +0200 From: Jeremy Zapata To: libssh2 development Subject: RE: Setting MAC option Thread-Topic: Setting MAC option Thread-Index: AdCEJnozGjuZHX/QTGuWiuRA21Fj5wAQQS8AAIAV/zA= Date: Mon, 4 May 2015 12:56:42 +0000 Message-ID: References: <20150501183524.19254.qmail@stuge.se> In-Reply-To: <20150501183524.19254.qmail@stuge.se> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.168.253.149] MIME-Version: 1.0 X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id t44CumMG023887 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 Precedence: list List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t44Cupfx023941 I understand how a programming library works. By "option" I simply meant is there a way to force libssh2 to only one (or a subset) of the MACs it was compiled to support? I am using the library to do some specific compliance testing. With the sftp command on Linux I can pass the -oMACs parameter to do this and I am wanting to do the same thing. Thanks. Jeremy Zapata | Software Engineer in Test globalscape | +1 (210) 308-8267 ext 5176 | NYSE MKT:GSB *This communication, including attachments, is for the exclusive use of the addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies.   -----Original Message----- From: libssh2-devel [mailto:libssh2-devel-bounces@cool.haxx.se] On Behalf Of Peter Stuge Sent: Friday, May 01, 2015 1:35 PM To: libssh2-devel@cool.haxx.se Subject: Re: Setting MAC option Jeremy Zapata wrote: > Is anyone familiar with the MAC option and how it can be set for > libssh2 (hopefully there is a way through libcurl)? Build libssh2 with the MACs you want it to use. It negotiates with the server using the algorithms it was built with. > It was hard to find a whole lot of information on the MAC option What option? libssh2 is a programming library. It does not have options. //Peter _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Mon May 4 15:58:39 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t44DwOSU011944; Mon, 4 May 2015 15:58:37 +0200 Received: from foo.stuge.se (qmailr@foo.stuge.se [212.116.89.98]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t44DwNpp011931 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 4 May 2015 15:58:23 +0200 Received: (qmail 4308 invoked by uid 501); 4 May 2015 13:58:23 -0000 Message-ID: <20150504135823.4307.qmail@stuge.se> Date: Mon, 4 May 2015 15:58:23 +0200 From: Peter Stuge To: libssh2-devel@cool.haxx.se Subject: Re: Setting MAC option Mail-Followup-To: libssh2-devel@cool.haxx.se References: <20150501183524.19254.qmail@stuge.se> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 Precedence: list List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t44DwOSU011944 Jeremy Zapata wrote: > I understand how a programming library works. By "option" I simply > meant is there a way to force libssh2 to only one (or a subset) of > the MACs it was compiled to support? No. > I am using the library to do some specific compliance testing. If you can't rebuild the library then you'll have to reconfigure the server side. //Peter _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Wed May 13 16:52:37 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4DEq8QV003859; Wed, 13 May 2015 16:52:33 +0200 Received: from mail-ob0-x231.google.com (mail-ob0-x231.google.com [IPv6:2607:f8b0:4003:c01::231]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4DEq62p003653 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 13 May 2015 16:52:06 +0200 Received: by obbkp3 with SMTP id kp3so31393752obb.3 for ; Wed, 13 May 2015 07:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=OboAWcJFGcBuU2fxgxnDCofVmSkXE6mcO+X/Osi1mJo=; b=Mx85UKVHknp+9ZIMC/lB0p7lauh3iqXx4MKPod0rUeCau0Unjm5HyUev/9A/mEeoH9 Utbg/VS4GlYHtFO+/E+JTcKDGNetmw43poDZ9NSMskglZeCdZt251MXuKUGWGdfXVd99 VY/xY+SZ/sEwxh5ZS803OQOC+4l8J6zyRQLnDF2GHZNu5wMVumrD1oWeLRjrSqd13AZ+ 14l9DFg9yuekt98aZfQyi8UEiQUXaEhJdLqRWNcyDkm4xmSwktGs99rBj0NV9P98N1Nv ll4RYsPk82h1QgV2CgaINIn9mKd1Et3UYvzO8uSbcvtnmCQAHl+W/V6OMal0qwoLQlGy 17XQ== MIME-Version: 1.0 X-Received: by 10.202.4.133 with SMTP id 127mr9004330oie.11.1431528721073; Wed, 13 May 2015 07:52:01 -0700 (PDT) Received: by 10.202.241.10 with HTTP; Wed, 13 May 2015 07:52:01 -0700 (PDT) Date: Wed, 13 May 2015 15:52:01 +0100 Message-ID: Subject: ssh agent forwarding ? From: Jason Vas Dias To: libssh2-devel@cool.haxx.se X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 Precedence: list List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4DEq8QV003859 Good day - I was wondering whether libssh2 can or will support forwarding of the SSH agent connection to a remote host, so that if I do 'ssh-add -l' on the remote host over a libssh2 connection it will display the list of my local identities which are then available to use for further ssh connections from that remote host . Googling turned up this thread from @ 2012-03 : '[PATCH] Request SSH agent forwarding' from Mitchell Hashimoto but this patch does not seem to have been integrated into the latest libssh2-1.5.0 release I am using . Are there any plans to implement or any current implementation of agent forwarding for libssh2 in any GIT branch ? If not I'll have to use libssh, which appears to support agent forwarding, but I'd rather not have to. Thanks & Regards, Jason _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Thu May 21 17:27:52 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4LFRQ5M018445; Thu, 21 May 2015 17:27:46 +0200 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4LFRPMB018439 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 21 May 2015 17:27:25 +0200 Received: (qmail 19853 invoked from network); 21 May 2015 15:31:59 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 21 May 2015 15:31:59 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Thu, 21 May 2015 15:31:59 -0000 X-URL: https://trac.libssh2.org/ Subject: [libssh2] #303: CMake build system can't be used as a subproject X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/303 Message-ID: <048.fd0848c4cfc66a39888a9730dd6772f8@libssh2.stuge.se> X-Trac-Ticket-ID: 303 X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4LFRPMB018439 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: trac@libssh2.stuge.se, libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4LFRQ5M018445 #303: CMake build system can't be used as a subproject -------------------------+-------------------- Reporter: JasonHaslam | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: misc | Version: 1.5.0 Keywords: | Blocked By: Blocks: | -------------------------+-------------------- I'm trying to incorporate the new libssh2 cmake build into my own cmake build system with the add_subdirectory command. It mostly works except for a few places in src/CMakeLists.txt that use CMAKE_SOURCE_DIR. That variable points to the top-level project source dir. I'd recommend changing them to PROJECT_SOURCE_DIR or libssh2_SOURCE_DIR. When I make that change everything works fine for my use case. -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Thu May 21 17:28:58 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4LFSuli026210; Thu, 21 May 2015 17:28:57 +0200 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4LFStXd026197 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 21 May 2015 17:28:55 +0200 Received: (qmail 20197 invoked from network); 21 May 2015 15:33:28 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 21 May 2015 15:33:28 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Thu, 21 May 2015 15:33:28 -0000 X-URL: https://trac.libssh2.org/ Subject: [libssh2] #304: Improperly linking to system libssl & libcrypto when staged one is desired X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/304 Message-ID: <050.75eef6d2f2814e15ece35657cbbc099c@libssh2.stuge.se> X-Trac-Ticket-ID: 304 X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4LFStXd026197 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: trac@libssh2.stuge.se, libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4LFSuli026210 #304: Improperly linking to system libssl & libcrypto when staged one is desired ---------------------------+-------------------- Reporter: kotoroshinoto | Owner: Type: defect | Status: new Priority: normal | Milestone: 1.5.0 Component: crypto | Version: 1.5.0 Keywords: | Blocked By: Blocks: | ---------------------------+-------------------- no matter what I do, it ends up linking to the system files: libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007f83a6248000) libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x00007f83a5e68000) it should be linking to the ones in ls /UCHC/HPC/Gooch/biotoolmodules/openssl/1.0.2a/lib/ engines libcrypto.a libcrypto.so libcrypto.so.1.0.0 libssl.a libssl.so libssl.so.1.0.0 pkgconfig what do I need to tell the configure script to accomplish this? -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Thu May 21 17:37:20 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4LFbGZJ016539; Thu, 21 May 2015 17:37:19 +0200 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4LFbEQe016532 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 21 May 2015 17:37:14 +0200 Received: (qmail 22661 invoked from network); 21 May 2015 15:41:48 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 21 May 2015 15:41:48 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Thu, 21 May 2015 15:41:48 -0000 X-URL: https://trac.libssh2.org/ Subject: Re: [libssh2] #303: CMake build system can't be used as a subproject X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/303#comment:1 Message-ID: <063.4d99070c7ce4f7097cedd3c59528b363@libssh2.stuge.se> References: <048.fd0848c4cfc66a39888a9730dd6772f8@libssh2.stuge.se> X-Trac-Ticket-ID: 303 In-Reply-To: <048.fd0848c4cfc66a39888a9730dd6772f8@libssh2.stuge.se> X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4LFbEQe016532 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: trac@libssh2.stuge.se, libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4LFbGZJ016539 #303: CMake build system can't be used as a subproject --------------------------+------------------- Reporter: JasonHaslam | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: misc | Version: 1.5.0 Resolution: | Keywords: Blocked By: | Blocks: --------------------------+------------------- Comment (by alamaison): Incorporating a project dependency by adding it as a subdirectory is a hack. A commonly-used hack, admittedly, but still not a great idea. CMake provides better mechanisms such as ExternalProject with a superproject build. Or you can use one of the package-managers available for CMake (I love [https://github.com/ruslo/hunter Hunter]). If you provide a patch that does what you're after, without making the CMake files more complex, I see no problem with applying it. But I can't promise a future change won't break it. -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Thu May 21 19:31:35 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4LHVMuY029715; Thu, 21 May 2015 19:31:32 +0200 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4LHVKbF029652 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 21 May 2015 19:31:20 +0200 Received: (qmail 17496 invoked from network); 21 May 2015 17:35:54 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 21 May 2015 17:35:54 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Thu, 21 May 2015 17:35:54 -0000 X-URL: https://trac.libssh2.org/ Subject: Re: [libssh2] #303: CMake build system can't be used as a subproject X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/303#comment:2 Message-ID: <063.b510b09a2fae6645ffe3171071e67aa6@libssh2.stuge.se> References: <048.fd0848c4cfc66a39888a9730dd6772f8@libssh2.stuge.se> X-Trac-Ticket-ID: 303 In-Reply-To: <048.fd0848c4cfc66a39888a9730dd6772f8@libssh2.stuge.se> X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4LHVKbF029652 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: trac@libssh2.stuge.se, libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4LHVMuY029715 #303: CMake build system can't be used as a subproject --------------------------+------------------- Reporter: JasonHaslam | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: misc | Version: 1.5.0 Resolution: | Keywords: Blocked By: | Blocks: --------------------------+------------------- Comment (by JasonHaslam): I haven't looked closely at ExternalProject. Maybe I should. I attached a trivial patch that works for me. Thanks! -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Thu May 21 19:44:15 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4LHi91r020173; Thu, 21 May 2015 19:44:15 +0200 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4LHi8mI020161 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 21 May 2015 19:44:08 +0200 Received: (qmail 20702 invoked from network); 21 May 2015 17:48:42 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 21 May 2015 17:48:42 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Thu, 21 May 2015 17:48:42 -0000 X-URL: https://trac.libssh2.org/ Subject: Re: [libssh2] #303: CMake build system can't be used as a subproject X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/303#comment:3 Message-ID: <063.b87b684b5bb747b70fd3da18ac404afa@libssh2.stuge.se> References: <048.fd0848c4cfc66a39888a9730dd6772f8@libssh2.stuge.se> X-Trac-Ticket-ID: 303 In-Reply-To: <048.fd0848c4cfc66a39888a9730dd6772f8@libssh2.stuge.se> X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4LHi8mI020161 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: trac@libssh2.stuge.se, libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4LHi91r020173 #303: CMake build system can't be used as a subproject --------------------------+------------------- Reporter: JasonHaslam | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: misc | Version: 1.5.0 Resolution: | Keywords: Blocked By: | Blocks: --------------------------+------------------- Comment (by alamaison): The important thing with ExternalProject is that you can't just use it in your project's CMakeLists.txt because it doesn't fetch and build the subprojects until main project build time - too late for find_package, which runs at configure time, to pick them up. You have to make a wrapper project that uses ExternalProject to build the dependencies and also uses ExternalProject to build your project. This setup is called a CMake Superbuild or superproject. Hunter avoids the need for a superbuild but building the dependency projects at main project configure time. Thanks for the patch. I'll try and test it tonight -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Thu May 21 23:51:35 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4LLp8Lr009295; Thu, 21 May 2015 23:51:28 +0200 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4LLp6J7009276 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 21 May 2015 23:51:06 +0200 Received: (qmail 6976 invoked from network); 21 May 2015 21:55:40 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 21 May 2015 21:55:40 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Thu, 21 May 2015 21:55:40 -0000 X-URL: https://trac.libssh2.org/ Subject: Re: [libssh2] #304: Improperly linking to system libssl & libcrypto when staged one is desired X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/304#comment:1 Message-ID: <065.44ac30d337082f3ab438910aae68eec7@libssh2.stuge.se> References: <050.75eef6d2f2814e15ece35657cbbc099c@libssh2.stuge.se> X-Trac-Ticket-ID: 304 In-Reply-To: <050.75eef6d2f2814e15ece35657cbbc099c@libssh2.stuge.se> X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4LLp6J7009276 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: trac@libssh2.stuge.se, libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4LLp8Lr009295 #304: Improperly linking to system libssl & libcrypto when staged one is desired ----------------------------+------------------- Reporter: kotoroshinoto | Owner: Type: defect | Status: new Priority: normal | Milestone: 1.5.0 Component: crypto | Version: 1.5.0 Resolution: | Keywords: Blocked By: | Blocks: ----------------------------+------------------- Comment (by danf): Your libssh2 library may have been linked to your special libssl at compile time, but it's not finding it at run-time. On Linux, you can use the LD_LIBRARY_PATH environment variable or /etc/ld.so.conf config file to point to the correct library location at run-time. Or, you can use the -rpath command-line option on the linker to hard-code that path into the library at compile time. -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Fri May 22 01:52:33 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4LNqEII008557; Fri, 22 May 2015 01:52:30 +0200 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4LNqBSj008551 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 22 May 2015 01:52:12 +0200 Received: (qmail 4438 invoked from network); 21 May 2015 23:56:46 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 21 May 2015 23:56:46 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Thu, 21 May 2015 23:56:46 -0000 X-URL: https://trac.libssh2.org/ Subject: Re: [libssh2] #304: Improperly linking to system libssl & libcrypto when staged one is desired X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/304#comment:2 Message-ID: <065.0f82451bdf1ab2fa79c2a65e9d3f92ee@libssh2.stuge.se> References: <050.75eef6d2f2814e15ece35657cbbc099c@libssh2.stuge.se> X-Trac-Ticket-ID: 304 In-Reply-To: <050.75eef6d2f2814e15ece35657cbbc099c@libssh2.stuge.se> X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4LNqBSj008551 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: trac@libssh2.stuge.se, libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4LNqEII008557 #304: Improperly linking to system libssl & libcrypto when staged one is desired ----------------------------+------------------- Reporter: kotoroshinoto | Owner: Type: defect | Status: new Priority: normal | Milestone: 1.5.0 Component: crypto | Version: 1.5.0 Resolution: | Keywords: Blocked By: | Blocks: ----------------------------+------------------- Comment (by kotoroshinoto): output of command: echo $LD_LIBRARY_PATH | tr : \\n /UCHC/HPC/Gooch/biotoolmodules/git/2.4.1/lib64 /UCHC/HPC/Gooch/biotoolmodules/curl/7.42.1/lib /UCHC/HPC/Gooch/biotoolmodules/libssh2/1.5.0/lib /UCHC/HPC/Gooch/biotoolmodules/openssl/1.0.2a/lib /UCHC/HPC/Gooch/biotoolmodules/libmetalink/0.1.2/lib /UCHC/HPC/Gooch/biotoolmodules/libIDN/1.30/lib /UCHC/HPC/Gooch/biotoolmodules/c-ares/1.10.0/lib /UCHC/HPC/Gooch/biotoolmodules/R/3.2.0/lib64 /UCHC/HPC/Gooch/biotoolmodules/readline/6.3/lib /UCHC/HPC/Gooch/biotoolmodules/glib2/2.44.0/lib /UCHC/HPC/Gooch/biotoolmodules/python3/3.4.3/lib /UCHC/HPC/Gooch/biotoolmodules/python2/2.7.9/lib /UCHC/HPC/Gooch/biotoolmodules/pixman/0.32.6/lib /UCHC/HPC/Gooch/biotoolmodules/libtiff/4.0.3/lib /UCHC/HPC/Gooch/biotoolmodules/libsigc++/2.4.1/lib /UCHC/HPC/Gooch/biotoolmodules/libpng/1.6.17/lib /UCHC/HPC/Gooch/biotoolmodules/libjpeg/9a/lib /UCHC/HPC/Gooch/biotoolmodules/cairo/1.14.2/lib /UCHC/HPC/Gooch/biotoolmodules/lapack/3.5.0/lib /UCHC/HPC/Gooch/biotoolmodules/gawk/4.1.2/lib /UCHC/HPC/Gooch/biotoolmodules/oraclejava/jdk1.8.0_45/lib /UCHC/HPC/Gooch/biotoolmodules/libmpdec/2.4.1/lib /UCHC/HPC/Gooch/biotoolmodules/tk/8.6.4/lib /UCHC/HPC/Gooch/biotoolmodules/tcl/8.6.4/lib /UCHC/HPC/Gooch/biotoolmodules/perl/5.20.2/lib /UCHC/HPC/Gooch/biotoolmodules/libffi/3.2.1/lib64 /UCHC/HPC/Gooch/biotoolmodules/libffi/3.2.1/lib /UCHC/HPC/Gooch/biotoolmodules/libexpat/2.1.0/lib /UCHC/HPC/Gooch/biotoolmodules/ncurses/5.9/lib /UCHC/HPC/Gooch/biotoolmodules/mpc/1.0.3/lib /UCHC/HPC/Gooch/biotoolmodules/isl/0.14.1/lib /UCHC/HPC/Gooch/biotoolmodules/gcc/5.1.0/lib64 /UCHC/HPC/Gooch/biotoolmodules/gcc/5.1.0/lib /UCHC/HPC/Gooch/biotoolmodules/cloog/0.18.3/lib /UCHC/HPC/Gooch/biotoolmodules/mpfr/3.1.2/lib /UCHC/HPC/Gooch/biotoolmodules/libtool/2.4.6/lib /UCHC/HPC/Gooch/biotoolmodules/gmp/6.0.0/lib /UCHC/HPC/Gooch/biotoolmodules/flex/2.5.39/lib /UCHC/HPC/Gooch/biotoolmodules/binutils/2.25/lib /opt/gridengine/lib/lx26-amd64 /opt/cuda/lib64 note the presence of /UCHC/HPC/Gooch/biotoolmodules/openssl/1.0.2a/lib the library is available at runtime, there is also a key different in the filenames of the *.so files in my location: the lib directory contains: engines libcrypto.a libcrypto.so libcrypto.so.1.0.0 libssl.a libssl.so libssl.so.1.0.0 pkgconfig output of locate libssl /usr/lib64/.libssl.so.1.0.1e.hmac /usr/lib64/.libssl.so.10.hmac /usr/lib64/libssl.so /usr/lib64/libssl.so.1.0.1e /usr/lib64/libssl.so.10 /usr/lib64/libssl3.so /usr/lib64/pkgconfig/libssl.pc and output of locate libcrypto /usr/lib64/.libcrypto.so.1.0.1e.hmac /usr/lib64/.libcrypto.so.10.hmac /usr/lib64/libcrypto.so /usr/lib64/libcrypto.so.1.0.1e /usr/lib64/libcrypto.so.10 /usr/lib64/pkgconfig/libcrypto.pc the program appears to be linking against libcrypto.so.10 and remembering that it is using libcrypto.so.10 OR somehow loading that one at runtime instead of the one earlier on the path. (it seems to be specifically looking for the library with a .10 in its name) -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Sat May 23 12:13:18 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4NACp8W032491; Sat, 23 May 2015 12:13:11 +0200 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4NACoCb032485 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 23 May 2015 12:12:50 +0200 Received: (qmail 27724 invoked from network); 23 May 2015 10:17:25 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 23 May 2015 10:17:25 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Sat, 23 May 2015 10:17:25 -0000 X-URL: https://trac.libssh2.org/ Subject: Re: [libssh2] #304: Improperly linking to system libssl & libcrypto when staged one is desired X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/304#comment:3 Message-ID: <065.41883310d39e6e820b9449f559130f37@libssh2.stuge.se> References: <050.75eef6d2f2814e15ece35657cbbc099c@libssh2.stuge.se> X-Trac-Ticket-ID: 304 In-Reply-To: <050.75eef6d2f2814e15ece35657cbbc099c@libssh2.stuge.se> X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4NACoCb032485 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: trac@libssh2.stuge.se, libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4NACp8W032491 #304: Improperly linking to system libssl & libcrypto when staged one is desired ----------------------------+------------------- Reporter: kotoroshinoto | Owner: Type: defect | Status: new Priority: normal | Milestone: 1.5.0 Component: crypto | Version: 1.5.0 Resolution: | Keywords: Blocked By: | Blocks: ----------------------------+------------------- Comment (by danf): Applications are linked against the SONAME of the shared library, which looks to be libssl.so.10 in this case. If you have no file of that name, then there's no way for the run-time linker to find your library, so it continues along the search path and links against the one it *can* find—the system version. -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Sat May 23 20:16:44 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4NIGDm5022487; Sat, 23 May 2015 20:16:40 +0200 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4NIGCeo022476 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 23 May 2015 20:16:12 +0200 Received: (qmail 21306 invoked from network); 23 May 2015 18:20:46 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 23 May 2015 18:20:46 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Sat, 23 May 2015 18:20:46 -0000 X-URL: https://trac.libssh2.org/ Subject: Re: [libssh2] #304: Improperly linking to system libssl & libcrypto when staged one is desired X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/304#comment:4 Message-ID: <065.5998442ad502cbcaec3827286b6ee34d@libssh2.stuge.se> References: <050.75eef6d2f2814e15ece35657cbbc099c@libssh2.stuge.se> X-Trac-Ticket-ID: 304 In-Reply-To: <050.75eef6d2f2814e15ece35657cbbc099c@libssh2.stuge.se> X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4NIGCeo022476 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: trac@libssh2.stuge.se, libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4NIGDm5022487 #304: Improperly linking to system libssl & libcrypto when staged one is desired ----------------------------+------------------- Reporter: kotoroshinoto | Owner: Type: defect | Status: new Priority: normal | Milestone: 1.5.0 Component: crypto | Version: 1.5.0 Resolution: | Keywords: Blocked By: | Blocks: ----------------------------+------------------- Comment (by kotoroshinoto): giving the path to the libs with -L/not/usr/path/lib in LDFLAGS seems to sidestep the problem. I did however set the requisite paths in the various env variables, so it OUGHT to have been using that path anyway. That soname DOES exist (the one with .10) but it is NOT the correct one to be using, and it should certainly not be the one it finds first. -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Fri May 29 15:36:16 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4TDZqpc006513; Fri, 29 May 2015 15:36:13 +0200 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4TDZpa7006499 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 29 May 2015 15:35:51 +0200 Received: (qmail 28308 invoked from network); 29 May 2015 13:40:33 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 29 May 2015 13:40:33 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Fri, 29 May 2015 13:40:33 -0000 X-URL: https://trac.libssh2.org/ Subject: [libssh2] #305: Unable to exchange encryption keys X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/305 Message-ID: <044.2c21baf322056ce212689e94809d3fc1@libssh2.stuge.se> X-Trac-Ticket-ID: 305 X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4TDZpa7006499 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: trac@libssh2.stuge.se, libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4TDZqpc006513 #305: Unable to exchange encryption keys ---------------------+------------------ Reporter: rikkman | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: crypto | Version: Keywords: | Blocked By: Blocks: | ---------------------+------------------ Hi! I'm doing some coding with libssh2 v0.12 on windows 7 Pro 64 bits to connect to Huawei routers. On some routers works fine, on others just echo this error: "Warning: ssh2_connect(): Error startingup SSH connection(-8): Unable to exchange encryption keys in (...)". I used putty on same routers and the sessions logs are identical: 2015-05-27 12:02:19 Server version: SSH-2.0-HUAWEI-1.5 2015-05-27 12:02:19 Using SSH protocol version 2 2015-05-27 12:02:19 We claim version: SSH-2.0-PuTTY_Release_0.63 2015-05-27 12:02:19 Doing Diffie-Hellman group exchange 2015-05-27 12:02:19 Doing Diffie-Hellman key exchange with hash SHA-1 2015-05-27 12:02:32 Host key fingerprint is: 2015-05-27 12:02:32 ssh-rsa 512 8a:07:9a:28:1d:4d:22:4c:18:35:4f:18:eb:ba:9e:b3 2015-05-27 12:02:32 Initialised AES-128 CBC client->server encryption 2015-05-27 12:02:32 Initialised HMAC-SHA1 client->server MAC algorithm 2015-05-27 12:02:32 Initialised AES-128 CBC server->client encryption 2015-05-27 12:02:32 Initialised HMAC-SHA1 server->client MAC algorithm Can you help me? Thanks! -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Fri May 29 15:38:44 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4TDchK5009428; Fri, 29 May 2015 15:38:44 +0200 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4TDcfl8009390 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 29 May 2015 15:38:42 +0200 Received: (qmail 30184 invoked from network); 29 May 2015 13:43:24 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 29 May 2015 13:43:24 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Fri, 29 May 2015 13:43:24 -0000 X-URL: https://trac.libssh2.org/ Subject: Re: [libssh2] #305: Unable to exchange encryption keys X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/305#comment:1 Message-ID: <059.e1aa3eb788ec50e3c2ef3da8f98d29a1@libssh2.stuge.se> References: <044.2c21baf322056ce212689e94809d3fc1@libssh2.stuge.se> X-Trac-Ticket-ID: 305 In-Reply-To: <044.2c21baf322056ce212689e94809d3fc1@libssh2.stuge.se> X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4TDcfl8009390 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: trac@libssh2.stuge.se, libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4TDchK5009428 #305: Unable to exchange encryption keys ----------------------+----------------- Reporter: rikkman | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: crypto | Version: Resolution: | Keywords: Blocked By: | Blocks: ----------------------+----------------- Comment (by alamaison): Do you really mean v0.12? That's 10 years old! If so, the only sensible suggestion is upgrade. -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Fri May 29 16:56:08 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4TEts7M018185; Fri, 29 May 2015 16:56:06 +0200 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4TEtqQh018157 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 29 May 2015 16:55:52 +0200 Received: (qmail 4554 invoked from network); 29 May 2015 15:00:34 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 29 May 2015 15:00:34 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Fri, 29 May 2015 15:00:34 -0000 X-URL: https://trac.libssh2.org/ Subject: Re: [libssh2] #305: Unable to exchange encryption keys X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/305#comment:2 Message-ID: <059.b3f562d59fe37d016219de0eac4bd4c0@libssh2.stuge.se> References: <044.2c21baf322056ce212689e94809d3fc1@libssh2.stuge.se> X-Trac-Ticket-ID: 305 In-Reply-To: <044.2c21baf322056ce212689e94809d3fc1@libssh2.stuge.se> X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4TEtqQh018157 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: trac@libssh2.stuge.se, libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4TEts7M018185 #305: Unable to exchange encryption keys ----------------------+----------------- Reporter: rikkman | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: crypto | Version: Resolution: | Keywords: Blocked By: | Blocks: ----------------------+----------------- Comment (by rikkman): Replying to [comment:1 alamaison]: > Do you really mean v0.12? That's 10 years old! If so, the only sensible suggestion is upgrade. yes, it's the only one available for windows from this address http://windows.php.net/downloads/pecl/releases/ssh2/0.12/ -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Fri May 29 17:03:15 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4TF3BAb026802; Fri, 29 May 2015 17:03:14 +0200 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4TF3A2X026799 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 29 May 2015 17:03:10 +0200 Received: (qmail 8602 invoked from network); 29 May 2015 15:07:53 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 29 May 2015 15:07:53 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Fri, 29 May 2015 15:07:53 -0000 X-URL: https://trac.libssh2.org/ Subject: Re: [libssh2] #305: Unable to exchange encryption keys X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/305#comment:3 Message-ID: <059.47afa6ca8be210708fc449c5637948d5@libssh2.stuge.se> References: <044.2c21baf322056ce212689e94809d3fc1@libssh2.stuge.se> X-Trac-Ticket-ID: 305 In-Reply-To: <044.2c21baf322056ce212689e94809d3fc1@libssh2.stuge.se> X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4TF3A2X026799 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: trac@libssh2.stuge.se, libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4TF3BAb026802 #305: Unable to exchange encryption keys ----------------------+----------------- Reporter: rikkman | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: crypto | Version: Resolution: | Keywords: Blocked By: | Blocks: ----------------------+----------------- Comment (by alamaison): That's the version of the PHP library that uses libssh2 under the bonnet. It looks like it's using libssh2 v1.4.2, which is no too bad. Unfortunately, we don't have enough information to go on. Are you able to configure PHP's ssh2 to spit out the debug log from libssh2? And when you say "the sessions logs are identical", which logs are identical to which? -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Sun May 31 10:03:30 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4V831DY004539; Sun, 31 May 2015 10:03:27 +0200 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4V830WE004448 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 31 May 2015 10:03:00 +0200 Received: (qmail 22947 invoked from network); 31 May 2015 08:07:44 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 31 May 2015 08:07:44 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Sun, 31 May 2015 08:07:44 -0000 X-URL: https://trac.libssh2.org/ Subject: Re: [libssh2] #305: Unable to exchange encryption keys X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/305#comment:4 Message-ID: <059.01fad14eb431a33992492026ee76a380@libssh2.stuge.se> References: <044.2c21baf322056ce212689e94809d3fc1@libssh2.stuge.se> X-Trac-Ticket-ID: 305 In-Reply-To: <044.2c21baf322056ce212689e94809d3fc1@libssh2.stuge.se> X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4V830WE004448 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: trac@libssh2.stuge.se, libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4V831DY004539 #305: Unable to exchange encryption keys ----------------------+----------------- Reporter: rikkman | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: crypto | Version: Resolution: | Keywords: Blocked By: | Blocks: ----------------------+----------------- Comment (by rikkman): When I do a Putty connection on the "bad" router and on the "good" router I get the same log output wich is: 2015-05-27 12:02:19 Server version: SSH-2.0-HUAWEI-1.5 2015-05-27 12:02:19 Using SSH protocol version 2 2015-05-27 12:02:19 We claim version: SSH-2.0-PuTTY_Release_0.63 2015-05-27 12:02:19 Doing Diffie-Hellman group exchange 2015-05-27 12:02:19 Doing Diffie-Hellman key exchange with hash SHA-1 2015-05-27 12:02:32 Host key fingerprint is: 2015-05-27 12:02:32 ssh-rsa 512 8a:07:9a:28:1d:4d:22:4c:18:35:4f:18:eb:ba:9e:b3 2015-05-27 12:02:32 Initialised AES-128 CBC client->server encryption 2015-05-27 12:02:32 Initialised HMAC-SHA1 client->server MAC algorithm 2015-05-27 12:02:32 Initialised AES-128 CBC server->client encryption 2015-05-27 12:02:32 Initialised HMAC-SHA1 server->client MAC algorithm -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel From libssh2-devel-bounces@cool.haxx.se Sun May 31 10:05:17 2015 Return-Path: Received: from www.haxx.se (localhost.localdomain [127.0.0.1]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4V85FE2007130; Sun, 31 May 2015 10:05:17 +0200 Received: from earth.stuge.se (earth.stuge.se [212.116.89.126]) by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t4V85D8X007091 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 31 May 2015 10:05:14 +0200 Received: (qmail 25081 invoked from network); 31 May 2015 08:09:58 -0000 Received: from unknown (HELO earth.stuge.se) (127.0.0.1) by localhost with SMTP; 31 May 2015 08:09:58 -0000 MIME-Version: 1.0 From: "libssh2 Trac" X-Trac-Version: 1.0dev Precedence: bulk Cc: libssh2-devel@cool.haxx.se Auto-Submitted: auto-generated X-Mailer: Trac 1.0dev, by Edgewall Software X-Trac-Project: libssh2 Date: Sun, 31 May 2015 08:09:58 -0000 X-URL: https://trac.libssh2.org/ Subject: Re: [libssh2] #305: Unable to exchange encryption keys X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/305#comment:5 Message-ID: <059.335bb89e6751195a2b2af90e3a1cee4d@libssh2.stuge.se> References: <044.2c21baf322056ce212689e94809d3fc1@libssh2.stuge.se> X-Trac-Ticket-ID: 305 In-Reply-To: <044.2c21baf322056ce212689e94809d3fc1@libssh2.stuge.se> X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4V85D8X007091 X-BeenThere: libssh2-devel@cool.haxx.se X-Mailman-Version: 2.1.18 List-Id: libssh2 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: trac@libssh2.stuge.se, libssh2 development Content-Type: text/plain; charset="utf-8" Errors-To: libssh2-devel-bounces@cool.haxx.se Sender: "libssh2-devel" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t4V85FE2007130 #305: Unable to exchange encryption keys ----------------------+----------------- Reporter: rikkman | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: crypto | Version: Resolution: | Keywords: Blocked By: | Blocks: ----------------------+----------------- Comment (by alamaison): We need the libssh2 debug logs to have any hope of diagnosing the problem -- Ticket URL: libssh2 C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel