secur32: Trace values of SCHANNEL_CRED structure

Juan Lang juan.lang at gmail.com
Thu Aug 6 12:28:30 CDT 2009


This is a little debugging aid, see e.g. bug 19144.
--Juan
-------------- next part --------------
From 058573226aefa2e8e6b41c23c153e1eac76afa1f Mon Sep 17 00:00:00 2001
From: Juan Lang <juan.lang at gmail.com>
Date: Wed, 5 Aug 2009 15:13:33 -0700
Subject: [PATCH 9/9] Trace values of SCHANNEL_CRED structure

---
 dlls/secur32/schannel.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/dlls/secur32/schannel.c b/dlls/secur32/schannel.c
index dc4f3b3..201304b 100644
--- a/dlls/secur32/schannel.c
+++ b/dlls/secur32/schannel.c
@@ -288,6 +288,21 @@ static SECURITY_STATUS SEC_ENTRY schan_QueryCredentialsAttributesW(
 static SECURITY_STATUS schan_CheckCreds(const SCHANNEL_CRED *schanCred)
 {
     SECURITY_STATUS st;
+    DWORD i;
+
+    TRACE("dwVersion = %d\n", schanCred->dwVersion);
+    TRACE("cCreds = %d\n", schanCred->cCreds);
+    TRACE("hRootStore = %p\n", schanCred->hRootStore);
+    TRACE("cMappers = %d\n", schanCred->cMappers);
+    TRACE("cSupportedAlgs = %d:\n", schanCred->cSupportedAlgs);
+    for (i = 0; i < schanCred->cSupportedAlgs; i++)
+        TRACE("%08x\n", schanCred->palgSupportedAlgs[i]);
+    TRACE("grbitEnabledProtocols = %08x\n", schanCred->grbitEnabledProtocols);
+    TRACE("dwMinimumCipherStrength = %d\n", schanCred->dwMinimumCipherStrength);
+    TRACE("dwMaximumCipherStrength = %d\n", schanCred->dwMaximumCipherStrength);
+    TRACE("dwSessionLifespan = %d\n", schanCred->dwSessionLifespan);
+    TRACE("dwFlags = %08x\n", schanCred->dwFlags);
+    TRACE("dwCredFormat = %d\n", schanCred->dwCredFormat);
 
     switch (schanCred->dwVersion)
     {
-- 
1.6.3.2


More information about the wine-patches mailing list