aboutsummaryrefslogtreecommitdiff
path: root/portal/portal.mli
diff options
context:
space:
mode:
authorClombrong <cromblong@egregore.fun>2025-06-28 09:28:15 +0200
committerClombrong <cromblong@egregore.fun>2025-06-28 16:44:54 +0200
commit3250b3b0da536e4fbfc1290886e98a02a2f51c15 (patch)
tree82480dab6f95a041158c8e6fc1437a62a7b582e4 /portal/portal.mli
parent6687016c7e95f9a9788eb1ec49eab9decf855a78 (diff)
feat(portal): add starttls to the Portal interface
Diffstat (limited to 'portal/portal.mli')
-rw-r--r--portal/portal.mli4
1 files changed, 4 insertions, 0 deletions
diff --git a/portal/portal.mli b/portal/portal.mli
index 744a579..18a7ccf 100644
--- a/portal/portal.mli
+++ b/portal/portal.mli
@@ -36,3 +36,7 @@ val close : (signal, sync) stream
(** [connect domain] returns a Portal connected to the XMPP server [domain]. *)
val connect : string -> t Lwt.t
+
+(** [starttls portal] mutates [portal] into a TLS-encrypted stream with the same
+ state. *)
+val starttls : t -> unit Lwt.t