From nobody Wed Feb 11 02:54:44 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1714643855; cv=none; d=zohomail.com; s=zohoarc; b=n1I3ZSeZ0ofaCAtshTNJSl39nEtM64xuts4FgkgpuBwc3W87O3XOitDE27CzxkFtny8uo5/6DILlmqiHz+4IvyxxQgwbw8QjOTECVpUorgu4mCi7kxY56J3wFecoV2uQlJEzt1t+Onm1HEGz8fHuqlRFCMfmv3nOvlCPsrZCliE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1714643855; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=f7qwGbQTjhjXahUTZWh0LtFO6xVuUCN4ooMRx2Zw77U=; b=CYOBeHEENNq5DEKcfyuxcNR/gL0SvV5OQ6bqSZNT6c00btgAPcMBpKssRO9GURGCD8XHmwS1gbtEsrzhgfVc670nwiupyaAatc2Nq9iO+CwLG9sWTJtRoGZ+N86QVKyUBw66RRmTc3bcMOLh1KjKO/pQoUz2BirUKF/6fOSe0kk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1714643855855756.8594817958179; Thu, 2 May 2024 02:57:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2TBT-0000bl-90; Thu, 02 May 2024 05:56:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2TBO-0000b7-K2 for qemu-devel@nongnu.org; Thu, 02 May 2024 05:56:56 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2TBN-000174-3u for qemu-devel@nongnu.org; Thu, 02 May 2024 05:56:54 -0400 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-34da84cb755so1444604f8f.2 for ; Thu, 02 May 2024 02:56:52 -0700 (PDT) Received: from m1x-phil.lan ([176.187.215.106]) by smtp.gmail.com with ESMTPSA id w15-20020a5d544f000000b0034db8184b41sm847863wrv.112.2024.05.02.02.56.49 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 02 May 2024 02:56:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714643811; x=1715248611; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=f7qwGbQTjhjXahUTZWh0LtFO6xVuUCN4ooMRx2Zw77U=; b=enkVHEcd71DBDUJaHHAp+kjQg+TEXxw8hByTR4TVdP61drr4W6n0gkAOxGe4ltkSaQ rJ/z8CeHu6hhYy+p8JrceICqo4OStMGdSzMMZxgx7vbDhdtRlJBkr5dACIMpTl5w5vgL 3M0W8qyujmbwpWWaQ32Lfi2J5FavfKnK444jzKE2LasaW1G0wvZwuzQJBG0nYY3fzAQ0 JG9WKB8gzII1maJBpfDvdFaLS54DXnh+pAZiz7Cd+izR3UZaR7MhLEz2xJsmbKiPpHEI O9mrfXD5/GdbvA5Y2eClKSqypmkNvd0yJmwXdrV6M2UpGyR6tJbQqb6ohB7UmnrCZNcN 0mnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714643811; x=1715248611; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=f7qwGbQTjhjXahUTZWh0LtFO6xVuUCN4ooMRx2Zw77U=; b=lVA5ncFJCUAzB0ruHmYTSqlipSfEvY4A+GGy4gKKGLvlDmnUxFhiNc6QnXK0wDFF6M X+oBh4cg1bdQ8mUIlx+J56TRlGzYr4XezpNlTcJMwoVsJb6jTjzTNOpFqWwIwyYJwBwS gYgUy0EFl2JQn6ITRbmkS01VgUoN176FP6nG0Wt9DYMzGlMFHMWUivD6cMCpGFPQdD0X 6Rdd+nelYiwLiS1ru5oVUomeaOOnEhwzgh9qTw4VcUcGB5Iax0FRFLKG2sDO9+wQGyYr OZOQuaeuVftGNmeL1vFMdJgo6t5RzW16nFWNVIHxED7/Uc9kfCTk3ZaeApmGw17FgIAo aTEw== X-Gm-Message-State: AOJu0YyGbShHw6v7xpslBM+HijO1bgQ3cDXradDa+wYPvEFax26H8Ul1 mIAjAmO0ihq4VsomRVbNQV87vyM3+Ae3FvTPlLeHtXA9/tSuEzQ4cm5PEwE0RW1cn38y7RjigAb R X-Google-Smtp-Source: AGHT+IFdw3YhuGEsLnONzC/k0yW36l0mMcvNvC69kV+/6oNwYAgrsCn18qbJ8Ls+UBEa49PNTxRH+g== X-Received: by 2002:adf:facf:0:b0:34d:a23c:cb4a with SMTP id a15-20020adffacf000000b0034da23ccb4amr1272261wrs.7.1714643811001; Thu, 02 May 2024 02:56:51 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Thomas Huth , Paolo Bonzini , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 1/3] crypto: Remove 'crypto-tls-x509-helpers.h' from crypto-tls-psk-helpers.c Date: Thu, 2 May 2024 11:56:40 +0200 Message-ID: <20240502095642.93368-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240502095642.93368-1-philmd@linaro.org> References: <20240502095642.93368-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=philmd@linaro.org; helo=mail-wr1-x42f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1714643857770100003 crypto-tls-psk-helpers.c doesn't access the declarations of "crypto-tls-x509-helpers.h", remove the include line to avoid when building with GNUTLS but without Libtasn1: In file included from tests/unit/crypto-tls-psk-helpers.c:23: tests/unit/crypto-tls-x509-helpers.h:26:10: fatal error: libtasn1.h: No such file or directory 26 | #include | ^~~~~~~~~~~~ compilation terminated. Fixes: e1a6dc91dd ("crypto: Implement TLS Pre-Shared Keys (PSK).") Suggested-by: Daniel P. Berrang=C3=A9 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Daniel P. Berrang=C3=A9 --- tests/unit/crypto-tls-psk-helpers.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/unit/crypto-tls-psk-helpers.c b/tests/unit/crypto-tls-ps= k-helpers.c index c6cc740772..36527fd655 100644 --- a/tests/unit/crypto-tls-psk-helpers.c +++ b/tests/unit/crypto-tls-psk-helpers.c @@ -20,7 +20,6 @@ =20 #include "qemu/osdep.h" =20 -#include "crypto-tls-x509-helpers.h" #include "crypto-tls-psk-helpers.h" #include "qemu/sockets.h" =20 --=20 2.41.0 From nobody Wed Feb 11 02:54:44 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1714643847; cv=none; d=zohomail.com; s=zohoarc; b=HwQDybPT91QioM9kDV3H9NknWG9g1/C1skHTXUy+Pc5EVqHTG45tjnmsfsCw5j4RudNIFpJ8Zg3WDucIqD1eewA3R0tZt1EF0O3/oOJLp7asdJebqffJfCnhX5kOkgiSAuylbVZqzWiG5EmZJZJd8tJA+NXjEIw0tth27hHqUow= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1714643847; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Hscm9KdbM1whIxlQwwTQ6xBil1LPfb+u+PB5hBKBEJA=; b=DrRyNGueCYUnmyNEvR4fr5zRPL/dOH2KCGTso499Cf6X3ESKozoj31EMnbJtFTT8rZ7YD4VCtax63+5YknhP0pM8lmB9GDIX5xh7/ct0gT+E10j2/iP4lh1mM0LR74p7O2R6w5OyEFxMAvyr+K+CPW40xeebPImJKGMBqK0pVG0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1714643847148378.72354599020287; Thu, 2 May 2024 02:57:27 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2TBZ-0000dk-F5; Thu, 02 May 2024 05:57:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2TBV-0000ci-78 for qemu-devel@nongnu.org; Thu, 02 May 2024 05:57:01 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2TBS-00017U-Fp for qemu-devel@nongnu.org; Thu, 02 May 2024 05:57:00 -0400 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-34db6a29a1eso1359488f8f.1 for ; Thu, 02 May 2024 02:56:58 -0700 (PDT) Received: from m1x-phil.lan ([176.187.215.106]) by smtp.gmail.com with ESMTPSA id r8-20020a5d4988000000b0034cceee9051sm853767wrq.105.2024.05.02.02.56.55 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 02 May 2024 02:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714643816; x=1715248616; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Hscm9KdbM1whIxlQwwTQ6xBil1LPfb+u+PB5hBKBEJA=; b=YwufLK4fL7WvEkZ5dfh2QoZtWrUFywq45knQTAKvSIhbp+jJ5vm3Iti+DWJsnpbnWE 8t6mYlxMg6MPnAv3qNbcJ8UnqPy7m4H/TF/mhYvdSJZku6IDEruv+nXM/zVjqX8qQvdR cWjUOBsHe3DZmhDZr2Y/YtYHz80OmDxwT2LqbEHlHxXDWXGcdiBMCGi53LvL522zjrDm A+CzPIXjvtZ96pcxj+psCJVeyKWHeVBkv42yUqHYIUIv/Z0ZLF9Rr8tBmngRoTZaD3HN XRsmAd5AVFknLgYUmlEJMzFkh8t9MyH6YpQZk/CkdLuQG34uL3jT0SRqrMWvvuFWToiN Xesw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714643816; x=1715248616; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Hscm9KdbM1whIxlQwwTQ6xBil1LPfb+u+PB5hBKBEJA=; b=RLDTT8L/WzxnzKZS6M/aXbAz1303cU7VF2WpbskHC5RXLGefV6jXLzRmliVfUwlRLB 2RHUFZd9HeNLcF5FQ7iNe4rdyT5O+8m63It6A+ePVOqrlRbwJgvvg44OVrYyGLocpZor 4hshOp9rGs5D7r109ZWoFHJ/S45D5Bm1e2G8BZ+EK05TcblfvLfT/XQy2iSPrPDMQHAK HZycyv22ZO+3w3o0xrV9jM1xNpaYc8HNac4E0/s++uZ4ytCsSzEIr11IqNBpyoS0TUUw 5/DmrJZl2sRlTFloyJZZLf8rTJ1U6ZFUAkPFMUpSWGGg44yaZGGJD16GpMMig7DhVNaS kvIw== X-Gm-Message-State: AOJu0YxcRUMvjor5gR3hRiZGXP9iTsoenDx9AruPNhdshqu36kynBDMY CG+e6tc99Vz2vXlaWgOtENtd5OP+cJSQPKMaXe+55TZucP8XC2gBPgXVo7TE524vM6ECLRXp4i5 + X-Google-Smtp-Source: AGHT+IHGjSo9gjk7S7oeHfnoEpfWc02cGP7mrc+2jy61M9y91d4PgtownjBSMfGlCpRDqUyv8rvB8Q== X-Received: by 2002:adf:e508:0:b0:34c:8adf:8fc9 with SMTP id j8-20020adfe508000000b0034c8adf8fc9mr3384338wrm.51.1714643816476; Thu, 02 May 2024 02:56:56 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Thomas Huth , Paolo Bonzini , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 2/3] crypto: Restrict pkix_asn1_tab[] to crypto-tls-x509-helpers.c Date: Thu, 2 May 2024 11:56:41 +0200 Message-ID: <20240502095642.93368-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240502095642.93368-1-philmd@linaro.org> References: <20240502095642.93368-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=philmd@linaro.org; helo=mail-wr1-x433.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1714643847873100001 pkix_asn1_tab[] is only accessed by crypto-tls-x509-helpers.c, rename pkix_asn1_tab.c as pkix_asn1_tab.c.inc and include it once. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Daniel P. Berrang=C3=A9 --- tests/unit/crypto-tls-x509-helpers.h | 3 --- tests/unit/crypto-tls-x509-helpers.c | 6 +++++- tests/unit/{pkix_asn1_tab.c =3D> pkix_asn1_tab.c.inc} | 5 +---- tests/qtest/meson.build | 3 +-- tests/unit/meson.build | 6 +++--- 5 files changed, 10 insertions(+), 13 deletions(-) rename tests/unit/{pkix_asn1_tab.c =3D> pkix_asn1_tab.c.inc} (99%) diff --git a/tests/unit/crypto-tls-x509-helpers.h b/tests/unit/crypto-tls-x= 509-helpers.h index 247e7160eb..562c160653 100644 --- a/tests/unit/crypto-tls-x509-helpers.h +++ b/tests/unit/crypto-tls-x509-helpers.h @@ -23,7 +23,6 @@ =20 #include #include -#include =20 =20 #define QCRYPTO_TLS_TEST_CLIENT_NAME "ACME QEMU Client" @@ -171,6 +170,4 @@ void test_tls_cleanup(const char *keyfile); }; \ test_tls_generate_cert(&varname, cavarname.crt) =20 -extern const asn1_static_node pkix_asn1_tab[]; - #endif diff --git a/tests/unit/crypto-tls-x509-helpers.c b/tests/unit/crypto-tls-x= 509-helpers.c index e9937f60d8..3e74ec5b5d 100644 --- a/tests/unit/crypto-tls-x509-helpers.c +++ b/tests/unit/crypto-tls-x509-helpers.c @@ -20,15 +20,19 @@ =20 #include "qemu/osdep.h" =20 +#include + #include "crypto-tls-x509-helpers.h" #include "crypto/init.h" #include "qemu/sockets.h" =20 +#include "pkix_asn1_tab.c.inc" + /* * This stores some static data that is needed when * encoding extensions in the x509 certs */ -asn1_node pkix_asn1; +static asn1_node pkix_asn1; =20 /* * To avoid consuming random entropy to generate keys, diff --git a/tests/unit/pkix_asn1_tab.c b/tests/unit/pkix_asn1_tab.c.inc similarity index 99% rename from tests/unit/pkix_asn1_tab.c rename to tests/unit/pkix_asn1_tab.c.inc index 89521408a1..fe29c4102a 100644 --- a/tests/unit/pkix_asn1_tab.c +++ b/tests/unit/pkix_asn1_tab.c.inc @@ -3,10 +3,7 @@ * and is under copyright of various GNUTLS contributors. */ =20 -#include "qemu/osdep.h" -#include "crypto-tls-x509-helpers.h" - -const asn1_static_node pkix_asn1_tab[] =3D { +static const asn1_static_node pkix_asn1_tab[] =3D { {"PKIX1", 536875024, 0}, {0, 1073741836, 0}, {"id-ce", 1879048204, 0}, diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build index b128fa5a4b..f16931f82e 100644 --- a/tests/qtest/meson.build +++ b/tests/qtest/meson.build @@ -314,8 +314,7 @@ if gnutls.found() migration_files +=3D [files('../unit/crypto-tls-psk-helpers.c'), gnutls] =20 if tasn1.found() - migration_files +=3D [files('../unit/crypto-tls-x509-helpers.c', - '../unit/pkix_asn1_tab.c'), tasn1] + migration_files +=3D [files('../unit/crypto-tls-x509-helpers.c'), tasn= 1] endif endif =20 diff --git a/tests/unit/meson.build b/tests/unit/meson.build index 26c109c968..490ab8182d 100644 --- a/tests/unit/meson.build +++ b/tests/unit/meson.build @@ -99,11 +99,11 @@ if have_block tasn1.found() and \ host_os !=3D 'windows' tests +=3D { - 'test-crypto-tlscredsx509': ['crypto-tls-x509-helpers.c', 'pkix_asn1= _tab.c', + 'test-crypto-tlscredsx509': ['crypto-tls-x509-helpers.c', tasn1, crypto, gnutls], - 'test-crypto-tlssession': ['crypto-tls-x509-helpers.c', 'pkix_asn1_t= ab.c', 'crypto-tls-psk-helpers.c', + 'test-crypto-tlssession': ['crypto-tls-x509-helpers.c', 'crypto-tls-= psk-helpers.c', tasn1, crypto, gnutls], - 'test-io-channel-tls': ['io-channel-helpers.c', 'crypto-tls-x509-hel= pers.c', 'pkix_asn1_tab.c', + 'test-io-channel-tls': ['io-channel-helpers.c', 'crypto-tls-x509-hel= pers.c', tasn1, io, crypto, gnutls]} endif if pam.found() --=20 2.41.0 From nobody Wed Feb 11 02:54:44 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1714643861; cv=none; d=zohomail.com; s=zohoarc; b=d2uFvNygzzGF4UId7cRXoH9FtQgksPgMQ6qM4By/zX5IDxdbF5G0vcMWdcjUDcdPbz3Y5tKK3LaJhX+WJDOjp4TpmKc+7wto/SYiSYB3Xtu6U62MWjUc5oCB0jVch3v3x4nw5+IFs/1b0yYq/Ct8atc7gCMxzCoyc9+OFoo7CIc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1714643861; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=OWnrA6E91+7xAaPI8kCn9o7Y7ybTIOe7+SUe3y8pkFw=; b=IMJY+54R1X/pmCb588fyWlXBdaUEZHsduTLxnhKRlDYMs7ZHoLlxZIrRTl3/6rxb8//O+ystaFrLshhV9t3hh042juXTyUB6h6RAJofnSxRr4tisBiD15QnuBYIgjbzrhklw0WYyHGYK/6Xo9CwXqLTRi8LGFBroTCcwKAdvC0E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17146438613141005.0507142241129; Thu, 2 May 2024 02:57:41 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2TBb-0000gu-Vq; Thu, 02 May 2024 05:57:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s2TBZ-0000eL-Rv for qemu-devel@nongnu.org; Thu, 02 May 2024 05:57:05 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2TBX-00019W-JQ for qemu-devel@nongnu.org; Thu, 02 May 2024 05:57:04 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-41b5e74fa83so51910315e9.0 for ; Thu, 02 May 2024 02:57:03 -0700 (PDT) Received: from m1x-phil.lan ([176.187.215.106]) by smtp.gmail.com with ESMTPSA id n21-20020a05600c3b9500b0041a9fc2a6b5sm5111895wms.20.2024.05.02.02.57.00 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 02 May 2024 02:57:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714643822; x=1715248622; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OWnrA6E91+7xAaPI8kCn9o7Y7ybTIOe7+SUe3y8pkFw=; b=BWEW6nVMH90wQe/RV5ddg5LIKPiqhQF07BYhxegi/dG2+klv6/U+uHbuPGY2VOmuBI 4hlvzxmaR1Y9I13RvOzEG3aFsosdulGLGFmAvFJ/AAMNlVvGgisEgCNtCAbZ6XrkqMDy xk5sQNGOt5IPuwSEcYIIisnioKWVaSlLt+pY1DFtR83URpENFh9LY1GU215XdDYLXA+B a5XlE69qiqtJqOwSxnitYg4C4+CFbHM/GfP+BiEaulGhyna2gavK8gJc/zqAyr7nL4j5 hDVK3ocuNtGX0JuH2MbmUczns1M2vf5achAHoJoD4jAO1oJj5N5eE8bsxgU8i3Gh5XO5 AjZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714643822; x=1715248622; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OWnrA6E91+7xAaPI8kCn9o7Y7ybTIOe7+SUe3y8pkFw=; b=EYinyKU/+cETJaJFhECQygW1n8kp/hWgp7iMPvVKeEuO2OVvOv9JYqZ/29cDtTcq+t Jmh/JUZTfAPgwCOHdjeDB2pwnaoUDUoG/DTiZLJGbkJ/zO5ZgSr9IhPCO4hYYxKFuOLO 6L1v4QRGIaYqsmMsKAyR5/ENudVgaipOZUDGnkdeYjosXjxBGwnlu7Ks4+dGnWc4yB6Y JB6hc8WtjOiNkYERhxSVA7nlOCvOINCNMnv13RbF9a4hCcjnCDey1jE7sonyuXqLGhZc 6HewYb9d33dgvP+tQ2MH/ZmGMU8k2WTnFNfKzgmfjR6cehWE3haNDTOuVQEmL6/g/2VW f0nA== X-Gm-Message-State: AOJu0Yyn/VkH371dK8v4xkEGf8gvrqeF4mYwvkvNGoAO2OW1GcdcN6I+ 1NASdapyB80u2zdXlf6CaNrmJkANAHeqS7t4VHmk8wliq0FN+HXkeBfKLM0mBdZ7//2lznYp6Fc / X-Google-Smtp-Source: AGHT+IEmk6ue13PnbZ9dFBQt7wOV7TTFIcyk8Mxq17s74JZ1rPy4K/FqCytBY3jrHqPCMrTEnwyHVA== X-Received: by 2002:a05:600c:444d:b0:418:ed23:a9f0 with SMTP id v13-20020a05600c444d00b00418ed23a9f0mr3554308wmn.18.1714643821957; Thu, 02 May 2024 02:57:01 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Thomas Huth , Paolo Bonzini , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 3/3] crypto: Allow building with GnuTLS but without Libtasn1 Date: Thu, 2 May 2024 11:56:42 +0200 Message-ID: <20240502095642.93368-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240502095642.93368-1-philmd@linaro.org> References: <20240502095642.93368-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1714643861810100001 We only use Libtasn1 in unit tests. As noted in commit d47b83b118 ("tests: add migration tests of TLS with x509 credentials"), having GnuTLS without Libtasn1 is a valid configuration, so do not require Libtasn1, to avoid: Dependency gnutls found: YES 3.7.1 (cached) Run-time dependency libtasn1 found: NO (tried pkgconfig) ../meson.build:1914:10: ERROR: Dependency "libtasn1" not found, tried pkg= config Fixes: ba7ed407e6 ("configure, meson: convert libtasn1 detection to meson") Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Daniel P. Berrang=C3=A9 --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 5db2dbc12e..837a2bdb56 100644 --- a/meson.build +++ b/meson.build @@ -1912,6 +1912,7 @@ endif tasn1 =3D not_found if gnutls.found() tasn1 =3D dependency('libtasn1', + required: false, method: 'pkg-config') endif keyutils =3D not_found --=20 2.41.0