]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Introduce virCryptoGenerateRandom
authorJohn Ferlan <jferlan@redhat.com>
Thu, 19 May 2016 17:05:36 +0000 (13:05 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 20 May 2016 15:09:05 +0000 (11:09 -0400)
commit238032505f4d5679ec47269dcaf2b9a8be5bcd40
treed8b213ec9b349f3049f764391e5bf36dc96cb7b8
parent1ce9c08ab349a4ce059216114e4fcdc3e559e96c
util: Introduce virCryptoGenerateRandom

Move the logic from qemuDomainGenerateRandomKey into this new
function, altering the comments, variable names, and error messages
to keep things more generic.

NB: Although perhaps more reasonable to add soemthing to virrandom.c.
    The virrandom.c was included in the setuid_rpc_client, so I chose
    placement in vircrypto.
src/libvirt_private.syms
src/qemu/qemu_domain.c
src/util/vircrypto.c
src/util/vircrypto.h