mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
added some more messages to SSPI error function
This commit is contained in:
parent
996c8ca7c2
commit
1bd0be0361
@ -76,9 +76,27 @@ static int check_sspi_err(struct SessionHandle *data,
|
||||
case SEC_I_CONTINUE_NEEDED:
|
||||
txt="SEC_I_CONTINUE_NEEDED";
|
||||
break;
|
||||
case SEC_I_CONTEXT_EXPIRED:
|
||||
txt="SEC_I_CONTEXT_EXPIRED";
|
||||
break;
|
||||
case SEC_I_INCOMPLETE_CREDENTIALS:
|
||||
txt="SEC_I_INCOMPLETE_CREDENTIALS";
|
||||
break;
|
||||
case SEC_I_RENEGOTIATE:
|
||||
txt="SEC_I_RENEGOTIATE";
|
||||
break;
|
||||
case SEC_E_BUFFER_TOO_SMALL:
|
||||
txt="SEC_E_BUFFER_TOO_SMALL";
|
||||
break;
|
||||
case SEC_E_CONTEXT_EXPIRED:
|
||||
txt="SEC_E_CONTEXT_EXPIRED";
|
||||
break;
|
||||
case SEC_E_CRYPTO_SYSTEM_INVALID:
|
||||
txt="SEC_E_CRYPTO_SYSTEM_INVALID";
|
||||
break;
|
||||
case SEC_E_INCOMPLETE_MESSAGE:
|
||||
txt="SEC_E_INCOMPLETE_MESSAGE";
|
||||
break;
|
||||
case SEC_E_INSUFFICIENT_MEMORY:
|
||||
txt="SEC_E_INSUFFICIENT_MEMORY";
|
||||
break;
|
||||
@ -94,15 +112,33 @@ static int check_sspi_err(struct SessionHandle *data,
|
||||
case SEC_E_LOGON_DENIED:
|
||||
txt="SEC_E_LOGON_DENIED";
|
||||
break;
|
||||
case SEC_E_MESSAGE_ALTERED:
|
||||
txt="SEC_E_MESSAGE_ALTERED";
|
||||
break;
|
||||
case SEC_E_NO_AUTHENTICATING_AUTHORITY:
|
||||
txt="SEC_E_NO_AUTHENTICATING_AUTHORITY";
|
||||
break;
|
||||
case SEC_E_NO_CREDENTIALS:
|
||||
txt="SEC_E_NO_CREDENTIALS";
|
||||
break;
|
||||
case SEC_E_NOT_OWNER:
|
||||
txt="SEC_E_NOT_OWNER";
|
||||
break;
|
||||
case SEC_E_OUT_OF_SEQUENCE:
|
||||
txt="SEC_E_OUT_OF_SEQUENCE";
|
||||
break;
|
||||
case SEC_E_QOP_NOT_SUPPORTED:
|
||||
txt="SEC_E_QOP_NOT_SUPPORTED";
|
||||
break;
|
||||
case SEC_E_SECPKG_NOT_FOUND:
|
||||
txt="SEC_E_SECPKG_NOT_FOUND";
|
||||
break;
|
||||
case SEC_E_TARGET_UNKNOWN:
|
||||
txt="SEC_E_TARGET_UNKNOWN";
|
||||
break;
|
||||
case SEC_E_UNKNOWN_CREDENTIALS:
|
||||
txt="SEC_E_UNKNOWN_CREDENTIALS";
|
||||
break;
|
||||
case SEC_E_UNSUPPORTED_FUNCTION:
|
||||
txt="SEC_E_UNSUPPORTED_FUNCTION";
|
||||
break;
|
||||
@ -198,7 +234,7 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(int sockindex,
|
||||
cred_handle.dwUpper = 0;
|
||||
|
||||
sspi_major_status = AcquireCredentialsHandle( NULL,
|
||||
"Kerberos",
|
||||
(char *)"Kerberos",
|
||||
SECPKG_CRED_OUTBOUND,
|
||||
NULL,
|
||||
NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user