summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Henderson2020-08-28 19:05:13 +0200
committerDaniel P. Berrangé2020-09-10 12:02:23 +0200
commit7b5dbfb777ff4894ebcd71f5014d26abeef916c6 (patch)
tree1c10980f76d78c11df6c4eaccd1ec124c41e1814 /include
parentcrypto: Move QCryptoCipherDriver typedef to crypto/cipher.h (diff)
downloadqemu-7b5dbfb777ff4894ebcd71f5014d26abeef916c6.tar.gz
qemu-7b5dbfb777ff4894ebcd71f5014d26abeef916c6.tar.xz
qemu-7b5dbfb777ff4894ebcd71f5014d26abeef916c6.zip
crypto: Use the correct const type for driver
This allows the in memory structures to be read-only. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/crypto/cipher.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/cipher.h b/include/crypto/cipher.h
index 8a42a683a4..cc57179a4d 100644
--- a/include/crypto/cipher.h
+++ b/include/crypto/cipher.h
@@ -81,7 +81,7 @@ struct QCryptoCipher {
QCryptoCipherAlgorithm alg;
QCryptoCipherMode mode;
void *opaque;
- void *driver;
+ const QCryptoCipherDriver *driver;
};
/**