summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Henderson2020-08-28 19:05:12 +0200
committerDaniel P. Berrangé2020-09-10 12:02:23 +0200
commit954721ffa8c755ecd8552525b2a2f47da6c9d9f3 (patch)
tree7d162ed6ea2e588b3adac306acd6bff7869cda03
parentcrypto/nettle: Fix xts_encrypt arguments (diff)
downloadqemu-954721ffa8c755ecd8552525b2a2f47da6c9d9f3.tar.gz
qemu-954721ffa8c755ecd8552525b2a2f47da6c9d9f3.tar.xz
qemu-954721ffa8c755ecd8552525b2a2f47da6c9d9f3.zip
crypto: Move QCryptoCipherDriver typedef to crypto/cipher.h
Allow the use in QCryptoCipher to be properly typed with the opaque struct pointer. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
-rw-r--r--crypto/cipherpriv.h2
-rw-r--r--include/crypto/cipher.h1
2 files changed, 1 insertions, 2 deletions
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 */