mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-20 05:49:10 +00:00
rpcrt4: A NULL AuthInfo is allowed.
Pass the server principal name into AcquireCredentialsHandleA.
This commit is contained in:
parent
84e42e0165
commit
4cd5be2637
|
@ -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),
|
TRACE("%p %s %lu %lu %p %lu %p\n", Binding, debugstr_a((const char*)ServerPrincName),
|
||||||
AuthnLevel, AuthnSvc, AuthIdentity, AuthzSvr, SecurityQos);
|
AuthnLevel, AuthnSvc, AuthIdentity, AuthzSvr, SecurityQos);
|
||||||
|
|
||||||
if (!AuthIdentity)
|
|
||||||
return RPC_S_INVALID_AUTH_IDENTITY;
|
|
||||||
|
|
||||||
if (AuthnLevel != RPC_C_AUTHN_LEVEL_CONNECT)
|
if (AuthnLevel != RPC_C_AUTHN_LEVEL_CONNECT)
|
||||||
{
|
{
|
||||||
FIXME("unsupported AuthnLevel %lu\n", AuthnLevel);
|
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);
|
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);
|
AuthIdentity, NULL, NULL, &cred, &exp);
|
||||||
FreeContextBuffer(packages);
|
FreeContextBuffer(packages);
|
||||||
if (r == ERROR_SUCCESS)
|
if (r == ERROR_SUCCESS)
|
||||||
|
|
Loading…
Reference in a new issue