[libav-devel] [PATCH 5/5] http: Don't use the normal http proxy mechanism for https

Martin Storsjö martin at martin.st
Fri Nov 11 13:20:25 CET 2011


The tls protocol handles connections via proxies internally.

With TLS/SSL, the peer verification requires that the client
speaks directly with the server, since the proxy doesn't have
the remote server's private key.
---
 libavformat/http.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index 48986bc..03a8677 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -112,6 +112,7 @@ static int http_open_cnx(URLContext *h)
 
     if (!strcmp(proto, "https")) {
         lower_proto = "tls";
+        use_proxy = 0;
         if (port < 0)
             port = 443;
     }
-- 
1.7.3.1



More information about the libav-devel mailing list