mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
GSSAPI: remove useless *_MECHANISM defines.
This commit is contained in:
parent
5b22c47ca9
commit
c31dec7f98
@ -39,14 +39,8 @@
|
|||||||
# include <gssapi.h>
|
# include <gssapi.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SPNEGO_MECHANISM
|
|
||||||
extern gss_OID_desc Curl_spnego_mech_oid;
|
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;
|
extern gss_OID_desc Curl_krb5_mech_oid;
|
||||||
#define KRB5_MECHANISM &Curl_krb5_mech_oid
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Common method for using GSS-API */
|
/* Common method for using GSS-API */
|
||||||
|
|
||||||
|
@ -147,7 +147,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
|
|||||||
&minor_status,
|
&minor_status,
|
||||||
&neg_ctx->context,
|
&neg_ctx->context,
|
||||||
neg_ctx->server_name,
|
neg_ctx->server_name,
|
||||||
SPNEGO_MECHANISM,
|
&Curl_spnego_mech_oid,
|
||||||
GSS_C_NO_CHANNEL_BINDINGS,
|
GSS_C_NO_CHANNEL_BINDINGS,
|
||||||
&input_token,
|
&input_token,
|
||||||
&output_token,
|
&output_token,
|
||||||
|
@ -236,7 +236,7 @@ krb5_auth(void *app_data, struct connectdata *conn)
|
|||||||
&min,
|
&min,
|
||||||
context,
|
context,
|
||||||
gssname,
|
gssname,
|
||||||
KRB5_MECHANISM,
|
&Curl_krb5_mech_oid,
|
||||||
&chan,
|
&chan,
|
||||||
gssresp,
|
gssresp,
|
||||||
&output_buffer,
|
&output_buffer,
|
||||||
|
@ -181,7 +181,7 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex,
|
|||||||
&gss_minor_status,
|
&gss_minor_status,
|
||||||
&gss_context,
|
&gss_context,
|
||||||
server,
|
server,
|
||||||
KRB5_MECHANISM,
|
&Curl_krb5_mech_oid,
|
||||||
NULL,
|
NULL,
|
||||||
gss_token,
|
gss_token,
|
||||||
&gss_send_token,
|
&gss_send_token,
|
||||||
|
Loading…
Reference in New Issue
Block a user