about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-10-30 17:18:27 -0400
committerJune McEnroe <june@causal.agency>2022-10-30 17:18:27 -0400
commit81608f2dd47a5ea42ac4c5e849fd4fd136facc5b (patch)
tree44a3b00cdb85c6a9500a5f353cc103d2f835bec7
parentRefactor edit options list (diff)
downloadpounce-81608f2dd47a5ea42ac4c5e849fd4fd136facc5b.tar.gz
pounce-81608f2dd47a5ea42ac4c5e849fd4fd136facc5b.zip
Check local-pass and sasl-plain in edit
-rw-r--r--edit.c8
1 files 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 {