From af22c2a546ab862ab577c8d9d3609af0de178974 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Tue, 22 Nov 2022 09:55:41 +0100 Subject: vtls: localization of state data in filters - almost all backend calls pass the Curl_cfilter intance instead of connectdata+sockindex - ssl_connect_data is remove from struct connectdata and made internal to vtls - ssl_connect_data is allocated in the added filter, kept at cf->ctx - added function to let a ssl filter access its ssl_primary_config and ssl_config_data this selects the propert subfields in conn and data, for filters added as plain or proxy - adjusted all backends to use the changed api - adjusted all backends to access config data via the exposed functions, no longer using conn or data directly cfilter renames for clear purpose: - methods `Curl_conn_*(data, conn, sockindex)` work on the complete filter chain at `sockindex` and connection `conn`. - methods `Curl_cf_*(cf, ...)` work on a specific Curl_cfilter instance. - methods `Curl_conn_cf()` work on/with filter instances at a connection. - rebased and resolved some naming conflicts - hostname validation (und session lookup) on SECONDARY use the same name as on FIRST (again). new debug macros and removing connectdata from function signatures where not needed. adapting schannel for new Curl_read_plain paramter. Closes #9919 --- lib/gopher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gopher.c') diff --git a/lib/gopher.c b/lib/gopher.c index 5631e7f99..6fbb7de32 100644 --- a/lib/gopher.c +++ b/lib/gopher.c @@ -120,7 +120,7 @@ static CURLcode gopher_connecting(struct Curl_easy *data, bool *done) struct connectdata *conn = data->conn; CURLcode result; - result = Curl_cfilter_connect(data, conn, FIRSTSOCKET, TRUE, done); + result = Curl_conn_connect(data, FIRSTSOCKET, TRUE, done); if(result) connclose(conn, "Failed TLS connection"); *done = TRUE; -- cgit v1.2.1