Fix comment about GNUTLS initialization/cleanup

This commit is contained in:
Daniel P. Berrange 2012-04-10 12:15:46 +01:00
parent 4e9bb1dffd
commit 20171c8dc0

View File

@ -1423,9 +1423,13 @@ void virNetTLSSessionFree(virNetTLSSessionPtr sess)
* virNetTLS* because it initializes * virNetTLS* because it initializes
* underlying GnuTLS library. According to * underlying GnuTLS library. According to
* it's documentation, it's safe to be called * it's documentation, it's safe to be called
* many times, but is not thread safe. Each * many times, but is not thread safe.
* call SHOULD be later followed by *
* virNetTLSContextDeinit. * 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) void virNetTLSInit(void)
{ {