aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-01-29 15:25:23 +0000
committerYang Tse <yangsita@gmail.com>2009-01-29 15:25:23 +0000
commit1bd0be0361f8ccf183ebd9682d848e6902e5dfc0 (patch)
tree682418d4038dc81dd8bf945ee79e652be2d19e60
parent996c8ca7c29dcce23b9acb253b9acbefcc701bd1 (diff)
added some more messages to SSPI error function
-rw-r--r--lib/socks_sspi.c38
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,