From 43bc63255af474749234ee04dda76da8e136514b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 21 Aug 2017 19:31:28 +0300 Subject: more GSSAPI logs --- src/mir_app/src/netlibsecurity.cpp | 6 ++++-- 1 file 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__); -- cgit v1.2.3