aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClombrong <cromblong@egregore.fun>2025-06-25 00:45:46 +0200
committerClombrong <cromblong@egregore.fun>2025-06-25 00:45:46 +0200
commit1becf17af5e7795e32332a464e06517800c71391 (patch)
tree0db273b2611779ffbfd1dc0978fa8aeeaf045a6c
parent6770a7cd102216175c278f28a5d93902a3e42409 (diff)
feat(sasl): add match unrecoverable
-rw-r--r--lib/sasl.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sasl.ml b/lib/sasl.ml
index 1fcd661..f5a5ae0 100644
--- a/lib/sasl.ml
+++ b/lib/sasl.ml
@@ -12,6 +12,10 @@ type sasl_error =
| NotAuthorized
| MalformedRequest
+let unrecoverable = function
+ | NotAuthorized -> true
+ | _ -> false
+
let parse_sasl_error = function
| "not-authorized" -> NotAuthorized
| "malformed-request" -> MalformedRequest