Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
41d9aef7
Commit
41d9aef7
authored
Jan 28, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 28, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Implement CoSetProxyBlanket, CoQueryProxyBlanket and CoCopyProxy.
- Update todo list.
parent
168265eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
118 additions
and
8 deletions
+118
-8
compobj.c
dlls/ole32/compobj.c
+115
-5
ole32.spec
dlls/ole32/ole32.spec
+3
-3
No files found.
dlls/ole32/compobj.c
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
;
}
dlls/ole32/ole32.spec
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()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment