Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2127331pxb; Mon, 12 Apr 2021 15:21:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfxWTimSm900nj7DSPcYDvWu8iGgkAb1s9QlzWV5yXu5kfaPURc+azEhBFozTQCtgRzRuB X-Received: by 2002:a17:90b:1bce:: with SMTP id oa14mr1453328pjb.9.1618266118056; Mon, 12 Apr 2021 15:21:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618266118; cv=pass; d=google.com; s=arc-20160816; b=tompZePtu7SG2i4m3vUfiFGBNfoTDDOra388o0cRkala7vNiwVwlqb8KRrv1K7BMbL ZI1Yz4k3aCq3OnFjTWKeSFfq+ALbIiMk4h1mhYfcyLd5TQ91Pw5kP+bSFIc5IEMhVK7p OnAPJ68meqEzYXgS9jEBDSHNRIDe7IRiOLoovRuzEAvWIr/QfDezVJnPL3UORojgcCqj zs7lRsjFuI4xB06HMk/K5XNdckPnCXjew1r4gaqJ6EoJREwqwCM+vsGZSPuCUJecgyH9 Gq6Eh/1sjWFb5DNGUC0Uk8FsjiphAt9MhHfY77/nP2o5jUhhQ/9pkc6nn/53VtfwiYB1 FYug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:autocrypt :references:to:subject:from:dkim-signature; bh=WJWBrtQh9aORyFSZJY28iwxDc+kXJPC8VEn56mdRRkA=; b=OAi+4Z047KEvBssa7ToCE7gO54VsvdeincUUc2cT/UpUEWjccWRZgeeBYsJb4ymCLA D84og3MXjK1CeD/DlDYBFJzTET0TjpyINHaH/s731re/cdA453+FxibHaZIs/6nKE3jp RDBwCW+taWY77IFvR0nrmg5On4C7nLcFp99EIuKlg5IqV71aIsoS6Nj/QNIqpcd3d8R3 K87kM8ZRclk3O0Cu4/M5IJPk6HopYhRWlgjqPZlH8G7atqnLXPRGFmHPmNwZvN6ZtTxl tyCHGHdSuoUMUY5Ax2cFFGriI9OtaVeZZUF+HOfgtbYxa6Nd+OM/2x14lVeXMlmfDIaF 9GGQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fortanix.onmicrosoft.com header.s=selector2-fortanix-onmicrosoft-com header.b="TD1Dev/0"; arc=pass (i=1 spf=pass spfdomain=fortanix.com dkim=pass dkdomain=fortanix.com dmarc=pass fromdomain=fortanix.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fortanix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi12si9232581plb.2.2021.04.12.15.21.45; Mon, 12 Apr 2021 15:21:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fortanix.onmicrosoft.com header.s=selector2-fortanix-onmicrosoft-com header.b="TD1Dev/0"; arc=pass (i=1 spf=pass spfdomain=fortanix.com dkim=pass dkdomain=fortanix.com dmarc=pass fromdomain=fortanix.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=fortanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242883AbhDLJ3m (ORCPT + 99 others); Mon, 12 Apr 2021 05:29:42 -0400 Received: from mail-bn7nam10on2137.outbound.protection.outlook.com ([40.107.92.137]:11584 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240380AbhDLJFw (ORCPT ); Mon, 12 Apr 2021 05:05:52 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kNnIZFtZfAlmJwcY60gM5zGHEkdJgsMbPccWu5Ko/BdwbZxGRYyJkzu1Z+jVU4FvBws7zPanPLo0u8VHRXwVtvIxJIRIo+fAL2bFJn4gFbZenYqY8HZKp/xRp+5kkk0GL646NjUq0+h9oYDls7nGyYTTc6HeV+4JB1XRdjB3WpTgCz2Uqsr8Pyw2/h0+zdy5TJF3rjFXVETM4R50brLf5hnaKiyGNWrMgIa7z1dowYBLym2kbdg/90fNe2AETeWLrr15JgWpo6Hgdon5kRAYDM0tzGeGNusOk/PLqryjt6WHvuvJ0Z5UWSH1Hp5prKDXeZChU3IG4lHBZEqoFqn0rA== 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=WJWBrtQh9aORyFSZJY28iwxDc+kXJPC8VEn56mdRRkA=; b=F2oe4qVRjDhg9Mwm3lYNdZnBkaywbln26AZOulJ4eKa+2atBZlIfo1S7pmfqR9pSLZ8ywp2+zZVqFkC9ujeDR7721EdRDuSGF5smbkrwA7oIi5noTQx7R5zHIgw633YbIoG0kcT2KvOr3swE1m8bl7k63kYpCQChTP8t3zEvWLBnljcEYfHURmxXQEM+XYPd7y130WNKGAnw9QVYeeLttk3ITA0YOZ28EzpaFkL7Ic7hL8va/vRU40Ogbd5+I8fg4xK9EAmkLATTwFSAtqBD3IwOjFg12cw4PneZcDBBCGQiEjv2lxCo88vQQn0ZI4SpMowHLdh74Tev8tII+p11Ig== 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=WJWBrtQh9aORyFSZJY28iwxDc+kXJPC8VEn56mdRRkA=; b=TD1Dev/03+19oKHqvjeDQ+bFNe4jiCyeZodB6mFcGeropcg6zNwvCE5iKgBCRFYHU1zFP0cByRiKVLnIqFQSt868229UjwrVjmWiQnfV+5eFXYVMAhKu5auIQfX+gegwR2z8OxzthPJFXWJ6TimOlidBitkpR4iE7oOdXBZSaSA= 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 CY4PR11MB1384.namprd11.prod.outlook.com (2603:10b6:903:2c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.21; Mon, 12 Apr 2021 09:05:01 +0000 Received: from CY4PR11MB1783.namprd11.prod.outlook.com ([fe80::f052:14fe:c2a9:5fb1]) by CY4PR11MB1783.namprd11.prod.outlook.com ([fe80::f052:14fe:c2a9:5fb1%3]) with mapi id 15.20.4020.022; Mon, 12 Apr 2021 09:05:01 +0000 From: Raoul Strackx Subject: [PATCH v2 2/3] x86/sgx: Fix compatibility issue with OPENSSL < 1.1.0 To: Jarkko Sakkinen , Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org References: Autocrypt: addr=raoul.strackx@fortanix.com; keydata= LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCgptUUlOQkYyb2lmOEJFQURN UkFMT1ZjRkYyTlQva1FsWTBtVnN3YlMrYi9WNzR1azZFcDdxenpoNHpHbEtSS1pzClplS0I4 WmpFT2h5Q2pZaExwdnJHTVh2cTV1bm5pWENIbG9BR1hZRm9rN0Q0SGd2Q0djYnlTYVRMQjds NHc4MFIKOStYUkp2Sn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WFobnJVSFBLemhZbWx4dUhDQ3FCZ3RK am9wS2NWVGsxRnRLVGUyZHJ3Z25Bb1M2dkh4bTdRTWxJVwpaMTluS25GOFAyN0pFanU0ckdX Z1h3NkgxSmFKMTF4YVVkZG9qdk53T1RKRVcvb3Jhd2tuUUF1ZW5EYnpBR1Z1CkdMV0w3T2ov RGZyTFBBemNXV25GblV2VVc2NEFEWFNBOTh0SWNBY3lod05uY2lqYnNIUkFTQlJidkg5RFhJ c2wKaEwxMDArdzZNTWNMeFpNVmJ4UHBTWWVHaGp4SjdNUysyeGp3eDB4MWlMNmszZk5UNHNT Q3dZa0xRZjJlKzhxYwpFYjNTa0Q0VFR3RDQxUW85SFNuUlkwdnRqblNyZkwyQ3JhVmptOXhh MXhmNlJDQ3kvaXpKNU5TQTZZMXduT0U3Ck1IOHorcVFUM1NxMld0a0NzU1M5K1U2VU9OWmFK dFN5MWNvZ1ZhMDV1QWdRY0tHT3FvcHg3QWlmZUhIUFpqZnIKakVNaHJZQ3Q5WXgzR1VET0hs MnRObDJIOStqZC9BVjByMDRKUTNxSHRWM1Z5UTNxN0N1UTlCTTdnQzVpK1JleQpHSU14Zm0v a09GWTRLRUxOeVYrV01PK2lXRHpZS21tTUxnUkVXNitqZk5jMzhrYWhaQjI2RmJOZTh6QmxU cVpPCmhxYmNZR1ZZNW9Ec004YSthbkwyZDhmaStnPT0KPW9ZT0QKLS0tLS1FTkQgUEdQIFBV QkxJQyBLRVkgQkxPQ0stLS0tLQo= Message-ID: <92282c72-5849-70d0-1553-548130fba2bd@fortanix.com> Date: Mon, 12 Apr 2021 11:04:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [81.164.43.210] X-ClientProxiedBy: AM0PR10CA0040.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:150::20) 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 AM0PR10CA0040.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:150::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17 via Frontend Transport; Mon, 12 Apr 2021 09:04:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7e93b891-217c-4247-3132-08d8fd920de4 X-MS-TrafficTypeDiagnostic: CY4PR11MB1384: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1360; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RUcQfen7JDgN1mrV4c2OmpZsU06JmgAqSlR8Yw6jEG0919kNgCHeXsmWdCk2gqLZfPDmAGhPxJXTB43k2E/mfKcNwM616fio4Le5ySrodKaPHaP6W3cuAdOP3HT/Ql0FZ8v7RMXbQn2fbd5uLI4/FpOit18IB8HZrDV8zzZSdouQiHQmtf0QI0BgJDnx6KsTvw9CKYmgOc+jFxtoNLL4reEBk9s96uNtH+B15hq6NClrR/OZit4ksNWMiF7gjjSnWq3mqViV0IVhd5Pw++pzTUzZwAzO5cPYvBjEikp5ygGH/M6aitvq2R9z5ZPn00ClUc2baykTDCIAGhS4Gt7QOL5gn16uTXQhD3xlPRkg+fYf8R7S+BsQFAb3/y9715v+Sj80NpMOZNjkjVcId+dnvUVfphUwRSFKwEN1TI9HkgIC71N9QNduu2mkTXsR5uZ/ca0dxYcxOZR7TRqcGVHYjoonNIA0QJtfmYWiCkO98CYfkwC47cw8tg7hXj1PQ2+WsCQ5iLC+xgOMnbrT3JzFc2psM5ZWebxvamuZYo/6g7RrG8TjxcLeXITz5xxpomkBGZoRRNZh2BHvpZLwd+NWEgyqajoRwGm0TX+w5xPGfjDVeeDUD0gVYtAkgo1oH+/Somt6z2+bvInXKB9pIkg/KDz2XyRRLJvcXCA8iYlgqyB12DeCr0sPcTMRRur6FPPbnUa3wHI16HEJ34geitNf8OnAu28RpZ+kJfrgQG4MPKw= 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)(39830400003)(376002)(136003)(396003)(366004)(26005)(66476007)(4744005)(6486002)(186003)(16526019)(66556008)(44832011)(5660300002)(2616005)(38350700002)(316002)(86362001)(6666004)(956004)(66946007)(52116002)(31686004)(8936002)(8676002)(110136005)(36756003)(16576012)(2906002)(83380400001)(478600001)(38100700002)(31696002)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?bTRHUmh4RksxZ3JvTTF5UGRlendVWjZobE5CTW9lU1cyMzZBYzB1UTdyUFhi?= =?utf-8?B?dlVaUU0xcjNQcUFKRWJhR1RmUzFaMnlpaWVVKzBORW13aWNGM2FyQW5tOHYz?= =?utf-8?B?aFNYVGhocmFrZVZUYUZVYWNzN3Z4TURndzlkZ0Z1WjZUVHI2OUxvaXVlaHRX?= =?utf-8?B?TExaalZsUFlQekJNajNVa0w5TUpxRGV2N1djaVg4c0pWaldjNFBGbEdRb0dh?= =?utf-8?B?Y1g5U1l0TFJtalB2M1BCYVBQM3p4dkhTWmVWT0lHYk9waWxVcmZ2dCsvamVr?= =?utf-8?B?eFBvNUpRS0FKU0JXZ0ZEOGs0c1hqdUFOUXQzdkFZWnQ5ZlBmeHBmNUVUUHJJ?= =?utf-8?B?U1F5UFNLS09Ob3VOcy9FVUFaQXdEQ3A4VDZ2bmhlc1AxQUs4MkQ2OFF2M3JB?= =?utf-8?B?WGxnazQyZWphOUl5SmJHL09TR2JmS3pqUU15ZWw3L2xGRlgxVEx5K0dCOVda?= =?utf-8?B?W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cDhqZ1hrSittWlhI?= =?utf-8?B?UEozaTRzOWtKeXRSTUZRbUpud3ErWmJPUFlGem5PM08vK0xXTlB6VkptbDlZ?= =?utf-8?B?KzlOTkgzUkZSaHplWW8xTmIxdzdqYUJob0hkSVRhL0h3T2VVWlYyblhNUnNO?= =?utf-8?B?V1Q2RlpDVUNzOWlNT2tpWmZtU0l2MlMvcnVXZElpSTlWLzNheThjaWpUMStY?= =?utf-8?B?NUxxODZPbTJ4TVBhdm05RkJUZm5UbWt4UDBnVzRwZ25WVkw2dXdjVWFCVzd5?= =?utf-8?B?eFRxbG9rZFpGTm8rS3FKc3Qrc2lzbk9NaEhLbUp3dzNLU3d4bmh2bGNRK0Vx?= =?utf-8?B?cGRCQXNtK05jVm91K1NwK0t6OWNEL0ZoUFRJVDVRcXhQbU5PWkVlVHUxTHp0?= =?utf-8?Q?sjHdkXUhmhQtHNQmosK8y0Ba+d1Fip6MfvM3bFj?= X-OriginatorOrg: fortanix.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e93b891-217c-4247-3132-08d8fd920de4 X-MS-Exchange-CrossTenant-AuthSource: CY4PR11MB1783.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2021 09:05:01.4995 (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: lLpcjU9NpimaF4e0jb4yQWYBwCay6QHYjbGKeW2Fve0mnhoJ9hYKwKMc5KHDP52L4SaNw1JytSiT2i7f2FqqEnODusFE4g7br2VCNvYusOM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB1384 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- tools/testing/selftests/sgx/sigstruct.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.7.4