diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-09-21 12:20:33 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-21 12:20:33 -0400 |
commit | f6d7b71719db2e158b28f21d6f4a3861d860b3b0 (patch) | |
tree | 4c1bd8bbc14894d4aca79efcdc0258a7c6fe9675 /src/or/config.c | |
parent | 62ee4f185f984f11d75522eedcee92d1f15fc7a6 (diff) | |
parent | f1d7b7b600f2388f347116a30f5bb40d9fa1ff6e (diff) | |
download | tor-f6d7b71719db2e158b28f21d6f4a3861d860b3b0.tar.gz tor-f6d7b71719db2e158b28f21d6f4a3861d860b3b0.zip |
Merge remote-tracking branch 'isis/bug20201'
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/or/config.c b/src/or/config.c index b30832d1c4..18cbe34be3 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -5451,10 +5451,14 @@ bridge_line_free(bridge_line_t *bridge_line) tor_free(bridge_line); } -/** Read the contents of a Bridge line from <b>line</b>. Return 0 - * if the line is well-formed, and -1 if it isn't. If - * <b>validate_only</b> 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, <b>line</b>, 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] ... |