From: Tony Mack Date: Tue, 11 Aug 2009 03:23:08 +0000 (+0000) Subject: in verify_chain, if the check if public keys are the same X-Git-Tag: sfa-0.9-1~107 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9adeb00f508b934de95edc81574c87d75108a435;p=sfa.git in verify_chain, if the check if public keys are the same --- diff --git a/sfa/trust/certificate.py b/sfa/trust/certificate.py index 3b725bde..8ca369d7 100644 --- a/sfa/trust/certificate.py +++ b/sfa/trust/certificate.py @@ -523,6 +523,9 @@ class Certificate: if self.is_signed_by_cert(trusted_cert): #print self.get_subject(), "is signed by a root" return + # if the public keys are the same then we are set + if self.is_pubkey(trusted_cert.get_pubkey()): + return # if there is no parent, then no way to verify the chain if not self.parent: