Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Win32 Support: Replaced CERT_CONTEXT with PCCERT_CONTEXT for BuildCertificateData.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Mon, 16 May 2016 20:47:30 +0000 (21:47 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Mon, 16 May 2016 20:47:30 +0000 (21:47 +0100)
source/common/win32ssl.cpp
source/common/win32ssl.h

index 853cabe..26c7754 100644 (file)
@@ -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");
index 35dede4..4035dc3 100644 (file)
@@ -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
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy