]> granicus.if.org Git - curl/commitdiff
GSSAPI: remove useless *_MECHANISM defines.
authorPatrick Monnerat <pm@datasphere.ch>
Wed, 23 Jul 2014 16:56:19 +0000 (18:56 +0200)
committerPatrick Monnerat <pm@datasphere.ch>
Wed, 23 Jul 2014 16:56:19 +0000 (18:56 +0200)
lib/curl_gssapi.h
lib/http_negotiate.c
lib/krb5.c
lib/socks_gssapi.c

index 4559ef06c9c7066b32ca853ea065172e7edaa7d0..b91bd7ea761e1612106b9983ed3be7ec933bb47b 100644 (file)
 #  include <gssapi.h>
 #endif
 
-#ifndef SPNEGO_MECHANISM
 extern gss_OID_desc Curl_spnego_mech_oid;
-#define SPNEGO_MECHANISM &Curl_spnego_mech_oid
-#endif
-#ifndef KRB5_MECHANISM
 extern gss_OID_desc Curl_krb5_mech_oid;
-#define KRB5_MECHANISM &Curl_krb5_mech_oid
-#endif
 
 /* Common method for using GSS-API */
 
index 4b657cfa23831bb6d17b5aa6ceab67bd3d356b7e..c8bfa29bf12a54bd930f8e4e587e4c70b639dc88 100644 (file)
@@ -147,7 +147,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
                                            &minor_status,
                                            &neg_ctx->context,
                                            neg_ctx->server_name,
-                                           SPNEGO_MECHANISM,
+                                           &Curl_spnego_mech_oid,
                                            GSS_C_NO_CHANNEL_BINDINGS,
                                            &input_token,
                                            &output_token,
index 10a79aaa4c11e7b86c6219666b0d3863e36cd067..7e82a6805bad4134f4b69486c5782efb97a633e0 100644 (file)
@@ -236,7 +236,7 @@ krb5_auth(void *app_data, struct connectdata *conn)
                                       &min,
                                       context,
                                       gssname,
-                                      KRB5_MECHANISM,
+                                      &Curl_krb5_mech_oid,
                                       &chan,
                                       gssresp,
                                       &output_buffer,
index 228688eb1a56d4630353dba0a70d1cd683a1712e..0eaa74c2b7360281cb173f5c887f8846dec71d35 100644 (file)
@@ -181,7 +181,7 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex,
                                                  &gss_minor_status,
                                                  &gss_context,
                                                  server,
-                                                 KRB5_MECHANISM,
+                                                 &Curl_krb5_mech_oid,
                                                  NULL,
                                                  gss_token,
                                                  &gss_send_token,