summaryrefslogtreecommitdiffstats
path: root/daemon/tls.h
diff options
context:
space:
mode:
authorOto Šťáva <oto.stava@nic.cz>2022-02-18 11:15:38 +0100
committerOto Šťáva <oto.stava@nic.cz>2022-02-18 11:18:27 +0100
commit595c628c5216ced3b09911b51b5176e44c5898a9 (patch)
tree572f2995fb51cdd10cb635004fb60bb8219ece3f /daemon/tls.h
parentMerge !1254: lib/resolve: EDNS padding for outgoing TLS queries (diff)
downloadknot-resolver-595c628c5216ced3b09911b51b5176e44c5898a9.tar.xz
knot-resolver-595c628c5216ced3b09911b51b5176e44c5898a9.zip
daemon/tls: fix TLS client resumption
Diffstat (limited to 'daemon/tls.h')
-rw-r--r--daemon/tls.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/daemon/tls.h b/daemon/tls.h
index 8417bf0c..23cd903a 100644
--- a/daemon/tls.h
+++ b/daemon/tls.h
@@ -151,6 +151,10 @@ struct tls_ctx* tls_new(struct worker_ctx *worker);
/*! Close a TLS context (call gnutls_bye()) */
void tls_close(struct tls_common_ctx *ctx);
+/*! Close a TLS client context (call gnutls_bye()), storing its session data
+ * for potential resumption. */
+void tls_client_close(struct tls_client_ctx *ctx);
+
/*! Release a TLS context */
void tls_free(struct tls_ctx* tls);