aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Boukris <iboukris@gmail.com>2017-04-06 22:31:45 +0300
committerMarcel Raad <raad@teamviewer.com>2017-04-07 08:49:20 +0200
commit1f152a42ae9c2985b8a0cedf90d3b63b2e64a898 (patch)
tree78d99428ac6c7760a1301f85e09cdab65b413085
parentaa2e9e90173bb379ccff800c9019d6626b69c452 (diff)
sspi: print out InitializeSecurityContext() error message
Reported-by: Carsten (talksinmath) Fixes #1384 Closes #1395
-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 5fa95e2eb..a6797cdaf 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;
}