]> git.ipfire.org Git - thirdparty/libvirt.git/commit
secret: Alter virSecretGetSecretString
authorJohn Ferlan <jferlan@redhat.com>
Thu, 12 May 2016 15:43:39 +0000 (11:43 -0400)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 16 May 2016 10:58:48 +0000 (12:58 +0200)
commitabd2272c027a6ad4d70d6d278291506f49460912
tree8b9fd1deded57a63f5e519ff9a7fa86f3d00c275
parentfb1dddfb006b3575d74b1b33c028179ad4a1b3e0
secret: Alter virSecretGetSecretString

Rather than returning a "char *" indicating perhaps some sized set of
characters that is NUL terminated, alter the function to return 0 or -1
for success/failure and add two parameters to handle returning the
buffer and it's size.

The function no longer encodes the returned secret, rather it returns
the unencoded secret forcing callers to make the necessary adjustments.

Alter the callers to handle the adjusted model.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/libxl/libxl_conf.c
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/secret/secret_util.c
src/secret/secret_util.h