Commit c1db27b3 authored by David Woodhouse's avatar David Woodhouse

Rename struct proxy_auth_state to struct http_auth_state

Signed-off-by: default avatarDavid Woodhouse <>
parent 36ae9153
......@@ -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
......@@ -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];
gss_name_t gss_target_name;
gss_ctx_id_t gss_context;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment