aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorClombrong <cromblong@egregore.fun>2025-06-29 18:31:55 +0200
committerClombrong <cromblong@egregore.fun>2025-06-29 18:31:55 +0200
commitee4169faf487e0d4d75738fdddb34cc1767719f9 (patch)
treefbc6445920043daaf511fcb4dde13996d316e023 /lib
parent95ddfc29840d980c2197f2681f804f85df160798 (diff)
docs(starttls): add for config type
Diffstat (limited to 'lib')
-rw-r--r--lib/starttls.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/starttls.ml b/lib/starttls.ml
index fafda66..9d09e3e 100644
--- a/lib/starttls.ml
+++ b/lib/starttls.ml
@@ -1,6 +1,10 @@
open Lwt.Syntax
open Xml
+(** This type is used to configure the STARTTLS handshake during the stream negotiation.
+
+ When the XMPP server advertises optional STARTTLS support, whether the connection
+ will be upgraded to STARTTLS depends on [prefer_starttls]. *)
type config = {
prefer_starttls : bool
}