af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) 2008 Juan Lang
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * a choice of LGPL license versions is made available with the language indicating
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * of the LGPL is applied is otherwise unspecified.
af062818b47340eef15700d2f0211576ba3506eevboxsyncextern "C" {
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef BOOL (WINAPI *PFNCMFILTERPROC)(PCCERT_CONTEXT, DWORD, DWORD, DWORD);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef UINT (WINAPI *PFNCMHOOKPROC)(HWND, UINT, WPARAM, LPARAM);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define CERT_SELECT_STRUCT WINELIB_NAME_AW(CERT_SELECT_STRUCT_)
af062818b47340eef15700d2f0211576ba3506eevboxsyncBOOL WINAPI CertSelectCertificateA(PCERT_SELECT_STRUCT_A pCertSelectInfo);
af062818b47340eef15700d2f0211576ba3506eevboxsyncBOOL WINAPI CertSelectCertificateW(PCERT_SELECT_STRUCT_W pCertSelectInfo);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define CertSelectCertificate WINELIB_NAME_AW(CertSelectCertificate)
af062818b47340eef15700d2f0211576ba3506eevboxsync /* FIXME: PSDK declares arrayPropSheetPages as a PROPSHEETPAGE *, which we
af062818b47340eef15700d2f0211576ba3506eevboxsync * don't allow in our own headers. It's probably wrong, but we're not
af062818b47340eef15700d2f0211576ba3506eevboxsync * compatible.
af062818b47340eef15700d2f0211576ba3506eevboxsync} CERT_VIEWPROPERTIES_STRUCT_A, *PCERT_VIEWPROPERTIES_STRUCT_A;
af062818b47340eef15700d2f0211576ba3506eevboxsync /* FIXME: PSDK declares arrayPropSheetPages as a PROPSHEETPAGE *, which we
af062818b47340eef15700d2f0211576ba3506eevboxsync * don't allow in our own headers. It's probably wrong, but we're not
af062818b47340eef15700d2f0211576ba3506eevboxsync * compatible.
af062818b47340eef15700d2f0211576ba3506eevboxsync} CERT_VIEWPROPERTIES_STRUCT_W, *PCERT_VIEWPROPERTIES_STRUCT_W;
af062818b47340eef15700d2f0211576ba3506eevboxsync#define CERT_VIEWPROPERTIES_STRUCT WINELIB_NAME_AW(CERT_VIEWPROPERTIES_STRUCT_)
af062818b47340eef15700d2f0211576ba3506eevboxsyncBOOL WINAPI CertViewPropertiesA(PCERT_VIEWPROPERTIES_STRUCT_A pCertViewInfo);
af062818b47340eef15700d2f0211576ba3506eevboxsyncBOOL WINAPI CertViewPropertiesW(PCERT_VIEWPROPERTIES_STRUCT_W pCertViewInfo);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define CertViewProperties WINELIB_NAME_AW(CertViewProperties)
af062818b47340eef15700d2f0211576ba3506eevboxsyncDWORD WINAPI GetFriendlyNameOfCertA(PCCERT_CONTEXT pccert, LPSTR pchBuffer,
af062818b47340eef15700d2f0211576ba3506eevboxsyncDWORD WINAPI GetFriendlyNameOfCertW(PCCERT_CONTEXT pccert, LPWSTR pchBuffer,
af062818b47340eef15700d2f0211576ba3506eevboxsync#define GetFriendlyNameOfCert WINELIB_NAME_AW(GetFriendlyNameOfCert)
af062818b47340eef15700d2f0211576ba3506eevboxsync { 0x7801ebd0, 0xcf4b, 0x11d0, { 0x85,0x1f,0x00,0x60,0x97,0x93,0x87,0xea }}
af062818b47340eef15700d2f0211576ba3506eevboxsync "{7801ebd0-cf4b-11d0-851f-0060979387ea}"
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef HRESULT (WINAPI *PFNTRUSTHELPER)(PCCERT_CONTEXT, DWORD, BOOL, LPBYTE);
af062818b47340eef15700d2f0211576ba3506eevboxsync#define CERT_VALIDITY_CERTIFICATE_REVOKED 0x00000008
af062818b47340eef15700d2f0211576ba3506eevboxsync#define CERT_VALIDITY_KEY_USAGE_EXT_FAILURE 0x00000010
af062818b47340eef15700d2f0211576ba3506eevboxsync#define CERT_VALIDITY_EXTENDED_USAGE_FAILURE 0x00000020
af062818b47340eef15700d2f0211576ba3506eevboxsync#define CERT_VALIDITY_NAME_CONSTRAINTS_FAILURE 0x00000040
af062818b47340eef15700d2f0211576ba3506eevboxsync#define CERT_VALIDITY_UNKNOWN_CRITICAL_EXTENSION 0x00000080
af062818b47340eef15700d2f0211576ba3506eevboxsync#define CERT_VALIDITY_OTHER_EXTENSION_FAILURE 0x00000200
af062818b47340eef15700d2f0211576ba3506eevboxsync#define CERT_VALIDITY_PERIOD_NESTING_FAILURE 0x00000400
af062818b47340eef15700d2f0211576ba3506eevboxsync#define CERT_VALIDITY_EXPLICITLY_DISTRUSTED 0x01000000
af062818b47340eef15700d2f0211576ba3506eevboxsync#define CERT_VALIDITY_NO_ISSUER_CERT_FOUND 0x10000000
af062818b47340eef15700d2f0211576ba3506eevboxsync#define CERT_TRUST_ADD_CERT_STORES CM_ADD_CERT_STORES
af062818b47340eef15700d2f0211576ba3506eevboxsync} CERT_VERIFY_CERTIFICATE_TRUST, *PCERT_VERIFY_CERTIFICATE_TRUST;
af062818b47340eef15700d2f0211576ba3506eevboxsyncHRESULT WINAPI CertModifyCertificatesToTrust(int cCertStore,