diff options
author | Remko Tronçon <git@el-tramo.be> | 2014-02-01 11:48:54 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2014-02-02 09:42:58 (GMT) |
commit | f44ea24fda0f08195180215a30bc626d7c1907c5 (patch) | |
tree | a1bb160a98a497dbf01b82bbf559e99b6c1dfad9 /Swift | |
parent | 3d881ddd0b65d3a2bc1213386fb75fd95e4de691 (diff) | |
download | swift-f44ea24fda0f08195180215a30bc626d7c1907c5.zip swift-f44ea24fda0f08195180215a30bc626d7c1907c5.tar.bz2 |
Sluift: Add new_certificate
Change-Id: If4e4ef98c00f15c0a88557860f0377843a8713c0
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/Controllers/Storages/CertificateFileStorage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/Storages/CertificateFileStorage.cpp b/Swift/Controllers/Storages/CertificateFileStorage.cpp index 34d1f76..2c242cd 100644 --- a/Swift/Controllers/Storages/CertificateFileStorage.cpp +++ b/Swift/Controllers/Storages/CertificateFileStorage.cpp @@ -25,7 +25,7 @@ bool CertificateFileStorage::hasCertificate(Certificate::ref certificate) const if (boost::filesystem::exists(certificatePath)) { ByteArray data; readByteArrayFromFile(data, certificatePath); - Certificate::ref storedCertificate = certificateFactory->createCertificateFromDER(data); + Certificate::ref storedCertificate(certificateFactory->createCertificateFromDER(data)); if (storedCertificate && storedCertificate->toDER() == certificate->toDER()) { return true; } |