Message ID | 88588f0a-5aa8-9ea1-8e61-6d16530dbd4a@fortanix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-sgx-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34B59C433E3 for <linux-sgx@archiver.kernel.org>; Wed, 31 Mar 2021 12:20:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EA703619A7 for <linux-sgx@archiver.kernel.org>; Wed, 31 Mar 2021 12:20:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235457AbhCaMTi (ORCPT <rfc822;linux-sgx@archiver.kernel.org>); Wed, 31 Mar 2021 08:19:38 -0400 Received: from mail-mw2nam08on2110.outbound.protection.outlook.com ([40.107.101.110]:19361 "EHLO NAM04-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235461AbhCaMTT (ORCPT <rfc822;linux-sgx@vger.kernel.org>); Wed, 31 Mar 2021 08:19:19 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f5gp67nBJb2ibyG+tCUFK+JjbGzTFS1L5TZLdEHhlN0LLIQ9Gaze2GW724CmB8SrWohyjPiygPaZxkBfaZBt06crTS2shUm01SSI536NnRSbToHXMxB/rUK/rEIefaPbShoH/elaZ7Spuj31/TbBCbOTo+V7J2T05mR6T36Vc0fnBDjQPPFZVyTEXpc+y8ccicJZDLc4RHSde4tr7sT1DvCVtL6F2tN1SAtxZ7mGyoFdkQncpGHjDDtmQSzwQGSdF7iUvO0HGlgZPNGqmJCEsbkhKXmAmmS+N+G36Q8+TDCnjZSloSerFV0XXcjOYuNG9DBlUBMt7O9Zxi5jHga/xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dV0ZY0FenLXeEWER/+oEQgXObGUTdxJ8AzO6ezD5LKE=; b=av9uzMduuVGaAEHXq8aMHelsb7pMO6VOlSAzFjm7/LjsFAHkS7KQwP2b2moMZptnz1/QdCONsfC3PMT3MIEnXA86oh0cmBPlF0R1gZYMt7m8oqKaReizhRhzp0pzAWG8vQwHEP0tRACqbU3zHHyU9v7Vugx5R28f/ZvXGYXxN0u/Bg4GcjUrRwAUp8bJjfDnSXOfzKB6C82LOJs7QNqxUrkwcZz/IP/mwU/T2dEooJfsUFKU1U0CSai/G1e8GVz7tEUxPAsAgPqV8XBlUFHR3amipAc4QBFwzKve7r+vJtXE0HxdDPIYKepgoCvCO/KGQMflhW9vUPshLKHZqx1atg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fortanix.com; dmarc=pass action=none header.from=fortanix.com; dkim=pass header.d=fortanix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fortanix.onmicrosoft.com; s=selector2-fortanix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dV0ZY0FenLXeEWER/+oEQgXObGUTdxJ8AzO6ezD5LKE=; b=h0qxTdG/0gyDmW6Uie+5vDjstKWTdfHv3KD5YRxC98CTUvWA4fRsPrz+YUzo/Hz9GWuYecN78yq7RKKQ1uIbAWBKIR0r8hdYAi3Jf8WGBBHolPmn0wtGOE/VrBopTggPrkZfXNAb0JybctXtzTBXiTOEuf+PwI3OavqykKDAet4= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=fortanix.com; Received: from CY4PR11MB1783.namprd11.prod.outlook.com (2603:10b6:903:11d::20) by CY4PR1101MB2312.namprd11.prod.outlook.com (2603:10b6:910:1c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.30; Wed, 31 Mar 2021 12:18:58 +0000 Received: from CY4PR11MB1783.namprd11.prod.outlook.com ([fe80::6dcc:f099:6ba8:6ebe]) by CY4PR11MB1783.namprd11.prod.outlook.com ([fe80::6dcc:f099:6ba8:6ebe%10]) with mapi id 15.20.3977.035; Wed, 31 Mar 2021 12:18:58 +0000 From: Raoul Strackx <raoul.strackx@fortanix.com> Subject: [PATCH 2/3] x86/sgx: Fix compatibility issue with OPENSSL < 1.1.0 To: linux-sgx@vger.kernel.org Autocrypt: addr=raoul.strackx@fortanix.com; keydata= LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgptUUlOQkYyb2lmOEJFQURN UkFMT1ZjRkYyTlQva1FsWTBtVnN3YlMrYi9WNzR1azZFcDdxenpoNHpHbEtSS1pzClplS0I4 WmpFT2h5Q2pZaExwdnJHTVh2cTV1bm5pWENIbG9BR1hZRm9rN0Q0SGd2Q0djYnlTYVRMQjds NHc4MFIKOStYUkp2SnJpMEdPSmVubjRnNUpIQU5RN2h5YWl5RlRIYTVERU5CMjc2VG9kZUFQ bnVidGl1VmRDT0lnQVJVbAp1dzJHemFsbmY0WmZ1TGdEaHg5YzIza2pjZTFBQkFWbWdxUEtN TkVUSnhyZFdLQUt5QkVIWGJ0Snh6YnR4bFI1CnFUZU8yTExCU2V4TFBDbTRZOTZzRHlGK3JJ a2FpRk5JQWk2b3RrTFBx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od05uY2lqYnNIUkFTQlJidkg5RFhJ c2wKaEwxMDArdzZNTWNMeFpNVmJ4UHBTWWVHaGp4SjdNUysyeGp3eDB4MWlMNmszZk5UNHNT Q3dZa0xRZjJlKzhxYwpFYjNTa0Q0VFR3RDQxUW85SFNuUlkwdnRqblNyZkwyQ3JhVmptOXhh MXhmNlJDQ3kvaXpKNU5TQTZZMXduT0U3Ck1IOHorcVFUM1NxMld0a0NzU1M5K1U2VU9OWmFK dFN5MWNvZ1ZhMDV1QWdRY0tHT3FvcHg3QWlmZUhIUFpqZnIKakVNaHJZQ3Q5WXgzR1VET0hs MnRObDJIOStqZC9BVjByMDRKUTNxSHRWM1Z5UTNxN0N1UTlCTTdnQzVpK1JleQpHSU14Zm0v a09GWTRLRUxOeVYrV01PK2lXRHpZS21tTUxnUkVXNitqZk5jMzhrYWhaQjI2RmJOZTh6QmxU cVpPCmhxYmNZR1ZZNW9Ec004YSthbkwyZDhmaStnPT0KPW9ZT0QKLS0tLS1FTkQgUEdQIFBV QkxJQyBLRVkgQkxPQ0stLS0tLQo= Message-ID: <88588f0a-5aa8-9ea1-8e61-6d16530dbd4a@fortanix.com> Date: Wed, 31 Mar 2021 14:18:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [81.164.43.210] X-ClientProxiedBy: AM8P191CA0007.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:21a::12) To CY4PR11MB1783.namprd11.prod.outlook.com (2603:10b6:903:11d::20) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.101] (81.164.43.210) by AM8P191CA0007.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:21a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.26 via Frontend Transport; Wed, 31 Mar 2021 12:18:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5d0a6599-15a4-4e7d-af5d-08d8f43f2893 X-MS-TrafficTypeDiagnostic: CY4PR1101MB2312: X-Microsoft-Antispam-PRVS: <CY4PR1101MB23124F165CF1FD81687804B98B7C9@CY4PR1101MB2312.namprd11.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:1360; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: T7ZRvYnpxa3aO3SI35T2IsXvwwS0A3CZbOzJaztqqtWT97XJcdkczhxqKIP/Qxk5/25gHLvA9bdr/o3EOW+8SJ6wnZT8GShyjGyrPDJiL7j60MTnDb4K+XoOZ0gfB79+S3YEXuFApRGD9SzvsNBZcUYMd3mTmEsGpksrWiyEtF/e8su4fAZJHeb3MNRByMeAT7pTDSmikfqFKbwocbmOI1D52h64unSMuzDfxxA9nST0gVFQBumPEH/Aco2l3Nagr86y0gT+M85nL4PUyz7l/hwQEQ9P/PQmYix699+Uyfk4rHghsOn5fMXJy69hJDNRxojc2QdaSLBCSEFeTcRqn59FghGxMKgzu4cFQISzOnoC8KYpJr2fU76MQvZTVaZ7zwMRo8MrH6+zAz8X6s3Buqpb9mYH/Kd10WGVBoV82ULLQS9/bkdAcAiBoVpVjSWm1tStSgrk2YROQ346yIKl9NwKiC1dxEIHHwTFHZUAZi9FAkVEHTtaITq+2k5XK2dw2QI2CJNGeGEOAuLsiV8LZ0PyoRlZdgH5GHpU5jdwfcscIcSrkyF9AKjvPgFuMtS2dlRG22lUwU0a7cBX1VvvyQUMYbrH1Lr368Io9hf84a3tzJAqHLAell4N2ApwrKaZx3pwJc9B5coawCjE94336d4htbQUdqjfSy/E8t4F8l3s2H2tpbtTSTCTHNh4GJ2Sf6f+FmJWVc0+NW8MSVqbGvPi8EahkI7najCFjvxN2GQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR11MB1783.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(346002)(376002)(136003)(366004)(396003)(39840400004)(4744005)(66946007)(2906002)(52116002)(2616005)(6486002)(5660300002)(8936002)(8676002)(956004)(36756003)(316002)(44832011)(38100700001)(66556008)(66476007)(6916009)(83380400001)(86362001)(6666004)(16576012)(186003)(26005)(478600001)(16526019)(31686004)(31696002)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?nMXTSRXqMcQ2kOKltraQvcc/rsgOyO?= =?utf-8?q?Vek9Gemh0Ph349/YILPe5eQgOHyRWZVBEpj31c5ii8CXVxTulFA6IF8nk77rM46Y3?= =?utf-8?q?nAuyDo/dbXdo5MV1Xxm9tLLHR8QTsAjLu3la/VRT4fRhoYqh9g0FHYrZ27RwDiaO8?= =?utf-8?q?PhXgesZDVGWbAiTE4zzEvvBFLyM6l7aOEF0Od1PkfTyaITVAIXu3NvjDI3ZdBIaKY?= =?utf-8?q?dt0BKHchZEbZgvKA0iArmmUNbmr0eoOqlIEwucmgjoo2o6qbGc6jVgQPM9r5BsXNY?= =?utf-8?q?eckbm9yNcAcxHovoElzPGMejUebthSMtrq4zcBib7td9LSo1i5NgqzqrarZ3b2oRW?= =?utf-8?q?9eph3QTYsoSYRxz8tmmfRM6iiCMmpvrpHDRNcGmCaP6bRVhvW+My4BQ83+zJ76lcy?= =?utf-8?q?vMZTOe7eTBvb9/X5eQmToamqEg8sTP4L/jbdJVAHV8+zJ73WFIvjzdyrfq6E3CSjn?= =?utf-8?q?yT5/kJvu5JBkJO43BtY4hSFH9wXBcfnsChCnLEszQxvAh9DBONsIffAHgsQow4JTK?= =?utf-8?q?qL2T7m1VvUju7Qafa1duMFzGZ98b2bQwBzxCs2NhoNAWAdLvI1fmhajuMq4hohFhk?= =?utf-8?q?rR5FRXRaI369xvhX4iYTBQfGQraAxa88qi+t0qRp5yW6qrjbP5yKlHPRZux0lj03c?= =?utf-8?q?60eROkcI3E9zUlSMEqjEEpGJoX93RZQQC/cOSHA/HWvSR59JAvCoxicSgkV5m0P0h?= =?utf-8?q?CQE7e0qxlNy3kvIlmfGgit36K3qCpT+rIWAmyBEc4hz9unjsENwYK3JEF9fzBENP+?= =?utf-8?q?yGz5Z1LbnJVnccdzbmRvVhvEmPSAqVT1mh4W+VdGNRHiVA5mgThO8Z9XHveS2XQwm?= =?utf-8?q?Ro/zugzcElNUnqw8riRqG+M10knP4FrLtgwN5a8mPcUuesNzC6tS3MQTPbGWU2uv3?= =?utf-8?q?dI+gbN1iqGNMaXMBttjCXr85c6/F7Z0vI6NpguQCzaQlZXtci8W5qWf9vY3xsjHnx?= =?utf-8?q?TTsp52pJnX7Du5rnEGy6nk8CBZI2EboZoS3mFPspChEm61TjvXTOY0xek5mwpPu/X?= =?utf-8?q?TJLmDiloQUvOINTyqT0zyEHN/lkMcoHOAS9U+L+t1rM6nxscAOz0jG+XORsH6mnAZ?= =?utf-8?q?DBjM9b9nx3o6igGDdqn5TPYGbgq9DRfQB2nDZpeC6126c3KiULVEqMfgiDatc1/eY?= =?utf-8?q?Evhz9d3yYh5BOT4ubB5wuY6VzME7kwAFvXDfA+n8OUgqmKgqwxjfJCTVJOfiFCzWR?= =?utf-8?q?DVBRboFI7H/xTAKbNvupJIG8es05ksCnH6mn92TF/G2e0xLk9sr7mN5Hs5ozsuUTu?= =?utf-8?q?qZftak2mGciMBY?= X-OriginatorOrg: fortanix.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5d0a6599-15a4-4e7d-af5d-08d8f43f2893 X-MS-Exchange-CrossTenant-AuthSource: CY4PR11MB1783.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2021 12:18:57.4739 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: de7becae-4883-43e8-82c7-7dbdbb988ae6 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cCGTB2rlSFK05UxBze5RE8z0QN/QTHLOPsasDX4+6twCghDJiGlhj6vttMDa1+xnMboGXkNh1NFzqb+OkAK/KxFWAC/MWtiKfP2SRwJNPZM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1101MB2312 Precedence: bulk List-ID: <linux-sgx.vger.kernel.org> X-Mailing-List: linux-sgx@vger.kernel.org |
Series |
[1/3] x86/sgx: Adding eextend ioctl
|
expand
|
diff --git a/tools/testing/selftests/sgx/sigstruct.c b/tools/testing/selftests/sgx/sigstruct.c index dee7a3d..aac9cbc 100644 --- a/tools/testing/selftests/sgx/sigstruct.c +++ b/tools/testing/selftests/sgx/sigstruct.c @@ -128,8 +128,11 @@ static bool check_crypto_errors(void) static inline const BIGNUM *get_modulus(RSA *key) { const BIGNUM *n; - +#if OPENSSL_VERSION_NUMBER >= 0x10100000L RSA_get0_key(key, &n, NULL, NULL); +#else + n = key->n; +#endif return n; }
The `RSA_get0_key` function only got introduced in OpenSSL 1.1.0. This makes compilation fail with older versions. Signed-off-by: Raoul Strackx <raoul.strackx@fortanix.com> --- tools/testing/selftests/sgx/sigstruct.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)