From libssh2-devel-bounces@cool.haxx.se  Wed Apr  1 11:45:53 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t319jPuf015631;
	Wed, 1 Apr 2015 11:45:48 +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 t319jNx6015589
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 1 Apr 2015 11:45:23 +0200
Received: (qmail 1520 invoked from network); 1 Apr 2015 09:48:58 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 1 Apr 2015 09:48:58 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 1.0dev
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 1.0dev, by Edgewall Software
To: doppelbauer@gmx.net
X-Trac-Project: libssh2
Date: Wed, 01 Apr 2015 09:48:58 -0000
X-URL: https://trac.libssh2.org/
Subject: [libssh2] #298: Memory leak
X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/298
Message-ID: <043.0b49017e0635bf982997dba0668bee3f@libssh2.stuge.se>
X-Trac-Ticket-ID: 298
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t319jNx6015589
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: trac@libssh2.stuge.se,
        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 t319jPuf015631

#298: Memory leak
--------------------+--------------------
 Reporter:  double  |       Owner:
     Type:  defect  |      Status:  new
 Priority:  normal  |   Milestone:  1.4.3
Component:  crypto  |     Version:  1.5.0
 Keywords:          |  Blocked By:
   Blocks:          |
--------------------+--------------------
 First: Thanks a lot for the new release.
 There is a memory leak with openssl: You call
 "OpenSSL_add_all_algorithms()" on init, but you don't free the memory on
 exit:
 https://www.openssl.org/docs/crypto/OpenSSL_add_all_algorithms.html

 Replace:

 #define libssh2_crypto_init() OpenSSL_add_all_algorithms()
 #define libssh2_crypto_exit()

 With:

 #define libssh2_crypto_init() OpenSSL_add_all_algorithms()
 #define libssh2_crypto_exit() EVP_cleanup();

 Thanks a lot!

-- 
Ticket URL: <https://trac.libssh2.org/ticket/298>
libssh2 <https://trac.libssh2.org/>
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  Wed Apr  1 11:45:54 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t319jrCH016124;
	Wed, 1 Apr 2015 11:45:54 +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 t319jRRp015672
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 1 Apr 2015 11:45:27 +0200
Received: (qmail 1550 invoked from network); 1 Apr 2015 09:49:02 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 1 Apr 2015 09:49:02 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 1.0dev
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 1.0dev, by Edgewall Software
To: doppelbauer@gmx.net
X-Trac-Project: libssh2
Date: Wed, 01 Apr 2015 09:49:02 -0000
X-URL: https://trac.libssh2.org/
Subject: [libssh2] #299: Second memory leak
X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/299
Message-ID: <043.fa575d22a8c42e4509c0a724125cedd5@libssh2.stuge.se>
X-Trac-Ticket-ID: 299
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t319jRRp015672
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: trac@libssh2.stuge.se,
        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 t319jrCH016124

#299: Second memory leak
--------------------+--------------------
 Reporter:  double  |       Owner:
     Type:  defect  |      Status:  new
 Priority:  normal  |   Milestone:  1.4.3
Component:  crypto  |     Version:  1.4.2
 Keywords:          |  Blocked By:
   Blocks:          |
--------------------+--------------------
 Valgrind output:

 =3020== 24 bytes in 1 blocks are still reachable in loss record 1 of 6
 ==3020==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-
 amd64-linux.so)
 ==3020==    by 0x80DED72: CRYPTO_malloc (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x80E00E5: ??? (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x80E0A8A: ??? (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x8147926: RSA_new_method (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x5CADD56: _libssh2_rsa_new (openssl.c:69)
 ==3020==    by 0x5C99785: hostkey_method_ssh_rsa_init (hostkey.c:95)
 ==3020==    by 0x5C99E4E: diffie_hellman_sha1 (kex.c:267)
 ==3020==    by 0x5C9B2A6:
 kex_method_diffie_hellman_group14_sha1_key_exchange (kex.c:799)
 ==3020==    by 0x5C9BD89: _libssh2_kex_exchange (kex.c:1770)
 ==3020==    by 0x5CA2756: libssh2_session_handshake (session.c:723)
 ==3020==    by 0x912119: ssh2_connect() (ssh.c:612)
 ==3020==
 ==3020== 24 bytes in 1 blocks are still reachable in loss record 2 of 6
 ==3020==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-
 amd64-linux.so)
 ==3020==    by 0x80DED72: CRYPTO_malloc (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x8164C7A: lh_insert (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x80E0113: ??? (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x80E0A8A: ??? (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x8147926: RSA_new_method (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x5CADD56: _libssh2_rsa_new (openssl.c:69)
 ==3020==    by 0x5C99785: hostkey_method_ssh_rsa_init (hostkey.c:95)
 ==3020==    by 0x5C99E4E: diffie_hellman_sha1 (kex.c:267)
 ==3020==    by 0x5C9B2A6:
 kex_method_diffie_hellman_group14_sha1_key_exchange (kex.c:799)
 ==3020==    by 0x5C9BD89: _libssh2_kex_exchange (kex.c:1770)
 ==3020==    by 0x5CA2756: libssh2_session_handshake (session.c:723)
 ==3020==
 ==3020== 32 bytes in 1 blocks are still reachable in loss record 3 of 6
 ==3020==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-
 amd64-linux.so)
 ==3020==    by 0x80DED72: CRYPTO_malloc (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x816426E: sk_new (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x80E00FB: ??? (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x80E0A8A: ??? (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x8147926: RSA_new_method (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x5CADD56: _libssh2_rsa_new (openssl.c:69)
 ==3020==    by 0x5C99785: hostkey_method_ssh_rsa_init (hostkey.c:95)
 ==3020==    by 0x5C99E4E: diffie_hellman_sha1 (kex.c:267)
 ==3020==    by 0x5C9B2A6:
 kex_method_diffie_hellman_group14_sha1_key_exchange (kex.c:799)
 ==3020==    by 0x5C9BD89: _libssh2_kex_exchange (kex.c:1770)
 ==3020==    by 0x5CA2756: libssh2_session_handshake (session.c:723)
 ==3020==
 ==3020== 32 bytes in 1 blocks are still reachable in loss record 4 of 6
 ==3020==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-
 amd64-linux.so)
 ==3020==    by 0x80DED72: CRYPTO_malloc (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x816428C: sk_new (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x80E00FB: ??? (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x80E0A8A: ??? (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x8147926: RSA_new_method (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x5CADD56: _libssh2_rsa_new (openssl.c:69)
 ==3020==    by 0x5C99785: hostkey_method_ssh_rsa_init (hostkey.c:95)
 ==3020==    by 0x5C99E4E: diffie_hellman_sha1 (kex.c:267)
 ==3020==    by 0x5C9B2A6:
 kex_method_diffie_hellman_group14_sha1_key_exchange (kex.c:799)
 ==3020==    by 0x5C9BD89: _libssh2_kex_exchange (kex.c:1770)
 ==3020==    by 0x5CA2756: libssh2_session_handshake (session.c:723)
 ==3020==
 ==3020== 128 bytes in 1 blocks are still reachable in loss record 5 of 6
 ==3020==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-
 amd64-linux.so)
 ==3020==    by 0x80DED72: CRYPTO_malloc (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x8164961: lh_new (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x80E0034: ??? (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x80E00C4: ??? (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x80E0A8A: ??? (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x8147926: RSA_new_method (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x5CADD56: _libssh2_rsa_new (openssl.c:69)
 ==3020==    by 0x5C99785: hostkey_method_ssh_rsa_init (hostkey.c:95)
 ==3020==    by 0x5C99E4E: diffie_hellman_sha1 (kex.c:267)
 ==3020==    by 0x5C9B2A6:
 kex_method_diffie_hellman_group14_sha1_key_exchange (kex.c:799)
 ==3020==    by 0x5C9BD89: _libssh2_kex_exchange (kex.c:1770)
 ==3020==
 ==3020== 176 bytes in 1 blocks are still reachable in loss record 6 of 6
 ==3020==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-
 amd64-linux.so)
 ==3020==    by 0x80DED72: CRYPTO_malloc (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x816493F: lh_new (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x80E0034: ??? (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x80E00C4: ??? (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x80E0A8A: ??? (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x8147926: RSA_new_method (in /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0)
 ==3020==    by 0x5CADD56: _libssh2_rsa_new (openssl.c:69)
 ==3020==    by 0x5C99785: hostkey_method_ssh_rsa_init (hostkey.c:95)
 ==3020==    by 0x5C99E4E: diffie_hellman_sha1 (kex.c:267)
 ==3020==    by 0x5C9B2A6:
 kex_method_diffie_hellman_group14_sha1_key_exchange (kex.c:799)
 ==3020==    by 0x5C9BD89: _libssh2_kex_exchange (kex.c:1770)
 ==3020==
 ==3020== LEAK SUMMARY:
 ==3020==    definitely lost: 0 bytes in 0 blocks
 ==3020==    indirectly lost: 0 bytes in 0 blocks
 ==3020==      possibly lost: 0 bytes in 0 blocks
 ==3020==    still reachable: 416 bytes in 6 blocks
 ==3020==         suppressed: 0 bytes in 0 blocks
 ==3020==
 ==3020== For counts of detected and suppressed errors, rerun with: -v
 ==3020== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

-- 
Ticket URL: <https://trac.libssh2.org/ticket/299>
libssh2 <https://trac.libssh2.org/>
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  Wed Apr  1 13:29:34 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t31BTJ24008240;
	Wed, 1 Apr 2015 13:29:32 +0200
Received: from maximilian-media.gloria.tv (maximilian-media.gloria.tv
 [62.212.72.169])
 by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t31BTIiJ008237
 for <libssh2-devel@cool.haxx.se>; Wed, 1 Apr 2015 13:29:18 +0200
Received: from mail-exchange.gloria.tv (localhost [127.0.0.1])
 by maximilian-media.gloria.tv (Postfix) with ESMTPS id 6DFD94010E
 for <libssh2-devel@cool.haxx.se>; Wed,  1 Apr 2015 11:29:18 +0000 (UTC)
Received: from gloria.tv (upstream-server.gloria.tv [192.168.2.2])
 by mail-exchange.gloria.tv (Postfix) with ESMTP id 13182C003A
 for <libssh2-devel@cool.haxx.se>; Wed,  1 Apr 2015 13:29:18 +0200 (CEST)
Message-ID: <1427887734.4198.2.camel@markus>
X-DKIM: Sendmail DKIM Filter v2.8.3 gloria.tv 978337200CE
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gloria.tv; s=mail;
 t=1427887757; bh=73QwrbknhN0jw/ukqVjEWJQu8LIGmPH/ZZ/Z+oMBxws=;
 h=Subject:From:To:Date:In-Reply-To:References:Content-Type:
 Mime-Version;
 b=a7kk6MMyEKTkdyfxmJ4McU5vAPWQ3EtYgzTqpHDrYkUAchTRI/JLqPPSiymWYQiE2
 6vHbYgjHW0/AKjywH8qZA==
X-DomainKeys: Sendmail DomainKeys Filter v1.0.2 gloria.tv 978337200CE
DomainKey-Signature: a=rsa-sha1; s=mail; d=gloria.tv; c=simple; q=dns;
 h=subject:from:to:date:in-reply-to:references:content-type:
 x-mailer:mime-version;
 b=XsXVpagktMuH+Krl8uIVHgxNKJwL5bIUFuguzs/Vx3XY7n9litYiFN4zmVkM3EAVc
 4vbIhVsrhBRFXgTH9B7aQ==
Subject: Memory leaks
From: Markus Doppelbauer <markus@gloria.tv>
To: libssh2-devel@cool.haxx.se
Date: Wed, 01 Apr 2015 13:28:54 +0200
In-Reply-To: <mailman.0.1427882102.27982.libssh2-devel@cool.haxx.se>
References: <mailman.0.1427882102.27982.libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="=-6myvoKdmAzLmL1IxKTN1"
X-Mailer: Evolution 3.10.4-0ubuntu2 
Mime-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>


--=-6myvoKdmAzLmL1IxKTN1
Content-Type: multipart/alternative; boundary="=-SNNuhTszFEF+6/6jUwQu"


--=-SNNuhTszFEF+6/6jUwQu
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

Hello,

First, thanks a lot for the new release. Maybe there are some
memory leaks:

a) #298: Clean openssl-tables via "EVP_cleanup()":
 https://www.openssl.org/docs/crypto/OpenSSL_add_all_algorithms.html

 Replace:

 #define libssh2_crypto_init() OpenSSL_add_all_algorithms()
 #define libssh2_crypto_exit()

 With:

 #define libssh2_crypto_init() OpenSSL_add_all_algorithms()
 #define libssh2_crypto_exit() EVP_cleanup();

b) #299: _libssh2_rsa_new() in openssl.c:69 is not free'd()
I have attached the valgrind-output.

Thanks a lot
Markus

--=-SNNuhTszFEF+6/6jUwQu
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
Hello,<BR>
<BR>
First, thanks a lot for the new release. Maybe there are some<BR>
memory leaks:<BR>
<BR>
a) #298: Clean openssl-tables via &quot;EVP_cleanup()&quot;:<BR>
&nbsp;<A HREF="https://www.openssl.org/docs/crypto/OpenSSL_add_all_algorithms.html">https://www.openssl.org/docs/crypto/OpenSSL_add_all_algorithms.html</A><BR>
<BR>
&nbsp;Replace:<BR>
<BR>
&nbsp;#define libssh2_crypto_init() OpenSSL_add_all_algorithms()<BR>
&nbsp;#define libssh2_crypto_exit()<BR>
<BR>
&nbsp;With:<BR>
<BR>
&nbsp;#define libssh2_crypto_init() OpenSSL_add_all_algorithms()<BR>
 #define libssh2_crypto_exit() EVP_cleanup();<BR>
<BR>
b) #299: _libssh2_rsa_new() in openssl.c:69 is not free'd()<BR>
I have attached the valgrind-output.<BR>
<BR>
Thanks a lot<BR>
Markus
</BODY>
</HTML>

--=-SNNuhTszFEF+6/6jUwQu--

--=-6myvoKdmAzLmL1IxKTN1
Content-Disposition: attachment; filename="ssh-memleak.txt"
Content-Type: text/plain; name="ssh-memleak.txt"; charset="UTF-8"
Content-Transfer-Encoding: 7bit

==3020== Memcheck, a memory error detector
==3020== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==3020== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==3020== Command: bin/Debug/update
==3020== 
==3020== 
==3020== HEAP SUMMARY:
==3020==     in use at exit: 416 bytes in 6 blocks
==3020==   total heap usage: 5,825 allocs, 5,819 frees, 1,593,012 bytes allocated
==3020== 
==3020== 24 bytes in 1 blocks are still reachable in loss record 1 of 6
==3020==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3020==    by 0x80DED72: CRYPTO_malloc (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x80E00E5: ??? (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x80E0A8A: ??? (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x8147926: RSA_new_method (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x5CADD56: _libssh2_rsa_new (openssl.c:69)
==3020==    by 0x5C99785: hostkey_method_ssh_rsa_init (hostkey.c:95)
==3020==    by 0x5C99E4E: diffie_hellman_sha1 (kex.c:267)
==3020==    by 0x5C9B2A6: kex_method_diffie_hellman_group14_sha1_key_exchange (kex.c:799)
==3020==    by 0x5C9BD89: _libssh2_kex_exchange (kex.c:1770)
==3020==    by 0x5CA2756: libssh2_session_handshake (session.c:723)
==3020==    by 0x912119: ssh2_connect(String const&, unsigned long, String const&, String const&, String const&) (ssh.cpp:1395)
==3020== 
==3020== 24 bytes in 1 blocks are still reachable in loss record 2 of 6
==3020==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3020==    by 0x80DED72: CRYPTO_malloc (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x8164C7A: lh_insert (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x80E0113: ??? (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x80E0A8A: ??? (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x8147926: RSA_new_method (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x5CADD56: _libssh2_rsa_new (openssl.c:69)
==3020==    by 0x5C99785: hostkey_method_ssh_rsa_init (hostkey.c:95)
==3020==    by 0x5C99E4E: diffie_hellman_sha1 (kex.c:267)
==3020==    by 0x5C9B2A6: kex_method_diffie_hellman_group14_sha1_key_exchange (kex.c:799)
==3020==    by 0x5C9BD89: _libssh2_kex_exchange (kex.c:1770)
==3020==    by 0x5CA2756: libssh2_session_handshake (session.c:723)
==3020== 
==3020== 32 bytes in 1 blocks are still reachable in loss record 3 of 6
==3020==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3020==    by 0x80DED72: CRYPTO_malloc (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x816426E: sk_new (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x80E00FB: ??? (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x80E0A8A: ??? (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x8147926: RSA_new_method (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x5CADD56: _libssh2_rsa_new (openssl.c:69)
==3020==    by 0x5C99785: hostkey_method_ssh_rsa_init (hostkey.c:95)
==3020==    by 0x5C99E4E: diffie_hellman_sha1 (kex.c:267)
==3020==    by 0x5C9B2A6: kex_method_diffie_hellman_group14_sha1_key_exchange (kex.c:799)
==3020==    by 0x5C9BD89: _libssh2_kex_exchange (kex.c:1770)
==3020==    by 0x5CA2756: libssh2_session_handshake (session.c:723)
==3020== 
==3020== 32 bytes in 1 blocks are still reachable in loss record 4 of 6
==3020==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3020==    by 0x80DED72: CRYPTO_malloc (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x816428C: sk_new (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x80E00FB: ??? (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x80E0A8A: ??? (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x8147926: RSA_new_method (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x5CADD56: _libssh2_rsa_new (openssl.c:69)
==3020==    by 0x5C99785: hostkey_method_ssh_rsa_init (hostkey.c:95)
==3020==    by 0x5C99E4E: diffie_hellman_sha1 (kex.c:267)
==3020==    by 0x5C9B2A6: kex_method_diffie_hellman_group14_sha1_key_exchange (kex.c:799)
==3020==    by 0x5C9BD89: _libssh2_kex_exchange (kex.c:1770)
==3020==    by 0x5CA2756: libssh2_session_handshake (session.c:723)
==3020== 
==3020== 128 bytes in 1 blocks are still reachable in loss record 5 of 6
==3020==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3020==    by 0x80DED72: CRYPTO_malloc (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x8164961: lh_new (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x80E0034: ??? (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x80E00C4: ??? (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x80E0A8A: ??? (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x8147926: RSA_new_method (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x5CADD56: _libssh2_rsa_new (openssl.c:69)
==3020==    by 0x5C99785: hostkey_method_ssh_rsa_init (hostkey.c:95)
==3020==    by 0x5C99E4E: diffie_hellman_sha1 (kex.c:267)
==3020==    by 0x5C9B2A6: kex_method_diffie_hellman_group14_sha1_key_exchange (kex.c:799)
==3020==    by 0x5C9BD89: _libssh2_kex_exchange (kex.c:1770)
==3020== 
==3020== 176 bytes in 1 blocks are still reachable in loss record 6 of 6
==3020==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3020==    by 0x80DED72: CRYPTO_malloc (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x816493F: lh_new (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x80E0034: ??? (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x80E00C4: ??? (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x80E0A8A: ??? (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x8147926: RSA_new_method (in /lib/x86_64-linux-gnu/libcrypto.so.1.0.0)
==3020==    by 0x5CADD56: _libssh2_rsa_new (openssl.c:69)
==3020==    by 0x5C99785: hostkey_method_ssh_rsa_init (hostkey.c:95)
==3020==    by 0x5C99E4E: diffie_hellman_sha1 (kex.c:267)
==3020==    by 0x5C9B2A6: kex_method_diffie_hellman_group14_sha1_key_exchange (kex.c:799)
==3020==    by 0x5C9BD89: _libssh2_kex_exchange (kex.c:1770)
==3020== 
==3020== LEAK SUMMARY:
==3020==    definitely lost: 0 bytes in 0 blocks
==3020==    indirectly lost: 0 bytes in 0 blocks
==3020==      possibly lost: 0 bytes in 0 blocks
==3020==    still reachable: 416 bytes in 6 blocks
==3020==         suppressed: 0 bytes in 0 blocks
==3020== 
==3020== For counts of detected and suppressed errors, rerun with: -v
==3020== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

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

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--=-6myvoKdmAzLmL1IxKTN1--

From libssh2-devel-bounces@cool.haxx.se  Wed Apr  1 20:06:47 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t31I6M0l015984;
	Wed, 1 Apr 2015 20:06: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 t31I6KBc015976
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 1 Apr 2015 20:06:20 +0200
Received: (qmail 4638 invoked from network); 1 Apr 2015 18:09:55 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 1 Apr 2015 18:09:55 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 1.0dev
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 1.0dev, by Edgewall Software
To: jcollins@tsco.ca, daniel@haxx.se, ssbssa@yahoo.de
X-Trac-Project: libssh2
Date: Wed, 01 Apr 2015 18:09:55 -0000
X-URL: https://trac.libssh2.org/
Subject: Re: [libssh2] #168: Memory leak in libssh2_session_startup
X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/168#comment:2
Message-ID: <060.2227d8694284bdac3a68f1c5eddecfc5@libssh2.stuge.se>
References: <045.4ab89fbe3b9a399ba8e6168544d544ac@libssh2.stuge.se>
X-Trac-Ticket-ID: 168
In-Reply-To: <045.4ab89fbe3b9a399ba8e6168544d544ac@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t31I6KBc015976
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: trac@libssh2.stuge.se,
        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 t31I6M0l015984

#168: Memory leak in libssh2_session_startup
-----------------------+-------------------
  Reporter:  jcollins  |      Owner:
      Type:  defect    |     Status:  new
  Priority:  normal    |  Milestone:
 Component:  API       |    Version:  1.2.4
Resolution:            |   Keywords:
Blocked By:            |     Blocks:
-----------------------+-------------------

Comment (by ssbssa):

 The problem here is that gcry_mpi_scan() doesn't use the bignum provided
 by the argument, instead it creates a new one and overrides the one
 created by gcry_mpi_new() before.

 I've attached a possible solution.

-- 
Ticket URL: <https://trac.libssh2.org/ticket/168#comment:2>
libssh2 <https://trac.libssh2.org/>
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  Wed Apr  1 20:07:06 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t31I750M017107;
	Wed, 1 Apr 2015 20:07: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 t31I72OY017071
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 1 Apr 2015 20:07:03 +0200
Received: (qmail 4737 invoked from network); 1 Apr 2015 18:10:38 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 1 Apr 2015 18:10:38 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 1.0dev
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 1.0dev, by Edgewall Software
To: doppelbauer@gmx.net, dottedmag@dottedmag.net
X-Trac-Project: libssh2
Date: Wed, 01 Apr 2015 18:10:38 -0000
X-URL: https://trac.libssh2.org/
Subject: Re: [libssh2] #298: Memory leak
X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/298#comment:1
Message-ID: <058.f0bda2f724391442ac34f2b8daf5719a@libssh2.stuge.se>
References: <043.0b49017e0635bf982997dba0668bee3f@libssh2.stuge.se>
X-Trac-Ticket-ID: 298
In-Reply-To: <043.0b49017e0635bf982997dba0668bee3f@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t31I72OY017071
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: trac@libssh2.stuge.se,
        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 t31I750M017107

#298: Memory leak
---------------------+-------------------
  Reporter:  double  |      Owner:
      Type:  defect  |     Status:  new
  Priority:  normal  |  Milestone:  1.4.3
 Component:  crypto  |    Version:  1.5.0
Resolution:          |   Keywords:
Blocked By:          |     Blocks:
---------------------+-------------------

Comment (by dottedmag):

 This might be undesirable as application which uses libssh2 might have
 other ideas about OpenSSL algorithms lifetime.

-- 
Ticket URL: <https://trac.libssh2.org/ticket/298#comment:1>
libssh2 <https://trac.libssh2.org/>
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 Apr  2 13:10:55 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t32BARZ7013404;
	Thu, 2 Apr 2015 13:10:51 +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 t32BAOL6013332
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 2 Apr 2015 13:10:24 +0200
Received: (qmail 11195 invoked from network); 2 Apr 2015 11:14:00 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 2 Apr 2015 11:14:00 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 1.0dev
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 1.0dev, by Edgewall Software
To: ios3@moontechnolabs.com, daniel@haxx.se
X-Trac-Project: libssh2
Date: Thu, 02 Apr 2015 11:14:00 -0000
X-URL: https://trac.libssh2.org/
Subject: Re: [libssh2] #295: latest libssh2 library with support 64 bit
 architecture fails to authenticate with public key (RSA)
 libssh2_userauth_publickey_fromfile
X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/295#comment:4
Message-ID: <056.486498710ed0b468d22e2754fc970c89@libssh2.stuge.se>
References: <041.461ecd84fb49ba812d54e2379f5b653a@libssh2.stuge.se>
X-Trac-Ticket-ID: 295
In-Reply-To: <041.461ecd84fb49ba812d54e2379f5b653a@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t32BAOL6013332
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: trac@libssh2.stuge.se,
        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 t32BARZ7013404

#295: latest libssh2 library with support 64 bit architecture fails to
authenticate with public key (RSA)  libssh2_userauth_publickey_fromfile
---------------------+-------------------
  Reporter:  ios3    |      Owner:
      Type:  defect  |     Status:  new
  Priority:  normal  |  Milestone:  1.4.3
 Component:  API     |    Version:  1.4.2
Resolution:          |   Keywords:
Blocked By:          |     Blocks:
---------------------+-------------------

Comment (by ios3):

 Hey, is it enough info? I have described above with way I am going. IS it
 ok?

-- 
Ticket URL: <https://trac.libssh2.org/ticket/295#comment:4>
libssh2 <https://trac.libssh2.org/>
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 Apr  2 18:03:19 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t32G30FF003750;
	Thu, 2 Apr 2015 18:03: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 t32G2whR003744
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 2 Apr 2015 18:02:58 +0200
Received: (qmail 30415 invoked from network); 2 Apr 2015 16:06:35 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 2 Apr 2015 16:06:35 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 1.0dev
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 1.0dev, by Edgewall Software
To: doppelbauer@gmx.net, dottedmag@dottedmag.net, awl03@doc.ic.ac.uk
X-Trac-Project: libssh2
Date: Thu, 02 Apr 2015 16:06:35 -0000
X-URL: https://trac.libssh2.org/
Subject: Re: [libssh2] #298: Memory leak
X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/298#comment:2
Message-ID: <058.98dcd448cce451dc737cd467e0f2207e@libssh2.stuge.se>
References: <043.0b49017e0635bf982997dba0668bee3f@libssh2.stuge.se>
X-Trac-Ticket-ID: 298
In-Reply-To: <043.0b49017e0635bf982997dba0668bee3f@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t32G2whR003744
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: trac@libssh2.stuge.se,
        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 t32G30FF003750

#298: Memory leak
----------------------+--------------------
  Reporter:  double   |      Owner:
      Type:  defect   |     Status:  closed
  Priority:  normal   |  Milestone:  1.4.3
 Component:  crypto   |    Version:  1.5.0
Resolution:  wontfix  |   Keywords:
Blocked By:           |     Blocks:
----------------------+--------------------
Changes (by alamaison):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 Agreed.  OpenSSL doesn't count calls to OpenSSL_add_all_algorithms() and
 matching calls to EVP_cleanup().  Until
 [http://rt.openssl.org/Ticket/Display.html?id=2217&user=guest&pass=guest
 that is fixed] (don't hold your breath), we can't safely call
 EVP_cleanup().

 If you want to avoid the memory leak (it's not really a leak - just looks
 like one to valgrind), call it yourself in your application.

-- 
Ticket URL: <https://trac.libssh2.org/ticket/298#comment:2>
libssh2 <https://trac.libssh2.org/>
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 Apr  2 18:11:15 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t32GBCvJ016820;
	Thu, 2 Apr 2015 18:11: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 t32GBAgJ016738
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Thu, 2 Apr 2015 18:11:10 +0200
Received: (qmail 31074 invoked from network); 2 Apr 2015 16:14:47 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 2 Apr 2015 16:14:47 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 1.0dev
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 1.0dev, by Edgewall Software
To: doppelbauer@gmx.net, awl03@doc.ic.ac.uk
X-Trac-Project: libssh2
Date: Thu, 02 Apr 2015 16:14:47 -0000
X-URL: https://trac.libssh2.org/
Subject: Re: [libssh2] #299: Second memory leak
X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/299#comment:1
Message-ID: <058.944f854efe991dd7e1a4b4a3fa53a761@libssh2.stuge.se>
References: <043.fa575d22a8c42e4509c0a724125cedd5@libssh2.stuge.se>
X-Trac-Ticket-ID: 299
In-Reply-To: <043.fa575d22a8c42e4509c0a724125cedd5@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t32GBAgJ016738
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: trac@libssh2.stuge.se,
        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 t32GBCvJ016820

#299: Second memory leak
---------------------+-------------------
  Reporter:  double  |      Owner:
      Type:  defect  |     Status:  new
  Priority:  normal  |  Milestone:  1.4.3
 Component:  crypto  |    Version:  1.4.2
Resolution:          |   Keywords:
Blocked By:          |     Blocks:
---------------------+-------------------

Comment (by alamaison):

 Like #298, these are probably not real leaks.  OpenSSL caches various
 pieces of global data that it initialises on demand.  Once loaded, it
 caches them for the lifetime of the program.  Some even _have_ to be kept
 for security reasons.

 If they are causing a problem by creating false positives when you're
 checking for memory leaks, try calling some of the globally-destructive
 OpenSSL cleanup functions in your application, only when running your leak
 checker or test suite.

 The following works for me:

 {{{
 ::RAND_cleanup();
 ::ENGINE_cleanup();
 ::CONF_modules_unload(1);
 ::CONF_modules_free();
 ::EVP_cleanup();
 ::ERR_free_strings();
 ::ERR_remove_state(0);
 ::CRYPTO_cleanup_all_ex_data();
 }}}

-- 
Ticket URL: <https://trac.libssh2.org/ticket/299#comment:1>
libssh2 <https://trac.libssh2.org/>
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 Apr  3 02:39:07 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t330chMn016948;
	Fri, 3 Apr 2015 02:39:04 +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 t330ceNg016930
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 3 Apr 2015 02:38:40 +0200
Received: (qmail 12680 invoked from network); 3 Apr 2015 00:42:18 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 3 Apr 2015 00:42:18 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 1.0dev
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 1.0dev, by Edgewall Software
To: jcollins@tsco.ca, daniel@haxx.se, ssbssa@yahoo.de, awl03@doc.ic.ac.uk
X-Trac-Project: libssh2
Date: Fri, 03 Apr 2015 00:42:18 -0000
X-URL: https://trac.libssh2.org/
Subject: Re: [libssh2] #168: Memory leak in libssh2_session_startup
X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/168#comment:3
Message-ID: <060.3c67184e4cdb7d3813a6de34252cc071@libssh2.stuge.se>
References: <045.4ab89fbe3b9a399ba8e6168544d544ac@libssh2.stuge.se>
X-Trac-Ticket-ID: 168
In-Reply-To: <045.4ab89fbe3b9a399ba8e6168544d544ac@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t330ceNg016930
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: trac@libssh2.stuge.se,
        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 t330chMn016948

#168: Memory leak in libssh2_session_startup
-----------------------+-------------------
  Reporter:  jcollins  |      Owner:
      Type:  defect    |     Status:  new
  Priority:  normal    |  Milestone:
 Component:  API       |    Version:  1.2.4
Resolution:            |   Keywords:
Blocked By:            |     Blocks:
-----------------------+-------------------

Comment (by alamaison):

 The fix looks good.  Could you add some comments to the patch so that, in
 a year's time, people aren't scratching their heads trying to work out why
 the gcrypt version uses NULL.

-- 
Ticket URL: <https://trac.libssh2.org/ticket/168#comment:3>
libssh2 <https://trac.libssh2.org/>
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 Apr  3 14:05:57 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t33C5PkC007183;
	Fri, 3 Apr 2015 14:05:50 +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 t33C5NoR007177
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 3 Apr 2015 14:05:23 +0200
Received: (qmail 825 invoked from network); 3 Apr 2015 12:08:59 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 3 Apr 2015 12:08:59 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 1.0dev
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 1.0dev, by Edgewall Software
To: graham.bradshaw@serverassist.com
X-Trac-Project: libssh2
Date: Fri, 03 Apr 2015 12:08:59 -0000
X-URL: https://trac.libssh2.org/
Subject: [libssh2] #300: Memory leak in kex.c
X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/300
Message-ID: <053.968e3952136e56ce95ee0068542d8c3b@libssh2.stuge.se>
X-Trac-Ticket-ID: 300
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t33C5NoR007177
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: trac@libssh2.stuge.se,
        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 t33C5PkC007183

#300: Memory leak in kex.c
------------------------------+--------------------
 Reporter:  ElectronShepherd  |       Owner:
     Type:  defect            |      Status:  new
 Priority:  normal            |   Milestone:  1.5.0
Component:  crypto            |     Version:  1.5.0
 Keywords:  memory leak       |  Blocked By:
   Blocks:                    |
------------------------------+--------------------
 I'm picking up a memory leak in kex.c, line 205. The code is:

 {{{
         session->server_hostkey =
             LIBSSH2_ALLOC(session, session->server_hostkey_len);


 }}}

 For some execution paths, session->server_hostkey is already allocated, so
 when the contents of the pointer are replaced, there's a leak.

 Oddly, I found it while SSHing into a Synology device, and it's fully
 repeatable. What's strange is that I don't get the leak when connecting to
 a "proper" Linux install such as Debian 7.

 For now, my workaround is to add

 {{{
             if (session->server_hostkey) {
                     LIBSSH2_FREE(session, session->server_hostkey);
                 }


 }}}

 just above the leaking call, but that doesn't seem like the most reliable
 solution to me, since it seems like the code is reusing a session which
 hasn't been cleared properly, and there's probably more cleanup that
 should be done against the session.

-- 
Ticket URL: <https://trac.libssh2.org/ticket/300>
libssh2 <https://trac.libssh2.org/>
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 Apr  3 14:09:20 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t33C9IjY012401;
	Fri, 3 Apr 2015 14:09: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 t33C9EOh012381
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 3 Apr 2015 14:09:14 +0200
Received: (qmail 1337 invoked from network); 3 Apr 2015 12:12:52 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 3 Apr 2015 12:12:52 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 1.0dev
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 1.0dev, by Edgewall Software
To: jcollins@tsco.ca, daniel@haxx.se, ssbssa@yahoo.de, awl03@doc.ic.ac.uk
X-Trac-Project: libssh2
Date: Fri, 03 Apr 2015 12:12:52 -0000
X-URL: https://trac.libssh2.org/
Subject: Re: [libssh2] #168: Memory leak in libssh2_session_startup
X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/168#comment:4
Message-ID: <060.e27169d0528ad33b4baffa4121430f78@libssh2.stuge.se>
References: <045.4ab89fbe3b9a399ba8e6168544d544ac@libssh2.stuge.se>
X-Trac-Ticket-ID: 168
In-Reply-To: <045.4ab89fbe3b9a399ba8e6168544d544ac@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t33C9EOh012381
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: trac@libssh2.stuge.se,
        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 t33C9IjY012401

#168: Memory leak in libssh2_session_startup
-----------------------+-------------------
  Reporter:  jcollins  |      Owner:
      Type:  defect    |     Status:  new
  Priority:  normal    |  Milestone:
 Component:  API       |    Version:  1.2.4
Resolution:            |   Keywords:
Blocked By:            |     Blocks:
-----------------------+-------------------

Comment (by ssbssa):

 Like this, or did you mean more?

-- 
Ticket URL: <https://trac.libssh2.org/ticket/168#comment:4>
libssh2 <https://trac.libssh2.org/>
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 Apr  3 14:11:01 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t33CAwRs014250;
	Fri, 3 Apr 2015 14:11:00 +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 t33CAtgP014231
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 3 Apr 2015 14:10:55 +0200
Received: (qmail 1450 invoked from network); 3 Apr 2015 12:14:33 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 3 Apr 2015 12:14:33 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 1.0dev
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 1.0dev, by Edgewall Software
To: jcollins@tsco.ca, daniel@haxx.se, ssbssa@yahoo.de, awl03@doc.ic.ac.uk
X-Trac-Project: libssh2
Date: Fri, 03 Apr 2015 12:14:33 -0000
X-URL: https://trac.libssh2.org/
Subject: Re: [libssh2] #168: Memory leak in libssh2_session_startup
X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/168#comment:5
Message-ID: <060.d1cf558a0937626d8c4cdcca1ca50713@libssh2.stuge.se>
References: <045.4ab89fbe3b9a399ba8e6168544d544ac@libssh2.stuge.se>
X-Trac-Ticket-ID: 168
In-Reply-To: <045.4ab89fbe3b9a399ba8e6168544d544ac@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t33CAtgP014231
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: trac@libssh2.stuge.se,
        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 t33CAwRs014250

#168: Memory leak in libssh2_session_startup
-----------------------+-------------------
  Reporter:  jcollins  |      Owner:
      Type:  defect    |     Status:  new
  Priority:  normal    |  Milestone:
 Component:  API       |    Version:  1.2.4
Resolution:            |   Keywords:
Blocked By:            |     Blocks:
-----------------------+-------------------

Comment (by alamaison):

 Replying to [comment:4 ssbssa]:
 > Like this, or did you mean more?

 Could you resubmit your patch with a different filename?  There's a bug in
 Trac that prevents the moderator accepting your submission, because the
 patch name already exists in this ticket.

-- 
Ticket URL: <https://trac.libssh2.org/ticket/168#comment:5>
libssh2 <https://trac.libssh2.org/>
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 Apr  3 18:51:01 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t33GoaBc012497;
	Fri, 3 Apr 2015 18:50:58 +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 t33GoZp2012372
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 3 Apr 2015 18:50:35 +0200
Received: (qmail 21042 invoked from network); 3 Apr 2015 16:54:13 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 3 Apr 2015 16:54:13 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 1.0dev
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 1.0dev, by Edgewall Software
To: jcollins@tsco.ca, daniel@haxx.se, ssbssa@yahoo.de, awl03@doc.ic.ac.uk
X-Trac-Project: libssh2
Date: Fri, 03 Apr 2015 16:54:13 -0000
X-URL: https://trac.libssh2.org/
Subject: Re: [libssh2] #168: Memory leak in libssh2_session_startup
X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/168#comment:6
Message-ID: <060.ea686adea1608a05b2feb61a75e65135@libssh2.stuge.se>
References: <045.4ab89fbe3b9a399ba8e6168544d544ac@libssh2.stuge.se>
X-Trac-Ticket-ID: 168
In-Reply-To: <045.4ab89fbe3b9a399ba8e6168544d544ac@libssh2.stuge.se>
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t33GoZp2012372
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: trac@libssh2.stuge.se,
        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 t33GoaBc012497

#168: Memory leak in libssh2_session_startup
-----------------------+--------------------
  Reporter:  jcollins  |      Owner:
      Type:  defect    |     Status:  closed
  Priority:  normal    |  Milestone:
 Component:  API       |    Version:  1.2.4
Resolution:  fixed     |   Keywords:
Blocked By:            |     Blocks:
-----------------------+--------------------
Changes (by alamaison):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Thanks.  Pushed
 https://github.com/libssh2/libssh2/commit/09c5e59933daf67b833f34b8c388766abc038483.

-- 
Ticket URL: <https://trac.libssh2.org/ticket/168#comment:6>
libssh2 <https://trac.libssh2.org/>
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 Apr 10 12:00:12 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t3A9xgkN020114;
	Fri, 10 Apr 2015 12:00:09 +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 t3A9xewf020098
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 10 Apr 2015 11:59:40 +0200
Received: (qmail 6739 invoked from network); 10 Apr 2015 10:03:25 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 10 Apr 2015 10:03:25 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 1.0dev
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 1.0dev, by Edgewall Software
To: vlad@mavrsoft.com
X-Trac-Project: libssh2
Date: Fri, 10 Apr 2015 10:03:25 -0000
X-URL: https://trac.libssh2.org/
Subject: [libssh2] #301: random crashes during multi thread
X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/301
Message-ID: <044.e709f097db00f11674f10b8935733a98@libssh2.stuge.se>
X-Trac-Ticket-ID: 301
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t3A9xewf020098
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: trac@libssh2.stuge.se,
        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 t3A9xgkN020114

#301: random crashes during multi thread
---------------------+--------------------
 Reporter:  alexmol  |       Owner:
     Type:  defect   |      Status:  new
 Priority:  normal   |   Milestone:  1.5.0
Component:  crypto   |     Version:  1.5.0
 Keywords:           |  Blocked By:
   Blocks:           |
---------------------+--------------------
 It seems like random crashes may occur in RAND_bytes function. In my app I
 use libssh with 20 parallel threads, so RAND_bytes called quite agressive
 from diff threads. After I guard it with critical section - everything
 seems ok. I cannot really understand the RAND_bytes code, because it looks
 scary. Seems like it is not thread safe. Openssl version for me is 0.9.8zf

-- 
Ticket URL: <https://trac.libssh2.org/ticket/301>
libssh2 <https://trac.libssh2.org/>
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  Tue Apr 14 11:26:15 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t3E9PmIH029296;
	Tue, 14 Apr 2015 11:26:10 +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 t3E9Plxk029285
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 14 Apr 2015 11:25:47 +0200
Received: (qmail 4182 invoked from network); 14 Apr 2015 09:29:37 -0000
Received: from unknown (HELO earth.stuge.se) (127.0.0.1)
 by localhost with SMTP; 14 Apr 2015 09:29:37 -0000
MIME-Version: 1.0
From: "libssh2 Trac" <trac@libssh2.stuge.se>
X-Trac-Version: 1.0dev
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 1.0dev, by Edgewall Software
To: talh.arul@yandex.com
X-Trac-Project: libssh2
Date: Tue, 14 Apr 2015 09:29:37 -0000
X-URL: https://trac.libssh2.org/
Subject: [libssh2] #302: libssh2_session_handshake bug?
X-Trac-Ticket-URL: https://trac.libssh2.org/ticket/302
Message-ID: <042.2ebdaf0ca36b8ff6aea44b1fb5f95c5d@libssh2.stuge.se>
X-Trac-Ticket-ID: 302
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id t3E9Plxk029285
Cc: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: trac@libssh2.stuge.se,
        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 t3E9PmIH029296

#302: libssh2_session_handshake bug?
--------------------+--------------------
 Reporter:  5m0k3   |       Owner:
     Type:  defect  |      Status:  new
 Priority:  normal  |   Milestone:  1.5.0
Component:  crypto  |     Version:  1.5.0
 Keywords:          |  Blocked By:
   Blocks:          |
--------------------+--------------------
 Hello, I was working on a password auditing tool using libssh2 and
 encountered the following issue when using with pthread.

 GDB output:

 [Thread debugging using libthread_db enabled]
 Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
 Core was generated by `./dm domains.txt user pass 500'.
 Program terminated with signal SIGSEGV, Segmentation fault.
 #0  0x00007ff0eaa3bbdc in ?? () from /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0
 (gdb) bt
 #0  0x00007ff0eaa3bbdc in ?? () from /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0
 #1  0xca62c1d6ca62c1d6 in ?? ()
 #2  0xca62c1d6ca62c1d6 in ?? ()
 #3  0xca62c1d6ca62c1d6 in ?? ()
 #4  0xca62c1d6ca62c1d6 in ?? ()
 #5  0xca62c1d6ca62c1d6 in ?? ()
 #6  0xca62c1d6ca62c1d6 in ?? ()
 #7  0xca62c1d6ca62c1d6 in ?? ()
 #8  0xca62c1d6ca62c1d6 in ?? ()
 #9  0x00007ff0eada8810 in ?? () from /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0
 #10 0x00007feeb000e400 in ?? ()
 #11 0x000000000000000f in ?? ()
 #12 0x00007ff0eaa3811f in SHA1_Update () from /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0
 #13 0x00007ff0eaab76ef in ?? () from /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0
 #14 0x00007ff0eaa6d72c in ?? () from /lib/x86_64-linux-
 gnu/libcrypto.so.1.0.0
 #15 0x00007ff0eb399f8a in diffie_hellman_sha1 () from
 /usr/lib/libssh2.so.1
 #16 0x00007ff0eb39c197 in
 kex_method_diffie_hellman_group14_sha1_key_exchange () from
 /usr/lib/libssh2.so.1
 #17 0x00007ff0eb39e1ad in _libssh2_kex_exchange () from
 /usr/lib/libssh2.so.1
 #18 0x00007ff0eb3a6c6e in session_startup () from /usr/lib/libssh2.so.1
 #19 0x00007ff0eb3a6efd in libssh2_session_handshake () from
 /usr/lib/libssh2.so.1
 #20 0x0000000000402023 in verhost (hostname=0x25f1700 "be-still.info",
 username=0x2560400 "be-still", password=0x25c1590 "be-still") at dm.c:248
 #21 0x00000000004021e2 in worker_thread (worker=0x1f2) at dm.c:287
 #22 0x00007ff0eb179182 in start_thread (arg=0x7fefb2fc1700) at
 pthread_create.c:312
 #23 0x00007ff0eaea647d in clone () at
 ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
 (gdb) frame 20
 #20 0x0000000000402023 in verhost (hostname=0x25f1700 "be-still.info",
 username=0x2560400 "be-still", password=0x25c1590 "be-still") at dm.c:248
 248             rc = libssh2_session_handshake(session, sockfd);
 (gdb)


 Here is the code for function causing problems:

 static int verhost(char *hostname, char *username, char *password) {
         if(hostname == NULL) return -1;
         if(username == NULL) return -1;

         int sockfd, rc;
         long arg;

         struct addrinfo hints, *res;
         int errcode;

         memset (&hints, 0, sizeof (hints));
         hints.ai_family = PF_UNSPEC;
         hints.ai_socktype = SOCK_STREAM;
         hints.ai_flags |= AI_CANONNAME;

         errcode = getaddrinfo (hostname, "22", &hints, &res);
         if (errcode != 0) return -1;

         sockfd = socket(AF_INET, SOCK_STREAM, 0);

         arg = fcntl(sockfd, F_GETFL, NULL);
         arg |= O_NONBLOCK;
         fcntl(sockfd, F_SETFL, arg);

         if (sockfd < 0) goto shutend;

         if (connect(sockfd, res->ai_addr, res->ai_addrlen) < 0) {
                 if (errno == EINPROGRESS) {
                         fd_set write_fds;
                         memset(&write_fds, 0, sizeof(write_fds));
                         FD_ZERO(&write_fds);
                         FD_SET(sockfd, &write_fds);
                         struct timeval tv;
                         int valopt;
                         tv.tv_sec = 5;
                         tv.tv_usec = 0;
                         if (select(sockfd+1, NULL, &write_fds, NULL, &tv)
 > 0) {
                                 socklen_t lon;
                                 lon = sizeof(int);
                                 getsockopt(sockfd, SOL_SOCKET, SO_ERROR,
 (void*)(&valopt), &lon);
                                 if (valopt) goto shutend;
                         }
                         else goto shutend;
                 }
                 else goto shutend;
         }

         LIBSSH2_SESSION *session = libssh2_session_init();
         if(!session) goto shutend;

         libssh2_session_set_timeout(session, 10000);
         if(libssh2_session_get_timeout(session) > 10000) goto shutnow;

         rc = libssh2_session_handshake(session, sockfd);
         if (rc) goto shutnow;

         rc = libssh2_userauth_password(session, username, password);
         if (rc) printf("[!] Weak Login: %s - %s/%s\n", hostname, username,
 password);
         else libssh2_session_disconnect(session, "Normal Shutdown");

 shutnow:
         libssh2_session_free(session);

 shutend:
         close(sockfd);
         freeaddrinfo(res);
         return -1;
 }

 Let me know if you need anything else or if I am using libssh2 in a wrong
 manner. Thanks.

-- 
Ticket URL: <https://trac.libssh2.org/ticket/302>
libssh2 <https://trac.libssh2.org/>
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  Wed Apr 29 05:00:23 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t3T2xsMv023028;
	Wed, 29 Apr 2015 05:00:16 +0200
Received: from smtpbgau1.qq.com (smtpbgau1.qq.com [54.206.16.166])
 by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t3T2xjtV022896
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 29 Apr 2015 04:59:51 +0200
X-QQ-GoodBg: 0
X-QQ-SSF: 00100000000000F0
X-QQ-FEAT: TiKT+qhFUNl5/tUMCam/1r1i5ApNgbdkBO/hnwOSXok=
X-QQ-BUSINESS-ORIGIN: 2
X-Originating-IP: 122.97.217.13
X-QQ-STYLE: 
X-QQ-mid: bizmail32t1430276376t3671221
From: "=?utf-8?B?6LW15b+X5q+F?=" <zhaozhiyi@wxcatv.com>
To: "=?utf-8?B?bGlic3NoMi1kZXZlbA==?=" <libssh2-devel@cool.haxx.se>
Subject: how to get libssh2-devel source code
Mime-Version: 1.0
Date: Wed, 29 Apr 2015 10:59:35 +0800
X-Priority: 3
Message-ID: <tencent_0738FB8C2B035EC178618A23@qq.com>
X-QQ-MIME: TCMime 1.0 by Tencent
X-Mailer: QQMail 2.x
X-QQ-Mailer: QQMail 2.x
X-QQ-SENDSIZE: 520
X-QQ-Bgrelay: 1
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============1236108181=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

This is a multi-part message in MIME format.

--===============1236108181==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_55404918_0A7557D0_1732671F"
Content-Transfer-Encoding: 8Bit

This is a multi-part message in MIME format.

------=_NextPart_55404918_0A7557D0_1732671F
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: base64

aGksDQoNCkkgYW0gdHJ5aW5nIHRvIGNyb3NzIGNvbXBpbGUgemFiYml4IG9uIG1pcHMgcGxh
dGZvcm0uIEl0IG5lZWRzIGxpYnNzaDIgYW5kIGxpYnNzaDItZGV2ZWwuIEkgY2FuIGRvd25s
b2FkIGxpYnNzaDIsIGJ1dCB0aGVyZSBpcyBubyB3YXkgdG8gZG93bmxvYWQgbGlic3NoMi1k
ZXZlbC4NCg0KV2hlcmUgaXMgYXZhaWxhYmxlIGZvciBsaWJzc2gyLWRldmVsPw0KDQpjaGVl
cnMNCg0KYXJtc3Ryb25nIHpoYW8=

------=_NextPart_55404918_0A7557D0_1732671F
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: base64

aGksPGJyPjxicj5JIGFtIHRyeWluZyB0byBjcm9zcyBjb21waWxlIHphYmJpeCBvbiBtaXBz
IHBsYXRmb3JtLiBJdCBuZWVkcyBsaWJzc2gyIGFuZCBsaWJzc2gyLWRldmVsLiBJIGNhbiBk
b3dubG9hZCBsaWJzc2gyLCBidXQgdGhlcmUgaXMgbm8gd2F5IHRvIGRvd25sb2FkIGxpYnNz
aDItZGV2ZWwuPGJyPjxicj5XaGVyZSBpcyBhdmFpbGFibGUgZm9yIGxpYnNzaDItZGV2ZWw/
PGJyPjxicj5jaGVlcnM8YnI+PGJyPmFybXN0cm9uZyB6aGFvPGJyPjxkaXY+PGluY2x1ZGV0
YWlsPjwhLS08IVtlbmRpZl0tLT48L2luY2x1ZGV0YWlsPjwvZGl2Pg==

------=_NextPart_55404918_0A7557D0_1732671F--




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

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--===============1236108181==--



From libssh2-devel-bounces@cool.haxx.se  Wed Apr 29 08:00:55 2015
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (localhost.localdomain [127.0.0.1])
	by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t3T60bNo026191;
	Wed, 29 Apr 2015 08:00:53 +0200
Received: from giant.haxx.se (localhost.localdomain [127.0.0.1])
 by giant.haxx.se (8.14.4/8.14.4/Debian-7) with ESMTP id t3T5xpTg024602
 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Wed, 29 Apr 2015 07:59:51 +0200
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.14.4/8.14.4/Submit) with ESMTP id t3T5xpZd024598
 for <libssh2-devel@cool.haxx.se>; Wed, 29 Apr 2015 07:59:51 +0200
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Wed, 29 Apr 2015 07:59:51 +0200 (CEST)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: how to get libssh2-devel source code
In-Reply-To: <tencent_0738FB8C2B035EC178618A23@qq.com>
Message-ID: <alpine.DEB.2.11.1504290759100.14574@tvnag.unkk.fr>
References: <tencent_0738FB8C2B035EC178618A23@qq.com>
User-Agent: Alpine 2.11 (DEB 23 2013-08-11)
X-fromdanielhimself: yes
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
 BOUNDARY="1129329158-1476129403-1430287191=:14574"
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <http://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

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

--1129329158-1476129403-1430287191=:14574
Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8BIT

On Wed, 29 Apr 2015, 赵志毅 wrote:

> I am trying to cross compile zabbix on mips platform. It needs libssh2 and 
> libssh2-devel. I can download libssh2, but there is no way to download 
> libssh2-devel.
>
> Where is available for libssh2-devel?

It is still the same source, it is just a matter of how the distro packages 
are made from it.

-- 

  / daniel.haxx.se
--1129329158-1476129403-1430287191=:14574
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwOi8vY29vbC5oYXh4LnNlL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9saWJzc2gy
LWRldmVsCg==

--1129329158-1476129403-1430287191=:14574--

