mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
954721ffa8
commit
7b5dbfb777
7 changed files with 12 additions and 12 deletions
|
@ -724,7 +724,7 @@ qcrypto_nettle_cipher_setiv(QCryptoCipher *cipher,
|
|||
}
|
||||
|
||||
|
||||
static struct QCryptoCipherDriver qcrypto_cipher_lib_driver = {
|
||||
static const struct QCryptoCipherDriver qcrypto_cipher_lib_driver = {
|
||||
.cipher_encrypt = qcrypto_nettle_cipher_encrypt,
|
||||
.cipher_decrypt = qcrypto_nettle_cipher_decrypt,
|
||||
.cipher_setiv = qcrypto_nettle_cipher_setiv,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue