]> xenbits.xensource.com Git - libvirt.git/commit
virCryptoGenerateRandom: Don't allocate return buffer
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 29 May 2018 05:46:32 +0000 (07:46 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 5 Jun 2018 08:31:19 +0000 (10:31 +0200)
commitc3320d6518044f571e7c6af6ee4b40dc6505ba0a
tree14d4f890f5d0be7af9625ecfab4862e2f23a6fa5
parenta5865cdbeaeeddf9a2c7817237e07c79d6f93296
virCryptoGenerateRandom: Don't allocate return buffer

To unify our vir*Random() functions we need to make
virCryptoGenerateRandom NOT allocate return buffer. It should
just fill given buffer with random data.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c
src/util/vircrypto.c
src/util/vircrypto.h
tests/qemuxml2argvmock.c