]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
add warning that these functions have to be called before gnutls_global_init().
authorNikos Mavrogiannopoulos <nmav@turtle.(none)>
Sat, 26 Apr 2008 11:17:35 +0000 (14:17 +0300)
committerNikos Mavrogiannopoulos <nmav@turtle.(none)>
Sat, 26 Apr 2008 11:17:35 +0000 (14:17 +0300)
lib/crypto.c

index 00f2cff3dc3eef11781defe1810116513e7ff497..92b999bca82e8ff3defd4aa4066d764dd1fb6bb7 100644 (file)
@@ -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.
   *
   **/