mirror of
https://github.com/curl/curl.git
synced 2026-04-25 04:42:12 +03:00
fixes
This commit is contained in:
parent
f18001b6d0
commit
590ab006aa
2 changed files with 6 additions and 4 deletions
|
|
@ -649,14 +649,15 @@ const char *Curl_sspi_strerror(SECURITY_STATUS err, char *buf, size_t buflen)
|
|||
"SEC_E_ILLEGAL_MESSAGE (0x%08lx) - This error usually "
|
||||
"occurs when a fatal SSL/TLS alert is received (e.g. "
|
||||
"handshake failed). More detail may be available in "
|
||||
"the Windows System event log.", err);
|
||||
"the Windows System event log.", (unsigned long)err);
|
||||
}
|
||||
else {
|
||||
char msgbuf[256];
|
||||
if(curlx_get_winapi_error((DWORD)err, msgbuf, sizeof(msgbuf)))
|
||||
curl_msnprintf(buf, buflen, "%s (0x%08lx) - %s", txt, err, msgbuf);
|
||||
curl_msnprintf(buf, buflen, "%s (0x%08lx) - %s", txt, (unsigned long)err,
|
||||
msgbuf);
|
||||
else
|
||||
curl_msnprintf(buf, buflen, "%s (0x%08lx)", txt, err);
|
||||
curl_msnprintf(buf, buflen, "%s (0x%08lx)", txt, (unsigned long)err);
|
||||
}
|
||||
#else /* CURLVERBOSE */
|
||||
if(err == SEC_E_OK)
|
||||
|
|
|
|||
|
|
@ -458,7 +458,8 @@ CURLcode Curl_auth_create_digest_http_message(struct Curl_easy *data,
|
|||
if(status == SEC_E_OK)
|
||||
output_token_len = chlg_buf[4].cbBuffer;
|
||||
else { /* delete the context so a new one can be made */
|
||||
infof(data, "digest_sspi: MakeSignature failed, error 0x%08lx", status);
|
||||
infof(data, "digest_sspi: MakeSignature failed, error 0x%08lx",
|
||||
(unsigned long)status);
|
||||
Curl_pSecFn->DeleteSecurityContext(digest->http_context);
|
||||
curlx_safefree(digest->http_context);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue