summaryrefslogtreecommitdiff
path: root/lib/curl_gssapi.h
diff options
context:
space:
mode:
authorIsaac Boukris <iboukris@gmail.com>2016-03-29 17:13:46 +0300
committerDaniel Stenberg <daniel@haxx.se>2016-03-29 16:51:29 +0200
commitd5fc6e14b0b4f240b3b225487637c265471a9fc7 (patch)
tree5d9f0520a606381977e3fd203c2212eb293587e9 /lib/curl_gssapi.h
parentd532645afdcdc06b504cf462b2bd1b78fa95948f (diff)
downloadcurl-d5fc6e14b0b4f240b3b225487637c265471a9fc7.tar.gz
GSS: make Curl_gss_log_error more verbose
Also display the GSS_C_GSS_CODE (major code) when specified instead of only GSS_C_MECH_CODE (minor code). In addition, the old code was printing a colon twice after the prefix and also miscalculated the length of the buffer in between calls to gss_display_status (the length of ": " was missing). Also, gss_buffer is not guaranteed to be NULL terminated and thus need to restrict reading by its length. Closes #738
Diffstat (limited to 'lib/curl_gssapi.h')
-rw-r--r--lib/curl_gssapi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_gssapi.h b/lib/curl_gssapi.h
index c1642a8b6..42fd1e41d 100644
--- a/lib/curl_gssapi.h
+++ b/lib/curl_gssapi.h
@@ -56,8 +56,8 @@ OM_uint32 Curl_gss_init_sec_context(
OM_uint32 *ret_flags);
/* Helper to log a GSS-API error status */
-void Curl_gss_log_error(struct SessionHandle *data, OM_uint32 status,
- const char *prefix);
+void Curl_gss_log_error(struct SessionHandle *data, const char *prefix,
+ OM_uint32 major, OM_uint32 minor);
/* Provide some definitions missing in old headers */
#ifdef HAVE_OLD_GSSMIT