diff options
-rw-r--r-- | lib/socks_sspi.c | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/lib/socks_sspi.c b/lib/socks_sspi.c index 3318794c6..ba2c30876 100644 --- a/lib/socks_sspi.c +++ b/lib/socks_sspi.c @@ -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, |