]> granicus.if.org Git - curl/commitdiff
url: Move the negotiate state type into a dedicated enum
authorSteve Holme <steve_holme@hotmail.com>
Mon, 13 May 2019 19:29:40 +0000 (20:29 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Tue, 14 May 2019 23:31:35 +0000 (00:31 +0100)
lib/urldata.h

index 44d25e03aa000be3e41ebefcb9960640f19d39e6..c7944c546484fc6426ab40d5ceb597cd4c5210a3 100644 (file)
@@ -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;