rpcrt4: A NULL AuthInfo is allowed.

Pass the server principal name into AcquireCredentialsHandleA.
This commit is contained in:
Robert Shearman 2006-05-18 03:41:25 +01:00 committed by Alexandre Julliard
parent 84e42e0165
commit 4cd5be2637
1 changed files with 1 additions and 4 deletions

View File

@ -1027,9 +1027,6 @@ RpcBindingSetAuthInfoExA( RPC_BINDING_HANDLE Binding, unsigned char *ServerPrinc
TRACE("%p %s %lu %lu %p %lu %p\n", Binding, debugstr_a((const char*)ServerPrincName),
AuthnLevel, AuthnSvc, AuthIdentity, AuthzSvr, SecurityQos);
if (!AuthIdentity)
return RPC_S_INVALID_AUTH_IDENTITY;
if (AuthnLevel != RPC_C_AUTHN_LEVEL_CONNECT)
{
FIXME("unsupported AuthnLevel %lu\n", AuthnLevel);
@ -1064,7 +1061,7 @@ RpcBindingSetAuthInfoExA( RPC_BINDING_HANDLE Binding, unsigned char *ServerPrinc
}
TRACE("found package %s for service %ld\n", packages[i].Name, AuthnSvc);
r = AcquireCredentialsHandleA(NULL, packages[i].Name, SECPKG_CRED_OUTBOUND, NULL,
r = AcquireCredentialsHandleA((SEC_CHAR *)ServerPrincName, packages[i].Name, SECPKG_CRED_OUTBOUND, NULL,
AuthIdentity, NULL, NULL, &cred, &exp);
FreeContextBuffer(packages);
if (r == ERROR_SUCCESS)