Fossil

Check-in [a6720183]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Accept return codes 2xx when establishing tunnel.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | jan-httpsproxytunnel
Files: files | file ages | folders
SHA1:a6720183746acbe50a3eefad96b08204a76a42d4
User & Date: jan 2013-10-26 22:51:43
Context
2013-11-12
15:27
merge trunk check-in: 1bd561c3 user: jan.nijtmans tags: jan-httpsproxytunnel
2013-10-26
22:51
Accept return codes 2xx when establishing tunnel. check-in: a6720183 user: jan tags: jan-httpsproxytunnel
2013-10-21
17:21
Slight modularization when building the request to establish https tunnel over proxy. check-in: 491e6d30 user: jan tags: jan-httpsproxytunnel
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/http_ssl.c.

261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
    if( BIO_do_connect(sBio)<=0 ){
      ssl_set_errmsg("SSL: cannot connect to proxy %s:%d (%s)",
            g.urlName, g.urlPort, ERR_reason_error_string(ERR_get_error()));
      ssl_close();
      return 1;
    }
    rc = establish_proxy_tunnel(sBio);
    if( rc!= 200 ){
      return 1;
    }

    g.urlPath = g.proxyUrlPath;

    iBio = BIO_new_ssl(sslCtx, 1);
    BIO_push(iBio, sBio);







|







261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
    if( BIO_do_connect(sBio)<=0 ){
      ssl_set_errmsg("SSL: cannot connect to proxy %s:%d (%s)",
            g.urlName, g.urlPort, ERR_reason_error_string(ERR_get_error()));
      ssl_close();
      return 1;
    }
    rc = establish_proxy_tunnel(sBio);
    if( rc<200||rc>299 ){
      return 1;
    }

    g.urlPath = g.proxyUrlPath;

    iBio = BIO_new_ssl(sslCtx, 1);
    BIO_push(iBio, sBio);