summaryrefslogtreecommitdiff
path: root/tls/gnutls/gtlsbackend-gnutls.h
diff options
context:
space:
mode:
authorGoncalo Gomes <goncalo.gomes@youview.com>2022-09-01 11:40:34 +0100
committerMarge Bot <marge-bot@gnome.org>2022-09-12 15:46:51 +0000
commit13b9f541e0e2059de732049e994a5bdb27f232d3 (patch)
treee4afec4fc5b2590defaa8fd19c2581cd090b2490 /tls/gnutls/gtlsbackend-gnutls.h
parent4be360a85761e4b83aa851bc7413698b3155ffb3 (diff)
downloadglib-networking-13b9f541e0e2059de732049e994a5bdb27f232d3.tar.gz
Created a common implementation for TLS session cache
There are too many similarities between GnuTLS session ID and the session cache, so it is desirable to merge the implementations so that it is easier to maintain and leads to more similar behaviours across backends. This commit moves the OpenSSL backend session cache implementation to the base class as well as the session id calculation. In GnuTLS the session id is also used to assert that the copy session state is done properly (before handshake of the new class and after handshake of the old class). That behaviour was maintained but the session id is now computed when the base class is constructed. Adds as well some operations that need to be abstracted in order for the lifetime of the different objects in each backend to be maintained properly. Fixes #194 Part-of: <https://gitlab.gnome.org/GNOME/glib-networking/-/merge_requests/221>
Diffstat (limited to 'tls/gnutls/gtlsbackend-gnutls.h')
-rw-r--r--tls/gnutls/gtlsbackend-gnutls.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/tls/gnutls/gtlsbackend-gnutls.h b/tls/gnutls/gtlsbackend-gnutls.h
index fb33361..b05f863 100644
--- a/tls/gnutls/gtlsbackend-gnutls.h
+++ b/tls/gnutls/gtlsbackend-gnutls.h
@@ -35,8 +35,4 @@ G_DECLARE_FINAL_TYPE (GTlsBackendGnutls, g_tls_backend_gnutls, G, TLS_BACKEND_GN
void g_tls_backend_gnutls_register (GIOModule *module);
-void g_tls_backend_gnutls_store_session_data (GBytes *session_id,
- GBytes *session_data);
-GBytes *g_tls_backend_gnutls_lookup_session_data (GBytes *session_id);
-
G_END_DECLS