From: Nikos Mavrogiannopoulos Date: Sun, 2 Jun 2013 17:25:39 +0000 (+0200) Subject: doc update X-Git-Tag: gnutls_3_2_2~82 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0cd5745d2f05313e7ab5a9284eb4c0ee41f9f598;p=thirdparty%2Fgnutls.git doc update --- diff --git a/doc/cha-gtls-app.texi b/doc/cha-gtls-app.texi index d0250f24f1..d592de33b7 100644 --- a/doc/cha-gtls-app.texi +++ b/doc/cha-gtls-app.texi @@ -241,7 +241,9 @@ library. @subsection Initialization GnuTLS must be initialized before it can be used. The library is -initialized by calling @funcref{gnutls_global_init}. The resources +initialized by calling @funcref{gnutls_global_init}. That call +typically enables CPU-specific acceleration, and performs any requires +precalculations needed by the library. The resources allocated by the initialization process can be released if the application no longer has a need to call GnuTLS functions, this is done by calling @funcref{gnutls_global_deinit}. diff --git a/lib/gnutls_global.c b/lib/gnutls_global.c index ed9e46f81d..125a22bf6c 100644 --- a/lib/gnutls_global.c +++ b/lib/gnutls_global.c @@ -171,13 +171,12 @@ static int _gnutls_init = 0; /** * gnutls_global_init: * - * This function initializes the global data to defaults. - * In order to free resources you may call gnutls_global_deinit() + * This function performs any required precalculations, detects + * the supported CPU capabilities and initializes the underlying + * cryptographic backend. In order to free any resources + * taken by this call you should gnutls_global_deinit() * when gnutls usage is no longer needed. * - * Note that this function will also initialize the underlying crypto - * backend, if it has not been initialized before. - * * This function increments a global counter, so that * gnutls_global_deinit() only releases resources when it has been * called as many times as gnutls_global_init(). This is useful when