]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix issues brought up in nickm's review.
authorYawning Angel <yawning@schwanenlied.me>
Tue, 9 Sep 2014 18:21:19 +0000 (18:21 +0000)
committerYawning Angel <yawning@schwanenlied.me>
Tue, 9 Sep 2014 18:21:19 +0000 (18:21 +0000)
 * Update pt_get_proxy_uri() documentation.
 * proxy_supported is now unsigned.
 * Added a changes file.

changes/bug8402 [new file with mode: 0644]
src/or/transports.c
src/or/transports.h

diff --git a/changes/bug8402 b/changes/bug8402
new file mode 100644 (file)
index 0000000..96a3084
--- /dev/null
@@ -0,0 +1,5 @@
+  o Major features (bridges):
+    - Expose the outgoing upstream HTTP/SOCKS proxy to pluggable
+      transports if they are configured via the "TOR_PT_PROXY"
+      enviorment variable.  Implements proposal 232. Resolves
+      ticket 8402.
index eee159d374c4abab81fcbfd998c88bd530843cff..8dc2cfd4bddebebdcc15148d3daa77312e3ce6e4 100644 (file)
@@ -754,7 +754,9 @@ managed_proxy_destroy(managed_proxy_t *mp,
   tor_free(mp);
 }
 
-/** Convert the tor proxy options to a URI suitable for TOR_PT_PROXY. */
+/** Convert the tor proxy options to a URI suitable for TOR_PT_PROXY.
+ * Return a newly allocated string containing the URI, or NULL if no
+ * proxy is set. */
 STATIC char *
 get_pt_proxy_uri(void)
 {
index bc2331d01b98a05beaa360b847f80cc309b140f8..25fe5a29a98598aa5477240ab272225227d18ee8 100644 (file)
@@ -82,7 +82,7 @@ typedef struct {
   int conf_protocol; /* the configuration protocol version used */
 
   char *proxy_uri;  /* the outgoing proxy in TOR_PT_PROXY URI format */
-  int proxy_supported : 1; /* the proxy claims to honor TOR_PT_PROXY */
+  unsigned int proxy_supported : 1; /* the proxy honors TOR_PT_PROXY */
 
   int is_server; /* is it a server proxy? */