}
nla->cbMaxToken = nla->pPackageInfo->cbMaxToken;
+ nla->packageName = nla->pPackageInfo->Name;
nla->status = nla->table->AcquireCredentialsHandle(NULL, NLA_PKG_NAME,
SECPKG_CRED_INBOUND, NULL, NULL, NULL, NULL, &nla->credentials, &nla->expiration);
static void negotiate_SetSubPackage(NEGOTIATE_CONTEXT* context, const char* name)
{
- if (strcmp(name, KERBEROS_SSP_NAME) == 0)
+ if (strncmp(name, KERBEROS_SSP_NAME, sizeof(KERBEROS_SSP_NAME)) == 0)
{
context->sspiA = (SecurityFunctionTableA*) &KERBEROS_SecurityFunctionTableA;
context->sspiW = (SecurityFunctionTableW*) &KERBEROS_SecurityFunctionTableW;
context->NegotiateFlags = 0;
context->state = NEGOTIATE_STATE_INITIAL;
SecInvalidateHandle(&(context->SubContext));
- negotiate_SetSubPackage(context, (const char*) KERBEROS_SSP_NAME);
+ negotiate_SetSubPackage(context, KERBEROS_SSP_NAME);
return context;
}
{
if (!pInput)
{
- negotiate_SetSubPackage(context, (const char*) KERBEROS_SSP_NAME);
+ negotiate_SetSubPackage(context, KERBEROS_SSP_NAME);
}
status = context->sspiW->InitializeSecurityContextW(phCredential, &(context->SubContext),
{
if (!pInput)
{
- negotiate_SetSubPackage(context, (const char*) KERBEROS_SSP_NAME);
+ negotiate_SetSubPackage(context, KERBEROS_SSP_NAME);
}
status = context->sspiA->InitializeSecurityContextA(phCredential, &(context->SubContext),