]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/utils.c
ensure gnutls is initialized before use
authorDwight Engen <dwight.engen@oracle.com>
Tue, 8 Oct 2013 16:22:57 +0000 (12:22 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 8 Oct 2013 16:47:58 +0000 (12:47 -0400)
commit41246cee3bc2b4215a485dd5da33d65ae5254514
tree16009597eceea760f9872bf538cae049eb25c591
parentf220889fd2d586ced14f853c303e2887305d5024
ensure gnutls is initialized before use

Section 7.1.2 of the gnutls info manual states that it must be
initialized with a call to gnutls_global_init before use. This
fixes the syslog warning I was seeing:

  lxc-create: Libgcrypt warning: missing initialization -
              please fix the application

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/utils.c