]> granicus.if.org Git - curl/commit
GSS: make Curl_gss_log_error more verbose
authorIsaac Boukris <iboukris@gmail.com>
Tue, 29 Mar 2016 14:13:46 +0000 (17:13 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 29 Mar 2016 14:51:29 +0000 (16:51 +0200)
commitd5fc6e14b0b4f240b3b225487637c265471a9fc7
tree5d9f0520a606381977e3fd203c2212eb293587e9
parentd532645afdcdc06b504cf462b2bd1b78fa95948f
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
lib/curl_gssapi.c
lib/curl_gssapi.h
lib/vauth/krb5_gssapi.c
lib/vauth/spnego_gssapi.c