From: Steve Brokenshire Date: Mon, 16 May 2016 20:47:30 +0000 (+0100) Subject: Win32 Support: Replaced CERT_CONTEXT with PCCERT_CONTEXT for BuildCertificateData. X-Git-Tag: release-0.13~17 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=d2f54c1cbe640c6e82f3fe3f716e7e33ad36d01e;p=xestiaab%2F.git Win32 Support: Replaced CERT_CONTEXT with PCCERT_CONTEXT for BuildCertificateData. --- diff --git a/source/common/win32ssl.cpp b/source/common/win32ssl.cpp index 853cabe..26c7754 100644 --- a/source/common/win32ssl.cpp +++ b/source/common/win32ssl.cpp @@ -36,13 +36,13 @@ CRYPTUI_VIEWCERTIFICATE_STRUCTW BuildCertificateData(CardDAV *CardDAVConnection, } -CRYPTUI_VIEWCERTIFICATE_STRUCTW BuildCertificateData(CERT_CONTEXT CertificateContext, HWND WindowHandle){ +CRYPTUI_VIEWCERTIFICATE_STRUCTW BuildCertificateData(PCCERT_CONTEXT CertificateContext, HWND WindowHandle){ - HCERTSTORE CertificateStore = CertificateContext.hCertStore; + HCERTSTORE CertificateStore = CertificateContext->hCertStore; CRYPTUI_VIEWCERTIFICATE_STRUCTW CertificateData = { 0 }; CertificateData.hwndParent = WindowHandle; CertificateData.dwFlags = CRYPTUI_DISABLE_HTMLLINK; - CertificateData.pCertContext = &CertificateContext; + CertificateData.pCertContext = CertificateContext; CertificateData.cStores = 1; CertificateData.rghStores = &CertificateStore; CertificateData.szTitle = _("Certificate Information"); diff --git a/source/common/win32ssl.h b/source/common/win32ssl.h index 35dede4..4035dc3 100644 --- a/source/common/win32ssl.h +++ b/source/common/win32ssl.h @@ -32,6 +32,6 @@ #include "../carddav/carddav.h" CRYPTUI_VIEWCERTIFICATE_STRUCTW BuildCertificateData(CardDAV *CardDAVConnection, HWND WindowHandle); -CRYPTUI_VIEWCERTIFICATE_STRUCTW BuildCertificateData(CERT_CONTEXT CertificateContext, HWND WindowHandle); +CRYPTUI_VIEWCERTIFICATE_STRUCTW BuildCertificateData(PCCERT_CONTEXT CertificateContext, HWND WindowHandle); #endif \ No newline at end of file