summaryrefslogtreecommitdiff
path: root/sid.mli
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2018-11-14 00:15:33 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2018-11-29 00:06:53 +0100
commit039f4068c0e991b79769426486147d7851d5d6fd (patch)
treeacafb4b294817e3c71050ceec6a525d0df2555aa /sid.mli
parent7b3d8e1d13bab22c82b38012cfcb8cbfe67ed7e5 (diff)
downloadocaml-sid-039f4068c0e991b79769426486147d7851d5d6fd.tar.gz
sid: sid_test: add conformance mode imitating MS API
Add a conformance handler “Con_MS” to achieve a behavior that mimicks that of MS’s implementation bug-for-bug. Aspects of reading and formatting governd by the conformance: - Validation of ident auths, - validation of subauths, - validation of leading zeros in decimal numbers, - zero-padding of hex numbers.
Diffstat (limited to 'sid.mli')
-rw-r--r--sid.mli11
1 files changed, 11 insertions, 0 deletions
diff --git a/sid.mli b/sid.mli
index e2c94df..a21c5ec 100644
--- a/sid.mli
+++ b/sid.mli
@@ -46,6 +46,17 @@ module StringFmt :
(** [encode s] convert SID [s] to its string representation. *)
end
+(** Conversions to and from the {e string format syntax} with permissive
+ input validation. *)
+module MSStringFmt :
+ sig
+ val decode : string -> (t, string) result
+ (** [decode b] parse string buffer [b] into a SID. *)
+
+ val encode : t -> string
+ (** [encode s] convert SID [s] to its string representation. *)
+ end
+
(** Conversion to and from the {e packet representation} (MS-DTYP 2.4.2.2). *)
module PacketRep :
sig