[PATCH v2 08/27] virsh: cmdSecretSetValue: Rework handling of the secret value

Daniel P. Berrangé berrange at redhat.com
Wed Feb 3 11:07:21 UTC 2021


On Tue, Feb 02, 2021 at 05:55:45PM +0100, Peter Krempa wrote:
> Use a single buffer for the secret to make it easier to follow it's
> lifecycle. For base64 decoding use a local temporary buffer which will
> be cleared right away.
> 
> This also uses virSecureErase for clearing the bufer instead of
> VIR_DISPOSE_N which is being phased out.
> 
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
>  tools/virsh-secret.c | 35 +++++++++++++++++------------------
>  1 file changed, 17 insertions(+), 18 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list