]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Fix comment about GNUTLS initialization/cleanup
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 10 Apr 2012 11:15:46 +0000 (12:15 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 10 Apr 2012 12:42:22 +0000 (13:42 +0100)
src/rpc/virnettlscontext.c

index 74a61e07833a2bfd2ac0653e2f930b702a2c2be5..7440c7a97a78720cf0963faf552a6dd16cbe3784 100644 (file)
@@ -1423,9 +1423,13 @@ void virNetTLSSessionFree(virNetTLSSessionPtr sess)
  * virNetTLS* because it initializes
  * underlying GnuTLS library. According to
  * it's documentation, it's safe to be called
- * many times, but is not thread safe. Each
- * call SHOULD be later followed by
- * virNetTLSContextDeinit.
+ * many times, but is not thread safe.
+ *
+ * There is no corresponding "Deinit" / "Cleanup"
+ * function because there is no safe way to call
+ * 'gnutls_global_deinit' from a multi-threaded
+ * library, where other libraries linked into the
+ * application may also be using gnutls.
  */
 void virNetTLSInit(void)
 {