summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-05-17 16:32:22 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-05-17 16:32:22 (GMT)
commitdb405710b65fdbee806726aeb7bf6fd7ac9f653b (patch)
tree6e35235824e53fc8b8f0dc0c1e93d45a155b75cc /Swift/QtUI
parentbed7d1cb425e4a04bedfa9be15a9f0920e64aaf9 (diff)
downloadswift-db405710b65fdbee806726aeb7bf6fd7ac9f653b.zip
swift-db405710b65fdbee806726aeb7bf6fd7ac9f653b.tar.bz2
Fixing compilation on windows.
Resolves: #1123
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/WinUIHelpers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/WinUIHelpers.cpp b/Swift/QtUI/WinUIHelpers.cpp
index edd1120..3942ac1 100644
--- a/Swift/QtUI/WinUIHelpers.cpp
+++ b/Swift/QtUI/WinUIHelpers.cpp
@@ -32,7 +32,7 @@ void WinUIHelpers::displayCertificateChainAsSheet(QWidget* parent, const std::ve
boost::shared_ptr<const CERT_CONTEXT> certificate_chain;
{
PCCERT_CONTEXT certChain;
- BOOL ok = CertAddCertificateContextToStore(chainStore, CertCreateCertificateContext(X509_ASN_ENCODING, certAsDER.data(), certAsDER.size()), CERT_STORE_ADD_ALWAYS, &certChain);
+ BOOL ok = CertAddCertificateContextToStore(chainStore, CertCreateCertificateContext(X509_ASN_ENCODING, vecptr(certAsDER), certAsDER.size()), CERT_STORE_ADD_ALWAYS, &certChain);
// maybe free the cert contex we created
if (!ok || !certChain) {
return;
@@ -42,7 +42,7 @@ void WinUIHelpers::displayCertificateChainAsSheet(QWidget* parent, const std::ve
for (size_t i = 1; i < chain.size(); ++i) {
ByteArray certAsDER = chain[i]->toDER();
- CertAddCertificateContextToStore(chainStore, CertCreateCertificateContext(X509_ASN_ENCODING, certAsDER.data(), certAsDER.size()), CERT_STORE_ADD_ALWAYS, NULL);
+ CertAddCertificateContextToStore(chainStore, CertCreateCertificateContext(X509_ASN_ENCODING, vecptr(certAsDER), certAsDER.size()), CERT_STORE_ADD_ALWAYS, NULL);
}
CRYPTUI_VIEWCERTIFICATE_STRUCT viewDialogProperties = { 0 };