summaryrefslogtreecommitdiffstats
path: root/lib/vauth/spnego_sspi.c
diff options
context:
space:
mode:
authorCurl Upstream <curl-library@cool.haxx.se>2017-04-19 05:41:40 (GMT)
committerBrad King <brad.king@kitware.com>2017-05-11 15:26:45 (GMT)
commitfd7d521c9d70655618db8232d45e5aaf81700f91 (patch)
tree3bc749b90e932d6f220d7e1d33d6e0449def135c /lib/vauth/spnego_sspi.c
parent4cc2908fdaaf1ab8afe5c2ae5dbb3401859a9aab (diff)
downloadCMake-fd7d521c9d70655618db8232d45e5aaf81700f91.zip
CMake-fd7d521c9d70655618db8232d45e5aaf81700f91.tar.gz
CMake-fd7d521c9d70655618db8232d45e5aaf81700f91.tar.bz2
curl 2017-04-19 (d957e218)
Code extracted from: https://github.com/curl/curl.git at commit d957e2189fdc73cef0ff3d1fb58043d354754449 (curl-7_54_0).
Diffstat (limited to 'lib/vauth/spnego_sspi.c')
-rw-r--r--lib/vauth/spnego_sspi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vauth/spnego_sspi.c b/lib/vauth/spnego_sspi.c
index 5fa95e2..a6797cd 100644
--- a/lib/vauth/spnego_sspi.c
+++ b/lib/vauth/spnego_sspi.c
@@ -34,6 +34,7 @@
#include "warnless.h"
#include "curl_multibyte.h"
#include "sendf.h"
+#include "strerror.h"
/* The last #include files should be: */
#include "curl_memory.h"
@@ -224,6 +225,8 @@ CURLcode Curl_auth_decode_spnego_message(struct Curl_easy *data,
free(chlg);
if(GSS_ERROR(nego->status)) {
+ failf(data, "InitializeSecurityContext failed: %s",
+ Curl_sspi_strerror(data->easy_conn, nego->status));
return CURLE_OUT_OF_MEMORY;
}