From 69994c9aae13fab93596b42571c9322bb1eb3dea Mon Sep 17 00:00:00 2001 From: Tom Vrancken Date: Mon, 21 May 2018 21:58:55 +0200 Subject: Added extra extension flag to docs. Added description of default pack and unpack functions. Signed-off-by: Tom Vrancken --- doc/cha-internals.texi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1