Skip to content

Commit

Permalink
url: Move the negotiate state type into a dedicated enum
Browse files Browse the repository at this point in the history
  • Loading branch information
captain-caveman2k committed May 14, 2019
1 parent be9fd70 commit 0c73adf
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/urldata.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,14 @@ typedef enum {
NTLMSTATE_LAST
} curlntlm;

typedef enum {
GSS_AUTHNONE,
GSS_AUTHRECV,
GSS_AUTHSENT,
GSS_AUTHDONE,
GSS_AUTHSUCC
} curlnegotiate;

#if defined(CURL_DOES_CONVERSIONS) && defined(HAVE_ICONV)
#include <iconv.h>
#endif
Expand Down Expand Up @@ -358,9 +366,7 @@ struct ntlmdata {
struct negotiatedata {
/* When doing Negotiate (SPNEGO) auth, we first need to send a token
and then validate the received one. */
enum {
GSS_AUTHNONE, GSS_AUTHRECV, GSS_AUTHSENT, GSS_AUTHDONE, GSS_AUTHSUCC
} state;
curlnegotiate state;
#ifdef HAVE_GSSAPI
OM_uint32 status;
gss_ctx_id_t context;
Expand Down

0 comments on commit 0c73adf

Please sign in to comment.