Libcurl

From Nintendo Switch Brew
Revision as of 03:31, 10 May 2020 by Yellows8 (talk | contribs) (Created page with "This page documents the libcurl package used by official sw. This is statically linked in the main-codebin, on old versions (~v2.x) this was a subsdk NSO. This page does not a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page documents the libcurl package used by official sw. This is statically linked in the main-codebin, on old versions (~v2.x) this was a subsdk NSO. This page does not apply to the libcurl build included in the browser OSS NRO.

With sdkver 10.x, this is built with support for NGHTTP2 with the relevant Alpn cmds being used for this.

The changes to libcurl compared to the original libcurl are documented below, etc.

CURLOPT

CINIT name CINIT type CINIT number CURLoption value Default value
#PROXYAUTOCONFIG LONG 500 500 1
LONG 501 501
LONG 502 502
LONG 503 503
LONG 504 504
LONG 505 505
LONG 506 506
LONG 507 507

PROXYAUTOCONFIG

This option is handled as a bool.

A warning is printed if this option is set when CURLOPT_PROXY is already set - in which case CURLOPT_PROXY is freed.

This option controls whether to load the system proxy from nifm. The code handling this option was added to the start of the inlined create_conn_helper_init_proxy func.