OSSL_HTTP_proxy_connect

Perform an HTTP CONNECT through a proxy on an already-connected BIO.

Synopsis

Declared in <openssl/http.h>

int
OSSL_HTTP_proxy_connect(
    BIO* bio,
    char const* server,
    char const* port,
    char const* proxyuser,
    char const* proxypass,
    int timeout,
    BIO* bio_err,
    char const* prog);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
bioBIO connected to the HTTP proxy; on success becomes a tunnel to serverport.
serverTarget hostname to CONNECT to.
portTarget port (decimal string) or service name.
proxyuserOptional proxy username for Basic auth, or NULL.
proxypassOptional proxy password for Basic auth, or NULL.
timeoutOverall timeout in seconds (0 for none / BIO default).
bio_errOptional BIO for diagnostic output, or NULL.
progOptional program name prefix for diagnostics, or NULL.