Debian Codegraph @

mingw-w64-headers/include/wmsecure.idl

raw
1 /*
2 * Copyright 2021 Zebediah Figura for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19 import "oaidl.idl";
20 import "ocidl.idl";
21
22 [
23 object,
24 local,
25 uuid(d9b67d36-a9ad-4eb4-baef-db284ef5504c),
26 ]
27 interface IWMAuthorizer : IUnknown
28 {
29 HRESULT GetCertCount(DWORD *count);
30 HRESULT GetCert(DWORD index, BYTE **data);
31 HRESULT GetSharedData(DWORD index, const BYTE *data, BYTE *cert, BYTE **ret_data);
32 }
33
34 [
35 object,
36 local,
37 uuid(2720598a-d0f2-4189-bd10-91c46ef0936f),
38 ]
39 interface IWMSecureChannel : IWMAuthorizer
40 {
41 HRESULT WMSC_AddCertificate(IWMAuthorizer *cert);
42 HRESULT WMSC_AddSignature(BYTE *signature, DWORD size);
43 HRESULT WMSC_Connect(IWMSecureChannel *peer);
44 HRESULT WMSC_IsConnected(BOOL *connected);
45 HRESULT WMSC_Disconnect();
46 HRESULT WMSC_GetValidCertificate(BYTE **cert, DWORD *signature);
47 HRESULT WMSC_Encrypt(BYTE *data, DWORD size);
48 HRESULT WMSC_Decrypt(BYTE *data, DWORD size);
49 HRESULT WMSC_Lock();
50 HRESULT WMSC_Unlock();
51 HRESULT WMSC_SetSharedData(DWORD index, BYTE *data);
52 }
53
54 [
55 object,
56 local,
57 uuid(94bc0598-c3d2-11d3-bedf-00c04f612986),
58 ]
59 interface IWMGetSecureChannel : IUnknown
60 {
61 HRESULT GetPeerSecureChannelInterface(IWMSecureChannel **channel);
62 }