wintrust: Support WSS_GET_SECONDARY_SIG_COUNT in Softpub provider.
[wine.git] / include / wmsecure.idl
blobf8d731a05ba422fcaa1ff66b872b2e8d650e8ad6
1 /*
2 * Copyright 2021 Zebediah Figura for CodeWeavers
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.
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.
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
19 import "oaidl.idl";
20 import "ocidl.idl";
23 object,
24 local,
25 uuid(d9b67d36-a9ad-4eb4-baef-db284ef5504c),
27 interface IWMAuthorizer : IUnknown
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);
35 object,
36 local,
37 uuid(2720598a-d0f2-4189-bd10-91c46ef0936f),
39 interface IWMSecureChannel : IWMAuthorizer
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);
55 object,
56 local,
57 uuid(94bc0598-c3d2-11d3-bedf-00c04f612986),
59 interface IWMGetSecureChannel : IUnknown
61 HRESULT GetPeerSecureChannelInterface(IWMSecureChannel **channel);