]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virCryptoEncryptDataAESgnutls: Properly initialize data structures
authorPeter Krempa <pkrempa@redhat.com>
Thu, 8 Dec 2022 11:37:30 +0000 (12:37 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 19 Dec 2022 13:40:26 +0000 (14:40 +0100)
commit7df6338f4df4b053bb5d969d1dc63da7057cbca3
treeec1b43ddbeb203d57726986da2e086421806ba40
parent53e46e4cd67835c9dfcf1a20df74ae42e1450155
virCryptoEncryptDataAESgnutls: Properly initialize data structures

The initialization vector is not optional thus we also don't need to
check whether the caller passed it in. Additionally we can use c99
initializers for the gnutls_datum_t structs.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/vircrypto.c