Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
41d9aef7
Commit
41d9aef7
authored
20 years ago
by
Robert Shearman
Committed by
Alexandre Julliard
20 years ago
Browse files
Options
Downloads
Patches
Plain Diff
- Implement CoSetProxyBlanket, CoQueryProxyBlanket and CoCopyProxy.
- Update todo list.
parent
168265eb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/ole32/compobj.c
+115
-5
115 additions, 5 deletions
dlls/ole32/compobj.c
dlls/ole32/ole32.spec
+3
-3
3 additions, 3 deletions
dlls/ole32/ole32.spec
with
118 additions
and
8 deletions
dlls/ole32/compobj.c
+
115
−
5
View file @
41d9aef7
...
...
@@ -44,11 +44,6 @@
* - Implement RPC thread affinity (should fix InstallShield painting
* problems)
*
* - Implement IRemUnknown and marshalling for it, then use that for
* reffing/unreffing the stub manager from a proxy instead of our
* current hack of simply reaching into local process memory to do it,
* which obviously doesn't work inter-process.
*
* - Make our custom marshalling use NDR to be wire compatible with
* native DCOM
*
...
...
@@ -2564,3 +2559,118 @@ ULONG WINAPI CoReleaseServerProcess(void)
FIXME
(
"
\n
"
);
return
1
;
}
/***********************************************************************
* CoQueryProxyBlanket [OLE32.@]
*
* Retrieves the security settings being used by a proxy.
*
* PARAMS
* pProxy [I] Pointer to the proxy object.
* pAuthnSvc [O] The type of authentication service.
* pAuthzSvc [O] The type of authorization service.
* ppServerPrincName [O] Optional. The server prinicple name.
* pAuthnLevel [O] The authentication level.
* pImpLevel [O] The impersonation level.
* ppAuthInfo [O] Information specific to the authorization/authentication service.
* pCapabilities [O] Flags affecting the security behaviour.
*
* RETURNS
* Success: S_OK.
* Failure: HRESULT code.
*
* SEE ALSO
* CoCopyProxy, CoSetProxyBlanket.
*/
HRESULT
WINAPI
CoQueryProxyBlanket
(
IUnknown
*
pProxy
,
DWORD
*
pAuthnSvc
,
DWORD
*
pAuthzSvc
,
OLECHAR
**
ppServerPrincName
,
DWORD
*
pAuthnLevel
,
DWORD
*
pImpLevel
,
void
**
ppAuthInfo
,
DWORD
*
pCapabilities
)
{
IClientSecurity
*
pCliSec
;
HRESULT
hr
;
TRACE
(
"%p
\n
"
,
pProxy
);
hr
=
IUnknown_QueryInterface
(
pProxy
,
&
IID_IClientSecurity
,
(
void
**
)
&
pCliSec
);
if
(
SUCCEEDED
(
hr
))
hr
=
IClientSecurity_QueryBlanket
(
pCliSec
,
pProxy
,
pAuthnSvc
,
pAuthzSvc
,
ppServerPrincName
,
pAuthnLevel
,
pImpLevel
,
ppAuthInfo
,
pCapabilities
);
if
(
FAILED
(
hr
))
ERR
(
"-- failed with 0x%08lx
\n
"
,
hr
);
return
hr
;
}
/***********************************************************************
* CoSetProxyBlanket [OLE32.@]
*
* Sets the security settings for a proxy.
*
* PARAMS
* pProxy [I] Pointer to the proxy object.
* AuthnSvc [I] The type of authentication service.
* AuthzSvc [I] The type of authorization service.
* pServerPrincName [I] The server prinicple name.
* AuthnLevel [I] The authentication level.
* ImpLevel [I] The impersonation level.
* pAuthInfo [I] Information specific to the authorization/authentication service.
* Capabilities [I] Flags affecting the security behaviour.
*
* RETURNS
* Success: S_OK.
* Failure: HRESULT code.
*
* SEE ALSO
* CoQueryProxyBlanket, CoCopyProxy.
*/
HRESULT
WINAPI
CoSetProxyBlanket
(
IUnknown
*
pProxy
,
DWORD
AuthnSvc
,
DWORD
AuthzSvc
,
OLECHAR
*
pServerPrincName
,
DWORD
AuthnLevel
,
DWORD
ImpLevel
,
void
*
pAuthInfo
,
DWORD
Capabilities
)
{
IClientSecurity
*
pCliSec
;
HRESULT
hr
;
TRACE
(
"%p
\n
"
,
pProxy
);
hr
=
IUnknown_QueryInterface
(
pProxy
,
&
IID_IClientSecurity
,
(
void
**
)
&
pCliSec
);
if
(
SUCCEEDED
(
hr
))
hr
=
IClientSecurity_SetBlanket
(
pCliSec
,
pProxy
,
AuthnSvc
,
AuthzSvc
,
pServerPrincName
,
AuthnLevel
,
ImpLevel
,
pAuthInfo
,
Capabilities
);
if
(
FAILED
(
hr
))
ERR
(
"-- failed with 0x%08lx
\n
"
,
hr
);
return
hr
;
}
/***********************************************************************
* CoCopyProxy [OLE32.@]
*
* Copies a proxy.
*
* PARAMS
* pProxy [I] Pointer to the proxy object.
* ppCopy [O] Copy of the proxy.
*
* RETURNS
* Success: S_OK.
* Failure: HRESULT code.
*
* SEE ALSO
* CoQueryProxyBlanket, CoSetProxyBlanket.
*/
HRESULT
WINAPI
CoCopyProxy
(
IUnknown
*
pProxy
,
IUnknown
**
ppCopy
)
{
IClientSecurity
*
pCliSec
;
HRESULT
hr
;
TRACE
(
"%p
\n
"
,
pProxy
);
hr
=
IUnknown_QueryInterface
(
pProxy
,
&
IID_IClientSecurity
,
(
void
**
)
&
pCliSec
);
if
(
SUCCEEDED
(
hr
))
hr
=
IClientSecurity_CopyProxy
(
pCliSec
,
pProxy
,
ppCopy
);
if
(
FAILED
(
hr
))
ERR
(
"-- failed with 0x%08lx
\n
"
,
hr
);
return
hr
;
}
This diff is collapsed.
Click to expand it.
dlls/ole32/ole32.spec
+
3
−
3
View file @
41d9aef7
...
...
@@ -7,7 +7,7 @@
@ stdcall CLSIDFromString(wstr ptr)
@ stdcall CoAddRefServerProcess()
@ stdcall CoBuildVersion()
@ st
ub
CoCopyProxy
#@ stdcall (ptr ptr) return 0,ERR_NOTIMPLEMENTED
@ st
dcall
CoCopyProxy
(ptr ptr)
@ stdcall CoCreateFreeThreadedMarshaler(ptr ptr)
@ stdcall CoCreateGuid(ptr)
@ stdcall CoCreateInstance(ptr ptr long ptr ptr)
...
...
@@ -49,7 +49,7 @@
@ stdcall CoMarshalInterface(ptr ptr ptr long ptr long)
@ stub CoQueryAuthenticationServices
@ stub CoQueryClientBlanket
@ st
ub
CoQueryProxyBlanket
@ st
dcall
CoQueryProxyBlanket
(ptr ptr ptr ptr ptr ptr ptr ptr)
@ stub CoQueryReleaseObject
@ stub CoRegisterChannelHook
@ stdcall CoRegisterClassObject(ptr ptr long long ptr)
...
...
@@ -63,7 +63,7 @@
@ stub CoRevertToSelf #@ stdcall () return 0,ERR_NOTIMPLEMENTED
@ stdcall CoRevokeClassObject(long)
@ stdcall CoRevokeMallocSpy()
@ st
ub
CoSetProxyBlanket
#@ stdcall
(ptr long long wstr long long ptr long)
return 0,ERR_NOTIMPLEMENTED
@ st
dcall
CoSetProxyBlanket(ptr long long wstr long long ptr long)
@ stdcall CoSetState(ptr)
@ stub CoSwitchCallContext
@ stdcall CoSuspendClassObjects()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment