diff options
author | Richard Henderson | 2020-08-28 19:05:13 +0200 |
---|---|---|
committer | Daniel P. Berrangé | 2020-09-10 12:02:23 +0200 |
commit | 7b5dbfb777ff4894ebcd71f5014d26abeef916c6 (patch) | |
tree | 1c10980f76d78c11df6c4eaccd1ec124c41e1814 /crypto/cipher-builtin.c.inc | |
parent | crypto: Move QCryptoCipherDriver typedef to crypto/cipher.h (diff) | |
download | qemu-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 'crypto/cipher-builtin.c.inc')
-rw-r--r-- | crypto/cipher-builtin.c.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cipher-builtin.c.inc b/crypto/cipher-builtin.c.inc index 56d45b0227..156f32f1c7 100644 --- a/crypto/cipher-builtin.c.inc +++ b/crypto/cipher-builtin.c.inc @@ -522,7 +522,7 @@ qcrypto_builtin_cipher_setiv(QCryptoCipher *cipher, } -static struct QCryptoCipherDriver qcrypto_cipher_lib_driver = { +static const struct QCryptoCipherDriver qcrypto_cipher_lib_driver = { .cipher_encrypt = qcrypto_builtin_cipher_encrypt, .cipher_decrypt = qcrypto_builtin_cipher_decrypt, .cipher_setiv = qcrypto_builtin_cipher_setiv, |