From libssh2-devel-bounces@cool.haxx.se  Fri Nov  2 10:44:21 2018
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id wA29hks1022135;
	Fri, 2 Nov 2018 10:44:10 +0100
Received: from mx5.sophos.com (mx5.sophos.com [195.171.192.119])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id wA29hhAh022092
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 2 Nov 2018 10:43:44 +0100
Received: from mx5.sophos.com (localhost [127.0.0.1])
 by localhost (Postfix) with SMTP id 4568542453
 for <libssh2-devel@cool.haxx.se>; Fri,  2 Nov 2018 09:43:39 +0000 (GMT)
Received: from abn-exch5b.green.sophos (unknown [10.224.64.46])
 by mx5.sophos.com (Postfix) with ESMTPS id 3D4D94244B
 for <libssh2-devel@cool.haxx.se>; Fri,  2 Nov 2018 09:43:39 +0000 (GMT)
Received: from abn-exch5a.green.sophos (10.224.64.44) by
 abn-exch5b.green.sophos (10.224.64.46) with Microsoft SMTP Server (TLS) id
 15.0.1293.2; Fri, 2 Nov 2018 09:43:37 +0000
Received: from GBR01-CWL-obe.outbound.protection.outlook.com (23.103.134.151)
 by abn-exch5a.green.sophos (10.224.64.44) with Microsoft SMTP Server
 (TLS) id
 15.0.1293.2 via Frontend Transport; Fri, 2 Nov 2018 09:43:38 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=sophosapps.onmicrosoft.com; s=selector1-sophosapps-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=An4aEGkKZx2uuo+IjPgPPNDb/cnbgNNeqzU55je/HWE=;
 b=ZyGFXkU7mDHs2qL9M2BtMLXYHiWBkBSNKOSlgYLwgv4antuyeTNH/m3/rr3j/iy8EjMAYo+VAqzHiS1g5rl+jUadj9thgjLD1H4qUbdYYc5KCWNb6iDltOaho+i/Y3bXVRWtW7svU9vjpNiPDybnHSDNY2XWnvDdsVS4wJXYBD0=
Received: from LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM (20.176.130.149) by
 LNXP265MB1449.GBRP265.PROD.OUTLOOK.COM (20.176.134.14) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.1273.25; Fri, 2 Nov 2018 09:43:37 +0000
Received: from LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM
 ([fe80::f5b3:302a:4b84:9995]) by LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM
 ([fe80::f5b3:302a:4b84:9995%2]) with mapi id 15.20.1294.024; Fri, 2 Nov 2018
 09:43:37 +0000
From: Afschin Hormozdiary <Afschin.Hormozdiary@Sophos.com>
To: "libssh2-devel@cool.haxx.se" <libssh2-devel@cool.haxx.se>
Subject: git tag for libssh2-1.8.0
Thread-Topic: git tag for libssh2-1.8.0
Thread-Index: AQHUcpCHmoK5pDf9ykyoyorM4JbshA==
Date: Fri, 2 Nov 2018 09:43:37 +0000
Message-ID: <CEAC80E5-6DF1-41FA-95A8-662F65C51C3E@sophos.com>
Accept-Language: de-DE, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=none (sender IP is )
 smtp.mailfrom=Afschin.Hormozdiary@Sophos.com; 
x-originating-ip: [92.198.130.130]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; LNXP265MB1449;
 6:/XVWUJBvxBe4F3dOsKKk8CxNxveX8qSwgFgnpWGQ2CzQc7OIrZSK2NSVEQrZ/Z9FRjL1AEPMS60nt1W36vR7MG03W96OWhoZqR9T/e9y/1VmxHTszadh9w5m+VWD9Xw4rpjf+XDhvc+MIIuG9ppZDRwmnMs6rydnBfWM/A9VETMPFptbrmtcAx4wmBmqftDyx9khIlSkjRlOneH27tvp3KxUU9v18KhvYB+coH7PyrbM8z3rG0Mp1wP58ve5sYUo83dXgE4ELZJScw5k8XXB8rm+JcxJ66/9UCUUOG1EFF4ItAzo+GYjGBFTeQ9N5sJ+LFU94zSEcEvWBl//jpCDGIbm4jMwly1+G2Xad3JWrTQzblbtxa5/rEMvYV4JY+gRim/sHPjrQl+LzOVMXIFmaE1Y1WK8zq+DQQGx0YCq/Wl0kTr2/6mqUT36OVNmWIC7VDba2pkUBEnOtxJtLM3m3w==;
 5:DBinRGFzEULMDa2omyhZ9yzCVvQJ3Ru63mmypA0zqVVmeqlihugoZ3a0UuuraTBZzEYh6ybfkEwhG9OSNvW+qQEQlElpehV/hP90ERnPRGuFlo6anCdC8YVfJA/yKn9XVxYbeGPs4mKN2SVkpIfT/sJF0CA0jEaml4v6NtpN4WY=;
 7:J3b5fNPyqWQqzVOsnIjUjO7O7J6o/X9OPItI/Jlhid4rZaSgW4W7dlchAj8sfv70lLGxkFtR/C2RiHF2t3xQZpnXlodJyY6LzCHse6SYH6MmYeCBrjISPEbl2ptA/H12HFTxnAlUoURjCQ2pVfOGrg==
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 672becfa-3837-4432-4c50-08d640a7a9fa
x-microsoft-antispam: BCL:0; PCL:0;
 RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);
 SRVR:LNXP265MB1449; 
x-ms-traffictypediagnostic: LNXP265MB1449:
x-microsoft-antispam-prvs: <LNXP265MB14490F7C6498125FF6F9C14691CF0@LNXP265MB1449.GBRP265.PROD.OUTLOOK.COM>
x-exchange-antispam-report-test: UriScan:;
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
 RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231382)(944501410)(52105095)(148016)(149066)(150057)(6041310)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);
 SRVR:LNXP265MB1449; BCL:0; PCL:0; RULEID:; SRVR:LNXP265MB1449; 
x-forefront-prvs: 08444C7C87
x-forefront-antispam-report: SFV:NSPM;
 SFS:(10009020)(376002)(346002)(396003)(39860400002)(136003)(366004)(199004)(189003)(83716004)(105586002)(8676002)(256004)(68736007)(478600001)(6916009)(97736004)(6486002)(81156014)(316002)(81166006)(8936002)(2351001)(6512007)(25786009)(99286004)(66066001)(86362001)(72206003)(5660300001)(82746002)(5640700003)(106356001)(6436002)(6506007)(2900100001)(2906002)(6116002)(102836004)(3846002)(2616005)(486006)(476003)(33656002)(305945005)(7736002)(186003)(2501003)(36756003)(14454004)(71200400001)(71190400001)(53936002)(26005);
 DIR:OUT; SFP:1101; SCL:1; SRVR:LNXP265MB1449;
 H:LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en;
 PTR:InfoNoRecords; A:1; MX:1; 
received-spf: None (protection.outlook.com: Sophos.com does not designate
 permitted sender hosts)
x-microsoft-antispam-message-info: Ue6Y+9cVZfwBX8fxpsydWl9YooMYgWzncgHxDIzYf0wNc3cjTqK5CD8xFt+KKBe0j/R3SQp80FLX36+cRJYMG9vhGIjKH/oUzIFEfj0GYIF0MG8pb8Ot4mG4rWla8NzcCJJbEnVCl5oYIypAYxoe+s9nP1E0GCqQNpk4qN81a+feUQzshfqeOj2pew0ck8wBL1k4d6J4BHCXmJ7xn9QABry18uBhVM7dyKQs0gHtuqHNMxF8U8Y+BCTvu7JwMlxzLs0BG4j9FgulIlVN3VP9kJncRAreY+ajj88qrobeTCshtDxFngRFLFDfOlYnNlGmvPxiI/XT63FdAtDsQLsyvDUcKAaDkH1LmMIqOAcgahs=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-ID: <B4AB08A4E1CC6648B870F3146FB62187@GBRP265.PROD.OUTLOOK.COM>
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 672becfa-3837-4432-4c50-08d640a7a9fa
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2018 09:43:37.4504 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 358a41ff-46d9-49d3-a297-370d894eae6a
X-MS-Exchange-Transport-CrossTenantHeadersStamped: LNXP265MB1449
X-OriginatorOrg: sophos.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sophos.com;
 h=from:to:subject:date:message-id:content-type:content-id:content-transfer-encoding:mime-version;
 s=global; bh=An4aEGkKZx2uuo+IjPgPPNDb/cnbgNNeqzU55je/HWE=;
 b=eiYltzyobTchYpw1OiDyCTPTA2MGZkpKWwXVb/IGrlW3ucxMjTli1ILRo/YmLge4SeaO05ITEk4TZsph/2rdOYasfcFJbadv+XmPMPVG5Ll6N00nDcMjViNz7fH/2kPReuOodBb4f1d2Vq9DKQqqeAB6fJhPDGDEHV/wZU8SBVU=
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id wA29hhAh022092
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: text/plain; charset="utf-8"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id wA29hks1022135

Hi,

the git tag for libssh2-1.8.0 seems to point to the wrong commit. Was somehow surprised to see version 1.7.0 in the header file of include/libssh2.h.
In contrast the tarball for 1.8.0 correctly defines in that header file:
#define LIBSSH2_VERSION_MAJOR                       1
#define LIBSSH2_VERSION_MINOR                       8
#define LIBSSH2_VERSION_PATCH                       0

Could you please correct this version insonsistency or let me know if this is intentionally?

Cheers,
Afschin


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

From libssh2-devel-bounces@cool.haxx.se  Fri Nov  2 10:53:33 2018
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id wA29rRaL029993;
	Fri, 2 Nov 2018 10:53:32 +0100
Received: from giant.haxx.se (mail [127.0.0.1])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id wA29rPq7029980
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 2 Nov 2018 10:53:25 +0100
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.15.2/8.15.2/Submit) with ESMTP id wA29rPYl029974
 for <libssh2-devel@cool.haxx.se>; Fri, 2 Nov 2018 10:53:25 +0100
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Fri, 2 Nov 2018 10:53:25 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: git tag for libssh2-1.8.0
In-Reply-To: <CEAC80E5-6DF1-41FA-95A8-662F65C51C3E@sophos.com>
Message-ID: <alpine.DEB.2.20.1811021049510.26832@tvnag.unkk.fr>
References: <CEAC80E5-6DF1-41FA-95A8-662F65C51C3E@sophos.com>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id wA29rRaL029993

On Fri, 2 Nov 2018, Afschin Hormozdiary wrote:

> Could you please correct this version insonsistency or let me know if this 
> is intentionally?

The official libssh2 releases are the tarballs on the web page that also are 
attached to the release tags on github. The tarballs are also signed (by me) 
to allow everyone to verify their authenticity.

The tag in the git repo is the exact state of the files when the release was 
generated. It is consistent and reproducible.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Fri Nov  2 11:16:56 2018
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id wA2AGfZl013339;
	Fri, 2 Nov 2018 11:16:52 +0100
Received: from mx5.sophos.com (mx5.sophos.com [195.171.192.119])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id wA2AGdr4013272
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 2 Nov 2018 11:16:39 +0100
Received: from mx5.sophos.com (localhost [127.0.0.1])
 by localhost (Postfix) with SMTP id 9A38842428
 for <libssh2-devel@cool.haxx.se>; Fri,  2 Nov 2018 10:16:34 +0000 (GMT)
Received: from abn-exch5b.green.sophos (unknown [10.224.64.46])
 by mx5.sophos.com (Postfix) with ESMTPS id 929E240FC4
 for <libssh2-devel@cool.haxx.se>; Fri,  2 Nov 2018 10:16:34 +0000 (GMT)
Received: from abn-exch5a.green.sophos (10.224.64.44) by
 abn-exch5b.green.sophos (10.224.64.47) with Microsoft SMTP Server (TLS) id
 15.0.1293.2; Fri, 2 Nov 2018 10:16:33 +0000
Received: from GBR01-CWL-obe.outbound.protection.outlook.com (23.103.134.146)
 by abn-exch5a.green.sophos (10.224.64.44) with Microsoft SMTP Server
 (TLS) id
 15.0.1293.2 via Frontend Transport; Fri, 2 Nov 2018 10:16:33 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=sophosapps.onmicrosoft.com; s=selector1-sophosapps-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=5kpepl1yl6fJSkX3CBAthiU3aJYamNFGB/kjb1pbQZ4=;
 b=sif6a8WhKx32yNT341VKnnM3JkfGXqaYyfB3lvKdxuDEcNjABfBRErvv5U0xZK1DHwdUt3BvCXAxOCgt2KlMDRYnC7a6PTGivg+C0AuO0kUwyhmpC1vGgL580tLlvSeJCUsaMBZjgIo8kNenhPa+Koyqqsu6d1J2r33aX5erJQs=
Received: from LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM (20.176.130.149) by
 LNXP265MB0601.GBRP265.PROD.OUTLOOK.COM (10.166.181.12) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.1294.21; Fri, 2 Nov 2018 10:16:32 +0000
Received: from LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM
 ([fe80::f5b3:302a:4b84:9995]) by LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM
 ([fe80::f5b3:302a:4b84:9995%2]) with mapi id 15.20.1294.024; Fri, 2 Nov 2018
 10:16:32 +0000
From: Afschin Hormozdiary <Afschin.Hormozdiary@Sophos.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: git tag for libssh2-1.8.0
Thread-Topic: git tag for libssh2-1.8.0
Thread-Index: AQHUcpCHmoK5pDf9ykyoyorM4JbshKU8PqqAgAAXOQA=
Date: Fri, 2 Nov 2018 10:16:32 +0000
Message-ID: <B1D48487-4599-4D38-8B14-833EEF2F79A2@sophos.com>
References: <CEAC80E5-6DF1-41FA-95A8-662F65C51C3E@sophos.com>
 <alpine.DEB.2.20.1811021049510.26832@tvnag.unkk.fr>
In-Reply-To: <alpine.DEB.2.20.1811021049510.26832@tvnag.unkk.fr>
Accept-Language: de-DE, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=none (sender IP is )
 smtp.mailfrom=Afschin.Hormozdiary@Sophos.com; 
x-originating-ip: [92.198.130.130]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; LNXP265MB0601;
 6:MkXYPucikrNOz2esSz8dXN2Vnjg1UT3QD8oyXnwbY7G1/nelT0VbejxTBpNrG271nGZj7HcU3TADVOrTr+vbI8pMPCw36T9o1AG0RlqaVShN2Ts8RBi94ANe6aTwwVHpYSBwWI6BVyGdxJVyAol3cGF/c+pka++P8ZzrMw15iynVDhTGmOeBiFmFEXO3kUkAt+9fM8zwSfmVwc1sOpZMD3sh28iwf+qcg/vUZGu2VVzqO2KVnAoH5jaLU3cisv8LDo6ovXCxdfwv41b2BoUzV0gKU671/BVHGy89xrWHr4GfByHtX2Q6PDYbc2z9xW/eaeFKwbMC4iatnWS2h9Q4wLJGf5UgTeqT5+YFsO4Jxo+P1Duhz35sRV55cKZveyhFbWa027S6sNttuuj6Hl/UlnMDZzQFZJqeZ5GTIKYNu/SuhfxJFc+iVHGa/ORdJtA1/rwLHdGyqtO9rysfTYUT3g==;
 5:SNvFaWjcyChH7zikOph15PZTL61eQkbksL4eGlI12Vl5ADf6/1Ex8wOD6ddNRMO94lraSZLdCo6QqfNuhB8vWJoXSV+yVUUPI/A8Jw3AA2yH/8o49IT0kU8yJwD+8fTpAXE0hpXLMSiaBmfo/GjYLiX7r0qQhhKEoLL4gJhdY+E=;
 7:9QSwyOT4MapPwrXZz6iEOdRyFB7tUczN+6ED7Q2rLGnYLiazxuGIbPGJ9tCdZiTLovt4iB7pqPkZ1yS2dfBQRFNbjW37A9eWDe0I6ovWYZjXsZZncNL/y9O2ALmcsrDG2lqVz1D20oZmytRdAPsH3g==
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: efec590c-161e-45b5-0c2d-08d640ac432d
x-microsoft-antispam: BCL:0; PCL:0;
 RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);
 SRVR:LNXP265MB0601; 
x-ms-traffictypediagnostic: LNXP265MB0601:
x-microsoft-antispam-prvs: <LNXP265MB0601D5D056E5875A23130E7F91CF0@LNXP265MB0601.GBRP265.PROD.OUTLOOK.COM>
x-exchange-antispam-report-test: UriScan:(166708455590820);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
 RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231382)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201708071742011)(7699051)(76991095);
 SRVR:LNXP265MB0601; BCL:0; PCL:0; RULEID:; SRVR:LNXP265MB0601; 
x-forefront-prvs: 08444C7C87
x-forefront-antispam-report: SFV:NSPM;
 SFS:(10009020)(39860400002)(136003)(346002)(376002)(366004)(396003)(199004)(189003)(68736007)(446003)(6916009)(81156014)(8676002)(8936002)(81166006)(36756003)(11346002)(486006)(86362001)(966005)(6116002)(72206003)(3846002)(2616005)(76176011)(14454004)(476003)(6506007)(5024004)(102836004)(478600001)(316002)(5660300001)(82746002)(14444005)(105586002)(83716004)(33656002)(256004)(71190400001)(71200400001)(66066001)(99286004)(106356001)(186003)(2906002)(25786009)(97736004)(26005)(53936002)(6436002)(6512007)(6306002)(7736002)(2900100001)(6486002)(305945005)(6246003)(229853002);
 DIR:OUT; SFP:1101; SCL:1; SRVR:LNXP265MB0601;
 H:LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en;
 PTR:InfoNoRecords; A:1; MX:1; 
received-spf: None (protection.outlook.com: Sophos.com does not designate
 permitted sender hosts)
x-microsoft-antispam-message-info: zNVzrCQc8YM45c5vF7HHvmYau467u+fMQB4wOYyq3WPhTtA+woJl70yGbg/tywoO/5mE3ucG0mc0d3f3zZlNWC9jh5qRcLFPW3cS5atww6w7GDFmoBdjoP0VHfO7KdJVOwAaToLHUU+m/HqibbLfUvGYyCec8qTTBrQu+5zhrCVbqONsQHYTf936ssH+kViGLwQ374qZL+fVIUNZEvZ4grlM8xMH3rcmgAd6rzEvovIy2hK1XlCWcvqtoOHyeHRCKk0CC579fQ/Vzg+PnxpidoeWkm/Tz5hK5wkDqntkHZ21vr1OsJkoD/BJ/Os9oMk1iISJaZhLQdT8tnDcqZ6Tik18twrXuyJJJ0Z0W7/nVu4=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-ID: <DAB09DD3B9E7204AAD0C2C8A028FE1EB@GBRP265.PROD.OUTLOOK.COM>
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: efec590c-161e-45b5-0c2d-08d640ac432d
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2018 10:16:32.4300 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 358a41ff-46d9-49d3-a297-370d894eae6a
X-MS-Exchange-Transport-CrossTenantHeadersStamped: LNXP265MB0601
X-OriginatorOrg: sophos.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sophos.com;
 h=from:to:subject:date:message-id:references:in-reply-to:content-type:content-id:content-transfer-encoding:mime-version;
 s=global; bh=5kpepl1yl6fJSkX3CBAthiU3aJYamNFGB/kjb1pbQZ4=;
 b=fxypzsI2HgLRziihpbof0oF/vr9AccJeSx2E99N6FYTs3wt0R6+Wv80SHv4Pq+Bz1wOVMcIH7CrDLLwITF9fPHTTsUioiqwc5SC5IynMrXwH+JWZghPZ42hPLlUgx0h3b+UwBdsP6kanwanltlvsMdVXk6J88YrdjrJpzjPM3zE=
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id wA2AGdr4013272
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: text/plain; charset="utf-8"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id wA2AGfZl013339

Hi Daniel,

thanks for your reply. "The tag in the git repo is the exact state of the files when the release was generated".
Please verify this:
> git checkout libssh2-1.8.0
HEAD is now at 30e9c13... RELEASE-NOTES: adjusted for 1.8.0
>
> grep LIBSSH2_VERSION_MINOR include/libssh2.h
#define LIBSSH2_VERSION_MINOR                       7
>

This is what i get after cloning the git repo git@github.com:libssh2/libssh2.git.
And this differs from what i can find in the same header file taken from the 1.8.0 tarball.

This is not what i expected and not something that i am used to from other projects.
Just wanted to point you to this. Maybe i fooled myself somehow, but to me it seems to be
inconsistent.

Cheers,
Afschin

﻿On 11/2/18, 10:58 AM, "libssh2-devel on behalf of Daniel Stenberg" <libssh2-devel-bounces@cool.haxx.se on behalf of daniel@haxx.se> wrote:

    On Fri, 2 Nov 2018, Afschin Hormozdiary wrote:
    
    > Could you please correct this version insonsistency or let me know if this 
    > is intentionally?
    
    The official libssh2 releases are the tarballs on the web page that also are 
    attached to the release tags on github. The tarballs are also signed (by me) 
    to allow everyone to verify their authenticity.
    
    The tag in the git repo is the exact state of the files when the release was 
    generated. It is consistent and reproducible.
    
    -- 
    
      / daniel.haxx.se
    _______________________________________________
    libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
    


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

From libssh2-devel-bounces@cool.haxx.se  Fri Nov  2 11:28:16 2018
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id wA2AS4jv022233;
	Fri, 2 Nov 2018 11:28:14 +0100
Received: from mx6.sophos.com (mx6.sophos.com [195.171.192.120])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id wA2AS3it022193
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 2 Nov 2018 11:28:03 +0100
Received: from mx6.sophos.com (localhost [127.0.0.1])
 by localhost (Postfix) with SMTP id 0619032671B
 for <libssh2-devel@cool.haxx.se>; Fri,  2 Nov 2018 10:27:59 +0000 (GMT)
Received: from abn-exch5b.green.sophos (unknown [10.224.64.46])
 by mx6.sophos.com (Postfix) with ESMTPS id F1F6D326703
 for <libssh2-devel@cool.haxx.se>; Fri,  2 Nov 2018 10:27:58 +0000 (GMT)
Received: from abn-exch4c.green.sophos (10.224.64.39) by
 abn-exch5b.green.sophos (10.224.64.47) with Microsoft SMTP Server (TLS) id
 15.0.1293.2; Fri, 2 Nov 2018 10:27:57 +0000
Received: from abn-exch5a.green.sophos (10.224.64.44) by
 abn-exch4c.green.sophos (10.224.64.39) with Microsoft SMTP Server (TLS) id
 15.0.1293.2; Fri, 2 Nov 2018 10:27:55 +0000
Received: from GBR01-CWL-obe.outbound.protection.outlook.com (23.103.134.147)
 by abn-exch5a.green.sophos (10.224.64.44) with Microsoft SMTP Server
 (TLS) id
 15.0.1293.2 via Frontend Transport; Fri, 2 Nov 2018 10:27:55 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=sophosapps.onmicrosoft.com; s=selector1-sophosapps-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=c5o9uh4AIXVqFQv8WcHssMmkkrRgzpQUV2NlBiDuz2s=;
 b=sYc6qdccIs63yltbRAygDMB3gXLiJGBRewlIlpWd1i8rpn8i7noSi2bWwz5F/itQlvLa/ZOV0CkHCaB9ozh9j8M2MJRMP7Hy23ivC+Eync3XiwoJdIB+nGQrxqHWyGbWPOB3Wf9RPHbtx3qctMnXbWt1lZeIDRh17A758VEUXZ4=
Received: from LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM (20.176.130.149) by
 LNXP265MB0458.GBRP265.PROD.OUTLOOK.COM (10.166.178.19) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.1294.21; Fri, 2 Nov 2018 10:27:55 +0000
Received: from LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM
 ([fe80::f5b3:302a:4b84:9995]) by LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM
 ([fe80::f5b3:302a:4b84:9995%2]) with mapi id 15.20.1294.024; Fri, 2 Nov 2018
 10:27:55 +0000
From: Afschin Hormozdiary <Afschin.Hormozdiary@Sophos.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: git tag for libssh2-1.8.0
Thread-Topic: git tag for libssh2-1.8.0
Thread-Index: AQHUcpCHmoK5pDf9ykyoyorM4JbshKU8PqqAgAAXOQCAAAMtAA==
Date: Fri, 2 Nov 2018 10:27:55 +0000
Message-ID: <56A1FABB-A51B-4A56-80A5-442AA48A0EA8@sophos.com>
References: <CEAC80E5-6DF1-41FA-95A8-662F65C51C3E@sophos.com>
 <alpine.DEB.2.20.1811021049510.26832@tvnag.unkk.fr>
 <B1D48487-4599-4D38-8B14-833EEF2F79A2@sophos.com>
In-Reply-To: <B1D48487-4599-4D38-8B14-833EEF2F79A2@sophos.com>
Accept-Language: de-DE, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [92.198.130.130]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; LNXP265MB0458;
 6:dgo2qStsStlfTldKs/icLM0RiMVzMD+ZuA3Y9oGKhvOaKIsuLg0tmSiq97v5lUJpFRfdnj7BCmW/tT4cXxGhPXQkGKr01pgWvB3Ha22mh7CLBYfRwLwmTim0UOQrdDtv5+3NlFQFSYL6o9mnTxgCS+K193snTccTBCMeDf2qh6aCr2jKwQgcJQzecpR+e19QMplcdVR3Nu9dtT7IW6SIO8aSoJTHDWEt6atSDqeSJFofkw+ErtXUJPzbCXy8NkTIDyNhJDr+eUiFI2n/QLZm4s8uDcJwXUdtrubTOFsnVTsHTqf9qB2PBWMhjbW6avLhoIVq0tUN43WO4tlxrNtRDCPilLPWgd9e5OUzUhCD6OapkR+loluMm7JbyXykD7qCk+l/02128+qf0UoMu+ugqSRxuv+8QRXAAdlwot9+3KiL+1xLNRIoPbBYPTnno7Wpy9TQXjuY1qi4JCYB9rpWUw==;
 5:apB/mGmnjORzOMM72fZ+aXmexTqKsUd55ETK9/4quCAhoBTIuYEbde4sVCCTQGsBJcOWLJZji/LGesTuve4xSmBFgiChbfClCHjR/0ORU59Ka25cTBBWmQuIEJwmr5Oy7vTybeTa23/qlY1cOaaho1Xu796CyF2digAD6ZoP768=;
 7:jY0gjvMMO8+55llmM60hv22saK0/sePQv/iAnH4nVfZzRclBlVRcNR0KFx54wgJpDajnaamE4yZB6WdwvbSl4/3FrcoTJrjeAWTEmMnJCr5+mX9F6yv/loQnjshvKBFJgbkneYE9ZLt+mD3yJKA4wQ==
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 70d82725-b9fb-4eec-c84e-08d640adda08
x-microsoft-antispam: BCL:0; PCL:0;
 RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);
 SRVR:LNXP265MB0458; 
x-ms-traffictypediagnostic: LNXP265MB0458:
authentication-results: spf=none (sender IP is )
 smtp.mailfrom=Afschin.Hormozdiary@Sophos.com; 
x-microsoft-antispam-prvs: <LNXP265MB04580CEF2081CBC639834B3491CF0@LNXP265MB0458.GBRP265.PROD.OUTLOOK.COM>
x-exchange-antispam-report-test: UriScan:(166708455590820)(197898729827340);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
 RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231382)(944501410)(52105095)(148016)(149066)(150057)(6041310)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051)(76991095);
 SRVR:LNXP265MB0458; BCL:0; PCL:0; RULEID:; SRVR:LNXP265MB0458; 
x-forefront-prvs: 08444C7C87
x-forefront-antispam-report: SFV:NSPM;
 SFS:(10009020)(39860400002)(396003)(346002)(376002)(366004)(136003)(189003)(199004)(33656002)(76176011)(486006)(6436002)(2616005)(106356001)(476003)(6512007)(6306002)(186003)(53936002)(229853002)(82746002)(5660300001)(68736007)(6486002)(6246003)(7736002)(3846002)(6116002)(2900100001)(105586002)(26005)(86362001)(97736004)(305945005)(316002)(11346002)(25786009)(575784001)(478600001)(102836004)(5024004)(14444005)(53546011)(6506007)(446003)(966005)(72206003)(256004)(66066001)(99286004)(6916009)(8676002)(81166006)(36756003)(81156014)(83716004)(2906002)(14454004)(8936002)(71190400001)(71200400001);
 DIR:OUT; SFP:1101; SCL:1; SRVR:LNXP265MB0458;
 H:LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en;
 PTR:InfoNoRecords; MX:1; A:1; 
received-spf: None (protection.outlook.com: Sophos.com does not designate
 permitted sender hosts)
x-microsoft-antispam-message-info: yqEE7eVnUbriiP5guPMo+XNv6OANsMolcvTJcIGh+iMYZRF6UPNcqUgshqmwFU7UcQAkt0ehb/vTbAQQ+VSa+CDLejCnArt6etKiWuBv5GSxzGpjBur9lMakBrqEgsYNmiEuWpa17WJ2tE9bQSPMjLM7aiFnce51Ve+A+fDCVtyBSvUXrZ273ep1D+B0TQcqmJ6PubvocjA749kBagr3YNTHCHvtuf7iyrSAUrqD8fpiWWprCXHL924/7RzYacb9ugchCW/x12sO+0++xyen8aHmS/38ikmJvwFJtFAIO2iVzY3FvOUskZO8XqwhnpzQ3wU8rV3ap+4MEtroIYHgGY0YOaYD/rh/ZX6krA+7x24=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-ID: <54D69441A21CED4B92D8AE7E49835E82@GBRP265.PROD.OUTLOOK.COM>
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 70d82725-b9fb-4eec-c84e-08d640adda08
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2018 10:27:55.0563 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 358a41ff-46d9-49d3-a297-370d894eae6a
X-MS-Exchange-Transport-CrossTenantHeadersStamped: LNXP265MB0458
X-OriginatorOrg: sophos.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sophos.com;
 h=from:to:subject:date:message-id:references:in-reply-to:content-type:content-id:content-transfer-encoding:mime-version;
 s=global; bh=c5o9uh4AIXVqFQv8WcHssMmkkrRgzpQUV2NlBiDuz2s=;
 b=viniNHErfF9Xlge46czZFD9Is27vrCyfEGyY9Ai3kuVELW355q5RE8+TIhdBojw+jFfb8j27SlM13dNxQLKwt7qLApysczT6XD1PCAPybIQRNAx8kTkmI2+dB7aO7L9kyEsadTQdJteGYPJdWCqdE+erLhiEfIJcGmdvp+PaZFw=
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id wA2AS3it022193
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: text/plain; charset="utf-8"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id wA2AS4jv022233

The tag on github associates version 1.8.0 with 30e9c13. Here is a link to the libssh2.h at 30e9c13.
https://github.com/libssh2/libssh2/blob/30e9c1347e3b8baa2951db612f05e6d87fc8e2f2/include/libssh2.h#L54

There must be something that changes this macro definition between commit and tarball packaging.
Here it is:
https://github.com/libssh2/libssh2/commit/d75e9c5c0db75e87715d6fdd410e76296b53b886#diff-d0e781ac3006f6ad820471d567561762

The version macros have not been updated between 1.7.0 and 1.8.1 git-wise but are correct in the tarballs. That means if someone
builds from the git source the version info was wrong until aforementioned commit.

﻿On 11/2/18, 11:16 AM, "Afschin Hormozdiary" <Afschin.Hormozdiary@Sophos.com> wrote:

    Hi Daniel,
    
    thanks for your reply. "The tag in the git repo is the exact state of the files when the release was generated".
    Please verify this:
    > git checkout libssh2-1.8.0
    HEAD is now at 30e9c13... RELEASE-NOTES: adjusted for 1.8.0
    >
    > grep LIBSSH2_VERSION_MINOR include/libssh2.h
    #define LIBSSH2_VERSION_MINOR                       7
    >
    
    This is what i get after cloning the git repo git@github.com:libssh2/libssh2.git.
    And this differs from what i can find in the same header file taken from the 1.8.0 tarball.
    
    This is not what i expected and not something that i am used to from other projects.
    Just wanted to point you to this. Maybe i fooled myself somehow, but to me it seems to be
    inconsistent.
    
    Cheers,
    Afschin
    
    On 11/2/18, 10:58 AM, "libssh2-devel on behalf of Daniel Stenberg" <libssh2-devel-bounces@cool.haxx.se on behalf of daniel@haxx.se> wrote:
    
        On Fri, 2 Nov 2018, Afschin Hormozdiary wrote:
        
        > Could you please correct this version insonsistency or let me know if this 
        > is intentionally?
        
        The official libssh2 releases are the tarballs on the web page that also are 
        attached to the release tags on github. The tarballs are also signed (by me) 
        to allow everyone to verify their authenticity.
        
        The tag in the git repo is the exact state of the files when the release was 
        generated. It is consistent and reproducible.
        
        -- 
        
          / daniel.haxx.se
        _______________________________________________
        libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
        
    
    


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

From libssh2-devel-bounces@cool.haxx.se  Fri Nov  2 11:59:10 2018
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id wA2AwlZJ010962;
	Fri, 2 Nov 2018 11:59:04 +0100
Received: from giant.haxx.se (mail [127.0.0.1])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id wA2Awjge010862
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 2 Nov 2018 11:58:45 +0100
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.15.2/8.15.2/Submit) with ESMTP id wA2Awjnq010853
 for <libssh2-devel@cool.haxx.se>; Fri, 2 Nov 2018 11:58:45 +0100
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Fri, 2 Nov 2018 11:58:45 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: git tag for libssh2-1.8.0
In-Reply-To: <56A1FABB-A51B-4A56-80A5-442AA48A0EA8@sophos.com>
Message-ID: <alpine.DEB.2.20.1811021158020.26832@tvnag.unkk.fr>
References: <CEAC80E5-6DF1-41FA-95A8-662F65C51C3E@sophos.com>
 <alpine.DEB.2.20.1811021049510.26832@tvnag.unkk.fr>
 <B1D48487-4599-4D38-8B14-833EEF2F79A2@sophos.com>
 <56A1FABB-A51B-4A56-80A5-442AA48A0EA8@sophos.com>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
X-fromdanielhimself: yes
MIME-Version: 1.0
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id wA2AwlZJ010962

On Fri, 2 Nov 2018, Afschin Hormozdiary wrote:

> There must be something that changes this macro definition between commit 
> and tarball packaging.

Yes, the maketgz script that generates the releases. Checkout the tag, run the 
script and voila, you have the release tarball.

-- 

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

From libssh2-devel-bounces@cool.haxx.se  Fri Nov  2 12:17:04 2018
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id wA2BGrJR024993;
	Fri, 2 Nov 2018 12:17:00 +0100
Received: from mx6.sophos.com (mx6.sophos.com [195.171.192.120])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id wA2BGoI6024961
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 2 Nov 2018 12:16:51 +0100
Received: from mx6.sophos.com (localhost [127.0.0.1])
 by localhost (Postfix) with SMTP id 0805C326602
 for <libssh2-devel@cool.haxx.se>; Fri,  2 Nov 2018 11:16:46 +0000 (GMT)
Received: from abn-exch5b.green.sophos (unknown [10.224.64.46])
 by mx6.sophos.com (Postfix) with ESMTPS id F157C3265F0
 for <libssh2-devel@cool.haxx.se>; Fri,  2 Nov 2018 11:16:45 +0000 (GMT)
Received: from abn-exch4c.green.sophos (10.224.64.39) by
 abn-exch5b.green.sophos (10.224.64.46) with Microsoft SMTP Server (TLS) id
 15.0.1293.2; Fri, 2 Nov 2018 11:16:44 +0000
Received: from abn-exch5a.green.sophos (10.224.64.44) by
 abn-exch4c.green.sophos (10.224.64.39) with Microsoft SMTP Server (TLS) id
 15.0.1293.2; Fri, 2 Nov 2018 11:16:42 +0000
Received: from GBR01-LO2-obe.outbound.protection.outlook.com (23.103.134.176)
 by abn-exch5a.green.sophos (10.224.64.44) with Microsoft SMTP Server
 (TLS) id
 15.0.1293.2 via Frontend Transport; Fri, 2 Nov 2018 11:16:42 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=sophosapps.onmicrosoft.com; s=selector1-sophosapps-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=5g5V3pQoJespuha18tRToW076mSnQ123UYoyKodNbPw=;
 b=XWMoLLbqgn1oDfvWUtjw9LO26YQKU6ZNWQcgqW35+uQkgnQUDsObk1oWkFUsjhH0soiEP5b/vfHccRSAMtZN6HI5gtXKIxXUbtl6GQI+5KJcToF1WZVmtTwuOE9jXqQkJpb6R2g99O7og2EHrDZHdkfXAjYI8H7CruoERS9bWfg=
Received: from LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM (20.176.130.149) by
 LNXP265MB0890.GBRP265.PROD.OUTLOOK.COM (20.176.128.150) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.1294.20; Fri, 2 Nov 2018 11:16:42 +0000
Received: from LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM
 ([fe80::f5b3:302a:4b84:9995]) by LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM
 ([fe80::f5b3:302a:4b84:9995%2]) with mapi id 15.20.1294.024; Fri, 2 Nov 2018
 11:16:42 +0000
From: Afschin Hormozdiary <Afschin.Hormozdiary@Sophos.com>
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: git tag for libssh2-1.8.0
Thread-Topic: git tag for libssh2-1.8.0
Thread-Index: AQHUcpCHmoK5pDf9ykyoyorM4JbshKU8PqqAgAAXOQCAAAMtAP//99uAgAAVxwA=
Date: Fri, 2 Nov 2018 11:16:42 +0000
Message-ID: <4EC97B77-045C-4F23-9460-140625027210@sophos.com>
References: <CEAC80E5-6DF1-41FA-95A8-662F65C51C3E@sophos.com>
 <alpine.DEB.2.20.1811021049510.26832@tvnag.unkk.fr>
 <B1D48487-4599-4D38-8B14-833EEF2F79A2@sophos.com>
 <56A1FABB-A51B-4A56-80A5-442AA48A0EA8@sophos.com>
 <alpine.DEB.2.20.1811021158020.26832@tvnag.unkk.fr>
In-Reply-To: <alpine.DEB.2.20.1811021158020.26832@tvnag.unkk.fr>
Accept-Language: de-DE, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=none (sender IP is )
 smtp.mailfrom=Afschin.Hormozdiary@Sophos.com; 
x-originating-ip: [92.198.130.130]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; LNXP265MB0890;
 6:Rm2Sk48nIlIKMePtRWimNBCUN7d1Z2Wh1xH5U6eDBIRw3ZSDS+9ZbYFpcJhhEfoZbZVO+eYv1HEpd436hK4qZulzu8dpSSi6sNTOnRKE9kJZdIWngMJYW7TuOePh3PSK1ggmgvoWMGvgJl7XWIc0XiXSSHYZKD7t2rha0CQJG8waEeWlj4c3dxuBvTBFwWqAMiFT6mLr8ZnzrN1KjLx8+8XW0sdWwq+tWcJHc7EU2JoiPr9O8bVogNvRk11nPgZ8mFnhjQ+jVn0t+TfpjznYQGEVgNmWcslcCWjgTGGz0jfb4ds7AsRAVHvl4/Ma5e4PSp6u243WbaVo/DoEbPg+usS7iQeQzQzF2cecej0w26pCSY38PtFnuMCm+CDoO5VA/cxc7yU4fu5C6E7SSY3ICO3gJzUFe9YJPT1VlZmU97gkUfZVQ8GfEaefEtGp28UN7fjfbS1hRysHER7laUhDmA==;
 5:b3XLQk05ctqVPti4sGTOgrVNJ2kwn3EzgFQwh7PYrzu8ZwUWwcWe5Z/s7zoBxZDWNm7JwYv1L9bJbk5D6yFblSotQq8AvhpJQeeSA2Cp60ng8x1C5gjYpiOPhw3F+q5W8DrU4Unx3Pwy2clY6ydgDT+Yc4SGiCurERkog3oaiWE=;
 7:TSPm6f2R+xvqXXEMzMl5NCa2JCwVUbTv4z40HOGcFFCARloMPBFWmjuvwmRiHHmKb+wUoeA/9EZLS4PBUSG4dfG5ORLZVKGs2OWR4ldqUA+q+UDnwtLacmkzZgaMUM1N30EiNboClMlRTOLudj/WrA==
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: 14f00bbf-51cd-4a4d-4c97-08d640b4aaa7
x-microsoft-antispam: BCL:0; PCL:0;
 RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);
 SRVR:LNXP265MB0890; 
x-ms-traffictypediagnostic: LNXP265MB0890:
x-microsoft-antispam-prvs: <LNXP265MB08908E376B622899C056EE3491CF0@LNXP265MB0890.GBRP265.PROD.OUTLOOK.COM>
x-exchange-antispam-report-test: UriScan:;
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0;
 RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231382)(944501410)(52105095)(10201501046)(148016)(149066)(150057)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095);
 SRVR:LNXP265MB0890; BCL:0; PCL:0; RULEID:; SRVR:LNXP265MB0890; 
x-forefront-prvs: 08444C7C87
x-forefront-antispam-report: SFV:NSPM;
 SFS:(10009020)(346002)(366004)(136003)(39860400002)(376002)(396003)(199004)(189003)(51914003)(71190400001)(71200400001)(83716004)(2900100001)(97736004)(478600001)(76176011)(26005)(99286004)(6506007)(102836004)(256004)(72206003)(14454004)(966005)(36756003)(7736002)(305945005)(105586002)(106356001)(82746002)(316002)(66066001)(93886005)(11346002)(486006)(229853002)(33656002)(6306002)(6512007)(2616005)(476003)(53936002)(25786009)(6246003)(6436002)(446003)(6486002)(2906002)(86362001)(6916009)(5660300001)(8676002)(81156014)(186003)(8936002)(68736007)(3846002)(81166006)(6116002);
 DIR:OUT; SFP:1101; SCL:1; SRVR:LNXP265MB0890;
 H:LNXP265MB1082.GBRP265.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en;
 PTR:InfoNoRecords; A:1; MX:1; 
received-spf: None (protection.outlook.com: Sophos.com does not designate
 permitted sender hosts)
x-microsoft-antispam-message-info: 6VORT8Skg8U3Gf/rUXwZjS+JPEVhMTYVI9jwtexIDOCFeomJe5yY2aJ3+KwZHbFMn/bR6eRtxeC3kVwZdLp4NhwAJOPC/6wfYJuTnfWkNCJWSFu1kakbmpG7/R4Bp+KOa8A+FxPwZZiMEz8XrBmHCQGUxGf98KIBSJskBR1qZTcOPfkbuBsU8tP2pTAJfZV8nCjNPLMMagWw2cIT1a4yFyls/ba8WfDHDJOFKlAmp2odzyRdhZRqX+7iKwM+hcWouO0z8eeZ9DwjG25VxbQ/cWHqSF2AAoXbk/JobE7zJrMRZOft3TcvFtvUy2YI20IerB2KL8qY9bTmwoqAyoKz2IBqFKSCIEoAWeIp0lM5G8w=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-ID: <C1860F385C66444BAF63FD782ED2115B@GBRP265.PROD.OUTLOOK.COM>
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 14f00bbf-51cd-4a4d-4c97-08d640b4aaa7
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2018 11:16:42.0573 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 358a41ff-46d9-49d3-a297-370d894eae6a
X-MS-Exchange-Transport-CrossTenantHeadersStamped: LNXP265MB0890
X-OriginatorOrg: sophos.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sophos.com;
 h=from:to:subject:date:message-id:references:in-reply-to:content-type:content-id:content-transfer-encoding:mime-version;
 s=global; bh=5g5V3pQoJespuha18tRToW076mSnQ123UYoyKodNbPw=;
 b=OXEAKJTX+t5svQCTTaa4G3HRsuaRp5bYvwQCCRvjMreLIf9pkWbuufOkE+Ooadb5po/KetEhCkRGgQP5KOJqQVdQ/hCV4Y9IF+hjmRsrESFVzX8qMpB7T/qT49UarDn/lSCKch1HbEOjJKBAklVeZ9jNoAWvbr21ptNAPYCcTZ8=
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id wA2BGoI6024961
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: text/plain; charset="utf-8"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id wA2BGrJR024993

ok, so this means, libssh2 versioning is done outside of the VERSION control system.
Thanks for the explanation, however this was really unexpected.

﻿On 11/2/18, 12:03 PM, "Daniel Stenberg" <daniel@haxx.se> wrote:

    On Fri, 2 Nov 2018, Afschin Hormozdiary wrote:
    
    > There must be something that changes this macro definition between commit 
    > and tarball packaging.
    
    Yes, the maketgz script that generates the releases. Checkout the tag, run the 
    script and voila, you have the release tarball.
    
    -- 
    
      / daniel.haxx.se
    _______________________________________________
    libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
    


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

From libssh2-devel-bounces@cool.haxx.se  Fri Nov  2 16:44:13 2018
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id wA2Fhcr7008382;
	Fri, 2 Nov 2018 16:44:01 +0100
Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com
 [IPv6:2607:f8b0:4864:20:0:0:0:b29])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id wA2FhZdE008297
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Fri, 2 Nov 2018 16:43:36 +0100
Received: by mail-yb1-xb29.google.com with SMTP id z2-v6so971390ybj.2
 for <libssh2-devel@cool.haxx.se>; Fri, 02 Nov 2018 08:43:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=Vw3ZICk9V8GGP16L/i7lR6o8RJYgbnlSLkXimQsgB1E=;
 b=lH2olaiQuqI6+yDmTIJ8nXHYL5E4hFMVjJi2nhGzYUsiQi4hhh2WZhTeQD2dqbhf0c
 D5VzKmaaycDtpMxdzimEDe54edZlteqbaiTa0DuBbTksJC3LgpG+oGsPJwyTiGwc1psb
 lHwFdzacwcsac0hpc8bYv/RyCsP7C9xFOpByk810ZNhTJezH9jaj6guB/rfGCB5qLkjz
 WXpRuwySRKD6hm7iDTMGuN91Kk6rdLH1R2W9I+mzEafNp6mk9R5OlXb+18+HmZxy7ARR
 g2HRz94ZbiRhJCUkHr7W0iE2oel8zWEpfoODROKpn7w2CJvc8TI1J93Vu0j03V5NLm8c
 Gr3g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=Vw3ZICk9V8GGP16L/i7lR6o8RJYgbnlSLkXimQsgB1E=;
 b=qxPAmrVMtua8QJhB1OpODFJ6T/UWYy8rdXhYGns//XvemEvdduhCZGSoSRFyJ/Q0ST
 knnhSY0o6UHHlMzB9m6DGTPxlBMa3MCFx9nKMNgx9wP6ajP6bECmXEGEHQayaa4RRk8r
 4VcoRVftTIWnNartWHuX3/vQXbB9rheZ3mNcw5zm4cYB/5/I+JXPoPTeKu+W+TKdX2xE
 imKKl+8RzQKECxllJ8NbK3HauwhdrPuFnbY7f4fg+tXspYajSUs5QzLT2MMzzIKECwlD
 Y3M7x8VaRtnT2x0E7r6PAmn3KFl0NRNNxNZrRVcGoJMyBSok46f7Lv++yBLXcuvM+UTk
 GVJQ==
X-Gm-Message-State: AGRZ1gIYCagwq/i14GJh8gjsiV6deUPDT098Ax5jxn1zk1qbaAEMSax9
 mpBLrbfymOa+YsA2QmKxDfZo8a9R+VVHqfKFN57mzPfS4z8=
X-Google-Smtp-Source: AJdET5dgHJvk8ly8cHxrXK7u9Qq9tg1Zs0toRCNr0Z1I29blE18FRiewxw8oJI4Ei6lq7E2IwSBSMGHNGAYX8KbksHg=
X-Received: by 2002:a25:b3c9:: with SMTP id
 x9-v6mr11815034ybf.508.1541173410778; 
 Fri, 02 Nov 2018 08:43:30 -0700 (PDT)
MIME-Version: 1.0
From: Manikandan J <jmani.20@gmail.com>
Date: Fri, 2 Nov 2018 21:13:19 +0530
Message-ID: <CABDFp21KJR2jF1wg_9fsVqfCESgb_mdZNKCbjjzUSjSfe1GP9w@mail.gmail.com>
Subject: libssh2-1.8.0 Compilation failed on Z/OS V2R1
To: libssh2-devel@cool.haxx.se
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============1094623041=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============1094623041==
Content-Type: multipart/alternative; boundary="000000000000afd25d0579b06504"

--000000000000afd25d0579b06504
Content-Type: text/plain; charset="UTF-8"

Hi,

We have compiled the libssh2-1.8.0 source on windows & Linux platform. It
is working fine. But when we try to compile the same on Z/OS V2R1 platform,
got the following error message,

Failure is happening while the configuration particularly while creating
*./config.status*

*checking whether `alloca.c' needs Cray hooks... no*
*checking stack direction for C alloca... -1*
*checking for an ANSI C-conforming const... yes*
*checking for inline... __inline__*
*checking non-blocking sockets style... O_NONBLOCK*
*checking that generated files are newer than configure... done*
*configure: creating ./config.status*
*./configure 20275: FSUM7330 << unclosed*
*gmake[1]: *** [../libssh2-1.8.0/Makefile] Error 1*
*gmake[1]: Target `all' not remade because of errors.*

We have used the below c89 compiler options for the compilation,

LPATHIDX=0

ARGS[0]="c89"
ARGS[1]="-Wc,target(zOSV2R1),langlvl(extended),halton(CCN3296),longname,rent,enum(int),float(ieee),noansialias,exportall,dll,xplink,norostring"
ARGS[2]="-Wl,compat=ZOSV2R1,xplink"
ARGS[3]="-D_XOPEN_SOURCE=600"
ARGS[4]="-D_XOPEN_SOURCE_EXTENDED"
ARGS[5]="-D_LARGEFILE_SOURCE"
ARGS[6]="-D_LARGEFILE64_SOURCE"
ARGS[7]="-DMVS"
ARGS[8]="-D_OE_SOCKETS"
ARGS[9]="-O2"
ARGIDX=${#ARGS[@]}

Please help me to resolve this.
Thanks in advance!!!


-- 

*Thanks and Regards,*

*Manikandan J  *

*Please consider Environment before printing this Email.*

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

<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_defa=
ult" style=3D"font-family:verdana,sans-serif;color:rgb(0,0,0)">Hi,</div><di=
v class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:rgb=
(0,0,0)"><br></div><div class=3D"gmail_default" style=3D"font-family:verdan=
a,sans-serif;color:rgb(0,0,0)">We have compiled the libssh2-1.8.0 source on=
 windows &amp; Linux platform. It is working fine. But when we try to compi=
le the same on Z/OS V2R1 platform, got the following error message,</div><d=
iv class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:rg=
b(0,0,0)"><br></div><div class=3D"gmail_default" style=3D"font-family:verda=
na,sans-serif;color:rgb(0,0,0)">Failure is happening while the configuratio=
n particularly while creating=C2=A0<i>./config.status</i></div><div class=
=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:rgb(0,0,0)=
"><br></div><div class=3D"gmail_default" style=3D"font-family:verdana,sans-=
serif;color:rgb(0,0,0)"><div class=3D"gmail_default"><i>checking whether `a=
lloca.c&#39; needs Cray hooks... no</i></div><div class=3D"gmail_default"><=
i>checking stack direction for C alloca... -1</i></div><div class=3D"gmail_=
default"><i>checking for an ANSI C-conforming const... yes</i></div><div cl=
ass=3D"gmail_default"><i>checking for inline... __inline__</i></div><div cl=
ass=3D"gmail_default"><i>checking non-blocking sockets style... O_NONBLOCK<=
/i></div><div class=3D"gmail_default"><i>checking that generated files are =
newer than configure... done</i></div><div class=3D"gmail_default"><i>confi=
gure: creating ./config.status</i></div><div class=3D"gmail_default"><i>./c=
onfigure 20275: FSUM7330 &lt;&lt; unclosed</i></div><div class=3D"gmail_def=
ault"><i>gmake[1]: *** [../libssh2-1.8.0/Makefile] Error 1</i></div><div cl=
ass=3D"gmail_default"><i>gmake[1]: Target `all&#39; not remade because of e=
rrors.</i></div><div><br></div></div><div><div class=3D"gmail_default" styl=
e=3D"font-family:verdana,sans-serif;color:rgb(0,0,0)">We have used the belo=
w c89 compiler options for the compilation,</div><div class=3D"gmail_defaul=
t" style=3D"font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div=
 class=3D"gmail_default"><div class=3D"gmail_default"><font color=3D"#00000=
0" face=3D"verdana, sans-serif">LPATHIDX=3D0</font></div><div class=3D"gmai=
l_default"><font color=3D"#000000" face=3D"verdana, sans-serif"><br></font>=
</div><div class=3D"gmail_default"><font color=3D"#000000" face=3D"verdana,=
 sans-serif">ARGS[0]=3D&quot;c89&quot;</font></div><div class=3D"gmail_defa=
ult"><font color=3D"#000000" face=3D"verdana, sans-serif">ARGS[1]=3D&quot;-=
Wc,target(zOSV2R1),langlvl(extended),halton(CCN3296),longname,rent,enum(int=
),float(ieee),noansialias,exportall,dll,xplink,norostring&quot;</font></div=
><div class=3D"gmail_default"><font color=3D"#000000" face=3D"verdana, sans=
-serif">ARGS[2]=3D&quot;-Wl,compat=3DZOSV2R1,xplink&quot;</font></div><div =
class=3D"gmail_default"><font color=3D"#000000" face=3D"verdana, sans-serif=
">ARGS[3]=3D&quot;-D_XOPEN_SOURCE=3D600&quot;</font></div><div class=3D"gma=
il_default"><font color=3D"#000000" face=3D"verdana, sans-serif">ARGS[4]=3D=
&quot;-D_XOPEN_SOURCE_EXTENDED&quot;</font></div><div class=3D"gmail_defaul=
t"><font color=3D"#000000" face=3D"verdana, sans-serif">ARGS[5]=3D&quot;-D_=
LARGEFILE_SOURCE&quot;</font></div><div class=3D"gmail_default"><font color=
=3D"#000000" face=3D"verdana, sans-serif">ARGS[6]=3D&quot;-D_LARGEFILE64_SO=
URCE&quot;</font></div><div class=3D"gmail_default"><font color=3D"#000000"=
 face=3D"verdana, sans-serif">ARGS[7]=3D&quot;-DMVS&quot;</font></div><div =
class=3D"gmail_default"><font color=3D"#000000" face=3D"verdana, sans-serif=
">ARGS[8]=3D&quot;-D_OE_SOCKETS&quot;</font></div><div class=3D"gmail_defau=
lt"><font color=3D"#000000" face=3D"verdana, sans-serif">ARGS[9]=3D&quot;-O=
2&quot;</font></div><div class=3D"gmail_default"><font color=3D"#000000" fa=
ce=3D"verdana, sans-serif">ARGIDX=3D${#ARGS[@]}</font></div><div style=3D"c=
olor:rgb(0,0,0);font-family:verdana,sans-serif"><br></div></div><div class=
=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:rgb(0,0,0)=
">Please help me to resolve this.=C2=A0</div></div><div><div class=3D"gmail=
_default" style=3D"font-family:verdana,sans-serif;color:rgb(0,0,0)">Thanks =
in advance!!!</div><br></div><div><br></div>-- <br><div dir=3D"ltr" class=
=3D"gmail_signature"><div dir=3D"ltr"><div><p style=3D"margin:0px;font-fami=
ly:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><b><s=
pan style=3D"font-size:11pt;font-family:Rockwell,serif;color:rgb(0,176,80)"=
>Thanks and Regards,<u></u><u></u></span></b></p><p style=3D"margin:0px;fon=
t-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"=
><b><span style=3D"font-size:11pt;font-family:Rockwell,serif;color:rgb(146,=
208,80)">Manikandan J=C2=A0=C2=A0</span></b><b><span style=3D"font-size:11p=
t;font-family:Rockwell,serif;color:rgb(0,176,80)"><u></u><u></u></span></b>=
</p><p style=3D"margin:0px;background-color:rgb(255,255,255)"><font color=
=3D"#008000" face=3D"Trebuchet MS, sans-serif"><span style=3D"font-size:10.=
6667px"><b>Please consider Environment before printing this Email.</b></spa=
n></font></p></div></div></div></div></div></div>

--000000000000afd25d0579b06504--

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

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwczovL2Nvb2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbGlic3No
Mi1kZXZlbAo=

--===============1094623041==--

From libssh2-devel-bounces@cool.haxx.se  Mon Nov  5 13:23:12 2018
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id wA5CMZq7016875;
	Mon, 5 Nov 2018 13:23:02 +0100
Received: from smtp-out-1.mxes.net (smtp-out-1.mxes.net [205.237.194.119])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id wA5CMWXv016700
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Mon, 5 Nov 2018 13:22:33 +0100
Received: from Customer-MUA (mua.mxes.net [10.0.0.1])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by smtp.mxes.net (Postfix) with ESMTPSA id B0CA427530
 for <libssh2-devel@cool.haxx.se>; Mon,  5 Nov 2018 07:22:26 -0500 (EST)
Received: by mail-lf1-f48.google.com with SMTP id h192so5978297lfg.3
 for <libssh2-devel@cool.haxx.se>; Mon, 05 Nov 2018 04:22:26 -0800 (PST)
X-Gm-Message-State: AGRZ1gK0/E6Ai6Hl6pL3I8DJ0bHf4yRsARdaGzNNKvFb+X+EuzaaqTIi
 PiF2rORYMjHQQLvG9rv1DqnOYo+B3cCfFWZlu5Q=
X-Google-Smtp-Source: AJdET5cQfHVEMkkfY0ERIM7Iq/oxxagJ27JEJM+WHl0lhPi+s08tkDYnIB16kvMv+nGDWCfhWh+wmnEhNom2IKqwR+s=
X-Received: by 2002:a19:8d01:: with SMTP id p1mr11739866lfd.149.1541420544979; 
 Mon, 05 Nov 2018 04:22:24 -0800 (PST)
MIME-Version: 1.0
References: <CABDFp21KJR2jF1wg_9fsVqfCESgb_mdZNKCbjjzUSjSfe1GP9w@mail.gmail.com>
In-Reply-To: <CABDFp21KJR2jF1wg_9fsVqfCESgb_mdZNKCbjjzUSjSfe1GP9w@mail.gmail.com>
From: Kirk Wolf <kirk@dovetail.com>
Date: Mon, 5 Nov 2018 06:22:13 -0600
X-Gmail-Original-Message-ID: <CAHm_n2nGYLCtT-mkPoUKs0MrOpVRAJtZ++=QqWet=Qd_eJJcaQ@mail.gmail.com>
Message-ID: <CAHm_n2nGYLCtT-mkPoUKs0MrOpVRAJtZ++=QqWet=Qd_eJJcaQ@mail.gmail.com>
Subject: Re: libssh2-1.8.0 Compilation failed on Z/OS V2R1
To: libssh2-devel@cool.haxx.se
X-Sent-To: <bGlic3NoMi1kZXZlbEBjb29sLmhheHguc2U=>
X-Sender: dovetail.com
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: multipart/mixed; boundary="===============1523931066=="
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>

--===============1523931066==
Content-Type: multipart/alternative; boundary="00000000000008940f0579e9f038"

--00000000000008940f0579e9f038
Content-Type: text/plain; charset="UTF-8"

Have you done much porting of open source to z/OS?
I don't actually know if the libssh2 upstream can be configured for z/OS
(#ifdef __MVS__).
It is often a challenge, since:

- the shell is a "posix" ksh variant,
- make isn't gmake,
- the compiler isn't gcc,
- the library isn't libc,
- the system codepage is EBCDIC  (IBM-1047),
- etc, etc, etc.

Rocket Software (a vendor of lots of z/OS software) has ported lots of open
source tools, including libssh2 that they make available for free (and sell
support).
https://www.rocketsoftware.com/zos-open-source/tools

It looks like they currently have 1.4.3, but you might at least start there.

Kirk Wolf
Dovetailed Technologies
http://dovetail.com


On Fri, Nov 2, 2018 at 10:45 AM Manikandan J <jmani.20@gmail.com> wrote:

> Hi,
>
> We have compiled the libssh2-1.8.0 source on windows & Linux platform. It
> is working fine. But when we try to compile the same on Z/OS V2R1 platform,
> got the following error message,
>
> Failure is happening while the configuration particularly while creating
> *./config.status*
>
> *checking whether `alloca.c' needs Cray hooks... no*
> *checking stack direction for C alloca... -1*
> *checking for an ANSI C-conforming const... yes*
> *checking for inline... __inline__*
> *checking non-blocking sockets style... O_NONBLOCK*
> *checking that generated files are newer than configure... done*
> *configure: creating ./config.status*
> *./configure 20275: FSUM7330 << unclosed*
> *gmake[1]: *** [../libssh2-1.8.0/Makefile] Error 1*
> *gmake[1]: Target `all' not remade because of errors.*
>
> We have used the below c89 compiler options for the compilation,
>
> LPATHIDX=0
>
> ARGS[0]="c89"
>
> ARGS[1]="-Wc,target(zOSV2R1),langlvl(extended),halton(CCN3296),longname,rent,enum(int),float(ieee),noansialias,exportall,dll,xplink,norostring"
> ARGS[2]="-Wl,compat=ZOSV2R1,xplink"
> ARGS[3]="-D_XOPEN_SOURCE=600"
> ARGS[4]="-D_XOPEN_SOURCE_EXTENDED"
> ARGS[5]="-D_LARGEFILE_SOURCE"
> ARGS[6]="-D_LARGEFILE64_SOURCE"
> ARGS[7]="-DMVS"
> ARGS[8]="-D_OE_SOCKETS"
> ARGS[9]="-O2"
> ARGIDX=${#ARGS[@]}
>
> Please help me to resolve this.
> Thanks in advance!!!
>
>
> --
>
> *Thanks and Regards,*
>
> *Manikandan J  *
>
> *Please consider Environment before printing this Email.*
> _______________________________________________
> libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
>

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

<div dir=3D"ltr"><div dir=3D"ltr">Have you done much porting of open source=
 to z/OS?<div>I don&#39;t actually know if the libssh2 upstream can be conf=
igured for z/OS=C2=A0 (#ifdef __MVS__).<br>It is often a challenge, since:<=
/div><div><br></div><div>- the shell is a &quot;posix&quot; ksh variant,=C2=
=A0</div><div>- make isn&#39;t gmake,</div><div>- the compiler isn&#39;t gc=
c,</div><div>- the library isn&#39;t libc,=C2=A0</div><div>- the system cod=
epage is EBCDIC=C2=A0 (IBM-1047),=C2=A0=C2=A0</div><div>- etc, etc, etc.<br=
></div><div><br></div><div>Rocket Software (a vendor of lots of z/OS softwa=
re) has ported lots of open source tools, including libssh2 that they make =
available for free (and sell support).=C2=A0</div><div><a href=3D"https://w=
ww.rocketsoftware.com/zos-open-source/tools">https://www.rocketsoftware.com=
/zos-open-source/tools</a><br></div><div><br></div><div>It looks like they =
currently have 1.4.3, but you might at least start there.</div><div><br></d=
iv><div><div><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr">Ki=
rk Wolf<div>Dovetailed Technologies</div><div><a href=3D"http://dovetail.co=
m" target=3D"_blank">http://dovetail.com</a></div></div></div></div><br></d=
iv></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Fri, Nov =
2, 2018 at 10:45 AM Manikandan J &lt;<a href=3D"mailto:jmani.20@gmail.com">=
jmani.20@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote=
" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><=
div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_defau=
lt" style=3D"font-family:verdana,sans-serif;color:rgb(0,0,0)">Hi,</div><div=
 class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:rgb(=
0,0,0)"><br></div><div class=3D"gmail_default" style=3D"font-family:verdana=
,sans-serif;color:rgb(0,0,0)">We have compiled the libssh2-1.8.0 source on =
windows &amp; Linux platform. It is working fine. But when we try to compil=
e the same on Z/OS V2R1 platform, got the following error message,</div><di=
v class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:rgb=
(0,0,0)"><br></div><div class=3D"gmail_default" style=3D"font-family:verdan=
a,sans-serif;color:rgb(0,0,0)">Failure is happening while the configuration=
 particularly while creating=C2=A0<i>./config.status</i></div><div class=3D=
"gmail_default" style=3D"font-family:verdana,sans-serif;color:rgb(0,0,0)"><=
br></div><div class=3D"gmail_default" style=3D"font-family:verdana,sans-ser=
if;color:rgb(0,0,0)"><div class=3D"gmail_default"><i>checking whether `allo=
ca.c&#39; needs Cray hooks... no</i></div><div class=3D"gmail_default"><i>c=
hecking stack direction for C alloca... -1</i></div><div class=3D"gmail_def=
ault"><i>checking for an ANSI C-conforming const... yes</i></div><div class=
=3D"gmail_default"><i>checking for inline... __inline__</i></div><div class=
=3D"gmail_default"><i>checking non-blocking sockets style... O_NONBLOCK</i>=
</div><div class=3D"gmail_default"><i>checking that generated files are new=
er than configure... done</i></div><div class=3D"gmail_default"><i>configur=
e: creating ./config.status</i></div><div class=3D"gmail_default"><i>./conf=
igure 20275: FSUM7330 &lt;&lt; unclosed</i></div><div class=3D"gmail_defaul=
t"><i>gmake[1]: *** [../libssh2-1.8.0/Makefile] Error 1</i></div><div class=
=3D"gmail_default"><i>gmake[1]: Target `all&#39; not remade because of erro=
rs.</i></div><div><br></div></div><div><div class=3D"gmail_default" style=
=3D"font-family:verdana,sans-serif;color:rgb(0,0,0)">We have used the below=
 c89 compiler options for the compilation,</div><div class=3D"gmail_default=
" style=3D"font-family:verdana,sans-serif;color:rgb(0,0,0)"><br></div><div =
class=3D"gmail_default"><div class=3D"gmail_default"><font color=3D"#000000=
" face=3D"verdana, sans-serif">LPATHIDX=3D0</font></div><div class=3D"gmail=
_default"><font color=3D"#000000" face=3D"verdana, sans-serif"><br></font><=
/div><div class=3D"gmail_default"><font color=3D"#000000" face=3D"verdana, =
sans-serif">ARGS[0]=3D&quot;c89&quot;</font></div><div class=3D"gmail_defau=
lt"><font color=3D"#000000" face=3D"verdana, sans-serif">ARGS[1]=3D&quot;-W=
c,target(zOSV2R1),langlvl(extended),halton(CCN3296),longname,rent,enum(int)=
,float(ieee),noansialias,exportall,dll,xplink,norostring&quot;</font></div>=
<div class=3D"gmail_default"><font color=3D"#000000" face=3D"verdana, sans-=
serif">ARGS[2]=3D&quot;-Wl,compat=3DZOSV2R1,xplink&quot;</font></div><div c=
lass=3D"gmail_default"><font color=3D"#000000" face=3D"verdana, sans-serif"=
>ARGS[3]=3D&quot;-D_XOPEN_SOURCE=3D600&quot;</font></div><div class=3D"gmai=
l_default"><font color=3D"#000000" face=3D"verdana, sans-serif">ARGS[4]=3D&=
quot;-D_XOPEN_SOURCE_EXTENDED&quot;</font></div><div class=3D"gmail_default=
"><font color=3D"#000000" face=3D"verdana, sans-serif">ARGS[5]=3D&quot;-D_L=
ARGEFILE_SOURCE&quot;</font></div><div class=3D"gmail_default"><font color=
=3D"#000000" face=3D"verdana, sans-serif">ARGS[6]=3D&quot;-D_LARGEFILE64_SO=
URCE&quot;</font></div><div class=3D"gmail_default"><font color=3D"#000000"=
 face=3D"verdana, sans-serif">ARGS[7]=3D&quot;-DMVS&quot;</font></div><div =
class=3D"gmail_default"><font color=3D"#000000" face=3D"verdana, sans-serif=
">ARGS[8]=3D&quot;-D_OE_SOCKETS&quot;</font></div><div class=3D"gmail_defau=
lt"><font color=3D"#000000" face=3D"verdana, sans-serif">ARGS[9]=3D&quot;-O=
2&quot;</font></div><div class=3D"gmail_default"><font color=3D"#000000" fa=
ce=3D"verdana, sans-serif">ARGIDX=3D${#ARGS[@]}</font></div><div style=3D"c=
olor:rgb(0,0,0);font-family:verdana,sans-serif"><br></div></div><div class=
=3D"gmail_default" style=3D"font-family:verdana,sans-serif;color:rgb(0,0,0)=
">Please help me to resolve this.=C2=A0</div></div><div><div class=3D"gmail=
_default" style=3D"font-family:verdana,sans-serif;color:rgb(0,0,0)">Thanks =
in advance!!!</div><br></div><div><br></div>-- <br><div dir=3D"ltr" class=
=3D"m_3920540156740426661gmail_signature"><div dir=3D"ltr"><div><p style=3D=
"margin:0px;font-family:arial,sans-serif;font-size:13px;background-color:rg=
b(255,255,255)"><b><span style=3D"font-size:11pt;font-family:Rockwell,serif=
;color:rgb(0,176,80)">Thanks and Regards,<u></u><u></u></span></b></p><p st=
yle=3D"margin:0px;font-family:arial,sans-serif;font-size:13px;background-co=
lor:rgb(255,255,255)"><b><span style=3D"font-size:11pt;font-family:Rockwell=
,serif;color:rgb(146,208,80)">Manikandan J=C2=A0=C2=A0</span></b><b><span s=
tyle=3D"font-size:11pt;font-family:Rockwell,serif;color:rgb(0,176,80)"><u><=
/u><u></u></span></b></p><p style=3D"margin:0px;background-color:rgb(255,25=
5,255)"><font color=3D"#008000" face=3D"Trebuchet MS, sans-serif"><span sty=
le=3D"font-size:10.6667px"><b>Please consider Environment before printing t=
his Email.</b></span></font></p></div></div></div></div></div></div>
_______________________________________________<br>
libssh2-devel <a href=3D"https://cool.haxx.se/cgi-bin/mailman/listinfo/libs=
sh2-devel" rel=3D"noreferrer" target=3D"_blank">https://cool.haxx.se/cgi-bi=
n/mailman/listinfo/libssh2-devel</a><br>
</blockquote></div>

--00000000000008940f0579e9f038--

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

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwczovL2Nvb2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbGlic3No
Mi1kZXZlbAo=

--===============1523931066==--

From libssh2-devel-bounces@cool.haxx.se  Tue Nov  6 18:56:54 2018
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id wA6HuJ3C030594;
	Tue, 6 Nov 2018 18:56:42 +0100
Received: from mail.panic.com (mail.panic.com [38.103.165.36])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id wA6HuGvT030559
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 6 Nov 2018 18:56:18 +0100
Received: from [10.0.0.227] (unknown [10.0.0.227])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mail.panic.com (Postfix) with ESMTPSA id 9D5B116D
 for <libssh2-devel@cool.haxx.se>; Tue,  6 Nov 2018 09:56:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=panic.com; s=dkim;
 t=1541526971; bh=E2dxc8z0QF/p99bPjc3/u+ziE/BHHujhzwtUQnMZW1o=;
 h=From:Subject:Date:To;
 b=QU/VHuuubW6pI/xPCxJCJbIFD0EzeaPMELT2fLDMBPJnvJLVlFI2r31fLZDzwnF8a
 gDXflgDP8OuGkG+4Zt7r4k7Ko5llHDdG3HHF2NwEQlkXyDVqFGdm0iSllYs4iQdlEg
 5I+nY93KdY6+QTPY3PMNk5lXqnLTQwATcwPU56i8=
From: Will Cosgrove <will@panic.com>
Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\))
Subject: sftp_mkdir() with server default permissions
Message-Id: <77C09D57-7A38-44A3-A23D-61A104909A26@panic.com>
Date: Tue, 6 Nov 2018 09:56:11 -0800
To: libssh2 development <libssh2-devel@cool.haxx.se>
X-Mailer: Apple Mail (2.3445.101.1)
X-MIME-Autoconverted: from quoted-printable to 8bit by giant.haxx.se id
 wA6HuGvT030559
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
Content-Type: text/plain; charset="utf-8"
Errors-To: libssh2-devel-bounces@cool.haxx.se
Sender: "libssh2-devel" <libssh2-devel-bounces@cool.haxx.se>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by giant.haxx.se id wA6HuJ3C030594

Hi All,
I’d like to modify sftp_mkdir() so it will optionally not use a mode for the new directory.  This allows the server to create the folder with the default permissions value which some users require. Unfortunately the sftp_mkdir() function requires a mode. So I’m curious to know how you think I should proceed? 

There are several possible solutions, my current super simple solution is to pass -1 as the mode which then causes sftp_mkdir to not set the permissions on the folder. That works, but it’s a bit ‘magical’ if you’re not reading the source. Another other option is to create a new API that doesn’t take a mode, but that also has its draw-backs. Any thoughts on how you all would like to see this structured?

Cheers,

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

From libssh2-devel-bounces@cool.haxx.se  Tue Nov  6 19:23:16 2018
Return-Path: <libssh2-devel-bounces@cool.haxx.se>
Received: from www.haxx.se (mail [127.0.0.1])
	by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTP id wA6IN3hu017646;
	Tue, 6 Nov 2018 19:23:13 +0100
Received: from giant.haxx.se (mail [127.0.0.1])
 by giant.haxx.se (8.15.2/8.15.2/Debian-4) with ESMTPS id wA6IN2Dt017638
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <libssh2-devel@cool.haxx.se>; Tue, 6 Nov 2018 19:23:02 +0100
Received: from localhost (dast@localhost)
 by giant.haxx.se (8.15.2/8.15.2/Submit) with ESMTP id wA6IN2A1017634
 for <libssh2-devel@cool.haxx.se>; Tue, 6 Nov 2018 19:23:02 +0100
X-Authentication-Warning: giant.haxx.se: dast owned process doing -bs
Date: Tue, 6 Nov 2018 19:23:02 +0100 (CET)
From: Daniel Stenberg <daniel@haxx.se>
X-X-Sender: dast@giant.haxx.se
To: libssh2 development <libssh2-devel@cool.haxx.se>
Subject: Re: sftp_mkdir() with server default permissions
In-Reply-To: <77C09D57-7A38-44A3-A23D-61A104909A26@panic.com>
Message-ID: <alpine.DEB.2.20.1811061920020.3368@tvnag.unkk.fr>
References: <77C09D57-7A38-44A3-A23D-61A104909A26@panic.com>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
X-fromdanielhimself: yes
MIME-Version: 1.0
Content-Type: multipart/mixed;
 BOUNDARY="1129329158-1962485748-1541528582=:3368"
X-BeenThere: libssh2-devel@cool.haxx.se
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: libssh2 development <libssh2-devel.cool.haxx.se>
List-Unsubscribe: <https://cool.haxx.se/cgi-bin/mailman/options/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=unsubscribe>
List-Archive: <http://cool.haxx.se/pipermail/libssh2-devel/>
List-Post: <mailto:libssh2-devel@cool.haxx.se>
List-Help: <mailto:libssh2-devel-request@cool.haxx.se?subject=help>
List-Subscribe: <https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel>, 
 <mailto:libssh2-devel-request@cool.haxx.se?subject=subscribe>
Reply-To: libssh2 development <libssh2-devel@cool.haxx.se>
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-1962485748-1541528582=:3368
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8BIT

On Tue, 6 Nov 2018, Will Cosgrove wrote:

> There are several possible solutions, my current super simple solution is to 
> pass -1 as the mode which then causes sftp_mkdir to not set the permissions 
> on the folder. That works, but it’s a bit ‘magical’ if you’re not reading 
> the source.

I could imagine a LIBSSH2_MKDIR_DEFAULT_MODE (name to be bike-shedded) define 
to be provided for the API, which very well could have a value of -1 if we 
treat the mode signed internally or it could be some otherwise insane (large) 
value that is unlikely to every actually be used as a real mode.

-- 

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

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGlic3NoMi1k
ZXZlbCBodHRwczovL2Nvb2wuaGF4eC5zZS9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbGlic3No
Mi1kZXZlbAo=

--1129329158-1962485748-1541528582=:3368--

