summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
Diffstat (limited to 'Swift')
-rw-r--r--Swift/Controllers/Storages/CertificateStorageTrustChecker.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/Storages/CertificateStorageTrustChecker.h b/Swift/Controllers/Storages/CertificateStorageTrustChecker.h
index a73590a..df15575 100644
--- a/Swift/Controllers/Storages/CertificateStorageTrustChecker.h
+++ b/Swift/Controllers/Storages/CertificateStorageTrustChecker.h
@@ -12,19 +12,19 @@
namespace Swift {
/**
* A certificate trust checker that trusts certificates in a certificate storage.
*/
class CertificateStorageTrustChecker : public CertificateTrustChecker {
public:
CertificateStorageTrustChecker(CertificateStorage* storage) : storage(storage) {
}
- virtual bool isCertificateTrusted(Certificate::ref, const std::vector<Certificate::ref>& certificateChain) {
+ virtual bool isCertificateTrusted(const std::vector<Certificate::ref>& certificateChain) {
lastCertificateChain = std::vector<Certificate::ref>(certificateChain.begin(), certificateChain.end());
return certificateChain.empty() ? false : storage->hasCertificate(certificateChain[0]);
}
const std::vector<Certificate::ref>& getLastCertificateChain() const {
return lastCertificateChain;
}
private: