diff options
author | George Hazan <ghazan@miranda.im> | 2017-08-21 19:31:28 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-08-21 19:31:28 +0300 |
commit | 43bc63255af474749234ee04dda76da8e136514b (patch) | |
tree | 6cf2c97931932104ca8552c92b60105be591d2fb /src | |
parent | f802728714a9536b9b9ba002d1d9c283c2fa8a96 (diff) |
more GSSAPI logs
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/netlibsecurity.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mir_app/src/netlibsecurity.cpp b/src/mir_app/src/netlibsecurity.cpp index 1c998e1312..44ed1fbd23 100644 --- a/src/mir_app/src/netlibsecurity.cpp +++ b/src/mir_app/src/netlibsecurity.cpp @@ -326,11 +326,13 @@ char* NtlmCreateResponseFromChallenge(HANDLE hSecurity, const char *szChallenge, hNtlm->szPrincipal, isGSSAPI ? ISC_REQ_MUTUAL_AUTH | ISC_REQ_STREAM : 0, 0, SECURITY_NATIVE_DREP,
hasChallenge ? &inputBufferDescriptor : nullptr, 0, &hNtlm->hClientContext,
&outputBufferDescriptor, &contextAttributes, &tokenExpiration);
+ Netlib_Logf(nullptr, "InitializeSecurityContext(%S): 0x%x", szProvider, sc);
complete = (sc != SEC_I_COMPLETE_AND_CONTINUE && sc != SEC_I_CONTINUE_NEEDED);
-
- if (sc == SEC_I_COMPLETE_NEEDED || sc == SEC_I_COMPLETE_AND_CONTINUE)
+ if (!complete) {
sc = CompleteAuthToken(&hNtlm->hClientContext, &outputBufferDescriptor);
+ Netlib_Logf(nullptr, "CompleteAuthToken: 0x%x", sc);
+ }
if (sc != SEC_E_OK && sc != SEC_I_CONTINUE_NEEDED) {
ReportSecError(sc, __LINE__);
|