Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rename struct proxy_auth_state to struct http_auth_state
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Feb 19, 2015
1 parent 36ae915 commit c1db27b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions http.c
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions openconnect-internal.h
Expand Up @@ -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;
};
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c1db27b

Please sign in to comment.