]> git.ipfire.org Git - thirdparty/libvirt.git/commit
secret: Introduce virSecretObjGetValue and virSecretObjGetValueSize
authorJohn Ferlan <jferlan@redhat.com>
Tue, 8 Mar 2016 00:40:58 +0000 (19:40 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 25 Apr 2016 19:45:29 +0000 (15:45 -0400)
commit43d3e3c130a0f123ad8fa1cfe2ed8447871097f3
tree8acfd5bb08c2d704b831600828527f216f31137a
parent9e1e56216fe9711a5c0d857ce168f08cd0a10d99
secret: Introduce virSecretObjGetValue and virSecretObjGetValueSize

Introduce the final accessor's to _virSecretObject data and move the
structure from virsecretobj.h to virsecretobj.c

The virSecretObjSetValue logic will handle setting both the secret
value and the value_size. Some slight adjustments to the error path
over what was in secretSetValue were made.

Additionally, a slight logic change in secretGetValue where we'll
check for the internalFlags and error out before checking for
and erroring out for a NULL secret->value. That way, it won't be
obvious to anyone that the secret value wasn't set rather they'll
just know they cannot get the secret value since it's private.
src/conf/virsecretobj.c
src/conf/virsecretobj.h
src/libvirt_private.syms
src/secret/secret_driver.c