summaryrefslogtreecommitdiff
path: root/lib/curl_gssapi.h
diff options
context:
space:
mode:
authorMichael Osipov <1983-01-06@gmx.net>2014-07-21 09:53:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-07-23 00:01:39 +0200
commiteda12bcff8bc47380d6e997d785464f858c1d140 (patch)
treef9a9f82790461362dafdb88ed42d21600f3265af /lib/curl_gssapi.h
parenta4cece3d47cf092da00cf9910e87bb60b9eff533 (diff)
downloadcurl-eda12bcff8bc47380d6e997d785464f858c1d140.tar.gz
curl_gssapi: Add macros for common mechs and pass them appropriately
Macros defined: KRB5_MECHANISM and SPNEGO_MECHANISM called from HTTP, FTP and SOCKS on Unix
Diffstat (limited to 'lib/curl_gssapi.h')
-rw-r--r--lib/curl_gssapi.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/curl_gssapi.h b/lib/curl_gssapi.h
index 5af7a0261..ff752d552 100644
--- a/lib/curl_gssapi.h
+++ b/lib/curl_gssapi.h
@@ -39,19 +39,27 @@
# include <gssapi.h>
#endif
+#ifndef SPNEGO_MECHANISM
+CURL_EXTERN gss_OID_desc spnego_mech_oid;
+#define SPNEGO_MECHANISM &spnego_mech_oid
+#endif
+#ifndef KRB5_MECHANISM
+CURL_EXTERN gss_OID_desc krb5_mech_oid;
+#define KRB5_MECHANISM &krb5_mech_oid
+#endif
-/* Common method for using gss api */
+/* Common method for using GSS-API */
OM_uint32 Curl_gss_init_sec_context(
struct SessionHandle *data,
- OM_uint32 * minor_status,
- gss_ctx_id_t * context,
+ OM_uint32 *minor_status,
+ gss_ctx_id_t *context,
gss_name_t target_name,
- bool use_spnego,
+ gss_OID mech_type,
gss_channel_bindings_t input_chan_bindings,
gss_buffer_t input_token,
gss_buffer_t output_token,
- OM_uint32 * ret_flags);
+ OM_uint32 *ret_flags);
#endif /* HAVE_GSSAPI */