summaryrefslogtreecommitdiff
path: root/doc/cha-internals.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/cha-internals.texi')
-rw-r--r--doc/cha-internals.texi8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/cha-internals.texi b/doc/cha-internals.texi
index 1dcfcb7570..91ca008aa7 100644
--- a/doc/cha-internals.texi
+++ b/doc/cha-internals.texi
@@ -195,7 +195,8 @@ The structure of @code{hello_ext_entry_st} is as follows:
.parse_type = GNUTLS_EXT_TLS,
.validity = GNUTLS_EXT_FLAG_CLIENT_HELLO |
GNUTLS_EXT_FLAG_TLS12_SERVER_HELLO |
- GNUTLS_EXT_FLAG_TLS13_SERVER_HELLO,
+ GNUTLS_EXT_FLAG_TLS13_SERVER_HELLO |
+ GNUTLS_EXT_FLAG_TLS,
.recv_func = _gnutls_foobar_recv_params,
.send_func = _gnutls_foobar_send_params,
.pack_func = _gnutls_foobar_pack,
@@ -292,6 +293,11 @@ internal extension data to save them in the session resumption storage.
The @funcintref{_gnutls_foobar_unpack} function is responsible for
restoring session data from the session resumption storage.
+When the internal data are stored using the @funcintref{_gnutls_hello_ext_set_datum},
+then you could rely on the default pack and unpack functions:
+@funcintref{_gnutls_hello_ext_default_pack} and
+@funcintref{_gnutls_hello_ext_default_unpack}.
+
Recall that both for the client and server, the send and receive
functions most likely will need to do different things
depending on which mode they are in. It may be useful to make this