From 81608f2dd47a5ea42ac4c5e849fd4fd136facc5b Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 30 Oct 2022 17:18:27 -0400 Subject: Check local-pass and sasl-plain in edit --- edit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/edit.c b/edit.c index 7401a3c..6dbff8a 100644 --- a/edit.c +++ b/edit.c @@ -259,13 +259,13 @@ static const char *checkSize(const char *value) { } static const char *checkHash(const char *value) { - // TODO - return NULL; + if (!value) return "requires a value"; + return (value[0] != '$' ? "must be hashed" : NULL); } static const char *checkPair(const char *value) { - // TODO - return NULL; + if (!value) return "requires a value"; + return (strchr(value, ':') ? NULL : "must be colon-separated"); } static const struct { -- cgit 1.4.1