aboutsummaryrefslogtreecommitdiff
path: root/lib/stream.ml
diff options
context:
space:
mode:
authorClombrong <cromblong@egregore.fun>2025-06-29 18:20:34 +0200
committerClombrong <cromblong@egregore.fun>2025-06-29 18:20:34 +0200
commit95ddfc29840d980c2197f2681f804f85df160798 (patch)
treecea74caa62eff7949daa642233dc268bb211c07c /lib/stream.ml
parent2331768992badd355822d4d9c23f734c44184a4f (diff)
feat(stream): add config type
Diffstat (limited to 'lib/stream.ml')
-rw-r--r--lib/stream.ml8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/stream.ml b/lib/stream.ml
index a71d662..4bc0901 100644
--- a/lib/stream.ml
+++ b/lib/stream.ml
@@ -5,10 +5,16 @@ exception ClosedStream
exception InsufficientEncryption
type feature =
- | Mechanisms of Sasl.mechanism list
| STARTTLS
+ | Mechanisms of Sasl.mechanism list
| Other of Xml.element
+type config = {
+ starttls : Starttls.config;
+ sasl : Sasl.config;
+ other : (Markup.signal, Markup.sync) Markup.stream list;
+ }
+
(** [features] is a tuple of features list, mandatory and optional. *)
type features = (feature list * feature list)