mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
sspi: print out InitializeSecurityContext() error message
Reported-by: Carsten (talksinmath) Fixes #1384 Closes #1395
This commit is contained in:
parent
aa2e9e9017
commit
1f152a42ae
@ -34,6 +34,7 @@
|
|||||||
#include "warnless.h"
|
#include "warnless.h"
|
||||||
#include "curl_multibyte.h"
|
#include "curl_multibyte.h"
|
||||||
#include "sendf.h"
|
#include "sendf.h"
|
||||||
|
#include "strerror.h"
|
||||||
|
|
||||||
/* The last #include files should be: */
|
/* The last #include files should be: */
|
||||||
#include "curl_memory.h"
|
#include "curl_memory.h"
|
||||||
@ -224,6 +225,8 @@ CURLcode Curl_auth_decode_spnego_message(struct Curl_easy *data,
|
|||||||
free(chlg);
|
free(chlg);
|
||||||
|
|
||||||
if(GSS_ERROR(nego->status)) {
|
if(GSS_ERROR(nego->status)) {
|
||||||
|
failf(data, "InitializeSecurityContext failed: %s",
|
||||||
|
Curl_sspi_strerror(data->easy_conn, nego->status));
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user