Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
frmContactEditorAddress: Implemented priority control
[xestiaab/.git] / source / common / win32ssl.cpp
1 // win32ssl.cpp - Win32 SSPI (SSL) support.
2 //
3 // (c) 2016 Xestia Software Development.
4 //
5 // This file is part of Xestia Address Book.
6 //
7 // Xestia Address Book is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by the
9 // Free Software Foundation, version 3 of the license.
10 //
11 // Xestia Address Book is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License along
17 // with Xestia Address Book. If not, see <http://www.gnu.org/licenses/>
19 #include "win32ssl.h"
21 CRYPTUI_VIEWCERTIFICATE_STRUCTW BuildCertificateData(ConnectionObject *ConnectionObjectData, HWND WindowHandle){
23         PCCERT_CONTEXT CertificateContext = ConnectionObjectData->BuildSSLCollection();
24         HCERTSTORE CertificateStore = CertificateContext->hCertStore;
25         CRYPTUI_VIEWCERTIFICATE_STRUCTW CertificateData = { 0 };
26         CertificateData.hwndParent = WindowHandle;
27         CertificateData.dwFlags = CRYPTUI_ENABLE_ADDTOSTORE | CRYPTUI_DISABLE_HTMLLINK;
28         CertificateData.pCertContext = CertificateContext;
29         CertificateData.cStores = 1;
30         CertificateData.rghStores = &CertificateStore;
31         CertificateData.szTitle = _("Certificate Information");
32         CertificateData.nStartPage = 0;
33         CertificateData.dwSize = sizeof(CertificateData);
35         return CertificateData;
37 }
39 CRYPTUI_VIEWCERTIFICATE_STRUCTW BuildCertificateData(PCCERT_CONTEXT CertificateContext, HWND WindowHandle){
41         HCERTSTORE CertificateStore = CertificateContext->hCertStore;
42         CRYPTUI_VIEWCERTIFICATE_STRUCTW CertificateData = { 0 };
43         CertificateData.hwndParent = WindowHandle;
44         CertificateData.dwFlags = CRYPTUI_DISABLE_HTMLLINK;
45         CertificateData.pCertContext = CertificateContext;
46         CertificateData.cStores = 1;
47         CertificateData.rghStores = &CertificateStore;
48         CertificateData.szTitle = _("Certificate Information");
49         CertificateData.nStartPage = 0;
50         CertificateData.dwSize = sizeof(CertificateData);
52         return CertificateData;
54 }
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