]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Local file implementation of secret driver API
authorMiloslav Trmač <mitr@redhat.com>
Fri, 14 Aug 2009 19:48:55 +0000 (21:48 +0200)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 11 Sep 2009 13:54:46 +0000 (14:54 +0100)
commit03d338608de2cbeecd16738bc6a104f49502cbf4
tree63b15e18083a1520a74f9aefb3e9e4b0f0ca1a07
parentb9a8bef477c62559e7ba4579c1824cd5cbb9095d
Local file implementation of secret driver API

This implementation stores the secrets in an unencrypted text file,
for simplicity in implementation and debugging.

(Symmetric encryption, e.g. using gpgme, will not be difficult to add.
Because the TLS private key used by libvirtd is stored unencrypted,
encrypting the secrets file does not currently provide much additional
security.)

* include/libvirt/virterror.h, src/virterror.c (VIR_ERR_NO_SECRET): New
  error number.
* po/POTFILES.in, src/Makefile.am: Add secret_driver.
* bootstrap: Use gnulib's base64 module.
* src/secret_driver.c, src.secret_driver.h, src/libvirt_private.syms:
  Add local secret driver.
* qemud/qemud.c (qemudInitialize): Use the local secret driver.
bootstrap
include/libvirt/virterror.h
po/POTFILES.in
qemud/qemud.c
src/Makefile.am
src/libvirt_private.syms
src/secret_driver.c [new file with mode: 0644]
src/secret_driver.h [new file with mode: 0644]
src/virterror.c