summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2015-03-19 21:23:29 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-03-19 21:23:29 +0100
commitfed480756da22827d8b1f91a11771934444787e2 (patch)
tree991eec809c6fce5da52b4260b3c74fa2fc24ff15
parentc2eb75dbc15e2f9b15e637ac8da9b511fed552f2 (diff)
downloadgnutls-fed480756da22827d8b1f91a11771934444787e2.tar.gz
mention that the registration functions are not thread safe
-rw-r--r--lib/gnutls_extensions.c3
-rw-r--r--lib/gnutls_supplemental.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/gnutls_extensions.c b/lib/gnutls_extensions.c
index d75fc727d3..af09ff3c6c 100644
--- a/lib/gnutls_extensions.c
+++ b/lib/gnutls_extensions.c
@@ -732,7 +732,8 @@ _gnutls_ext_get_resumed_session_data(gnutls_session_t session,
* @unpack_func: a function which will deserialize the extension's private data
*
* This function will register a new extension type. The extension will remain
- * registered until gnutls_global_deinit() is called.
+ * registered until gnutls_global_deinit() is called. This function is not
+ * thread safe.
*
* Returns: %GNUTLS_E_SUCCESS on success, otherwise a negative error code.
*
diff --git a/lib/gnutls_supplemental.c b/lib/gnutls_supplemental.c
index e7c4c42ff0..34bd67668a 100644
--- a/lib/gnutls_supplemental.c
+++ b/lib/gnutls_supplemental.c
@@ -248,7 +248,7 @@ _gnutls_supplemental_register(gnutls_supplemental_entry *entry)
*
* This function will register a new supplemental data type (rfc4680).
* The registered data will remain until gnutls_global_deinit()
- * is called.
+ * is called. This function is not thread safe.
*
* Returns: %GNUTLS_E_SUCCESS on success, otherwise a negative error code.
*