From: Isis Lovecruft Date: Wed, 21 Sep 2016 13:26:34 +0000 (+0000) Subject: Update documentation for parse_bridge_line() in src/or/config.c. X-Git-Tag: tor-0.2.9.3-alpha~20^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1d7b7b600f2388f347116a30f5bb40d9fa1ff6e;p=thirdparty%2Ftor.git Update documentation for parse_bridge_line() in src/or/config.c. * FIXES #20201: https://bugs.torproject.org/20201 --- diff --git a/src/or/config.c b/src/or/config.c index 9c5514f1da..ef2dfcd4fb 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -5325,10 +5325,14 @@ bridge_line_free(bridge_line_t *bridge_line) tor_free(bridge_line); } -/** Read the contents of a Bridge line from line. Return 0 - * if the line is well-formed, and -1 if it isn't. If - * validate_only is 0, and the line is well-formed, then add - * the bridge described in the line to our internal bridge list. +/** Parse the contents of a string, line, containing a Bridge line, + * into a bridge_line_t. + * + * Validates that the IP:PORT, fingerprint, and SOCKS arguments (given to the + * Pluggable Transport, if a one was specified) are well-formed. + * + * Returns NULL If the Bridge line could not be validated, and returns a + * bridge_line_t containing the parsed information otherwise. * * Bridge line format: * Bridge [transport] IP:PORT [id-fingerprint] [k=v] [k=v] ...