]> xenbits.xensource.com Git - libvirt.git/commit
Do more complete initialization of libgcrypt
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 12 Apr 2013 16:25:03 +0000 (17:25 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 15 Apr 2013 11:09:10 +0000 (12:09 +0100)
commite16e2a8bbbdc4ba63c519921db5551691202647d
tree8c05bb80fdd46fbf2af1266ee872173038f6cc43
parent63b68f3cb4af0ba3e11bd7863fcea8b2f34def34
Do more complete initialization of libgcrypt

If libvirt makes any gcry_control() calls, then this
prevents gnutls for doing any initialization. As such
we must take care to do full initialization of libcrypt
on a par with what gnutls would have done. In particular
we must disable "sec mem" for cases where the user does
not have mlock() permission. We also skip our init of
libgcrypt if something else (ie the app using libvirt)
has beaten us to it.

https://bugzilla.redhat.com/show_bug.cgi?id=951630

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/libvirt.c