468,512 Members | 1,426 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

AcquireCredentialsHandle returns SEC_E_UNKNOWN_CREDENTIALS in Vista

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
Dec 18 '07 #1
2 4549
weaknessforcats
9,207 Expert Mod 8TB
A 0x57 is a ERROR_INVALID_PARAMETER.

I suspect one of your arguments is incorrect.

See http://msdn2.microsoft.com/en-us/library/ms681382.aspx.
Dec 18 '07 #2
I am using Schannel SSP and as per the description in MSDN the given values are. Is there anything that is missing to be done?
Dec 19 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by 13Rockes | last post: by
11 posts views Thread by idoublepress | last post: by
4 posts views Thread by =?Utf-8?B?dmlwZXJ4MTk2Nw==?= | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.