Hi,
I have code that works fine for all OSs from Win2KPro to Win2K3 Server, But fails for Windows Vista....
SchannelCred.dwVersion = SCHANNEL_CRED_VERSION;
SchannelCred.cCreds = 1;
SchannelCred.paCred = &CertContext;
SchannelCred.grbitEnabledProtocols = dwEnabledProtocols;
SchannelCred.dwFlags = 0;
SECURITY_STATUS ss = m_psft->AcquireCredentialsHandle (0,
UNISP_NAME,
SECPKG_CRED_INBOUND,
0,
&SchannelCred,
0,
0,
&m_hServerCreds,
0);
if (ss != SEC_E_OK)
BioThrowSystem(ss);
The Value of "ss" is SEC_E_UNKNOWN_CREDENTIALS and the GetLastError() returns Error 0x00000057 i.e. The parameter is incorrect.
Plz Help. It's URGENT