diff options
author | Tom Vrancken <dev@tomvrancken.nl> | 2018-05-21 21:58:55 +0200 |
---|---|---|
committer | Tom Vrancken <dev@tomvrancken.nl> | 2018-05-23 10:20:09 +0200 |
commit | 69994c9aae13fab93596b42571c9322bb1eb3dea (patch) | |
tree | 022441431de2363ac07f17d3bef240a9aca7cebd /doc | |
parent | 464eb38498a70a8c4a4387f98cc0ae19587567b4 (diff) | |
download | gnutls-69994c9aae13fab93596b42571c9322bb1eb3dea.tar.gz |
Added extra extension flag to docs.
Added description of default pack and unpack functions.
Signed-off-by: Tom Vrancken <dev@tomvrancken.nl>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/cha-internals.texi | 8 |
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 |