From patchwork Fri Aug 28 17:05:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 248593 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1256434ilg; Fri, 28 Aug 2020 10:05:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXlTvz/HUPG4TEFzII8ZDFpS9QGV1kAu+Rt1SUeixAf4Av/x2S2SHmhKm54pHGHK5AHDcL X-Received: by 2002:a25:a441:: with SMTP id f59mr3714931ybi.42.1598634347590; Fri, 28 Aug 2020 10:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598634347; cv=none; d=google.com; s=arc-20160816; b=UvHD+axHrtmnbkpgK0L9AQ5eNWxmLFw9PdT15xlsatt1jj4pJJn/B4CRDmeIhVS0iI MsTf0eFQb1BT70Xp88KnCQdjFXTYPo/1CUZsevdRP6BVdlBgLlPdWcqR65x7y4/abgW7 Mow6+GemZLQOu5HVLBr+uX2CaM5dqFpBC1XbTunj2nqi5iyz2gYjlCmQVicv5BfnFjJX oXHp7UitclIJ+GR6oU7Fg6PYdGvAEBBzD6Miiuc9CDmk+OxQu2D8T0a5eq3neDolf5i3 y2xyqqy6y5myNpqg8WEJHVua5S0NGfctoKvCrgPDH8uQg9xXMNFNlDMttaI8djC4xEjc +7dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=ITUpbwpJpl5kwHPYTXnaY0I0dsp5Ua5j8HECaAQoi50=; b=UJv4XDoEofGUAjvIvjJJwVq1tXxYwkQkILbyGlz+ZHvTGZ1W3t8EBOyIfQAjRuhqNy a0mDIF6yuxXYjazqDqg63w/KReiZj2M7oij/nl4O29J6IKELmZkK3im2qthnYmCfPjEW gpEKZgiPBH+7+9X9abUXOyCKSYhUcvzXsMEp/LbtOkKxEgfg0sd23kLhEs8ctxpYmjMM HHc4sr2pLgXcMEb/cDruc3JUFeAnz87Oy0II9OVb7OSJw7Es5XJVu38Ah2CDd/fWVN4r 59SGu4VBVXi/DSsWiotGpuKK6XokJbK0oVpa0M804L4dgKtSDRNy/gUBkMn+Sytuh3Bl hLmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lsha6aDU; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l83si1412552ybf.113.2020.08.28.10.05.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Aug 2020 10:05:47 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Lsha6aDU; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:58376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBhow-0003gF-MR for patch@linaro.org; Fri, 28 Aug 2020 13:05:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBhol-0003eW-5x for qemu-devel@nongnu.org; Fri, 28 Aug 2020 13:05:35 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:37992) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBhoj-00030v-Kz for qemu-devel@nongnu.org; Fri, 28 Aug 2020 13:05:34 -0400 Received: by mail-pl1-x629.google.com with SMTP id t11so788419plr.5 for ; Fri, 28 Aug 2020 10:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ITUpbwpJpl5kwHPYTXnaY0I0dsp5Ua5j8HECaAQoi50=; b=Lsha6aDUfzLNjD6nDAtn0kKeiG8ihysx7VKq/F+7pnd7fwIOX+Hg2BgfhfWwdlgNd+ JQF5wMrFLn1H7YmKVB0oElmFu0NxJNtoQEb5o5lUb9ZyiPfTylzgjGvt4bAmlWagR/5K KvbOMRJmApVSc+y1ulb6dSgVHNonMlqn44GMxThrfrNgMMkw/NPIMMob9VveHJOjlV5q tVVwnUpHWjG5Iw47MGVeyd5URq/l2TWXtaueFf3boPj+S0ZDk4OydNWhzSNML1q7gYmS sdK/ojYWRgL6OutRtlNrb3h23Q0KtpZ7JKlFIc3nq9+pbOk0A3iyDjmb5Ei+7hleS2H6 Bbnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ITUpbwpJpl5kwHPYTXnaY0I0dsp5Ua5j8HECaAQoi50=; b=W2wkUQYjrF+BeDBjOLLBRf60PGwn7mQ4lU2z1fsamUi8+a+TSRSujvsZKQqm1ykxrR s3cH+yMCRPRabq5Qsd5xYUDWPo1ZtYVp8H23OdHp8RaCvuPnkGUyzwqUND2EVDrHaRUt apu+kttmMI0b//YU8ThbMdWSTLhSMOOY7wvd7XtNa8KwH5VQYgX8tOq2tpA/J09y1kzn N3zrMgNd2wwby3pOf01unRJDtN4aYpcxNiZBjzsqekosCW/CUpV6vCNeg9jz6kZXhRQG M/2M8/Zsn4czNcxvTxQ511U46K7toEem7vkVhXgxOg58aYeTqqRV48UTXju6kpGOQjmA wKlA== X-Gm-Message-State: AOAM532+BB0vB42nHftFOEJaa6T9zF3ZyIV7dOiuWjn5DsW2P/5W5uVn xz1JD9QgdsxHCihNpSpuiXXVnjW3b+GF2A== X-Received: by 2002:a17:90a:24f:: with SMTP id t15mr46207pje.227.1598634331759; Fri, 28 Aug 2020 10:05:31 -0700 (PDT) Received: from localhost.localdomain ([71.212.141.89]) by smtp.gmail.com with ESMTPSA id q12sm2277495pff.196.2020.08.28.10.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 10:05:30 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 05/16] crypto: Move QCryptoCipherDriver typedef to crypto/cipher.h Date: Fri, 28 Aug 2020 10:05:12 -0700 Message-Id: <20200828170523.418603-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200828170523.418603-1-richard.henderson@linaro.org> References: <20200828170523.418603-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x629.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: berrange@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Allow the use in QCryptoCipher to be properly typed with the opaque struct pointer. Signed-off-by: Richard Henderson --- crypto/cipherpriv.h | 2 -- include/crypto/cipher.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.25.1 diff --git a/crypto/cipherpriv.h b/crypto/cipherpriv.h index 0823239f41..9228c9fc3a 100644 --- a/crypto/cipherpriv.h +++ b/crypto/cipherpriv.h @@ -17,8 +17,6 @@ #include "qapi/qapi-types-crypto.h" -typedef struct QCryptoCipherDriver QCryptoCipherDriver; - struct QCryptoCipherDriver { int (*cipher_encrypt)(QCryptoCipher *cipher, const void *in, diff --git a/include/crypto/cipher.h b/include/crypto/cipher.h index 5928e5ecc7..8a42a683a4 100644 --- a/include/crypto/cipher.h +++ b/include/crypto/cipher.h @@ -24,6 +24,7 @@ #include "qapi/qapi-types-crypto.h" typedef struct QCryptoCipher QCryptoCipher; +typedef struct QCryptoCipherDriver QCryptoCipherDriver; /* See also "QCryptoCipherAlgorithm" and "QCryptoCipherMode" * enums defined in qapi/crypto.json */