]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Initialize gcrypt threading
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 17 Jul 2009 19:20:08 +0000 (20:20 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 17 Dec 2009 18:22:09 +0000 (18:22 +0000)
commit33a198c1f6a4a1bc7f34d50a31032e03bec10fee
tree4114a8c215117c1969726f04532f772810d89e06
parent84961bd3f404328fa5a6b57dea27280f65553a1a
Initialize gcrypt threading

GNUTLS uses gcrypt for its crypto functions. gcrypt requires
that the app/library initializes threading before using it.
We don't want to force apps using libvirt to know about
gcrypt, so we make virInitialize init threading on their
behalf. This location also ensures libvirtd has initialized
it correctly. This initialization is required even if libvirt
itself were only using one thread, since another non-libvirt
library (eg GTK-VNC) could also be using gcrypt from another
thread

* src/libvirt.c: Register thread functions for gcrypt
* configure.in: Add -lgcrypt to linker flags
build-aux/.gitignore
configure.in
src/libvirt.c