summaryrefslogtreecommitdiff
path: root/lib/curl_gssapi.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-01-09 20:29:26 +0000
committerSteve Holme <steve_holme@hotmail.com>2015-01-09 20:37:47 +0000
commit355bf01c828af16c47ab52bccb9ade769f8bf158 (patch)
treeb5179d0500cd718eed9a30904c33867ccd1d6a3c /lib/curl_gssapi.h
parent99e71e6a847a72b3e919b1bbaf42963536592913 (diff)
downloadcurl-355bf01c828af16c47ab52bccb9ade769f8bf158.tar.gz
gssapi: Remove need for duplicated GSS_C_NT_HOSTBASED_SERVICE definitions
Better code reuse and consistency in calls to gss_import_name().
Diffstat (limited to 'lib/curl_gssapi.h')
-rw-r--r--lib/curl_gssapi.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/curl_gssapi.h b/lib/curl_gssapi.h
index 35e4b2484..19aab64e6 100644
--- a/lib/curl_gssapi.h
+++ b/lib/curl_gssapi.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2011 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2011 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -59,6 +59,17 @@ OM_uint32 Curl_gss_init_sec_context(
void Curl_gss_log_error(struct SessionHandle *data, OM_uint32 status,
const char *prefix);
+/* Provide some definitions missing in old headers */
+#ifdef HAVE_OLD_GSSMIT
+#define GSS_C_NT_HOSTBASED_SERVICE gss_nt_service_name
+#define NCOMPAT 1
+#endif
+
+/* Define our privacy and integrity protection values */
+#define GSSAUTH_P_NONE 1
+#define GSSAUTH_P_INTEGRITY 2
+#define GSSAUTH_P_PRIVACY 4
+
#endif /* HAVE_GSSAPI */
#endif /* HEADER_CURL_GSSAPI_H */