]> granicus.if.org Git - curl/commitdiff
kerberos: Use symbol qualified with _KERBEROS5
authorMichael Osipov <1983-01-06@gmx.net>
Sun, 16 Nov 2014 09:50:06 +0000 (09:50 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 16 Nov 2014 13:29:04 +0000 (13:29 +0000)
For consistency renamed USE_KRB5 to USE_KERBEROS5.

lib/curl_sasl.c
lib/curl_sasl.h
lib/curl_sasl_sspi.c
lib/curl_setup.h
lib/imap.c
lib/pop3.c
lib/smtp.c
lib/urldata.h
lib/version.c

index 1e2b216f9afc5bcc454a767ba05832ae809501c1..47766a705a369ac7913fe4a9abbbd49fbf63e596 100644 (file)
@@ -1250,7 +1250,7 @@ CURLcode Curl_sasl_create_xoauth2_message(struct SessionHandle *data,
  */
 void Curl_sasl_cleanup(struct connectdata *conn, unsigned int authused)
 {
-#if defined(USE_KRB5)
+#if defined(USE_KERBEROS5)
   /* Cleanup the gssapi structure */
   if(authused == SASL_MECH_GSSAPI) {
     Curl_sasl_gssapi_cleanup(&conn->krb5);
@@ -1264,7 +1264,7 @@ void Curl_sasl_cleanup(struct connectdata *conn, unsigned int authused)
   }
 #endif
 
-#if !defined(USE_KRB5) && !defined(USE_NTLM)
+#if !defined(USE_KERBEROS5) && !defined(USE_NTLM)
   /* Reserved for future use */
   (void)conn;
   (void)authused;
index 26d94296c1333ee42d413194f8537b1493fdf385..41ef859a2cbfd15ba0374bbfc827fb1253a3d4b7 100644 (file)
@@ -35,7 +35,7 @@ struct digestdata;
 struct ntlmdata;
 #endif
 
-#if defined(USE_KRB5)
+#if defined(USE_KERBEROS5)
 struct kerberos5data;
 #endif
 
@@ -154,7 +154,7 @@ void Curl_sasl_ntlm_cleanup(struct ntlmdata *ntlm);
 
 #endif /* USE_NTLM */
 
-#if defined(USE_KRB5)
+#if defined(USE_KERBEROS5)
 /* This is used to generate a base64 encoded GSSAPI (Kerberos V5) user token
    message */
 CURLcode Curl_sasl_create_gssapi_user_message(struct SessionHandle *data,
@@ -176,7 +176,7 @@ CURLcode Curl_sasl_create_gssapi_security_message(struct SessionHandle *data,
 
 /* This is used to clean up the gssapi specific data */
 void Curl_sasl_gssapi_cleanup(struct kerberos5data *krb5);
-#endif /* USE_KRB5 */
+#endif /* USE_KERBEROS5 */
 
 /* This is used to generate a base64 encoded XOAUTH2 authentication message
    containing the user name and bearer token */
index 6b8e6736672846d394323f7bf6b951856221b412..b3fb96c3cd1675239dd888ca4358668185b11e19 100644 (file)
@@ -599,7 +599,7 @@ void Curl_sasl_ntlm_cleanup(struct ntlmdata *ntlm)
 }
 #endif /* USE_NTLM */
 
-#if defined(USE_KRB5)
+#if defined(USE_KERBEROS5)
 /*
  * Curl_sasl_create_gssapi_user_message()
  *
@@ -1043,6 +1043,6 @@ void Curl_sasl_gssapi_cleanup(struct kerberos5data *krb5)
   /* Reset any variables */
   krb5->token_max = 0;
 }
-#endif /* USE_KRB5 */
+#endif /* USE_KERBEROS5 */
 
 #endif /* USE_WINDOWS_SSPI */
index 7dcbd07209f4051d9f9f089cbe0c78da68880307..e916226c706d0585c0434e247f3d63db618fadad 100644 (file)
@@ -614,9 +614,9 @@ int netware_init(void);
 #define USE_SPNEGO
 #endif
 
-/* Single point where USE_KRB5 definition might be defined */
+/* Single point where USE_KERBEROS5 definition might be defined */
 #if !defined(CURL_DISABLE_CRYPTO_AUTH) && defined(USE_WINDOWS_SSPI)
-#define USE_KRB5
+#define USE_KERBEROS5
 #endif
 
 /* Single point where USE_NTLM definition might be defined */
index 4a0419a18d80a8927024a79e9d10583f9f746bb8..cd96cd804ce9fb0a94c5b9faeeb60c3911a70935 100644 (file)
@@ -1300,7 +1300,7 @@ static CURLcode imap_state_auth_ntlm_type2msg_resp(struct connectdata *conn,
 }
 #endif
 
-#if defined(USE_KRB5)
+#if defined(USE_KERBEROS5)
 /* For AUTHENTICATE GSSAPI (without initial response) responses */
 static CURLcode imap_state_auth_gssapi_resp(struct connectdata *conn,
                                             int imapcode,
@@ -1911,7 +1911,7 @@ static CURLcode imap_statemach_act(struct connectdata *conn)
       break;
 #endif
 
-#if defined(USE_KRB5)
+#if defined(USE_KERBEROS5)
     case IMAP_AUTHENTICATE_GSSAPI:
       result = imap_state_auth_gssapi_resp(conn, imapcode, imapc->state);
       break;
@@ -2803,7 +2803,7 @@ static CURLcode imap_calc_sasl_details(struct connectdata *conn,
 
   /* Calculate the supported authentication mechanism, by decreasing order of
      security, as well as the initial response where appropriate */
-#if defined(USE_KRB5)
+#if defined(USE_KERBEROS5)
     if((imapc->authmechs & SASL_MECH_GSSAPI) &&
        (imapc->prefmech & SASL_MECH_GSSAPI)) {
     imapc->mutual_auth = FALSE; /* TODO: Calculate mutual authentication */
index 03d737ef2b88330363a1ceb62fd8b6e7ae4795f1..9c6cc8b36db565540c01c3d1e9e5f4c5baf017ea 100644 (file)
@@ -1131,7 +1131,7 @@ static CURLcode pop3_state_auth_ntlm_type2msg_resp(struct connectdata *conn,
 }
 #endif
 
-#if defined(USE_KRB5)
+#if defined(USE_KERBEROS5)
 /* For AUTH GSSAPI (without initial response) responses */
 static CURLcode pop3_state_auth_gssapi_resp(struct connectdata *conn,
                                             int pop3code,
@@ -1591,7 +1591,7 @@ static CURLcode pop3_statemach_act(struct connectdata *conn)
       break;
 #endif
 
-#if defined(USE_KRB5)
+#if defined(USE_KERBEROS5)
     case POP3_AUTH_GSSAPI:
       result = pop3_state_auth_gssapi_resp(conn, pop3code, pop3c->state);
       break;
@@ -2121,7 +2121,7 @@ static CURLcode pop3_calc_sasl_details(struct connectdata *conn,
 
   /* Calculate the supported authentication mechanism, by decreasing order of
      security, as well as the initial response where appropriate */
-#if defined(USE_KRB5)
+#if defined(USE_KERBEROS5)
   if((pop3c->authmechs & SASL_MECH_GSSAPI) &&
       (pop3c->prefmech & SASL_MECH_GSSAPI)) {
     pop3c->mutual_auth = FALSE; /* TODO: Calculate mutual authentication */
index 448b040c7d0e6c7c7ec4cbe61d635a0a7bea809f..5f65243573bb1defb6b93ad25fe2e7576411220e 100644 (file)
@@ -1150,7 +1150,7 @@ static CURLcode smtp_state_auth_ntlm_type2msg_resp(struct connectdata *conn,
 }
 #endif
 
-#if defined(USE_KRB5)
+#if defined(USE_KERBEROS5)
 /* For AUTH GSSAPI (without initial response) responses */
 static CURLcode smtp_state_auth_gssapi_resp(struct connectdata *conn,
                                             int smtpcode,
@@ -1630,7 +1630,7 @@ static CURLcode smtp_statemach_act(struct connectdata *conn)
       break;
 #endif
 
-#if defined(USE_KRB5)
+#if defined(USE_KERBEROS5)
     case SMTP_AUTH_GSSAPI:
       result = smtp_state_auth_gssapi_resp(conn, smtpcode, smtpc->state);
       break;
@@ -2221,7 +2221,7 @@ static CURLcode smtp_calc_sasl_details(struct connectdata *conn,
 
   /* Calculate the supported authentication mechanism, by decreasing order of
      security, as well as the initial response where appropriate */
-#if defined(USE_KRB5)
+#if defined(USE_KERBEROS5)
   if((smtpc->authmechs & SASL_MECH_GSSAPI) &&
      (smtpc->prefmech & SASL_MECH_GSSAPI)) {
     smtpc->mutual_auth = FALSE; /* TODO: Calculate mutual authentication */
index f5e8a783f92b5b390638c098463601cd90baa225..d0746b41fd56774313205f1234619913915b9f0f 100644 (file)
@@ -424,7 +424,7 @@ typedef enum {
 #endif
 
 /* Struct used for GSSAPI (Kerberos V5) authentication */
-#if defined(USE_KRB5)
+#if defined(USE_KERBEROS5)
 struct kerberos5data {
   CredHandle *credentials;
   CtxtHandle *context;
@@ -985,7 +985,7 @@ struct connectdata {
   struct sockaddr_in local_addr;
 #endif
 
-#if defined(USE_KRB5)         /* Consider moving some of the above GSS-API */
+#if defined(USE_KERBEROS5)    /* Consider moving some of the above GSS-API */
   struct kerberos5data krb5;  /* variables into the structure definition, */
 #endif                        /* however, some of them are ftp specific. */
 
index e34bb0464e227ad9ba96732e9448db5648e0c422..1ea8a21e897a280f3d6b457f145aa8557dbe6fbf 100644 (file)
@@ -254,7 +254,7 @@ static curl_version_info_data version_info = {
 #ifdef USE_SPNEGO
   | CURL_VERSION_SPNEGO
 #endif
-#ifdef USE_KRB5
+#ifdef USE_KERBEROS5
   | CURL_VERSION_KERBEROS5
 #endif
 #ifdef HAVE_GSSAPI