From patchwork Thu Sep 10 10:06:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= X-Patchwork-Id: 249582 Delivered-To: patch@linaro.org Received: by 2002:a17:906:6011:0:0:0:0 with SMTP id o17csp1238414ejj; Thu, 10 Sep 2020 03:07:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXT3i+VkCdvJSCxDhFk8udBE7Q6OXw1y6mUhp847lusOnn9EFDa5mitrwa0wFZUYq+Arrj X-Received: by 2002:a25:9745:: with SMTP id h5mr8980673ybo.104.1599732421339; Thu, 10 Sep 2020 03:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599732421; cv=none; d=google.com; s=arc-20160816; b=g1aPbdk3xrZ5hPfJ5fa+IUQbTK/pnBZlogPDmYmN1ivwQ1woDhNvrKWDQ854IZi8rj BcyvlVC5bq6wIDyhljF5CHZJ0aeYtPlgx/ZWxHsew7cI3aAXFl1+lN0avuvUaCzjXt8k 3R96ERKF7ym+xoc1OmmtgE5954zmOxL8M8/azN5vBR+nynT4ka7JlYfGJvLX3sddWo3x mSga7K0w/qjGayuXfPMOayAVDfP6KqLvEWMjhny5AQuWzlEn4mUCQ2trgpzDKUBJNo8O pXX3zwkPG2MYbfVci2xHuf2fNknkd6ahg3vZT+VKFd06gDQzPT8Rd0dPxax5bZPmZi2B YA1Q== 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=19KEz/DRMwQy3pUnVgUen5fEjahzfLsC3s499xtdYUY=; b=Gb33ahjnOgFkCUF9L003zNQvBVeDrag0GmgXdLqXyktzFgpaBY15nEljg5cZwlJcqZ SHhuO0nDKkDTvC2WXCia0PMBLyKmia4HzlhlnikCspwN/rqTgHjJBVOFSJy/HaJGnRWX AfB4duWTna1eeyTx6iPDQN3a6+9LNz5ZE62E6/9lnjOuwZmfzytTQhc/NWN0dDaHpxbV Ty5p2F/Gq3l+yj0xuFOeMmCjQz7wRxU0rc91HuO/aTIT+TU1t20NWgey0RY8vBeb6r9C bNaIs6gyKS0JlFJ5+3DLMIKDlv60nkI30TcRUInpJ3PESx8HpQxQQS01A5DRR9HuQ1oX sV5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=jTNfyef5; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id e76si5224011ybb.54.2020.09.10.03.07.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Sep 2020 03:07:01 -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=fail header.i=@redhat.com header.s=mimecast20190719 header.b=jTNfyef5; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:42782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGJTo-0000LH-Ib for patch@linaro.org; Thu, 10 Sep 2020 06:07:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGJTU-0000IG-7z for qemu-devel@nongnu.org; Thu, 10 Sep 2020 06:06:40 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:40793 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kGJTS-0007hK-D0 for qemu-devel@nongnu.org; Thu, 10 Sep 2020 06:06:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1599732397; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=19KEz/DRMwQy3pUnVgUen5fEjahzfLsC3s499xtdYUY=; b=jTNfyef5TSZ8MKLEXlMUPrHfUhs3me93aC33HYisOdhDrMVGCIEQDRN/Rp33tmlgJ5c54y e6EoFGmOhDp/g41EvuKmdu5W2dMwL7ABu0d4X1tgnUOpWIn8HKJIXC24HevgD364oblqGs QTg3qTIMLJpdy6GuCJELrhVfTBetAGg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-577-r64GhKoJNuiCjhXsU8REIg-1; Thu, 10 Sep 2020 06:06:35 -0400 X-MC-Unique: r64GhKoJNuiCjhXsU8REIg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7271B8018A1; Thu, 10 Sep 2020 10:06:34 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-4.ams2.redhat.com [10.36.112.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 23E981002D5C; Thu, 10 Sep 2020 10:06:32 +0000 (UTC) From: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 06/17] crypto: Move QCryptoCipherDriver typedef to crypto/cipher.h Date: Thu, 10 Sep 2020 11:06:12 +0100 Message-Id: <20200910100623.1088965-7-berrange@redhat.com> In-Reply-To: <20200910100623.1088965-1-berrange@redhat.com> References: <20200910100623.1088965-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=berrange@redhat.com X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=207.211.31.81; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/10 00:49:43 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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: Richard Henderson , =?utf-8?q?Daniel_P?= =?utf-8?b?LiBCZXJyYW5nw6k=?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Allow the use in QCryptoCipher to be properly typed with the opaque struct pointer. Signed-off-by: Richard Henderson Signed-off-by: Daniel P. Berrangé --- crypto/cipherpriv.h | 2 -- include/crypto/cipher.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.26.2 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 */