Honor the "Forever" option when accepting ssl certificates.

(cherry picked from commit 5975b91a25)
v3.5.13-sru
Francois Andriot 12 years ago committed by Slávek Banko
parent 41fc569e81
commit 9a034a7c47

@ -853,10 +853,12 @@ int TCPSlaveBase::verifyCertificate()
permacache = d->cc->isPermanent(pc); permacache = d->cc->isPermanent(pc);
} }
/*
if (!_IPmatchesCN && cp == KSSLCertificateCache::Accept) { if (!_IPmatchesCN && cp == KSSLCertificateCache::Accept) {
cp = KSSLCertificateCache::Prompt; cp = KSSLCertificateCache::Prompt;
// ksv = KSSLCertificate::Ok; // ksv = KSSLCertificate::Ok;
} }
*/
// Precondition: cp is one of Reject, Accept or Prompt // Precondition: cp is one of Reject, Accept or Prompt
switch (cp) { switch (cp) {

Loading…
Cancel
Save