From: Nikos Mavrogiannopoulos Date: Sat, 26 Apr 2008 11:17:35 +0000 (+0300) Subject: add warning that these functions have to be called before gnutls_global_init(). X-Git-Tag: gnutls_2_3_8~20^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2dca285c9b92f30e82a20e298cc98f6bf09ef629;p=thirdparty%2Fgnutls.git add warning that these functions have to be called before gnutls_global_init(). --- diff --git a/lib/crypto.c b/lib/crypto.c index 00f2cff3dc..92b999bca8 100644 --- a/lib/crypto.c +++ b/lib/crypto.c @@ -139,6 +139,8 @@ void _gnutls_crypto_deregister(void) * algorithms have priority of 90. The algorithm with the lowest * priority will be used by gnutls. * + * This function should be called before gnutls_global_init(). + * * Returns: %GNUTLS_E_SUCCESS on success, otherwise an error. * **/ @@ -163,6 +165,8 @@ gnutls_crypto_cipher_st *_gnutls_get_crypto_cipher( gnutls_cipher_algorithm_t al * generators have priority of 90. The generator with the lowest * priority will be used by gnutls. * + * This function should be called before gnutls_global_init(). + * * Returns: %GNUTLS_E_SUCCESS on success, otherwise an error. * **/ @@ -188,6 +192,8 @@ gnutls_crypto_rnd_st *_gnutls_get_crypto_rnd() * algorithms have priority of 90. The algorithm with the lowest * priority will be used by gnutls. * + * This function should be called before gnutls_global_init(). + * * Returns: %GNUTLS_E_SUCCESS on success, otherwise an error. * **/ @@ -213,6 +219,8 @@ gnutls_crypto_mac_st *_gnutls_get_crypto_mac( gnutls_mac_algorithm_t algo) * algorithms have priority of 90. The algorithm with the lowest * priority will be used by gnutls. * + * This function should be called before gnutls_global_init(). + * * Returns: %GNUTLS_E_SUCCESS on success, otherwise an error. * **/