【100分求解疑惑】AcquireCredentialsHandle函数调用的疑惑
Mi_Bo 2011-02-21 11:36:21 调用AcquireCredentialsHandle,pszPackage参数采用"Microsoft Unified Security Protocol Provider",则参数pAuthData需要采用结构体SCHANNEL_CRED,
Copytypedef struct _SCHANNEL_CRED {
DWORD dwVersion;
DWORD cCreds;
PCCERT_CONTEXT *paCred;
HCERTSTORE hRootStore;
DWORD cMappers;
struct _HMAPPER **aphMappers;
DWORD cSupportedAlgs;
ALG_ID *palgSupportedAlgs;
DWORD grbitEnabledProtocols;
DWORD dwMinimumCipherStrength;
DWORD dwMaximumCipherStrength;
DWORD dwSessionLifespan;
DWORD dwFlags;
DWORD dwCredFormat;
} SCHANNEL_CRED, *PSCHANNEL_CRED;
其中palgSupportedAlgs参数代表的是选用的算法,MSDN里说该参数为NULL时,采用系统默认的算法,那么系统默认的设置又是什么呢?在哪里可以看到。