]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
doc: Improve documentation for check_bridge_distribution_setting().
authorIsis Lovecruft <isis@torproject.org>
Mon, 23 Oct 2017 19:37:52 +0000 (19:37 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 24 Oct 2017 23:26:24 +0000 (19:26 -0400)
src/or/config.c

index 7f45bb2cba50aaa5c43468e1fb76408d580accda..4d08a079570be85ba4f2400a5522eff665d630f1 100644 (file)
@@ -6350,8 +6350,26 @@ warn_client_dns_cache(const char *option, int disabling)
       "to your destination.");
 }
 
-/** Warn if <b>bd</b> is an unrecognized bridge distribution setting;
- * return -1 if it is invalid. */
+/**
+ * Validate the configured bridge distribution method from a BridgeDistribution
+ * config line.
+ *
+ * The input <b>bd</b>, is a string taken from the BridgeDistribution config
+ * line (if present).  If the option wasn't set, return 0 immediately.  The
+ * BridgeDistribution option is then validated.  Currently valid, recognised
+ * options are:
+ *
+ * - "none"
+ * - "any"
+ * - "https"
+ * - "email"
+ * - "moat"
+ * - "hyphae"
+ *
+ * If the option string is unrecognised, a warning will be logged and 0 is
+ * returned.  If the option string contains an invalid character, -1 is
+ * returned.
+ **/
 static int
 check_bridge_distribution_setting(const char *bd)
 {