mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08: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 "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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user