[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.2.2 Initialization
GnuTLS must be initialized before it can be used. The library is initialized by calling gnutls_global_init. That call typically enables CPU-specific acceleration, performs any required precalculations needed, and initializes subsystems that could be used later (e.g., PKCS #11 – see Initialization).
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 gnutls_global_deinit.
In order to take advantage of the internationalization features in
GnuTLS, such as translated error messages, the application must set
the current locale using setlocale
before initializing GnuTLS.
This document was generated on February 9, 2014 using texi2html 5.0.