summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_ext_get_current_msg
diff options
context:
space:
mode:
Diffstat (limited to 'doc/functions/gnutls_ext_get_current_msg')
-rw-r--r--doc/functions/gnutls_ext_get_current_msg18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/functions/gnutls_ext_get_current_msg b/doc/functions/gnutls_ext_get_current_msg
new file mode 100644
index 0000000..f99d6ed
--- /dev/null
+++ b/doc/functions/gnutls_ext_get_current_msg
@@ -0,0 +1,18 @@
+
+
+
+
+@deftypefun {unsigned} {gnutls_ext_get_current_msg} (gnutls_session_t @var{session})
+@var{session}: a @code{gnutls_session_t} opaque pointer
+
+This function allows an extension handler to obtain the message
+this extension is being called from. The returned value is a single
+entry of the @code{gnutls_ext_flags_t} enumeration. That is, if an
+extension was registered with the @code{GNUTLS_EXT_FLAG_HRR} and
+@code{GNUTLS_EXT_FLAG_EE} flags, the value when called during parsing of the
+encrypted extensions message will be @code{GNUTLS_EXT_FLAG_EE} .
+
+If not called under an extension handler, its value is undefined.
+
+@strong{Since:} 3.6.3
+@end deftypefun