diff --git a/http.c b/http.c index 8a459d9b..a8b43b93 100644 --- a/http.c +++ b/http.c @@ -1462,7 +1462,7 @@ static int proxy_authorization(struct openconnect_info *vpninfo, struct oc_text_ static int handle_auth_proto(struct openconnect_info *vpninfo, struct auth_method *method, char *hdr) { - struct proxy_auth_state *auth = &vpninfo->auth[method->state_index]; + struct http_auth_state *auth = &vpninfo->auth[method->state_index]; int l = strlen(method->name); if (auth->state <= AUTH_FAILED) @@ -1511,7 +1511,7 @@ static int proxy_hdrs(struct openconnect_info *vpninfo, char *hdr, char *val) static void clear_auth_state(struct openconnect_info *vpninfo, struct auth_method *method, int reset) { - struct proxy_auth_state *auth = &vpninfo->auth[method->state_index]; + struct http_auth_state *auth = &vpninfo->auth[method->state_index]; /* The 'reset' argument is set when we're connected successfully, to fully reset the state to allow another connection to start diff --git a/openconnect-internal.h b/openconnect-internal.h index b637a9ea..4ba67bb6 100644 --- a/openconnect-internal.h +++ b/openconnect-internal.h @@ -213,7 +213,7 @@ struct oc_text_buf { /* Individual auth types may use 2 onwards for their own state */ #define AUTH_IN_PROGRESS 2 /* In-progress attempt */ -struct proxy_auth_state { +struct http_auth_state { int state; char *challenge; }; @@ -351,7 +351,7 @@ struct openconnect_info { char *proxy_user; char *proxy_pass; int proxy_close_during_auth; - struct proxy_auth_state auth[MAX_AUTH_TYPES]; + struct http_auth_state auth[MAX_AUTH_TYPES]; #ifdef HAVE_GSSAPI gss_name_t gss_target_name; gss_ctx_id_t gss_context;