diff options
author | Steve Holme <steve_holme@hotmail.com> | 2019-05-13 20:29:40 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2019-05-15 00:31:35 +0100 |
commit | 0c73adfad3ef9ea2fe2a0ebf7eb0a78b5abb877c (patch) | |
tree | 9f124cbcd2f6d8a823cc154b877e77ee3f794f02 | |
parent | be9fd703e0e919c7705c10fae6318afb2fda9f19 (diff) |
url: Move the negotiate state type into a dedicated enum
-rw-r--r-- | lib/urldata.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 44d25e03a..c7944c546 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -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 @@ -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; |