From d2f54c1cbe640c6e82f3fe3f716e7e33ad36d01e Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Mon, 16 May 2016 21:47:30 +0100 Subject: [PATCH] Win32 Support: Replaced CERT_CONTEXT with PCCERT_CONTEXT for BuildCertificateData. --- source/common/win32ssl.cpp | 6 +++--- source/common/win32ssl.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5